supersede: Fix test failures on native Windows.
[gnulib.git] / ChangeLog
blob167c7e78931823b6caee8444513ac4ee64b162c8
1 2020-09-20  Bruno Haible  <bruno@clisp.org>
3         supersede: Fix test failures on native Windows.
4         * lib/supersede.c (open_supersede): Handle non-regular files on native
5         Windows like on Solaris.
6         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
8 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10         test-stdalign: test Oracle Studio better
11         * doc/posix-headers/stdalign.texi (stdalign.h):
12         * tests/test-stdalign.c (main):
13         Sun Studio Bug #2125432 seems to be fixed.
15         c-stack: output diagnostic in single 'write'
16         * lib/c-stack.c (die): In the typical case, use just one 'write'
17         syscall to output the diagnostic, as this lessens interleaving.
18         (die, c_stack_action): Assume C99.
19         * modules/c-stack (Depends-on): Add c99, mempcpy.
21         c-stack: improve checking if !libsigsegv
22         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
23         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
24         unlikely pointer overflow.  Also, fix some obsolete code and typos.
25         I found these problems while looking into this bug report:
26         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
27         * lib/c-stack.c: Include c-stack.h first, to test interface.
28         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
29         max_align_t, intprops.h for INT_ADD_WRAPV.
30         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
31         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
32         for libsigsegv 2.8 and earlier since the bug should be fixed
33         after that.
34         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
35         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
36         Assume sprintf returns byte count; this assumption is safe now.
37         (page_size): New static volatile variable, since sysconf isn’t
38         documented to be async-signal-safe on Solaris.  This variable is
39         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
40         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
41         SIGINFO_WORKS).
42         (segv_handler): Use it if present.  Never report null pointer
43         dereference as a stack overflow.  Check for (unlikely) unsigned
44         and/or pointer overflow.
45         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
46         Rename cache variables to gl_cv_sys_stack_overflow_works
47         and gl_cv_sys_xsi_stack_overflow_heuristic.
48         All uses changed.
49         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
50         c-stack no longer uses STACK_DIRECTION.
51         Do not check for unistd.h, since we depend on unistd.
52         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
53         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
54         stdbool, stddef.
56 2020-09-20  Bruno Haible  <bruno@clisp.org>
58         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
59         * m4/musl.m4: Revert 2020-09-19 patch.
60         * m4/setlocale_null.m4: Likewise.
61         * modules/setlocale-null: Likewise.
63 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
64             Bruno Haible  <bruno@clisp.org>
66         relocatable-prog: Fix for multiple relocatable library directories.
67         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
68         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
69         being attached to a single one.
71 2020-09-19  Jim Meyering  <meyering@fb.com>
73         test-verify.c: avoid -Wshadow warnings
74         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
75         (enum): Capitalize member names. Adjust uses.
77 2020-09-19  Bruno Haible  <bruno@clisp.org>
79         havelib: Avoid linking with libc.a on GNU systems.
80         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
81         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
82         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
83         dependency_libs value of a .la file, ignore '-lc' options on GNU
84         systems.
86 2020-09-19  Bruno Haible  <bruno@clisp.org>
88         Fix recognition of musl libc on Alpine Linux 3.10.
89         Reported by Jeffrey Walton <noloader@gmail.com> in
90         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
91         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
92         (gl_MUSL_LIBC): Require it.
93         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
94         * modules/setlocale-null (Files): Add m4/musl.m4.
96 2020-09-19  Bruno Haible  <bruno@clisp.org>
98         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
99         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
100         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
101         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
102         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
103         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
104         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
105         or <threads.h>.
106         (ITEMS, MAX_RESULT_LEN): New macros.
107         (nl_langinfo_unlocked): New function.
108         (gl_get_nl_langinfo_lock): New declaration.
109         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
110         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
111         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
112         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
113         REPLACE_NL_LANGINFO.
114         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
115         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
116         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
117         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
118         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
120 2020-09-18  Bruno Haible  <bruno@clisp.org>
122         fsusage, getaddrinfo: Produce more regular configure output.
123         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
124         corresponding AC_MSG_RESULT.
125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
127 2020-09-18  Bruno Haible  <bruno@clisp.org>
129         Add back gl_SILENT.
130         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
132 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
134         c-stack-tests: fix -fsanitize=undefined false alarm
135         * tests/test-c-stack2.sh: Skip the test-harness self-test
136         if ‘gcc -fsanitize=undefined’ is in use.
138 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
140         signalblocking: simplify and remove gl_SILENT
141         gl_SILENT was problematic because if a trap was sprung, stderr
142         generated during the trap was lost.  Avoid the problem by
143         removing the need for gl_SILENT.
144         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
145         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
146         Simplify, avoiding the need for gl_SILENT while preserving the
147         ability of the user to override the value of the cache variable,
148         now ac_cv_func_sigprocmask.
150 2020-09-17  Bruno Haible  <bruno@clisp.org>
152         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
153         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
154         (gl_SILENT): Use 'exec', not a compound statement, to redirect
155         AS_MESSAGE_FD.
157 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
159         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
160         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
161         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
162         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
163         Define to 0.
164         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
165         Do not use __builtin_mul_overflow_p.
167         libc-config: port __THROW to Ubuntu 4
168         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
169         for GCC 3.3.  Problem reported by Jeffrey Walton in:
170         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
171         The GCC 3.3.4 documentation says the attribute should work, but
172         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
173         little point or desire to research this circa-2004 platform further,
174         so just avoid the attribute there.
176 2020-09-17  Jim Meyering  <meyering@fb.com>
178         test-dfa-match.sh: port timeout work-around to newer Busybox
179         * tests/test-dfa-match.sh: Update timeout -t portability test to
180         accommodate Busybox 1.30.0 and newer.
182 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
184         fnmatch: adjust to match glibc fix
185         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
186         This does not affect Gnulib; it merely keeps Gnulib and glibc
187         closer together, to help with any eventual merge, by incorporating
188         a recent glibc patch.  The patch and the following commentary is
189         by Andreas Schwab.
190         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
191         contains the index into the extra array, whereas wextra points
192         into the extra array at this index, containing the length of the
193         following collating sequence in the wide character representation.
195 2020-09-16  Bruno Haible  <bruno@clisp.org>
197         stat, fstat: Fix compilation error with old mingw headers.
198         Reported by Eli Zaretskii <eliz@gnu.org> in
199         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
200         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
201         define it.
203 2020-09-16  Bruno Haible  <bruno@clisp.org>
205         stat, fstat: Fix when compiling for versions older than Windows Vista.
206         Reported by Eli Zaretskii <eliz@gnu.org> in
207         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
208         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
209         that was originally set before we redefined it.
210         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
211         (gl_PREREQ_STAT): Require it.
212         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
214 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
216         dfa: remove dfa-heap-overrun workaround
217         * lib/dfa.c (reorder_tokens): Go back to a single pass that
218         both sets map[*] and does other things.  This reverts
219         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
220         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
221         fixed the underlying problem.
223 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
225         dfa: avoid use of uninitialized constraint
226         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
227         to zero here.
228         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
229         use of an uninitialized constraint by later code when ! (flags[i]
230         & OPT_QUEUED) means merge_nfa_state was not called to initialize
231         the constraint.  Problem found by running 'valgrind src/grep -E
232         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
234         dfa: assume C99 in reorder_tokens
235         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
237         dfa: fix dfa-heap-overrun failure
238         * lib/dfa.c (reorder_tokens): When setting
239         map[d->follows[i].elems[j].index], instead of incorrectly assuming
240         that (i < d->follows[i].elems[j].index), use two loops, one to set
241         the map array and the other to use it.  The incorrect assumption
242         caused some elements to be missed, and this in turn caused grep's
243         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
244         with GCC.  I found this bug while investigating
245         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
246         and I think the bug also occurs on GNU/Linux but with more-subtle
247         symptoms.  The bug predates the recent dfa.c changes; perhaps the
248         recent changes make the bug more likely.
250 2020-09-13  Bruno Haible  <bruno@clisp.org>
252         parse-datetime: Make the build rule work with parallel 'make'.
253         Reported by Daiki Ueno <ueno@gnu.org> in
254         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
255         * modules/parse-datetime (Makefile.am): Use a phony target and the
256         general idiom for rules that produce multiple files.
258 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
260         getpass: Check for nonnull prompt argument while avoiding warnings.
261         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
262         (getpass) [!_WIN32]: Print prompt only if nonnull.
264 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
266         dfa: epsilon-closure tweaks (Bug#40634)
267         Rename BACKWORD to BACKWARD consistently.
268         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
269         (addtok_mb): Redo slightly to make it act more like a state machine.
270         Check depth only when it increases.
271         (epsclosure): Let the switch test the tokens.
272         (dfaanalyze): Cache tindex.  Simplify position loops.
273         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
274         only if it is not null, since we're testing that anyway.
275         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
277 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
279         dfa: use backward set in removal of epsilon closure
280         When removing in epsilon closure, the code searched all nodes
281         sequentially, and this was slow for some cases.  Build a backward
282         set before search, and only check previous position with the set.
283         Problem reported in <https://bugs.gnu.org/40634>.
284         * lib/dfa.c (struct dfa): New member 'epsilon'.
285         (addtok_mb): Check whether a pattern has epsilon node or not.
286         (epsclosure): New arg BACKWORD; caller changed.  When removing
287         epsilon node and reconnecting, check only previous positions.
288         Treat BEG as if it were character.
289         (dfaanalyze): Build backward set.
291 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
293         canonicalize: fix pointer indexing bugs
294         Problem reported by Florian Weimer in:
295         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
296         * lib/canonicalize-lgpl.c (__realpath):
297         * lib/canonicalize.c (canonicalize_filename_mode):
298         Do not generate a pointer past the end of the array.
299         * lib/canonicalize.c (canonicalize_filename_mode):
300         Do not use a pointer after passing it to realloc.
302 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
304         tempname: help merge with glibc
305         Inspired by draft patches by Adhemerval Zanella in:
306         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
307         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
308         * lib/tempname.c: Include stdalign.h, time.h.
309         If _LIBC, do not include random-bits.h.
310         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
311         (RANDOM_BITS): Remove, replacing with ...
312         (random_bits): ... this new static function.  All uses changed.
313         Add entropy each time if getrandom is not supported.
314         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
315         Assume 64-bit support a la C99.
316         (try_tempname_len): Take advantage of ASLR when initializing
317         random value.
318         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
320         getcwd: merge recent glibc changes
321         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
322         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
324 2020-09-06  Bruno Haible  <bruno@clisp.org>
326         attribute: Clarify which file to include.
327         * modules/attribute (Include): Add "attribute.h".
329 2020-09-06  Bruno Haible  <bruno@clisp.org>
331         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
332         * lib/pipe-filter-ii.c: Include <process.h>.
333         * lib/pipe-filter-gi.c: Likewise.
335 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
337         verify: avoid __builtin_assume
338         Our latest attempt to use Clang’s __builtin_assume caused a crash
339         in GNU Emacs that we spent quite some time tracking down as being
340         caused by the switch to __builtin_assume.  It’s not known whether
341         the crash is due is a Clang bug or a portability bug in GNU Emacs.
342         For now, play it safe and avoid __builtin_assume.
343         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
344         (assume): Simplify by not trying to use Clang’s __builtin_assume.
346 2020-09-05  Bruno Haible  <bruno@clisp.org>
348         Fix several "warning: no previous prototype for function".
349         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
350         in front of the declaration of the lookup function in
351         unicase/locale-languages.h.
352         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
353         unictype/bidi_byname.h.
354         * modules/unictype/category-byname (Makefile.am): Likewise in
355         unictype/categ_byname.h.
356         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
357         unictype/combiningclass_byname.h.
358         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
359         unictype/joininggroup_byname.h.
360         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
361         unictype/joiningtype_byname.h.
362         * modules/unictype/property-byname (Makefile.am): Likewise in
363         unictype/pr_byname.h.
364         * modules/unictype/scripts (Makefile.am): Likewise in
365         unictype/scripts_byname.h.
366         * modules/uninorm/composition (Makefile.am): Likewise in
367         uninorm/composition-table.h.
369 2020-09-05  Bruno Haible  <bruno@clisp.org>
371         select: Fix "warning: no previous prototype for function".
372         * lib/select.c: Include <sys/select.h>.
374 2020-09-05  Bruno Haible  <bruno@clisp.org>
376         Use module 'c99' when needed for variadic macros with '...' syntax.
377         * modules/crypto/sm3 (Depends-on): Add c99.
379 2020-09-05  Bruno Haible  <bruno@clisp.org>
381         Use module 'c99' when needed for subobject initializer syntax.
382         * modules/tempname (Depends-on): Add c99.
383         * modules/nstrftime-tests (Depends-on): Likewise.
385 2020-09-05  Bruno Haible  <bruno@clisp.org>
387         Use module 'c99' when needed for declaration-after-statement syntax.
388         * modules/backup-rename (Depends-on): Add c99.
389         * modules/backupfile (Depends-on): Likewise.
390         * modules/bitset-tests (Depends-on): Likewise.
391         * modules/bitsetv (Depends-on): Likewise.
392         * modules/c-strtod (Depends-on): Likewise.
393         * modules/c-strtold (Depends-on): Likewise.
394         * modules/clean-temp (Depends-on): Likewise.
395         * modules/copy-file (Depends-on): Likewise.
396         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
397         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
398         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
399         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
400         * modules/crypto/md5-buffer (Depends-on): Likewise.
401         * modules/crypto/md5-tests (Depends-on): Likewise.
402         * modules/crypto/sha1-buffer (Depends-on): Likewise.
403         * modules/crypto/sha1-tests (Depends-on): Likewise.
404         * modules/crypto/sha256-buffer (Depends-on): Likewise.
405         * modules/crypto/sha256-tests (Depends-on): Likewise.
406         * modules/crypto/sha512-buffer (Depends-on): Likewise.
407         * modules/crypto/sha512-tests (Depends-on): Likewise.
408         * modules/diffseq (Depends-on): Likewise.
409         * modules/fatal-signal (Depends-on): Likewise.
410         * modules/fchmodat (Depends-on): Likewise.
411         * modules/fstrcmp (Depends-on): Likewise.
412         * modules/fsusage (Depends-on): Likewise.
413         * modules/fts (Depends-on): Likewise.
414         * modules/fts-tests (Depends-on): Likewise.
415         * modules/getumask (Depends-on): Likewise.
416         * modules/git-merge-changelog (Depends-on): Likewise.
417         * modules/hash-map (Depends-on): Likewise.
418         * modules/hash-set (Depends-on): Likewise.
419         * modules/lchmod (Depends-on): Likewise.
420         * modules/libgmp-tests (Depends-on): Likewise.
421         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
422         * modules/linkedhash-map (Depends-on): Likewise.
423         * modules/linkedhash-set (Depends-on): Likewise.
424         * modules/long-options (Depends-on): Likewise.
425         * modules/mbrtoc32 (Depends-on): Likewise.
426         * modules/memchr2-tests (Depends-on): Likewise.
427         * modules/memmem-tests (Depends-on): Likewise.
428         * modules/memrchr-tests (Depends-on): Likewise.
429         * modules/mktime-internal (Depends-on): Likewise.
430         * modules/nstrftime (Depends-on): Likewise.
431         * modules/opendirat (Depends-on): Likewise.
432         * modules/parse-datetime (Depends-on): Likewise.
433         * modules/quotearg-simple-tests (Depends-on): Likewise.
434         * modules/same (Depends-on): Likewise.
435         * modules/supersede (Depends-on): Likewise.
436         * modules/supersede-tests (Depends-on): Likewise.
437         * modules/time_rz (Depends-on): Likewise.
438         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
439         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
440         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
441         * modules/xalloc (Depends-on): Likewise.
442         * modules/xnanosleep (Depends-on): Likewise.
444 2020-09-05  Bruno Haible  <bruno@clisp.org>
446         Fix "warning: array initialized from parenthesized string constant".
447         * tests/test-memmem.c (main): Remove parentheses around string constant.
448         * tests/test-c-strcasestr.c (main): Likewise.
449         * tests/test-strcasestr.c (main): Likewise.
451 2020-09-05  Bruno Haible  <bruno@clisp.org>
453         argmatch tests: Fix ISO C compliance warning.
454         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
455         invocation.
457 2020-09-05  Bruno Haible  <bruno@clisp.org>
459         uniname/uniname: Fix -Wshadow warning.
460         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
461         * modules/uniname/uniname (Depends-on): Add c99.
463 2020-09-05  Bruno Haible  <bruno@clisp.org>
465         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
466         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
467         argument to size_t.
468         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
469         n to size_t.
471 2020-09-05  Bruno Haible  <bruno@clisp.org>
473         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
474         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
475         u32_uctomb): Change type of last argument to ptrdiff_t.
476         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
477         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
478         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
479         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
480         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
482 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
484         manywarnings: remove -Wchkp and -Wabi from C++ too
485         Suggested by Reuben Thomas in:
486         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
487         At some point somebody should merge the many other manywarnings-c.m4
488         changes into manywarnings-c++.m4 too, e.g.,
489         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
490         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
491         Remove -Wchkp, -Wabi.
493 2020-08-30  Bruno Haible  <bruno@clisp.org>
495         strerrorname_np: Add tests.
496         * tests/test-strerrorname_np.c: New file.
497         * modules/strerrorname_np-tests: New file.
499         strerrorname_np: New module.
500         * lib/string.in.h (strerrorname_np): New declaration.
501         * lib/strerrorname_np.c: New file.
502         * m4/strerrorname_np.m4: New file.
503         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
504         is declared.
505         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
506         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
507         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
508         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
509         * modules/strerrorname_np: New file.
510         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
511         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
512         the glibc 2.32 bug.
514 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
516         perror, strerror_r: remove unportable tests
517         Problem reported by Florian Weimer in:
518         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
519         * tests/test-perror2.c (main):
520         * tests/test-strerror_r.c (main): Omit unportable tests.
522 2020-08-26  Bruno Haible  <bruno@clisp.org>
524         stdint, wchar, wctype-h: Change configure message.
525         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
526         enough..." instead of "checking whether wint_t is too small...".
528 2020-08-26  Bruno Haible  <bruno@clisp.org>
530         time_rz: Change configure message.
531         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
532         near extrema..." instead of "checking whether localtime loops forever
533         near extrema...".
535 2020-08-26  Bruno Haible  <bruno@clisp.org>
537         stdint: Change configure message.
538         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
539         without ISO C predefines..." instead of "checking whether stdint.h
540         predates C++11...".
542 2020-08-26  Bruno Haible  <bruno@clisp.org>
544         socketlib: Change configure message.
545         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
546         instead of "checking if we need to call WSAStartup in winsock2.h and
547         -lws2_32...".
549 2020-08-26  Bruno Haible  <bruno@clisp.org>
551         include_next: Change configure message.
552         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
553         code line length is unlimited..." instead of "checking whether system
554         header files limit the line length...".
556 2020-08-26  Bruno Haible  <bruno@clisp.org>
558         getcwd: Change configure message.
559         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
560         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
561         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
563 2020-08-26  Bruno Haible  <bruno@clisp.org>
565         chdir-long: Change configure message.
566         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
567         system supports file names of any length..." instead of "checking
568         whether this system has an arbitrary file name length limit...".
569         Set gl_cv_have_unlimited_file_name_length instead of
570         gl_cv_have_arbitrary_file_name_length_limit.
571         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
573 2020-08-26  Bruno Haible  <bruno@clisp.org>
575         ceill: Change configure message.
576         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
577         instead of "checking whether ceill() breaks with small values...".
579 2020-08-26  Bruno Haible  <bruno@clisp.org>
581         iconv: Change configure message.
582         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
583         with its POSIX signature..." instead of "checking for iconv
584         declaration...". Remove K&R C support.
586 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
588         getcwd: help the merge back into glibc
589         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
590         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
591         The idea is to make it easier for Gnulib lib/getcwd.c to match
592         glibc io/getcwd-generic.c.
593         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
594         Include not-cancel.h.
595         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
596         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
597         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
598         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
599         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
600         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
601         (__getcwd_generic): Rename from __getcwd.
602         Use the abovementioned macros for consistency with glibc.
603         (weak_alias): Remove.
605 2020-08-25  Bruno Haible  <bruno@clisp.org>
607         verify: Avoid warnings when assume(0) is used.
608         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
609         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
610         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
611         the constant 0.
612         * tests/test-verify.c (f): New function.
613         (state): New type.
614         (test_assume_expressions, test_assume_optimization,
615         test_assume_noreturn): New functions.
617 2020-08-25  Bruno Haible  <bruno@clisp.org>
619         fstrcmp: Clarification regarding NOTE_ORDERED.
620         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
622 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
624         diffseq: new option NOTE_ORDERED
625         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
626         * NEWS: Mention this.
627         * lib/diffseq.h (NOTE_ORDERED): New macro.
628         (IF_LINT2): Remove; no longer needed.
629         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
630         subproblem and iterate to do the larger.
632 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
634         sys_types: let Autoconf 2.70 do pid_t
635         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
636         only for Autoconf versions 2.69 and earlier, since 2.70
637         will be fixed.
639 2020-08-23  Bruno Haible  <bruno@clisp.org>
641         tests: Don't assume that pid_t fits in an 'int'.
642         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
643         of 'int'.
644         * tests/test-nonblocking-socket-main.c (main): Likewise.
646         sys_types: Fix definition of pid_t on 64-bit MSVC.
647         * m4/pid_t.m4: New file.
648         * modules/sys_types (Files): Add it.
649         * modules/dirent (Files): Likewise.
650         * modules/fcntl-h (Files): Likewise.
651         * modules/sched (Files): Likewise.
652         * modules/signal-h (Files): Likewise.
653         * modules/spawn (Files): Likewise.
654         * modules/sys_stat (Files): Likewise.
655         * modules/sys_wait (Files): Likewise.
656         * modules/termios (Files): Likewise.
657         * modules/unistd (Files): Likewise.
659 2020-08-23  Bruno Haible  <bruno@clisp.org>
661         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
662         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
663         program.
665 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
667         intprops: be consistent about +X vs X+0
668         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
670         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
671         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
672         is a bit-field, on older GCC or non-GCC compilers where we do
673         things ourselves instead of using __builtin_mul_overflow.
674         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
675         to applying sizeof to a bit-field.
676         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
677         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
679 2020-08-23  Bruno Haible  <bruno@clisp.org>
681         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
682         Reported by Jörg Sonnenberger <joerg@netbsd.org>
683         via Thomas Klausner <tk@giga.or.at> in
684         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
685         * lib/supersede.c (open_supersede): When opening an existing non-regular
686         file on Solaris, use O_CREAT although it should not be necessary.
688 2020-08-23  Bruno Haible  <bruno@clisp.org>
690         verify: Make assume work on bit field expressions (regr. 2020-08-22).
691         Reported by Benno Schulenberg <bensberg@telfort.nl> in
692         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
693         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
694         variable.
696 2020-08-23  Bruno Haible  <bruno@clisp.org>
698         libc-config: Improve comments.
699         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
700         cannot use clang's __diagnose_if__ here.
702 2020-08-22  Bruno Haible  <bruno@clisp.org>
704         verify: Do use __builtin_assume on clang.
705         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
706         variable in a statement expression.
708 2020-08-22  Bruno Haible  <bruno@clisp.org>
710         sig2str: Add more signals.
711         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
713 2020-08-22  Bruno Haible  <bruno@clisp.org>
715         doc: Update for OpenBSD 6.0, 6.7.
716         * doc/*/*.texi: Update.
717         * m4/printf.m4: Update comments and cross-compilation guesses.
718         * m4/ceill.m4: Update comments.
719         * m4/getcwd-abort-bug.m4: Likewise.
720         * m4/ilogb.m4: Likewise.
721         * m4/ilogbf.m4: Likewise.
722         * m4/langinfo_h.m4: Likewise.
723         * m4/modf.m4: Likewise.
724         * m4/modff.m4: Likewise.
726 2020-08-22  Bruno Haible  <bruno@clisp.org>
728         doc: Mention sig2str module.
729         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
731 2020-08-21  Bruno Haible  <bruno@clisp.org>
733         sigdescr_np: Add tests.
734         * tests/test-sigdescr_np.c: New file.
735         * modules/sigdescr_np-tests: New file.
737         sigdescr_np: New module.
738         * lib/string.in.h (sigdescr_np): New declaration.
739         * lib/sigdescr_np.c: New file.
740         * m4/sigdescr_np.m4: New file.
741         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
742         declared.
743         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
744         HAVE_SIGDESCR_NP.
745         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
746         HAVE_SIGDESCR_NP.
747         * modules/sigdescr_np: New file.
748         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
749         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
751 2020-08-20  Bruno Haible  <bruno@clisp.org>
753         sigabbrev_np: Add tests.
754         * tests/test-sigabbrev_np.c: New file.
755         * modules/sigabbrev_np-tests: New file.
757         sigabbrev_np: New module.
758         * lib/string.in.h (sigabbrev_np): New declaration.
759         * lib/sigabbrev_np.c: New file.
760         * m4/sigabbrev_np.m4: New file.
761         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
762         declared.
763         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
764         HAVE_SIGABBREV_NP.
765         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
766         HAVE_SIGABBREV_NP.
767         * modules/sigabbrev_np: New file.
768         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
769         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
771 2020-08-20  Bruno Haible  <bruno@clisp.org>
773         stdalign tests: Skip test with AIX xlclang.
774         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
776 2020-08-20  Bruno Haible  <bruno@clisp.org>
778         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
779         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
780         workaround as for GCC versions < 4.9.
782 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
784         Sync up ProjectQuirks comments and documentation
785         Transform the ProjectQuirks comments into a docstring so that it can
786         be accessed from python as ProjectQuirks.__doc__ and harmonize
787         descriptions with the documentation.
788         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
789         Transform comments into a docstring.
790         * doc/vcs-to-changelog.texi: Sync up description with comments.
792         Split ProjectQuirks out into its own file
793         ProjectQuirks is used by external quirks files and importing it from
794         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
795         is cleaner to put it in its own file anyway.
796         * build-aux/vcstocl/projectquirks.py: A new file...
797         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
798         we move ProjectQuirks and import the file.
800 2020-08-19  Bruno Haible  <bruno@clisp.org>
802         uchar: Fix compilation errors in C++ mode on macOS.
803         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
804         system header file before attempting to use 'char16_t' and 'char32_t'.
806 2020-08-19  Bruno Haible  <bruno@clisp.org>
808         ansi-c++-opt: Work around an autoconf macro reordering problem.
809         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
810         section.
812 2020-08-19  Bruno Haible  <bruno@clisp.org>
814         math C++ tests: Fix compilation error in with GCC 10.
815         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
816         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
817         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
819 2020-08-19  Bruno Haible  <bruno@clisp.org>
821         uchar: Fix compilation errors in C++ mode on OpenBSD.
822         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
823         CXX_HAS_UCHAR_TYPES is 1.
824         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
825         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
826         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
828 2020-08-19  Bruno Haible  <bruno@clisp.org>
830         Fix compilation errors in C++ mode on OpenBSD.
831         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
832         OpenBSD with clang, use the approach without C preprocessor macro.
834 2020-08-18  Bruno Haible  <bruno@clisp.org>
836         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
837         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
838         AC_LANG_POP.
840 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
842         verify: avoid __built_assume on Clang
843         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
844         Clang 9 incorrectly diagnoses arguments as having side effects
845         even when they do not.  I guess Clang 9 considers any function
846         call as if it had a side effect here.
848         libc-config: avoid Clang’s __diagnose_if__
849         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
850         For now, do not use __diagnose_if__ here, as this fails
851         on Fedora 31 with Clang 9.0.1, with diagnostic
852         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
853         size than length of destination buffer
854         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
855         for functions that are not called?
857         careadlinkat: speedup for GCC 10 with GCC_LINT
858         Inspired by a suggestion by Bruno Haible in:
859         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
860         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
861         (readlink_stk): New function, with most of the old careadlinkat
862         contents and with a new STACK_BUF arg.  Inline it in GCC 10
863         if GCC_LINT.
864         (careadlinkat): Use the new function for everything but the
865         stack buffer.
867         * build-aux/gcc-warning.spec: Update comments.
869 2020-08-17  Bruno Haible  <bruno@clisp.org>
871         Assume autoconf >= 2.64.
872         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
874 2020-08-17  Bruno Haible  <bruno@clisp.org>
876         Revert autoupdate's revert.
877         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
879 2020-08-17  Bruno Haible  <bruno@clisp.org>
881         uchar C++ tests: Fix build error on FreeBSD 12.
882         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
883         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
884         <cuchar> does not exist.
886 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
888         time_rz: remove unused functions
889         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
891         time_rz: fix issues with mktime_z failures
892         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
893         Use a cheaper tm_yday test for failed mktime.
895 2020-08-16  Bruno Haible  <bruno@clisp.org>
897         intprops test: Strengthen on clang.
898         * tests/test-intprops.c (VERIFY): Use verify_stmt.
900 2020-08-16  Bruno Haible  <bruno@clisp.org>
902         nstrftime: Guide inlining also on clang.
903         * lib/nstrftime.c (iso_week_days): Inline also on clang.
905 2020-08-16  Bruno Haible  <bruno@clisp.org>
907         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
908         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
910 2020-08-16  Bruno Haible  <bruno@clisp.org>
912         log2l: Disable MSVC workaround on clang.
913         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
915 2020-08-16  Bruno Haible  <bruno@clisp.org>
917         argp: Emit a warning also with clang.
918         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
919         clang.
921 2020-08-16  Bruno Haible  <bruno@clisp.org>
923         libc-config: Enable __REDIRECT macro also on clang.
924         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
925         __ASMNAME2): Define on clang like on GCC.
927 2020-08-16  Bruno Haible  <bruno@clisp.org>
929         regex: Use initializer shorthand syntax also with clang.
930         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
931         with clang.
933 2020-08-16  Bruno Haible  <bruno@clisp.org>
935         regex: Use space optimization also with clang.
936         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
937         with clang.
939 2020-08-16  Bruno Haible  <bruno@clisp.org>
941         Use _Static_assert and static_assert primitives when present on clang.
942         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
943         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
944         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
946 2020-08-16  Bruno Haible  <bruno@clisp.org>
948         Use 'throw ()' for optimization in C++ mode also on clang.
949         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
950         * lib/getopt-cdefs.in.h (__THROW): Likewise.
951         * lib/md5.h (__THROW): Likewise.
953 2020-08-16  Bruno Haible  <bruno@clisp.org>
955         absolute-header: Add support for clang.
956         * modules/absolute-header (Makefile.am): Include '__clang__' in the
957         HAVE_INCLUDE_NEXT expression.
959 2020-08-16  Bruno Haible  <bruno@clisp.org>
961         Fix "warning: implicitly declaring library function 'strcasecmp'".
962         * lib/argp-help.c: Include <strings.h>.
964 2020-08-16  Bruno Haible  <bruno@clisp.org>
966         stdio: Don't break attribute 'scanf' on clang.
967         * lib/stdio.in.h (scanf): Treat clang like GCC.
969 2020-08-16  Bruno Haible  <bruno@clisp.org>
971         Use __restrict also on clang.
972         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
973         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
974         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
976 2020-08-16  Bruno Haible  <bruno@clisp.org>
978         pthread-spin: Use GCC built-ins also on clang.
979         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
980         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
981         also on clang.
983 2020-08-16  Bruno Haible  <bruno@clisp.org>
985         asyncsafe-spin tests: Update.
986         * tests/test-asyncsafe-spin2.c: Update to match the change in
987         lib/asyncsafe-spin.c from 2020-08-11.
989 2020-08-16  Bruno Haible  <bruno@clisp.org>
991         setenv: Use tree code also with clang.
992         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
994 2020-08-16  Bruno Haible  <bruno@clisp.org>
996         math: Optimize signbit also on clang.
997         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
998         on clang.
1000 2020-08-16  Bruno Haible  <bruno@clisp.org>
1002         avltreehash-list, rbtreehash-list: Optimize also on clang.
1003         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
1004         __builtin_expect also on clang.
1006 2020-08-16  Bruno Haible  <bruno@clisp.org>
1008         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
1009         * lib/socket.c: Use WSASocketW, not WSASocketA.
1011         Fix "warning: format specifies type 'unsigned long'".
1012         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
1013         argument to match the format directive.
1015         Fix "warning: no case matching constant switch condition '0'".
1016         * tests/test-fcntl.c (check_flags): Add a 'default' case.
1018         Fix "warning: integer overflow in expression".
1019         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
1020         remove a 'long' overflow.
1022         Fix "warning: "getpagesize" redefined".
1023         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
1024         macro.
1026         Fix "warning: implicitly declaring library function 'strncasecmp'".
1027         * lib/strptime.c: Include <strings.h>.
1029         Fix "warning: 'snprintf' macro redefined".
1030         * lib/strerror_r.c (snprintf): Undefine before redefining.
1032         Fix "warning: address of array 'locale' will always evaluate to 'true'".
1033         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
1035         Fix "warning: '__stat64' macro redefined".
1036         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
1038         Fix "warning: 'format' attribute argument not supported: rpl_printf".
1039         * lib/stdio.in.h (printf): Treat clang like GCC.
1041         Fix "warning: attribute declaration must precede definition" with clang.
1042         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
1043         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
1044         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
1045         on non-glibc systems.
1046         * lib/netdb.in.h (gai_strerror): Likewise.
1047         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
1048         * lib/sys_stat.in.h (fstat): Likewise.
1049         * lib/utime.in.h (utime): Likewise.
1051         Fix undesired warnings.
1052         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
1053         clang.
1055 2020-08-16  Bruno Haible  <bruno@clisp.org>
1057         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
1058         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
1059         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
1060         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
1061         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
1063 2020-08-16  Bruno Haible  <bruno@clisp.org>
1065         Don't use Autoconf quadrigraphs.
1066         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
1067         Autoconf quadrigraph.
1068         * m4/free.m4 (gl_FUNC_FREE): Likewise.
1069         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1070         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
1071         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
1072         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1073         * m4/math_h.m4 (gl_MATH_H): Likewise.
1074         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1076 2020-08-16  Bruno Haible  <bruno@clisp.org>
1078         Fix quoting of AC_LANG_PROGRAM arguments.
1079         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
1080         arguments through [[...]].
1081         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1082         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1084         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
1085         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
1086         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1087         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
1088         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1089         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1090         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1091         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1092         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
1093         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
1095 2020-08-16  Bruno Haible  <bruno@clisp.org>
1097         Assume autoconf >= 2.64.
1098         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
1099         * DEPENDENCIES: Require Autoconf 2.64 or newer.
1100         * NEWS: Mention the changed requirement.
1101         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
1102         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
1103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
1104         variables.
1105         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1106         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
1107         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
1108         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
1109         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
1110         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
1111         Likewise.
1112         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
1113         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
1114         * m4/configmake.m4: Update comment.
1116 2020-08-16  Bruno Haible  <bruno@clisp.org>
1118         sys_ioctl: Simplify.
1119         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
1120         AC_INCLUDES_DEFAULT.
1122 2020-08-16  Bruno Haible  <bruno@clisp.org>
1124         Fix quoting of AC_LANG_SOURCE arguments.
1125         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
1126         GL_NOCRASH expansion.
1127         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
1128         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1129         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1130         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1131         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1133 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1135         nstrftime: be more predictable about errno
1136         This aligns nstrftime better with draft POSIX 202x strftime.
1137         * lib/nstrftime.c: Include errno.h.
1138         (width_add, __strftime_internal): Set errno on failure,
1139         and preserve it on success.  Check for mktime_z failure.
1140         * modules/nstrftime (Depends-on): Add errno.
1141         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
1142         * tests/test-nstrftime.c: Include intprops.h, limits.h.
1143         (errno_test): New test function.
1144         (main): Call it.
1146 2020-08-15  Bruno Haible  <bruno@clisp.org>
1148         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
1149         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
1150         from dependency analysis first.
1152 2020-08-15  Bruno Haible  <bruno@clisp.org>
1154         Determine asm output option and filename suffix for MSVC/clang.
1155         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
1156         clang-cl.
1158 2020-08-15  Bruno Haible  <bruno@clisp.org>
1160         doc: Update for MSVC/clang.
1161         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
1162         that MSVC 14 does not have.
1164 2020-08-15  Bruno Haible  <bruno@clisp.org>
1166         Revert autoupdate's revert.
1167         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
1169 2020-08-15  Bruno Haible  <bruno@clisp.org>
1171         frexpl: Fix configuration test result on MSVC.
1172         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
1173         zero.
1175 2020-08-15  Bruno Haible  <bruno@clisp.org>
1177         Support compiling without -loldnames on native Windows.
1178         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
1179         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
1180         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
1181         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1182         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
1183         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1184         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
1185         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
1186         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1187         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
1188         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
1189         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
1190         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1191         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
1192         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
1193         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
1194         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1195         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
1197         Likewise.
1198         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
1199         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1200         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
1201         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1202         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1203         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
1204         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
1205         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1206         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
1207         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
1208         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1209         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
1210         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1211         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1212         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
1213         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1214         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1215         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1216         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1217         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1218         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1219         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1220         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1221         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1222         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1223         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1224         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1225         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
1226         test for getcwd.
1227         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
1228         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
1229         with GL_MDA_DEFINES.
1230         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
1231         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
1232         prefixed symbol.
1233         * lib/search.in.h (lfind, lsearch): Likewise.
1234         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1235         Likewise.
1236         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1237         * lib/string.in.h (memccpy, strdup): Likewise.
1238         * lib/sys_stat.in.h (chmod, umask): Likewise.
1239         * lib/time.in.h (tzset): Likewise.
1240         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1241         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1242         read, rmdir, swab, unlink, write): Likewise.
1243         * lib/utime.in.h (utime): Likewise.
1244         * lib/wchar.in.h (wcsdup): Likewise.
1245         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
1246         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
1247         rpl_-prefixed macro.
1248         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
1249         * lib/close.c (close_nothrow): On native Windows, use _close.
1250         * lib/creat.c (orig_creat): On native Windows, use _creat.
1251         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
1252         * lib/dup2.c (dup2_nothrow): Use _dup2.
1253         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
1254         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
1255         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
1256         * lib/open.c (orig_open): On native Windows, use _open.
1257         * lib/read.c (read_nothrow): Use _read.
1258         * lib/rmdir.c: On native Windows, use _rmdir.
1259         * lib/unlink.c: On native Windows, use _unlink.
1260         * lib/write.c (write_nothrow): Use _write.
1261         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
1262         undefined symbol.
1263         * lib/sys_socket.in.h (close): Likewise.
1264         * lib/sys_time.in.h (close): Likewise.
1265         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
1267 2020-08-15  Bruno Haible  <bruno@clisp.org>
1269         Fix "unknown pragma ignored" warnings with clang on native Windows.
1270         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
1271         * lib/cbrtf.c: Likewise.
1272         * lib/ceil.c: Likewise.
1273         * lib/floor.c: Likewise.
1274         * lib/fma.c: Likewise.
1275         * lib/fmod.c: Likewise.
1276         * lib/rint.c: Likewise.
1277         * lib/round.c: Likewise.
1278         * lib/trunc.c: Likewise.
1279         * tests/test-ceil2.c: Likewise.
1280         * tests/test-ceilf2.c: Likewise.
1281         * tests/test-floor2.c: Likewise.
1282         * tests/test-floorf2.c: Likewise.
1283         * tests/test-trunc2.c: Likewise.
1284         * tests/test-truncf2.c: Likewise.
1285         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1286         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1288 2020-08-15  Bruno Haible  <bruno@clisp.org>
1290         Fix compilation errors in C++ mode with clang on native Windows.
1291         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
1292         non-glibc systems.
1293         * lib/sched.in.h (sched_yield): Likewise.
1295 2020-08-14  Bruno Haible  <bruno@clisp.org>
1297         stdnoreturn: Work around problem with MSVC/clang.
1298         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
1299         system header after <stdnoreturn.h>.
1300         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
1302 2020-08-14  Bruno Haible  <bruno@clisp.org>
1304         utime-h: Generate an utime.h file always.
1305         * modules/utime-h (Makefile.am): Generate utime.h always.
1306         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
1307         GL_GENERATE_UTIME_H.
1309 2020-08-14  Bruno Haible  <bruno@clisp.org>
1311         mktime, mktime-internal: Remove obsolete code.
1312         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
1314 2020-08-14  Bruno Haible  <bruno@clisp.org>
1316         getcwd: Remove obsolete code.
1317         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
1318         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1320 2020-08-14  Bruno Haible  <bruno@clisp.org>
1322         tzset: Assume the function exists.
1323         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
1324         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
1325         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
1326         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
1327         HAVE_TZSET.
1328         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
1329         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
1331         nstrftime: Assume tzset exists.
1332         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
1333         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
1334         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
1336         mktime, mktime-internal: Assume tzset exists.
1337         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
1338         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
1340 2020-08-14  Bruno Haible  <bruno@clisp.org>
1342         strdup: Assume the function exists.
1343         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
1344         whether strdup exists.
1345         * modules/strdup (Files): Remove lib/strdup.c.
1346         (configure.ac): Don't compile strdup.c.
1347         * modules/strdup-posix (Depends-on, configure.ac): Don't test
1348         ac_cv_func_strdup.
1349         * doc/posix-functions/strdup.texi: Update.
1350         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
1351         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
1352         (Depends-on): Remove unistr/u8-strlen.
1354 2020-08-13  Bruno Haible  <bruno@clisp.org>
1356         sys_random: Work around an uClibc bug.
1357         Reported by akater <nuclearspace@gmail.com>
1358         via Stefan Kangas <stefan@marxist.se>
1359         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
1360         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
1361         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
1362         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
1363         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
1365 2020-08-12  Bruno Haible  <bruno@clisp.org>
1367         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
1368         Reported by Florian Weimer in
1369         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
1370         * lib/gen-uni-tables.c (output_predicate): Change the element type of
1371         the level3 array to 'unsigned int'.
1372         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
1373         * lib/unictype/categ_*.h: Regenerated.
1374         * lib/unictype/ctype_*.h: Regenerated.
1375         * lib/unictype/pr_*.h: Regenerated.
1376         * lib/unictype/sy_*.h: Regenerated.
1377         * lib/unicase/cased.h: Regenerated.
1378         * lib/unicase/ignorable.h: Regenerated.
1380 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1382         stdint: port intptr_t to more-recent MinGW
1383         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
1384         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
1385         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
1386         Apparently those two macros were removed in mingwrt-3.22
1387         dated 2016-07-14.
1389 2020-08-12  Bruno Haible  <bruno@clisp.org>
1391         thread-optim: Export function-like macros only.
1392         Suggested by Paul Eggert.
1393         * lib/thread-optim.h (gl_multithreaded): New macro.
1394         (IF_MT_DECL, IF_MT): Remove macros.
1395         * doc/multithread.texi (Multithreading Optimizations): Add a small
1396         example.
1397         * lib/fatal-signal.c: Update all uses.
1398         * lib/clean-temp.c: Likewise.
1399         * lib/localename.c: Likewise.
1400         * modules/localename (Depends-on): Add stdbool.
1402 2020-08-12  Bruno Haible  <bruno@clisp.org>
1404         Revert autoupdate's revert.
1405         * config/srclist.txt: Mark regex.h as needing sync with glibc.
1407 2020-08-11  Bruno Haible  <bruno@clisp.org>
1409         thread-optim: Fix a compiler warning.
1410         * lib/thread-optim.h (IF_MT_DECL): Define differently.
1412 2020-08-11  Bruno Haible  <bruno@clisp.org>
1414         Use __restrict also on clang.
1415         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
1416         (__restrict_arr): On clang, define like on GCC.
1417         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
1418         (_Restrict_arr_): Use _Restrict_ also on clang.
1419         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
1420         (_Restrict_arr_): Use _Restrict_ also on clang.
1422 2020-08-11  Bruno Haible  <bruno@clisp.org>
1424         Use flexible array syntax also on clang.
1425         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
1426         define like for GCC 3.
1428 2020-08-11  Bruno Haible  <bruno@clisp.org>
1430         fcntl: On native Windows, use _setmode, not setmode.
1431         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
1432         * lib/binary-io.h: Update comment.
1433         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
1434         * tests/test-dup2.c: Likewise.
1435         * tests/test-dup-safer.c: Likewise.
1436         * tests/test-fcntl.c: Likewise.
1438 2020-08-11  Bruno Haible  <bruno@clisp.org>
1440         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
1441         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
1442         * lib/spawn-pipe.c (create_pipe): Likewise.
1443         * tests/test-nonblocking-pipe-main.c (main): Likewise.
1444         * tests/test-nonblocking-socket-main.c (main): Likewise.
1445         * lib/wait-process.c: Update comment.
1446         * doc/posix-functions/fork.texi: Update.
1448 2020-08-11  Bruno Haible  <bruno@clisp.org>
1450         asyncsafe-spin: Use GCC built-ins also on clang.
1451         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
1452         the newer GCC built-ins also on clang.
1454 2020-08-11  Bruno Haible  <bruno@clisp.org>
1456         Use expression statements also on clang.
1457         * lib/cdefs.h (__extension__): Don't define to empty on clang.
1458         * lib/obstack.h (__extension__): Likewise.
1459         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
1460         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
1461         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
1462         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
1463         obstack_finish, obstack_free): Enable as optimized macros also on clang.
1464         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
1466 2020-08-10  Bruno Haible  <bruno@clisp.org>
1468         Use many __attribute__s with clang.
1469         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
1470         on clang.
1471         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
1472         New macros.
1473         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
1474         on clang.
1475         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
1476         also on older clang versions.
1477         (__attribute__): Don't define to empty on clang.
1478         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
1479         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
1480         (__attribute_const__): Use __attribute__ __const__ also on clang.
1481         (__attribute_used__): Use __attribute__ __used__ also on clang.
1482         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
1483         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
1484         clang.
1485         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
1486         clang.
1487         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
1488         also on clang.
1489         (__nonnull): Use __attribute__ __nonnull__ also on clang.
1490         (__attribute_warn_unused_result__): Use __attribute__
1491         __warn_unused_result__ also on clang.
1492         (__always_inline): Use __attribute__ __always_inline__ also on clang.
1493         (__attribute_artificial__): Use __attribute__ __artificial__ also on
1494         clang >= 7.
1495         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
1496         clang versions.
1497         (_Noreturn): Don't redefine on clang >= 3.5.
1498         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
1499         also on clang.
1500         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
1501         on clang.
1502         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1503         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1504         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
1505         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
1506         also on clang.
1507         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
1508         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
1509         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
1510         also on clang.
1511         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
1512         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
1513         __attribute__ __noreturn__ also on clang.
1514         * lib/obstack.h (__attribute_noreturn__): Likewise.
1515         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
1516         clang.
1517         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
1518         always_inline also on clang.
1519         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
1520         clang.
1522 2020-08-10  Bruno Haible  <bruno@clisp.org>
1524         c-ldtoastr tests: Fix test failure.
1525         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
1526         is longer than 'double'.
1528 2020-08-10  Bruno Haible  <bruno@clisp.org>
1530         Revert autoupdate's revert.
1531         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
1533 2020-08-09  Bruno Haible  <bruno@clisp.org>
1535         string: Fix build error in C++ mode with clang (regression from today).
1536         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
1537         parameters, one for GCC, one for clang.
1538         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
1539         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
1540         as return type.
1542 2020-08-09  Bruno Haible  <bruno@clisp.org>
1544         ftruncate: Use _chsize, not chsize.
1545         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
1546         * lib/ftruncate.c: Test HAVE__CHSIZE.
1547         (chsize_nothrow): Use _chsize, not chsize.
1549 2020-08-09  Bruno Haible  <bruno@clisp.org>
1551         Silence warnings from clang 10 with -Wimplicit-fallthrough.
1552         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
1553         clang >= 10.
1554         * lib/fnmatch.c (FALLTHROUGH): Likewise.
1555         * lib/fts.c (FALLTHROUGH): Likewise.
1556         * tests/macros.h (FALLTHROUGH): Likewise.
1557         * lib/regex_internal.h (FALLTHROUGH): Likewise.
1558         * config/srclist.txt: Mark it as needing sync with glibc.
1560 2020-08-09  Bruno Haible  <bruno@clisp.org>
1562         stdbool tests: Enable the stricter tests also on clang.
1563         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
1564         (e): Enable the address-to-bool conversion test also on clang.
1566 2020-08-09  Bruno Haible  <bruno@clisp.org>
1568         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
1569         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
1571 2020-08-09  Bruno Haible  <bruno@clisp.org>
1573         Use attribute __aligned__ with clang.
1574         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
1575         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
1577 2020-08-09  Bruno Haible  <bruno@clisp.org>
1579         Use __alignof__ with clang.
1580         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
1581         on clang.
1582         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
1583         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
1584         clang.
1585         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
1586         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
1587         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
1588         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
1590 2020-08-09  Bruno Haible  <bruno@clisp.org>
1592         ignore-value: Simplify on clang.
1593         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
1594         workaround.
1596 2020-08-09  Bruno Haible  <bruno@clisp.org>
1598         Use __typeof__ with clang.
1599         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
1600         "clang -std=gnu99".
1601         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
1602         * tests/test-stdint.c (verify_same_types): Enable the check also on
1603         clang.
1605 2020-08-09  Bruno Haible  <bruno@clisp.org>
1607         Add ability to emit user-defined warnings and errors with clang.
1608         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
1609         _GL_ATTRIBUTE_WARNING using an attribute for clang.
1610         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
1611         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
1612         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
1613         attribute for clang.
1615 2020-08-09  Bruno Haible  <bruno@clisp.org>
1617         intprops: Fix typo in comment.
1618         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
1620 2020-08-09  Bruno Haible  <bruno@clisp.org>
1622         Use __builtin_signbit* with clang.
1623         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
1624         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
1625         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
1627         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
1628         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
1629         not REPLACE_SIGNBIT_USING_GCC.
1631 2020-08-09  Bruno Haible  <bruno@clisp.org>
1633         Use __builtin_isnan with clang.
1634         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1635         not __builtin_isnanf. Also on clang.
1636         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
1637         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
1638         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
1639         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
1640         built-in.
1641         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
1642         not __builtin_isnanl. Also on clang.
1643         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
1644         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
1645         * lib/math.in.h (__has_builtin): Remove macro.
1646         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
1647         __builtin_isnanf. Also on clang.
1648         (isnand, gl_isnan_d): With clang, use the GCC built-in.
1649         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
1650         __builtin_isnanl. Also on clang.
1651         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
1652         on clang.
1654 2020-08-09  Bruno Haible  <bruno@clisp.org>
1656         thread-optim: Fix logic error.
1657         Reported by Paul Eggert.
1658         * lib/thread-optim.h (IF_MT): Fix logic error.
1660 2020-08-08  Bruno Haible  <bruno@clisp.org>
1662         localename: Use module 'thread-optim'.
1663         * lib/localename.c: Include thread-optim.h.
1664         (struniq): Use IF_MT macro.
1665         * modules/localename (Depends-on): Add thread-optim.
1667         clean-temp: Use module 'thread-optim'.
1668         * lib/clean-temp.c: Include thread-optim.h.
1669         (register_temporary_file, unregister_temporary_file, create_temp_dir,
1670         register_temp_file, unregister_temp_file, register_temp_subdir,
1671         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
1672         close_temp, fclose_variant_temp): Use IF_MT macro.
1673         * modules/clean-temp (Depends-on): Add thread-optim.
1675         fatal-signal: Use module 'thread-optim'.
1676         * lib/fatal-signal.c: Include thread-optim.h.
1677         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
1678         macro.
1679         * modules/fatal-signal (Depends-on): Add thread-optim.
1681 2020-08-08  Bruno Haible  <bruno@clisp.org>
1683         New module 'thread-optim'.
1684         * lib/thread-optim.h: New file.
1685         * modules/thread-optim: New file.
1686         * doc/multithread.texi (Multithreading Optimizations): New section.
1688 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
1690         doc: more updates for glibc 2.32
1691         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
1692         * doc/posix-functions/fchmodat.texi: Update.
1694 2020-08-07  Bruno Haible  <bruno@clisp.org>
1696         doc: Update for glibc 2.32.
1697         * doc/glibc-functions/__libc_single_threaded.texi: New file.
1698         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
1699         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
1700         * doc/glibc-functions/sigabbrev_np.texi: New file.
1701         * doc/glibc-functions/sigdescr_np.texi: New file.
1702         * doc/glibc-functions/strerrordesc_np.texi: New file.
1703         * doc/glibc-functions/strerrorname_np.texi: New file.
1704         * doc/gnulib.texi: Include them.
1705         (Glibc sys/single_threaded.h): New section.
1706         * doc/pastposix-functions/h_errno.texi: Update.
1707         * doc/posix-functions/*.texi: Likewise.
1708         * doc/glibc-functions/*.texi: Likewise.
1710 2020-08-07  Bruno Haible  <bruno@clisp.org>
1712         alloca: No need to compile alloca.c with clang.
1713         * lib/alloca.c: Skip all code with clang.
1715         Use __builtin_alloca with clang.
1716         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
1718 2020-08-06  Bruno Haible  <bruno@clisp.org>
1720         Use __builtin_assume with clang.
1721         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
1722         (assume): Use __builtin_assume when available.
1724 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1726         libgmp: add <gmp/gmp.h> support
1727         * m4/libgmp.m4 (gl_LIBGMP):
1728         * modules/libgmp (configure.ac, Makefile.am):
1729         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
1730         ‘#include <gmp.h>’.
1732 2020-08-06  Bruno Haible  <bruno@clisp.org>
1734         Consider that clang defines __OPTIMIZE__ like GCC does.
1735         * lib/streq.h: Define the inline functions also on clang.
1736         * lib/c-strcaseeq.h: Likewise.
1737         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
1738         the GCC workaround to clang.
1740 2020-08-06  Bruno Haible  <bruno@clisp.org>
1742         safe-alloc: Remove unused code.
1743         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
1745 2020-08-06  Bruno Haible  <bruno@clisp.org>
1747         Use __builtin_expect with clang everywhere.
1748         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
1749         also on clang.
1751 2020-08-05  Bruno Haible  <bruno@clisp.org>
1753         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
1754         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
1755         built-in also on clang.
1756         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
1757         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
1759 2020-08-05  Bruno Haible  <bruno@clisp.org>
1761         Use __builtin_clz{,l,ll} with clang, also on Windows.
1762         * lib/integer_length.c: With clang, use the GCC built-in, not
1763         <intrin.h>.
1764         * lib/integer_length_l.c: Likewise.
1765         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
1766         also on clang.
1767         * lib/vasnprintf.c (divide): Likewise.
1769 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1771         Update srclist.txt as per recent glibc changes
1772         * config/srclist.txt: Uncomment lines to reflect recent merges
1773         from Gnulib to glibc.
1775 2020-08-03  Bruno Haible  <bruno@clisp.org>
1777         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1778         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
1780 2020-08-03  Bruno Haible  <bruno@clisp.org>
1782         integer_length_ll: Optimize for MSVC in 64-bit mode.
1783         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1784         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1786 2020-08-03  Bruno Haible  <bruno@clisp.org>
1788         integer_length_ll: Optimize for MSVC in 32-bit mode.
1789         * lib/integer_length_l.c: Include <intrin.h>.
1790         (integer_length): Define as inline function, like in
1791         lib/integer_length.c.
1793 2020-08-03  Bruno Haible  <bruno@clisp.org>
1795         integer_length: Optimize for MSVC.
1796         * lib/integer_length.c: Include <intrin.h>.
1797         (integer_length): With MSVC, use the _BitScanReverse built-in.
1799 2020-08-03  Bruno Haible  <bruno@clisp.org>
1801         ffsll: Optimize for MSVC in 64-bit mode.
1802         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
1803         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
1804         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
1806 2020-08-03  Bruno Haible  <bruno@clisp.org>
1808         ffsll: Optimize for MSVC in 32-bit mode.
1809         * lib/ffsl.h: Include <intrin.h>.
1810         (ffs): Define as inline function, like in lib/ffs.c.
1812 2020-08-03  Bruno Haible  <bruno@clisp.org>
1814         ffs: Optimize for MSVC.
1815         * lib/ffs.c: Include <intrin.h>.
1816         (ffs): With MSVC, use the _BitScanForward built-in.
1818 2020-08-03  Bruno Haible  <bruno@clisp.org>
1820         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
1821         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
1822         variable.
1824 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
1826         fopen: Avoid undesired interactions with glibc headers.
1827         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
1828         __need_FILE, as the latter does not work with glibc.
1830 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1832         fcntl: document some F_SETLK errno variations
1833         * doc/posix-functions/fcntl.texi (fcntl): Document
1834         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
1836 2020-08-02  Bruno Haible  <bruno@clisp.org>
1838         oset: Add an 'iterator_atleast' operation.
1839         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
1840         extracted from gl_array_search_atleast.
1841         (gl_array_search_atleast): Use it.
1842         (gl_array_iterator_atleast): New function.
1843         (gl_array_oset_implementation): Use it.
1844         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
1845         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
1846         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
1847         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
1848         member.
1849         (gl_oset_iterator_atleast): New function.
1850         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
1851         (gl_OSet::iterator): Add another auxiliary constructor.
1852         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
1853         New functions.
1854         (main): Test also gl_oset_iterator_atleast.
1855         * tests/test-avltree_oset.c (is_at_least): New function.
1856         (main): Test also gl_oset_iterator_atleast.
1857         * tests/test-rbtree_oset.c (is_at_least): New function.
1858         (main): Test also gl_oset_iterator_atleast.
1859         * tests/test-oset-c++.cc (is_at_most): New function.
1860         (main): Test also gl_OSet::begin_atleast.
1862 2020-08-02  Bruno Haible  <bruno@clisp.org>
1864         oset-c++, omap-c++: Remove restriction for search_atleast method.
1865         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
1866         a different type than the element.
1867         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
1868         a different type than the key.
1870 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1872         gnumakefile: say ‘$(MAKE)’ not ‘make’
1873         * top/GNUmakefile (abort-due-to-no-makefile):
1874         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
1875         This change is backported from Autoconf.
1877 2020-08-01  Bruno Haible  <bruno@clisp.org>
1879         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
1880         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
1881         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1882         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1883         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1884         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
1886 2020-08-01  Bruno Haible  <bruno@clisp.org>
1888         libtextstyle-optional: Update tests.
1889         * modules/libtextstyle-optional-tests (configure.ac): Invoke
1890         gl_LIBTEXTSTYLE_OPTIONAL.
1892 2020-08-01  Bruno Haible  <bruno@clisp.org>
1894         parse-datetime: Fix wrong #line statements.
1895         * modules/parse-datetime (Makefile.am): Correct #line statements also in
1896         parse-datetime-gen.h.
1898 2020-08-01  Bruno Haible  <bruno@clisp.org>
1900         libtextstyle[-optional]: Allow requesting a minimum version.
1901         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
1902         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
1903         gl_LIBTEXTSTYLE_SEARCH): New macros.
1904         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
1905         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
1906         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
1907         * modules/libtextstyle-optional (configure.ac): Don't invoke
1908         gl_LIBTEXTSTYLE_OPTIONAL.
1909         * NEWS: Mention the changes.
1911 2020-07-31  Bruno Haible  <bruno@clisp.org>
1913         _GL_CMP: Improve documentation.
1914         Reported by Paul Eggert in
1915         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
1916         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
1917         passed.
1919 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1921         largefile: sync with Autoconf master
1922         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1923         Avoid undefined behavior on platforms where off_t is 32 bits.
1924         See: https://bugs.debian.org/742780
1926         alloca: sync with Autoconf master
1927         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1928         Do not define if Autoconf 2.70 or later, since Autoconf master
1929         now matches us.
1931 2020-07-30  Bruno Haible  <bruno@clisp.org>
1933         unicodeio: Add comment.
1934         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
1935         different iconv behaviours.
1937 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1939         Work around some Oracle Studio attribute bugs
1940         These were discovered when building bleeding-edge Emacs with
1941         Oracle Studio.
1942         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
1943         Port to Oracle Studio 12.6, which mishandles __attribute__
1944         ((__cold__)) and __attribute__ ((__may_alias__)) even though
1945         __has_attribute says they work.
1947 2020-07-29  Bruno Haible  <bruno@clisp.org>
1949         unicodeio: Fix wrong result on musl libc.
1950         Reported by A. Wilcox <awilfox@adelielinux.org> in
1951         <https://www.openwall.com/lists/musl/2020/07/29/2>.
1952         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
1953         on musl libc.
1954         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
1955         * modules/unicodeio (Files): Add m4/musl.m4.
1957 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
1959         fsusage, regex, stat-size: remove Cray support
1960         As near as I can make out this is actually support for UNICOS/mp,
1961         last released 2005, and Cray hasn’t supported that for years.
1962         * config/srclist.txt: Comment out regex.h for now.
1963         * lib/fsusage.c (get_fs_usage):
1964         * lib/regex.h (re_comp, re_exec):
1965         * lib/stat-size.h (ST_NBLOCKSIZE):
1966         Don’t worry about _CRAY.
1968 2020-07-29  Bruno Haible  <bruno@clisp.org>
1970         parse-datetime: Fix compilation error with bison 3.7.
1971         * modules/parse-datetime (Makefile.am): Create a generated header file
1972         parse-datetime-gen.h in the source directory. Correct #include and
1973         #line statements during preprocessing.
1975 2020-07-28  Bruno Haible  <bruno@clisp.org>
1977         fopen-gnu: Create files correctly (regression from 2020-05-24).
1978         * lib/fopen.c (rpl_open): Pass a third argument to open().
1980 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1982         xalloc-die: don’t depend on xalloc
1983         This removes a circular dependency, as xalloc depends on xalloc-die.
1984         * modules/xalloc-die (Files): Add lib/xalloc.h.
1985         (Depends-on): Remove xalloc.
1986         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
1988         dfa-tests: port to MSVC
1989         Problem reported by Gisle Vanem in:
1990         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
1991         Also, remove an unnecessary dependency on getprogname.
1992         * modules/dfa-tests (Depends-on): Remove getprogname.
1993         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
1994         (exit_status): New static var.
1995         (dfawarn): Set it instead of exiting.
1996         Do not declare as _Noreturn, to pacify MSVC.
1997         (main): Return exit_status.
1999 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
2001         argz: pacify MSVC
2002         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
2003         Problem reported by Gisle Vanem.
2005         libgmp: remove dependency on havelib
2006         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
2007         use the more-traditional AC_SEARCH_LIBS approach.
2008         This should work better with GNU Emacs configuration,
2009         which uses pkg-config instead of a havelib-style approach.
2010         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
2011         * modules/libgmp (Depends-on): Remove havelib.
2013         libgmp: remove HAVE_GMP, LIB_GMP
2014         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
2015         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
2017 2020-07-26  Bruno Haible  <bruno@clisp.org>
2019         inttypes: Remove support for AIX 4.
2020         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
2021         * m4/inttypes-pri.m4: Remove file.
2022         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
2023         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
2024         * modules/inttypes-incomplete (Makefile.am): Don't substitute
2025         PRI_MACROS_BROKEN.
2026         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
2028 2020-07-26  Bruno Haible  <bruno@clisp.org>
2030         gettimeofday: Remove workaround for Mac OS X 10.0.
2031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
2032         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
2033         * lib/gettimeofday.c: Don't include localtime-buffer.h.
2034         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2035         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
2036         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
2037         * modules/localtime-buffer: Remove file.
2038         * lib/localtime-buffer.h: Remove file.
2039         * lib/localtime-buffer.c: Remove file.
2040         * m4/localtime-buffer.m4: Remove file.
2041         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
2043 2020-07-26  Bruno Haible  <bruno@clisp.org>
2045         tzset: Remove workaround for Solaris 2.6.
2046         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
2047         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
2048         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
2049         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
2050         * lib/localtime-buffer.c: Likewise.
2051         * lib/localtime.c: Likewise.
2052         * lib/tzset.c: Don't include localtime-buffer.h.
2053         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
2054         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
2055         is 1.
2056         * modules/tzset (Depends-on): Remove localtime-buffer.
2058 2020-07-26  Bruno Haible  <bruno@clisp.org>
2060         expl: Simplify autoconf test.
2061         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
2062         with small values..." test into the "checking whether expl works..."
2063         test.
2065 2020-07-26  Bruno Haible  <bruno@clisp.org>
2067         alloca: Remove Cray-2 and Cray Y-MP support.
2068         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
2069         Enable also on Autoconf >= 2.69.
2070         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
2071         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
2072         i00afunc): Remove.
2074 2020-07-25  Bruno Haible  <bruno@clisp.org>
2076         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
2077         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
2079 2020-07-25  Bruno Haible  <bruno@clisp.org>
2081         sigprocmask: Small autoconf macro improvement.
2082         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
2083         user to override the value of gl_cv_func_sigprocmask.
2084         * m4/gnulib-common.m4 (gl_SILENT): New macro.
2086 2020-07-25  Bruno Haible  <bruno@clisp.org>
2088         Small autoconf macro improvements.
2089         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
2090         override the value of gl_cv_func_working_mktime.
2091         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
2092         compiler produces multi-arch binaries..." in the configure output.
2093         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
2094         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
2096 2020-07-25  Bruno Haible  <bruno@clisp.org>
2098         doc: Update for NetBSD 7.1, 8.0, 9.0.
2099         * doc/*/*.texi: Update.
2100         * m4/exp2l.m4: Update comments.
2101         * m4/expl.m4: Likewise.
2102         * m4/ilogb.m4: Likewise.
2103         * m4/ilogbf.m4: Likewise.
2104         * m4/log10l.m4: Likewise.
2105         * m4/logl.m4: Likewise.
2106         * m4/printf.m4: Likewise.
2107         * m4/rintl.m4: Likewise.
2108         * m4/wcwidth.m4: Likewise.
2110 2020-07-24  Bruno Haible  <bruno@clisp.org>
2112         doc: Update for Mac OS X 10.13.
2113         * doc/*/*.texi: Update.
2114         * m4/expm1l.m4: Update comments.
2115         * m4/getgroups.m4: Likewise.
2116         * m4/getlogin_r.m4: Likewise.
2117         * m4/linkat.m4: Likewise.
2118         * m4/printf.m4: Likewise.
2120 2020-07-24  Bruno Haible  <bruno@clisp.org>
2122         doc: Update for Cygwin 2.9.0.
2123         * doc/*/*.texi: Update.
2125 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2127         parse-datetime: modernize doc
2128         * doc/parse-datetime.texi: Use more-current examples.
2129         Don’t lead with 32-bit time_t, as it’s on its way out.
2130         Capitalize “Epoch” to be consistent with POSIX.
2132         timespec: remove dependence on ‘verify’
2133         * lib/timespec.h: Do not include verify.h; no longer needed.
2134         * modules/timespec (Depends-on): Remove ‘verify’.
2136         Optimize a few more three-valued comparisons
2137         * lib/timespec.h (timespec_cmp, timespec_sign):
2138         * lib/utimecmp.c (utimecmpat):
2139         Avoid conditional branches by using _GL_CMP.
2141         Fix _GL_CMP parenthesization typo
2142         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
2144 2020-07-24  Bruno Haible  <bruno@clisp.org>
2146         dfa: Revert breaking gawk.
2147         Reported by Arnold Robbins <arnold@skeeve.com>.
2148         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
2150 2020-07-23  Bruno Haible  <bruno@clisp.org>
2152         Optimize three-valued comparison between integers.
2153         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
2154         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
2155         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
2156         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
2157         * lib/dfa.c (compare): Likewise.
2158         * lib/fts.c (fts_compare_ino): Likewise.
2159         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
2160         * lib/mbscasecmp.c (mbscasecmp): Likewise.
2161         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
2162         * lib/memcasecmp.c (memcasecmp): Likewise.
2163         * lib/memcmp2.c (memcmp2): Likewise.
2164         * lib/savedir.c (direntry_cmp_inode): Likewise.
2165         * lib/strcasecmp.c (strcasecmp): Likewise.
2166         * lib/strncasecmp.c (strncasecmp): Likewise.
2167         * lib/unistr/u-cmp2.h (FUNC): Likewise.
2169 2020-07-23  Bruno Haible  <bruno@clisp.org>
2171         lchmod: Use /proc on Cygwin.
2172         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
2174 2020-07-23  Ken Brown  <kbrown@cornell.edu>
2176         fchmodat: Use /proc on Cygwin
2177         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
2179 2020-07-21  Bruno Haible  <bruno@clisp.org>
2181         aligned-malloc: Optionally use aligned_alloc.
2182         * lib/aligned-malloc.h: Verify the alignment.
2183         (aligned_malloc): Use aligned_alloc as an alternative.
2184         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
2185         * doc/posix-functions/aligned_alloc.texi: Mention the modules
2186         'aligned-malloc' and 'pagealign_alloc'.
2188 2020-07-21  Bruno Haible  <bruno@clisp.org>
2190         aligned-malloc: Add tests.
2191         * tests/test-aligned-malloc.c: New file.
2192         * modules/aligned-malloc-tests: New file.
2194         aligned-malloc: New module.
2195         * lib/aligned-malloc.h: New file.
2196         * m4/malloc-align.m4: New file.
2197         * modules/aligned-malloc: New file.
2198         * doc/posix-functions/posix_memalign.texi: Mention the new module.
2199         * doc/glibc-functions/memalign.texi: Likewise.
2201 2020-07-21  Bruno Haible  <bruno@clisp.org>
2203         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
2204         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
2205         sure PRIPTR_PREFIX is defined to "ll", not "l".
2207 2020-07-21  Bruno Haible  <bruno@clisp.org>
2209         printf-posix: Make an autoconf test more future-proof.
2210         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
2211         using uintptr_t.
2213 2020-07-20  Bruno Haible  <bruno@clisp.org>
2215         list, oset, omap: Relicense some of the container modules under LGPLv2+.
2216         * modules/list (License): Change to LGPLv2+.
2217         * modules/array-list (License): Likewise.
2218         * modules/carray-list (License): Likewise.
2219         * modules/linked-list (License): Likewise.
2220         * modules/avltree-list (License): Likewise.
2221         * modules/rbtree-list (License): Likewise.
2222         * modules/oset (License): Likewise.
2223         * modules/array-oset (License): Likewise.
2224         * modules/avltree-oset (License): Likewise.
2225         * modules/rbtree-oset (License): Likewise.
2226         * modules/omap (License): Likewise.
2227         * modules/array-omap (License): Likewise.
2228         * modules/avltree-omap (License): Likewise.
2229         * modules/rbtree-omap (License): Likewise.
2231 2020-07-20  Bruno Haible  <bruno@clisp.org>
2233         oset: Add an 'update' operation.
2234         * lib/gl_array_oset.c (gl_array_update): New function.
2235         (gl_array_oset_implementation): Use it.
2236         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2237         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2238         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
2239         extracted from gl_tree_nx_add_before.
2240         (gl_tree_nx_add_before): Invoke it.
2241         (gl_tree_add_node_after): New function, extracted from
2242         gl_tree_nx_add_after.
2243         (gl_tree_nx_add_after): Invoke it.
2244         (gl_tree_remove_node_no_free): New function, extracted from
2245         gl_tree_remove_node.
2246         (gl_tree_remove_node): Invoke it.
2247         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
2248         extracted from gl_tree_nx_add_before.
2249         (gl_tree_nx_add_before): Invoke it.
2250         (gl_tree_add_node_after): New function, extracted from
2251         gl_tree_nx_add_after.
2252         (gl_tree_nx_add_after): Invoke it.
2253         (gl_tree_remove_node_no_free): New function, extracted from
2254         gl_tree_remove_node.
2255         (gl_tree_remove_node): Invoke it.
2256         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
2257         from gl_tree_iterator_next.
2258         (gl_tree_iterator_next): Invoke it.
2259         (gl_tree_prev_node, gl_tree_update): New functions.
2260         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2261         (gl_avltree_oset_implementation): Use gl_tree_update.
2262         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
2263         (gl_rbtree_oset_implementation): Use gl_tree_update.
2264         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
2265         (gl_oset_update): New function.
2266         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
2267         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
2268         * modules/rbtree-oset (configure.ac): Likewise.
2269         * tests/test-oset-update.h: New file.
2270         * tests/test-array_oset.c: Include test-oset-update.h.
2271         (main): Invoke test_update.
2272         * tests/test-avltree_oset.c: Likewise.
2273         * tests/test-rbtree_oset.c: Likewise.
2274         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
2275         * modules/avltree-oset-tests (Files): Likewise.
2276         * modules/rbtree-oset-tests (Files): Likewise.
2277         * tests/test-oset-c++.cc (action): New function.
2278         (main): Test the 'update' member function.
2280 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2282         md5, sha1, sha256, sha512: pacify Autoconf 2.70
2283         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
2284         shell if, so that the argument to AC_CHECK_HEADERS is
2285         a simple string that does not require shell evaluation.
2286         This fixes a warning generated by Autoconf 2.69b.
2288 2020-07-12  Bruno Haible  <bruno@clisp.org>
2290         libgmp: Avoid warning when --without-libgmp is used.
2291         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
2292         GCC >= 8, not for GCC >= 4.6.
2294 2020-07-12  Bruno Haible  <bruno@clisp.org>
2296         libgmp: Link to the correct shared library.
2297         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
2298         * modules/libgmp (Depends-on): Add havelib.
2299         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
2300         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
2302 2020-07-12  Bruno Haible  <bruno@clisp.org>
2304         libgmp tests: Add some safety checks.
2305         * modules/libgmp-tests (Depends-on): Add verify.
2306         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
2307         (main): Verify that gmp.h and libgmp versions match.
2309 2020-07-10  Bruno Haible  <bruno@clisp.org>
2311         unicodeio: Fix wrong result on NetBSD.
2312         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2313         characters also on NetBSD.
2315 2020-07-09  Bruno Haible  <bruno@clisp.org>
2317         unicodeio: Fix wrong result on Solaris 11.
2318         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
2319         via Akim Demaille <akim.demaille@gmail.com> in
2320         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
2321         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
2322         characters on Solaris.
2323         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
2324         UTF-8 output or the specified fallback.
2326 2020-07-08  Bruno Haible  <bruno@clisp.org>
2328         unicodeio: Add tests.
2329         * tests/test-unicodeio.c: New file.
2330         * tests/test-unicodeio1.sh: New file.
2331         * tests/test-unicodeio2.sh: New file.
2332         * tests/test-unicodeio3.sh: New file.
2333         * modules/unicodeio-tests: New file.
2335 2020-07-08  Bruno Haible  <bruno@clisp.org>
2337         unicodeio: Document link requirements.
2338         * modules/unicodeio (Link): New section.
2340 2020-07-07  Bruno Haible  <bruno@clisp.org>
2342         doc: Remove support for some very old platforms.
2343         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
2344         * doc/posix-functions/memcpy.texi: Likewise.
2345         * doc/posix-functions/memmove.texi: Likewise.
2346         * doc/posix-functions/memset.texi: Likewise.
2347         * doc/posix-functions/getcwd.texi: Likewise.
2349         memchr: Remove support for some very old platforms.
2350         * m4/memchr-obsolete.m4: Remove file.
2351         * modules/memchr-obsolete: Remove file.
2352         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
2353         absent. Don't define HAVE_MEMCHR.
2354         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
2355         * modules/memchr (Depends-on): Remove memchr-obsolete.
2356         (configure.ac): Assume HAVE_MEMCHR is 1.
2357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
2358         HAVE_MEMCHR.
2359         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
2360         * doc/posix-functions/memchr.texi: Don't mention module
2361         'memchr-obsolete'.
2362         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2363         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
2364         * modules/strnlen (Depends-on): Remove memchr-obsolete.
2366         dup2: Remove support for some very old platforms.
2367         * m4/dup2-obsolete.m4: Remove file.
2368         * modules/dup2-obsolete: Remove file.
2369         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
2370         Don't define HAVE_DUP2.
2371         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
2372         * lib/dup2.c: Likewise.
2373         * modules/dup2 (Depends-on, configure.ac): Likewise.
2374         (Depends-on): Remove dup2-obsolete.
2375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
2376         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
2377         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
2379 2020-07-07  Bruno Haible  <bruno@clisp.org>
2381         canonicalize: Trim module dependencies.
2382         * lib/hash-triple.h: Group declarations.
2383         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
2384         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
2385         (STREQ): Remove macro.
2386         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
2387         * modules/hash-triple-simple: New file, based on modules/hash-triple.
2388         * modules/hash-triple (Files): Remove lib/hash-triple.h.
2389         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
2390         * modules/canonicalize (Depends-on): Remove hash-triple. Add
2391         hash-triple-simple.
2392         * modules/file-set (Depends-on): Likewise.
2394 2020-07-07  Bruno Haible  <bruno@clisp.org>
2396         Clarify dependencies to double-slash-root.
2397         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
2398         (Depends-on): Add double-slash-root.
2399         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
2400         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
2402 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2404         libgmp: new module
2405         The idea is to let programs simply include <gmp.h>, and
2406         so long as they live within the mini-gmp subset they need
2407         not worry about whether the GMP libraries are installed.
2408         * MODULES.html.sh: Mention it.
2409         * config/srclist.txt: Mention files copied from GMP source.
2410         * config/srclistvars.sh (GMP): New var.
2411         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
2412         * modules/libgmp-tests, tests/test-libgmp.c: New files.
2413         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
2415 2020-07-05  Bruno Haible  <bruno@clisp.org>
2417         mkancesdirs: Trim module dependencies.
2418         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
2419         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
2421 2020-07-05  Bruno Haible  <bruno@clisp.org>
2423         getprogname: Trim module dependencies.
2424         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
2425         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
2426         basename-lgpl.
2428 2020-07-05  Bruno Haible  <bruno@clisp.org>
2430         filenamecat-lgpl: Trim module dependencies.
2431         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
2432         dirname.h.
2433         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
2434         basename-lgpl, filename.
2436 2020-07-05  Bruno Haible  <bruno@clisp.org>
2438         backupfile, backup-rename: Trim module dependencies.
2439         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
2440         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
2441         basename-lgpl.
2442         * modules/backup-rename (Depends-on): Likewise.
2444 2020-07-05  Bruno Haible  <bruno@clisp.org>
2446         argp: Trim module dependencies.
2447         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
2448         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
2450 2020-07-05  Bruno Haible  <bruno@clisp.org>
2452         basename-lgpl: New module.
2453         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
2454         lib/basename-lgpl.c.
2455         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
2456         <stdbool.h>, filename.h.
2457         (last_component): Rename a local variable.
2458         * lib/dirname.h: Include basename-lgpl.h.
2459         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
2460         (last_component, base_len): Remove declarations.
2461         * modules/basename-lgpl: New file.
2462         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
2463         (Depends-on): Add basename-lgpl. Remove double-slash-root.
2464         (Makefile.am): Don't compile basename-lgpl.c.
2465         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
2466         not 'dirname'.
2468 2020-07-05  Bruno Haible  <bruno@clisp.org>
2470         dirname, dirname-lgpl: Simplify.
2471         * m4/dirname.m4: Remove file.
2472         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
2473         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
2474         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
2476 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
2478         tests: avoid shadowing warning
2479         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
2481 2020-07-05  Bruno Haible  <bruno@clisp.org>
2483         supersede: Add tests.
2484         * tests/test-supersede.c: New file.
2485         * tests/test-supersede-open.h: New file.
2486         * tests/test-supersede-fopen.h: New file.
2487         * modules/supersede-tests: New file.
2489         supersede: New module.
2490         * lib/supersede.h: New file.
2491         * lib/supersede.c: New file.
2492         * m4/supersede.m4: New file.
2493         * modules/supersede: New file.
2495 2020-07-05  Bruno Haible  <bruno@clisp.org>
2497         Add some copyright headers.
2498         * lib/dev-ino.h: Add copyright header.
2499         * lib/di-set.h: Likewise.
2500         * lib/fchown-stub.c: Likewise.
2501         * lib/file-set.h: Likewise.
2502         * lib/hash-triple.h: Likewise.
2503         * lib/idcache.h: Likewise.
2504         * lib/ino-map.h: Likewise.
2505         * lib/mkancesdirs.h: Likewise.
2506         * lib/scratch_buffer.h: Likewise.
2507         * lib/se-context.in.h: Likewise.
2508         * lib/stdopen.h: Likewise.
2509         * lib/userspec.h: Likewise.
2511 2020-07-04  Bruno Haible  <bruno@clisp.org>
2513         getrandom: Relicense under LGPLv2+.
2514         Paul Eggert's approval is in
2515         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
2516         * modules/getrandom (License): Change to LGPLv2+.
2518 2020-07-04  Bruno Haible  <bruno@clisp.org>
2520         getumask: Add tests.
2521         * tests/test-getumask.c: New file.
2522         * modules/getumask-tests: New file.
2524         getumask: New module.
2525         * lib/sys_stat.in.h (getumask): New declaration.
2526         * lib/getumask.c: New file.
2527         * m4/getumask.m4: New file.
2528         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
2529         declared.
2530         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
2531         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
2532         HAVE_GETUMASK.
2533         * modules/getumask: New file.
2534         * tests/test-sys_stat-c++.cc (getumask): Check signature.
2535         * doc/glibc-functions/getumask.texi: New file.
2536         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
2538 2020-07-04  Bruno Haible  <bruno@clisp.org>
2540         clean-temp: Add support for temporary files with given mode.
2541         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
2542         * lib/clean-temp.c (struct try_create_file_params): New type.
2543         (try_create_file): New function.
2544         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
2545         gen_tempname.
2547 2020-07-04  Bruno Haible  <bruno@clisp.org>
2549         clean-temp: Document limitations.
2550         * lib/clean-temp.h: Document limitations.
2552 2020-07-04  Bruno Haible  <bruno@clisp.org>
2554         clean-temp: Add support for temporary files with unpredictable names.
2555         * lib/clean-temp.h (gen_register_open_temp): New declaration.
2556         * lib/clean-temp.c: Include tempname.h.
2557         (gen_register_open_temp): New function.
2558         * modules/tempname (configure.ac): Define a module indicator.
2560 2020-07-04  Bruno Haible  <bruno@clisp.org>
2562         clean-temp: Add support for temporary files anywhere in the file system.
2563         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
2564         cleanup_temporary_file): New declarations.
2565         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
2566         variables.
2567         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
2568         (dir_cleanup_list): Renamed from cleanup_list.
2569         (cleanup_action): Process the file_cleanup_list as well.
2570         (do_init_clean_temp): New function.
2571         (clean_temp_once): New variable.
2572         (init_clean_temp): New function.
2573         (create_temp_dir): Invoke it.
2574         (register_temporary_file, unregister_temporary_file,
2575         cleanup_temporary_file): New functions.
2576         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
2577         argument.
2579 2020-07-04  Bruno Haible  <bruno@clisp.org>
2581         clean-temp: Improve comments.
2582         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
2583         fwriteerror_temp, close_stream_temp): Clarify intended use.
2584         * lib/clean-temp.c: Likewise.
2586 2020-07-04  Bruno Haible  <bruno@clisp.org>
2588         clean-temp: Make multithread-safe, part 2.
2589         * lib/fatal-signal.h: Include <signal.h>.
2590         (get_fatal_signal_set): New declaration.
2591         * lib/fatal-signal.c (get_fatal_signal_set): New function.
2592         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
2593         (struct closeable_fd): New type.
2594         (fatal_signal_set): New variable.
2595         (init_fatal_signal_set): New function.
2596         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
2597         (cleanup_action): Invoke asyncsafe_close instead of close.
2598         (create_temp_dir): Invoke init_fatal_signal_set.
2599         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
2600         element.
2601         (unregister_fd): Remove function.
2602         (close_temp): Cleanup descriptors list on the fly. Invoke
2603         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
2604         (fclose_variant_temp): New function.
2605         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
2606         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
2608 2020-07-04  Bruno Haible  <bruno@clisp.org>
2610         clean-temp: Make multithread-safe, part 1.
2611         * lib/clean-temp.c: Include glthread/lock.h.
2612         (cleanup_list_lock): New variable.
2613         (register_temp_file, unregister_temp_file, register_temp_subdir,
2614         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
2615         (create_temp_dir): Likewise. Don't free the old array.
2616         (descriptors_lock): New variable.
2617         (register_fd, unregister_fd): Use it.
2618         * modules/clean-temp (Depends-on): Add lock.
2620 2020-07-04  Bruno Haible  <bruno@clisp.org>
2622         fatal-signal: Make multithread-safe.
2623         * lib/fatal-signal.c (init_fatal_signals): Add comment.
2624         (do_init_fatal_signal_set): New function, extracted from
2625         init_fatal_signal_set.
2626         (fatal_signal_set_once): New variable.
2627         (init_fatal_signal_set): Use gl_once.
2629 2020-07-03  Bruno Haible  <bruno@clisp.org>
2631         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
2632         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
2633         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
2634         <bcrypt.h>.
2636 2020-07-03  Bruno Haible  <bruno@clisp.org>
2638         dfa tests: Follow common file naming conventions.
2639         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
2640         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
2641         * tests/test-dfa-invalid-char-class.sh: Renamed from
2642         tests/dfa-invalid-char-class.sh. Update.
2643         * modules/dfa-tests (Files, Makefile.am): Update.
2645 2020-07-03  Bruno Haible  <bruno@clisp.org>
2647         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
2648         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
2649         the GCC extended asm syntax also for the Sun Studio 12 compilers.
2651 2020-07-03  Bruno Haible  <bruno@clisp.org>
2653         asyncsafe-spin: Reduce code duplication.
2654         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
2655         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
2656         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
2658 2020-07-03  Bruno Haible  <bruno@clisp.org>
2660         lchmod: Simplify after 2020-02-22 change.
2661         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
2663 2020-07-03  Bruno Haible  <bruno@clisp.org>
2665         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
2666         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
2668 2020-07-03  Bruno Haible  <bruno@clisp.org>
2670         dfa: Make sure the compiler does not barf on 'inline'.
2671         * modules/dfa (configure.ac): Require AC_C_INLINE.
2673 2020-07-03  Bruno Haible  <bruno@clisp.org>
2675         bitset: Make sure the compiler does not barf on 'inline'.
2676         * modules/bitset (configure.ac): New section.
2678 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2680         manywarnings: improve port to GCC 10.1
2681         * build-aux/gcc-warning.spec: Also list warnings that are default
2682         or are enabled by already-given flags.  This lets us speed up
2683         checking for attributes, and makes the generated compilation
2684         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
2685         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
2686         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
2687         to shell variables that may have long values.
2688         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
2689         consequences of other flags, to speed up checking and
2690         shorten commands.
2692         tests: pacify gcc -fanalyzer on zerosize_ptr
2693         * tests/test-memcasecmp.c (main):
2694         * tests/test-memchr.c (main):
2695         * tests/test-memchr2.c (main):
2696         * tests/test-memcmp.c (main):
2697         * tests/test-memmem.c (main):
2698         * tests/test-memrchr.c (main):
2699         * tests/unistr/test-chr.h (main):
2700         * tests/unistr/test-cmp.h (test_cmp):
2701         Check whether zerosize_ptr returns NULL before using it.
2702         This pacifies GCC 10.1’s new fanalyzer option, and matches
2703         other uses of zerosize_ptr.
2705 2020-07-01  Bruno Haible  <bruno@clisp.org>
2707         asyncsafe-spin: Add tests.
2708         * tests/test-asyncsafe-spin1.c: New file.
2709         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
2710         tests/test-pthread-spin.c.
2711         * modules/asyncsafe-spin-tests: New file.
2713 2020-07-01  Bruno Haible  <bruno@clisp.org>
2715         asyncsafe-spin: New module.
2716         * lib/asyncsafe-spin.h: New file.
2717         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
2718         * modules/asyncsafe-spin: New file.
2720 2020-07-01  Bruno Haible  <bruno@clisp.org>
2722         windows-spin: Fix race condition on multiprocessor systems.
2723         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
2725 2020-07-01  Bruno Haible  <bruno@clisp.org>
2727         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
2728         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2729         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
2730         an implementation based on other GCC built-ins.
2732 2020-07-01  Bruno Haible  <bruno@clisp.org>
2734         pthread-spin: Optimize fallback for GCC versions >= 4.7.
2735         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
2736         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
2737         lock byte.
2739 2020-07-01  Bruno Haible  <bruno@clisp.org>
2741         pthread-spin: Add error checking.
2742         * lib/pthread-spin.c: Include <stdbool.h>.
2743         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
2744         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
2745         the unlocks.
2746         * modules/pthread-spin (Depends-on): Add stdbool.
2748 2020-07-01  Bruno Haible  <bruno@clisp.org>
2750         pthread-spin: Add tests.
2751         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
2752         * modules/pthread-spin-tests: New file.
2754 2020-07-01  Bruno Haible  <bruno@clisp.org>
2756         tests: Reduce code duplication.
2757         * tests/atomic-int-posix.h: New file, extracted from
2758         tests/test-pthread-mutex.c.
2759         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
2760         * tests/test-pthread-rwlock.c: Likewise.
2761         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
2762         * modules/pthread-rwlock-tests (Files): Likewise.
2764 2020-07-01  Bruno Haible  <bruno@clisp.org>
2766         tests: Refactor.
2767         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
2768         * tests/test-mtx.c: Include it. Remove the corresponding code.
2769         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
2771 2020-07-01  Bruno Haible  <bruno@clisp.org>
2773         tests: Refactor.
2774         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
2775         * tests/test-lock.c: Include it. Remove the corresponding code.
2776         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
2778 2020-06-29  Bruno Haible  <bruno@clisp.org>
2780         sys_socket: Don't define socklen_t if it is already defined on mingw.
2781         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
2782         <https://savannah.gnu.org/bugs/?57725>,
2783         by Rahul Das <bokul_4u@yahoo.com> in
2784         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
2785         and by Eli Zaretskii <eliz@gnu.org> in
2786         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
2787         * lib/sys_socket.in.h (socklen_t): Remove definition.
2789 2020-06-29  Bruno Haible  <bruno@clisp.org>
2791         alloca-opt: Fix warning on mingw.
2792         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
2793         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
2794         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
2795         whether alloca is defined.
2797 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
2799         getrandom: do not depend on ‘open’ on mingw
2800         Similarly for at-internal, getloadavg.  These modules do not call
2801         the ‘open’ function when they are compiled on mingw.  On mingw,
2802         this avoids having to compile open.c when building Emacs, which
2803         does its own thing with ‘open’.
2804         * modules/at-internal, modules/getloadavg, modules/getrandom:
2805         (Depends-on): Don’t depend on ‘open’ on mingw.
2806         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
2807         * modules/getloadavg (Depends-on):
2808         Depend on intprops, open, stdbool, stdlib only if compiling
2809         getloadavg.c.
2811 2020-06-28  Bruno Haible  <bruno@clisp.org>
2813         doc: Add a note about sigprocmask vs. pthread_sigmask.
2814         * doc/posix-functions/sigprocmask.texi: Add note.
2816 2020-06-28  Bruno Haible  <bruno@clisp.org>
2818         getrandom: Fix compilation errors on older versions of mingw.
2819         Reported by Eli Zaretskii <eliz@gnu.org> in
2820         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
2821         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
2822         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
2823         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
2824         BCryptGenRandom ourselves.
2826 2020-06-28  Bruno Haible  <bruno@clisp.org>
2828         clean-temp: Fix wrong errno in error message.
2829         * lib/clean-temp.c (create_temp_dir): Save errno around
2830         unblock_fatal_signals call.
2832 2020-06-27  Bruno Haible  <bruno@clisp.org>
2834         fatal-signal: Make multithread-safe.
2835         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
2837 2020-06-27  Bruno Haible  <bruno@clisp.org>
2839         clean-temp: Don't force deletion of temporary files on native Windows.
2840         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
2841         argument.
2842         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
2843         * NEWS: Mention the change.
2844         * lib/javacomp.c (write_temp_file): Update.
2846 2020-06-27  Bruno Haible  <bruno@clisp.org>
2848         fatal-signal: Make multithread-safe.
2849         * lib/fatal-signal.c: Include glthread/lock.h.
2850         (at_fatal_signal_lock): New variable.
2851         (at_fatal_signal): Use it.
2852         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
2853         (block_fatal_signals, unblock_fatal_signals): Use them.
2854         * modules/fatal-signal (Depends-on): Add lock.
2856 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
2858         getloadavg: don’t depend on fopen-gnu
2859         This is for Emacs, which does not need fopen-gnu for anything else,
2860         and which would need it only on a NetBSD platform where getloadavg
2861         does not work (does that even happen?).
2862         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
2863         * modules/getloadavg (Depends-on): Remove fopen-gnu.
2865         * tests/test-getloadavg.c (main): Fix typo.
2867 2020-06-27  Bruno Haible  <bruno@clisp.org>
2869         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
2870         * modules/tempname (Link): New section.
2871         * modules/mkdtemp (Link): Likewise.
2872         * modules/clean-temp (Link): Likewise.
2873         * modules/mkstemp (Link): Likewise.
2874         * modules/stdlib-safer (Link): Likewise.
2875         * modules/mkstemps (Link): Likewise.
2876         * modules/mkostemp (Link): Likewise.
2877         * modules/mkostemps (Link): Likewise.
2878         * modules/tmpfile (Link): Likewise.
2879         * modules/tmpfile-safer (Link): Likewise.
2880         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
2881         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
2882         $(LIB_GETRANDOM).
2883         * NEWS: Mention the changes.
2885 2020-06-27  Bruno Haible  <bruno@clisp.org>
2887         fopen-gnu: Simplify code.
2888         * lib/fopen.c: Include <stdbool.h>.
2889         (rpl_fopen): Use a single variable open_flags instead of
2890         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
2891         * modules/fopen (Depends-on): Add stdbool.
2893 2020-06-26  Bruno Haible  <bruno@clisp.org>
2895         canonicalize: Improve documentation.
2896         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
2897         return convention.
2899 2020-06-26  Bruno Haible  <bruno@clisp.org>
2901         xgetcwd: Improve documentation.
2902         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
2904 2020-06-26  Bruno Haible  <bruno@clisp.org>
2906         getcwd: Improve documentation.
2907         * lib/getcwd.c (__getcwd): Document the failure return convention.
2909 2020-06-26  Bruno Haible  <bruno@clisp.org>
2911         fchdir: Improve documentation.
2912         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
2913         convention.
2915 2020-06-26  Bruno Haible  <bruno@clisp.org>
2917         filenamecat-lgpl: Set errno upon failure.
2918         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
2919         return convention.
2920         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
2922 2020-06-26  Bruno Haible  <bruno@clisp.org>
2924         areadlink-with-size: Set errno upon failure.
2925         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
2926         fails.
2927         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
2929 2020-06-26  Bruno Haible  <bruno@clisp.org>
2931         copy-file: Shrink dependencies.
2932         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
2933         qcopy-acl.
2935 2020-06-26  Bruno Haible  <bruno@clisp.org>
2937         doc: Mention declaration fixes implemented by some modules.
2938         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
2939         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
2940         declaration appear in <unistd.h>.
2941         * doc/posix-functions/dup.texi: Likewise.
2942         * doc/posix-functions/dup2.texi: Likewise.
2943         * doc/posix-functions/gethostname.texi: Likewise.
2944         * doc/posix-functions/isatty.texi: Likewise.
2945         * doc/posix-functions/lseek.texi: Likewise.
2946         * doc/posix-functions/unlink.texi: Likewise.
2947         * doc/posix-functions/read.texi: Mention the module 'read'.
2948         * doc/posix-functions/write.texi: Mention the effects of the module
2949         'write'.
2951 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
2953         c-dtoastr, c-ldtoastr: new modules
2954         These modules provide the same functionality as the modules
2955         dtoastr and ldtoastr except for the formatting taking place in the
2956         C locale.
2957         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
2958         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
2959         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
2960         defined.  Use c_snprintf and c_strtod/c_strtold instead of
2961         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
2962         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
2963         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
2964         modules/c-ldtoastr-tests: New files.
2965         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
2966         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
2968 2020-06-21  Bruno Haible  <bruno@clisp.org>
2970         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
2971         * lib/tzset.c: Include <stdlib.h>, <string.h>.
2973 2020-06-16  Bruno Haible  <bruno@clisp.org>
2975         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
2976         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
2978 2020-06-16  Bruno Haible  <bruno@clisp.org>
2980         thread, thrd: Avoid a compiler warning.
2981         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
2983 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
2985         windows-thread: Avoid a compiler warning.
2986         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
2987         void.
2988         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
2990 2020-06-15  Bruno Haible  <bruno@clisp.org>
2992         unictype/joininggroup-name: Fix warning on 64-bit mingw.
2993         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
2994         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
2995         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
2996         first.
2998 2020-06-06  Bruno Haible  <bruno@clisp.org>
3000         calloc-gnu tests: Avoid a test failure with clang.
3001         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
3002         'volatile', to defeat compiler optimizations.
3004 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3006         getloadavg: fix double-increment bug
3007         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
3008         Linux without glibc, Android, Cygwin.  This fixes a bug I
3009         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
3010         Problem and fix reported by Semen Verchenko in:
3011         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
3013         tempname: use getrandom, not getentropy
3014         This removes a dependency, as getentropy depends on getrandom.
3015         * lib/tempname.c: Include sys/random.h instead of unistd.h.
3016         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
3017         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
3019 2020-06-01  Bruno Haible  <bruno@clisp.org>
3021         doc: New chapter 'Multithreading'.
3022         * doc/multithread.texi: New file.
3023         * doc/gnulib.texi: Include it.
3025 2020-06-01  Bruno Haible  <bruno@clisp.org>
3027         doc: Move 'Running self-tests under valgrind' section.
3028         * doc/gnulib.texi (Build Infrastructure Modules): Include
3029         valgrind-tests.texi here...
3030         (Miscellaneous Notes): ... not here.
3032 2020-06-01  Bruno Haible  <bruno@clisp.org>
3034         doc: Move 'Visual Studio Compatibility' section.
3035         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
3036         here...
3037         (Build Infrastructure Modules): ... not here.
3039 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
3041         doc: improve randomness discussion
3042         Inspired by comments from Jeffrey Walton in:
3043         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
3044         * doc/glibc-functions/getentropy.texi (getentropy):
3045         * doc/glibc-functions/getrandom.texi (getrandom):
3046         Improve discussion of problems with "random" data,
3047         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
3049 2020-06-01  Bruno Haible  <bruno@clisp.org>
3051         doc: Fix Texinfo syntax error.
3052         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
3054 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
3056         doc: Change '.' to '@.' where appropriate.
3057         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
3058         * doc/glibc-functions/fstatfs.texi: Likewise.
3059         * doc/glibc-functions/fts_children.texi: Likewise.
3060         * doc/glibc-functions/fts_read.texi: Likewise.
3061         * doc/glibc-functions/getdirentries.texi: Likewise.
3062         * doc/glibc-functions/mkostemp.texi: Likewise.
3063         * doc/glibc-functions/mkostemps.texi: Likewise.
3064         * doc/glibc-functions/mkstemps.texi: Likewise.
3065         * doc/glibc-functions/preadv.texi: Likewise.
3066         * doc/glibc-functions/pwritev.texi: Likewise.
3067         * doc/glibc-functions/sendfile.texi: Likewise.
3068         * doc/glibc-functions/statfs.texi: Likewise.
3069         * doc/gnulib-intro.texi: Likewise.
3070         * doc/gnulib-tool.texi: Likewise.
3071         * doc/intprops.texi: Likewise.
3072         * doc/lib-symbol-visibility.texi: Likewise.
3073         * doc/licenses-texi.texi: Likewise.
3074         * doc/pastposix-functions/bcmp.texi: Likewise.
3075         * doc/pastposix-functions/bcopy.texi: Likewise.
3076         * doc/pastposix-functions/bzero.texi: Likewise.
3077         * doc/pastposix-functions/ecvt.texi: Likewise.
3078         * doc/pastposix-functions/fcvt.texi: Likewise.
3079         * doc/pastposix-functions/ftime.texi: Likewise.
3080         * doc/pastposix-functions/gcvt.texi: Likewise.
3081         * doc/pastposix-functions/getwd.texi: Likewise.
3082         * doc/pastposix-functions/index.texi: Likewise.
3083         * doc/pastposix-functions/mktemp.texi: Likewise.
3084         * doc/pastposix-functions/rindex.texi: Likewise.
3085         * doc/pastposix-functions/wcswcs.texi: Likewise.
3086         * doc/posix-functions/aio_cancel.texi: Likewise.
3087         * doc/posix-functions/aio_error.texi: Likewise.
3088         * doc/posix-functions/aio_fsync.texi: Likewise.
3089         * doc/posix-functions/aio_read.texi: Likewise.
3090         * doc/posix-functions/aio_return.texi: Likewise.
3091         * doc/posix-functions/aio_suspend.texi: Likewise.
3092         * doc/posix-functions/aio_write.texi: Likewise.
3093         * doc/posix-functions/creat.texi: Likewise.
3094         * doc/posix-functions/ctime.texi: Likewise.
3095         * doc/posix-functions/daylight.texi: Likewise.
3096         * doc/posix-functions/fgetpos.texi: Likewise.
3097         * doc/posix-functions/fopen.texi: Likewise.
3098         * doc/posix-functions/freopen.texi: Likewise.
3099         * doc/posix-functions/fseeko.texi: Likewise.
3100         * doc/posix-functions/fsetpos.texi: Likewise.
3101         * doc/posix-functions/fstatat.texi: Likewise.
3102         * doc/posix-functions/fstatvfs.texi: Likewise.
3103         * doc/posix-functions/ftello.texi: Likewise.
3104         * doc/posix-functions/ftruncate.texi: Likewise.
3105         * doc/posix-functions/getrlimit.texi: Likewise.
3106         * doc/posix-functions/lio_listio.texi: Likewise.
3107         * doc/posix-functions/localtime.texi: Likewise.
3108         * doc/posix-functions/lseek.texi: Likewise.
3109         * doc/posix-functions/mkstemp.texi: Likewise.
3110         * doc/posix-functions/mktime.texi: Likewise.
3111         * doc/posix-functions/open.texi: Likewise.
3112         * doc/posix-functions/openat.texi: Likewise.
3113         * doc/posix-functions/opendir.texi: Likewise.
3114         * doc/posix-functions/pread.texi: Likewise.
3115         * doc/posix-functions/pwrite.texi: Likewise.
3116         * doc/posix-functions/readdir.texi: Likewise.
3117         * doc/posix-functions/readdir_r.texi: Likewise.
3118         * doc/posix-functions/scandir.texi: Likewise.
3119         * doc/posix-functions/seekdir.texi: Likewise.
3120         * doc/posix-functions/setrlimit.texi: Likewise.
3121         * doc/posix-functions/statvfs.texi: Likewise.
3122         * doc/posix-functions/strftime.texi: Likewise.
3123         * doc/posix-functions/telldir.texi: Likewise.
3124         * doc/posix-functions/timezone.texi: Likewise.
3125         * doc/posix-functions/tmpfile.texi: Likewise.
3126         * doc/posix-functions/truncate.texi: Likewise.
3127         * doc/posix-functions/tzname.texi: Likewise.
3128         * doc/posix-functions/wcsftime.texi: Likewise.
3129         * doc/windows-sockets.texi: Likewise.
3131 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3133         getrandom-tests: do not assume GRND_RANDOM yields short read
3134         * tests/test-getrandom.c (main): Omit assertion that
3135         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
3136         when b’s size is 100000.  This assertion fails with Linux kernel
3137         5.6.13, as that kernel ignores the GRND_RANDOM flag.
3138         The separate blocking pool is going away in the Linux kernel, and
3139         they’ve added a flag GRND_INSECURE instead; see:
3140         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
3141         The assertion was iffy anyway; what’s to prevent a kernel from
3142         lazily filling a large buffer with random bytes?
3144         read-file-test: pacify --enable-gcc-warnings
3145         * tests/test-read-file.c (test_read_file): Now static.
3147         tempname: merge from glibc and coreutils
3148         Also, merge in Gnulib’s more-recent methods of making it easier
3149         to share between Gnulib and glibc, and fix a few randomness
3150         glitches.
3151         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
3152         (__set_errno): Remove; libc-config.h does that for us.
3153         Do not include <sys/time.h>.
3154         (__secure_getenv) [_LIBC]: New macro.
3155         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
3156         (RANDOM_BITS): Rewrite.
3157         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
3158         (random_value): New typedef.
3159         (try_file, try_dir, try_nocreate): Move up.
3160         (gen_tempname_len, try_tempname_len): New functions.
3161         (gen_tempname_len): Use a constant array rather than a switch.
3162         (try_tempname_len): Don’t assume string length fits in int.
3163         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
3164         has enough entropy (it’s a bit short).
3165         (__gen_tempname): Rewrite in terms of gen_tempname_len.
3166         (__try_tempname): Rewrite in terms of try_tempname_len.
3167         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
3168         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
3169         Add getentropy, libc-config.
3171 2020-05-31  Bruno Haible  <bruno@clisp.org>
3173         getrandom, getentropy: Mention the crypto/gc-random module.
3174         Suggested by Simon Josefsson in
3175         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
3176         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
3177         crypto/gc-random module.
3178         * doc/glibc-functions/getentropy.texi: Likewise.
3180 2020-05-31  Bruno Haible  <bruno@clisp.org>
3182         getentropy: Enhance tests.
3183         * tests/test-getentropy.c (main): Add one more test.
3184         * tests/test-unistd-c++.cc: Check the signature of getentropy.
3186 2020-05-31  Bruno Haible  <bruno@clisp.org>
3188         getentropy: Work around a macOS and Solaris problem.
3189         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
3190         'getentropy' module.
3191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3192         UNISTD_H_HAVE_SYS_RANDOM_H.
3193         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
3194         UNISTD_H_HAVE_SYS_RANDOM_H.
3195         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
3196         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
3197         problem. List more platforms.
3199 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
3201         fnmatch: merge from glibc
3202         Also, merge in Gnulib’s more-recent methods of making it easier
3203         to share between Gnulib and glibc.
3204         * lib/fnmatch.c: Reorder includes to match glibc better.
3205         Include libc-config.h instead of config.h.
3206         Include alloca.h only if _LIBC || HAVE_ALLOCA.
3207         Do not include "../locale/elem-hash.h" if _LIBC.
3208         Define macros for btowc, etc. if _LIBC.  All uses simplified.
3209         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
3210         Include intprops.h, since glibc has it now.
3211         (SIZE_MAX): Remove; use (size_t) -1 instead.
3212         Omit the "Comment out all this code" ifdef, since Gnulib
3213         has never really needed it.
3214         (STREQ): Remove; no longer used.
3215         (__libc_use_alloca, alloca, alloca_account): Define as
3216         needed if !_LIBC.
3217         (ISWCTYPE): Remove; all uses replaced by iswctype.
3218         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
3219         (internal_function): Remove.  All uses removed.
3220         (STRUCT): New macro.
3221         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
3222         (WMEMCMP): New macro.
3223         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
3224         and <locale/weightwc.h>.
3225         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
3226         __builtin_expect.  Check for integer overflow more
3227         systematically.  Account for alloca storage better when
3228         recursive.  Use strnlen instead of strlen for efficiency.
3229         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
3230         (struct STRUCT): New type.
3231         (FCT, EXT): New ENDS and ALLOCA_USED args.
3232         All callers changed.
3233         (FCT): Prefer __glibc_unlikely to __builtin_expect.
3234         Simplify by assuming WIDE_CHAR_SUPPORT.
3235         Copy _LIBC code from glibc without worrying Gnulib compatibility.
3236         Cast cold to UCHAR to avoid signedness warning.
3237         (END): Check for invalid pattern.
3238         (EXT): Improve alloca/malloc checking (taken from glibc),
3239         and improve it some more by using intprops.h and checking
3240         for integer overflow and using bool for booleans.
3241         * lib/libc-config.h (compat_symbol): New macro.
3242         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
3243         acceptable to non-GCC when a trailing semicolon is added.
3244         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
3245         libc-config, strnlen.  Remove alloca.
3247 2020-05-31  Bruno Haible  <bruno@clisp.org>
3249         getrandom: Doc and test tweaks.
3250         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
3251         it sets errno when failing.
3252         * tests/test-getrandom.c (main): Disable the high-quality check on those
3253         platforms on which it fails.
3254         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
3255         Cygwin to the list of platforms that don't have the function. Add a note
3256         about the quality of the result.
3257         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
3258         declaration; this is fixed by module 'getrandom'.
3260 2020-05-31  Bruno Haible  <bruno@clisp.org>
3262         getrandom: Add support for native Windows.
3263         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
3264         <wincrypt.h>.
3265         (CRYPT_VERIFY_CONTEXT): New macro.
3266         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
3267         'A'.
3268         (GetProcAddress): New macro.
3269         (BCryptGenRandomFuncType): New type.
3270         (BCryptGenRandomFunc, initialized): New variables.
3271         (initialize): New function.
3272         (getrandom): On native Windows, use <bcrypt.h> API when available, and
3273         <wincrypt.h> API as fallback.
3274         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
3275         * modules/getrandom (Link): New section.
3276         * modules/getentropy (Link): Likewise.
3277         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
3278         $(LIB_GETRANDOM).
3279         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
3280         $(LIB_GETRANDOM).
3281         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
3282         against $(LIB_GETRANDOM).
3283         * doc/glibc-functions/getrandom.texi: Mention the native Windows
3284         support.
3286 2020-05-31  Bruno Haible  <bruno@clisp.org>
3288         getrandom: Simplify the determination of the random number devices.
3289         Suggested by Paul Eggert in
3290         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
3291         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
3292         macros.
3293         * modules/getrandom (Depends-on): Remove crypto/gc-random.
3295 2020-05-31  Bruno Haible  <bruno@clisp.org>
3297         crypto/gc-random: Fix list of crypto devices for Solaris.
3298         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
3300 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
3302         list: fix GCC warnings
3303         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
3304         (gl_tree_next_node, gl_tree_node_nx_set_value)
3305         (gl_tree_previous_node, gl_tree_next_node):
3306         Mark unused arguments.
3307         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
3308         * lib/gl_anylinked_list2.h (gl_linked_node_value)
3309         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
3311         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
3312         the same variable name in nested scopes.
3314 2020-05-31  Bruno Haible  <bruno@clisp.org>
3316         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
3317         Reported by Akim Demaille in
3318         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
3319         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
3320         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
3321         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
3322         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
3323         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
3325 2020-05-30  Bruno Haible  <bruno@clisp.org>
3327         wmemchr: Relicense under LGPLv2+.
3328         * modules/wmemchr (License): Set to LGPLv2+.
3330 2020-05-30  Bruno Haible  <bruno@clisp.org>
3332         wmempcpy: New module.
3333         Reported by Paul Eggert in
3334         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
3335         * lib/wchar.in.h (wmempcpy): New declaration.
3336         * lib/wmempcpy.c: New file.
3337         * m4/wmempcpy.m4: New file.
3338         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
3339         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
3340         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
3341         HAVE_WMEMPCPY.
3342         * modules/wmempcpy: New file.
3343         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
3344         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
3345         * modules/mempcpy (Description): Fix typo.
3347 2020-05-30  Bruno Haible  <bruno@clisp.org>
3349         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
3350         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
3352 2020-05-30  Bruno Haible  <bruno@clisp.org>
3354         sys_random: Work around macOS bug.
3355         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
3356         <stdlib.h> before <sys/random.h>.
3357         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3358         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
3359         first.
3360         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
3362 2020-05-30  Bruno Haible  <bruno@clisp.org>
3364         getrandom: Override incompatible system function on Solaris 11.
3365         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
3366         * lib/getrandom.c (getrandom): When the system has getrandom, just
3367         invoke it.
3368         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
3369         system's getrandom function's prototype is not the expected one.
3370         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
3371         REPLACE_GETRANDOM.
3372         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
3373         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
3374         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
3375         EAGAIN.
3376         * doc/glibc-functions/getrandom.texi: Mention the new module and the
3377         Solaris problem.
3379 2020-05-30  Bruno Haible  <bruno@clisp.org>
3381         sys_random: Add C++ tests.
3382         * tests/test-sys_random-c++.cc: New file.
3383         * modules/sys_random-c++-tests: New file.
3384         * modules/sys_random-tests (Depends-on): Depend on it.
3386         sys_random: Add tests.
3387         * tests/test-sys_random.c: New file.
3388         * modules/sys_random-tests: New file.
3390         sys_random: New module.
3391         * lib/sys_random.in.h: Use the common idioms for overridable header
3392         files.
3393         * m4/sys_random_h.m4: New file.
3394         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
3395         * modules/sys_random: New file.
3396         * modules/getrandom (Files): Remove lib/sys_random.in.h.
3397         (Depends-on): Add sys_random.
3398         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
3399         gl_UNISTD_MODULE_INDICATOR.
3400         (Makefile.am): Don't generate sys/random.h here.
3401         * doc/glibc-headers/sys_random.texi: New file.
3402         * doc/gnulib.texi: Include it.
3404 2020-05-30  Bruno Haible  <bruno@clisp.org>
3406         unistd: Remove conflicting declaration of getrandom().
3407         * lib/unistd.in.h (getrandom): Remove declaration.
3408         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
3409         declared.
3410         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
3411         HAVE_GETRANDOM.
3412         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
3413         HAVE_GETRANDOM.
3415 2020-05-30  Bruno Haible  <bruno@clisp.org>
3417         getrandom: Add tests.
3418         * tests/test-getrandom.c: New file.
3419         * modules/getrandom-tests: New file.
3421 2020-05-30  Bruno Haible  <bruno@clisp.org>
3423         crypto/gc-random: Fix link error on MSVC.
3424         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
3425         * modules/crypto/gc-random (Link): New section.
3426         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
3427         $(LIB_GC_RANDOM).
3429 2020-05-30  Bruno Haible  <bruno@clisp.org>
3431         Don't assume that UNICODE is not defined.
3432         Many Windows API functions are defined differently (redirecting to a
3433         function with suffix 'W') if the application defines the macro UNICODE
3434         than by default (redirecting to a function with suffix 'A').
3435         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
3436         variant with suffix 'A'.
3437         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
3438         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
3439         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
3440         * lib/getlogin.c (GetUserName): Likewise.
3441         * lib/getlogin_r.c (GetUserName): Likewise.
3442         * lib/gettimeofday.c (LoadLibrary): Likewise.
3443         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
3444         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
3445         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
3446         * lib/mountlist.c (GetDriveType): Likewise.
3447         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
3448         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
3449         Likewise.
3450         * lib/physmem.c (GetModuleHandle): Likewise.
3451         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3452         PeekMessage, DispatchMessage): Likewise.
3453         * lib/progreloc.c (GetModuleFileName): Likewise.
3454         * lib/putenv.c (SetEnvironmentVariable): Likewise.
3455         * lib/read.c (GetNamedPipeHandleState): Likewise.
3456         * lib/readdir.c (FindNextFile): Likewise.
3457         * lib/relocatable.c (GetModuleFileName): Likewise.
3458         * lib/rename.c (MoveFileEx): Likewise.
3459         * lib/rewinddir.c (FindFirstFile): Likewise.
3460         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
3461         PeekMessage, DispatchMessage): Likewise.
3462         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
3463         * lib/socket.c (WSASocket): Likewise.
3464         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
3465         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
3466         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
3467         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
3468         * lib/tmpdir.c (GetTempPath): Likewise.
3469         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
3470         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
3471         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
3472         * lib/windows-cond.c (CreateEvent): Likewise.
3473         * lib/windows-rwlock.c (CreateEvent): Likewise.
3474         * lib/windows-timedmutex.c (CreateEvent): Likewise.
3475         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
3476         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
3477         * lib/write.c (GetNamedPipeHandleState): Likewise.
3479 2020-05-30  Bruno Haible  <bruno@clisp.org>
3481         physmem: Fix compilation errors on MSVC.
3482         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
3483         * modules/physmem (Depends-on): Add unistd.
3485 2020-05-29  Bruno Haible  <bruno@clisp.org>
3487         gnulib-tool: Fix link errors with a particular set of modules on mingw.
3488         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
3489         LDADD a second time, after the second occurrence of libtests.a.
3490         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
3492 2020-05-29  Bruno Haible  <bruno@clisp.org>
3494         fnmatch: Rely on more gnulib modules.
3495         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
3496         wmempcpy, mempcpy.
3497         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
3498         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
3499         HAVE_MEMPCPY are all 1.
3500         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
3501         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
3503 2020-05-29  Bruno Haible  <bruno@clisp.org>
3505         Avoid dynamic lookup of Windows API functions when possible.
3506         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
3507         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
3508         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
3509         (use_win32_p): Define differently.
3510         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
3511         CreateHardLinkFunc, initialized, initialize): Don't define in a build
3512         for Windows XP or higher.
3514 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3516         read-file: disable buffering if RF_SENSITIVE is set
3517         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
3518         Suggested by Glenn Strauss.
3519         (fread_file): Suggest calling setvbuf before calling this
3520         function.  Suggested by Bruno Haible.
3522 2020-05-29  Bruno Haible  <bruno@clisp.org>
3524         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
3525         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
3526         program.
3527         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
3528         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
3529         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
3530         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
3532 2020-05-29  Bruno Haible  <bruno@clisp.org>
3534         Fix compilation error on native Windows (regression from 2020-05-28).
3535         Reported by Daiki Ueno.
3536         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
3537         macro when not using dynamic loading.
3538         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
3539         QueryFullProcessImageNameFunc): Likewise.
3540         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
3541         GetFinalPathNameByHandleFunc): Likewise.
3543 2020-05-29  Daiki Ueno  <ueno@gnu.org>
3545         fopen-gnu-tests: fix "\x" escape usage
3546         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
3548 2020-05-28  Bruno Haible  <bruno@clisp.org>
3550         Avoid dynamic loading of Windows API functions when possible.
3551         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3552         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
3553         * lib/gettimeofday.c (GetProcAddress,
3554         GetSystemTimePreciseAsFileTimeFuncType,
3555         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
3556         define in a build for Windows 8 or higher.
3557         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
3558         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
3559         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
3560         in a build for Windows Vista or higher.
3561         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
3562         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
3563         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
3565 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
3567         explicit_bzero-tests: improve -Wmissing-declarations pacification
3568         * tests/test-explicit_bzero.c: Now noinline.
3569         Suggested by Bruno Haible in:
3570         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
3572 2020-05-28  Bruno Haible  <bruno@clisp.org>
3574         Fix build errors due to read-file changes (regression from 2020-05-27).
3575         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
3576         invocation.
3577         * tests/test-sameacls.c (main): Likewise.
3578         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
3579         read_binary_file.
3580         * tests/test-pipe-filter-ii1.c (main): Likewise.
3582 2020-05-28  Bruno Haible  <bruno@clisp.org>
3584         fts: Make more robust in multithreaded applications.
3585         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
3586         * modules/fts (Depends-on): Add 'open'.
3588 2020-05-28  Bruno Haible  <bruno@clisp.org>
3590         relocatable-prog: Make more robust in multithreaded applications.
3591         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
3592         relocatable-prog-wrapper.
3593         (find_executable): Pass an O_CLOEXEC flag to open().
3594         * modules/relocatable-prog (Depends-on): Add 'open'.
3596 2020-05-28  Bruno Haible  <bruno@clisp.org>
3598         getloadavg: Make more robust in multithreaded applications.
3599         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
3600         Simplify use of O_CLOEXEC.
3601         * modules/getloadavg (Depends-on): Add 'open'.
3603 2020-05-28  Bruno Haible  <bruno@clisp.org>
3605         vma-iter: Make more robust in multithreaded applications.
3606         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
3607         open().
3608         * modules/vma-iter (Depends-on): Add 'open'.
3610 2020-05-28  Bruno Haible  <bruno@clisp.org>
3612         truncate: Make more robust in multithreaded applications.
3613         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
3615 2020-05-28  Bruno Haible  <bruno@clisp.org>
3617         pagealign_alloc: Make more robust in multithreaded applications.
3618         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
3619         open().
3620         * modules/pagealign_alloc (Depends-on): Add 'open'.
3622 2020-05-28  Bruno Haible  <bruno@clisp.org>
3624         openat: Make more robust in multithreaded applications.
3625         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
3627 2020-05-28  Bruno Haible  <bruno@clisp.org>
3629         at-internal: Make more robust in multithreaded applications.
3630         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
3631         open().
3633 2020-05-28  Bruno Haible  <bruno@clisp.org>
3635         mountlist: Make more robust in multithreaded applications.
3636         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
3637         open().
3638         * modules/mountlist (Depends-on): Add 'open'.
3640 2020-05-28  Bruno Haible  <bruno@clisp.org>
3642         login_tty: Make more robust in multithreaded applications.
3643         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
3644         * modules/login_tty (Depends-on): Add 'open'.
3646 2020-05-28  Bruno Haible  <bruno@clisp.org>
3648         javacomp: Make more robust in multithreaded applications.
3649         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
3650         open().
3651         * modules/javacomp (Depends-on): Add 'open'.
3653 2020-05-28  Bruno Haible  <bruno@clisp.org>
3655         getprogname: Make more robust in multithreaded applications.
3656         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
3657         * modules/getprogname (Depends-on): Add 'open'.
3659 2020-05-28  Bruno Haible  <bruno@clisp.org>
3661         get_progname_of: Make more robust in multithreaded applications.
3662         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
3663         open().
3664         * modules/get_progname_of (Depends-on): Add 'open'.
3666 2020-05-28  Bruno Haible  <bruno@clisp.org>
3668         get_ppid_of: Make more robust in multithreaded applications.
3669         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
3670         * modules/get_ppid_of (Depends-on): Add 'open'.
3672 2020-05-28  Bruno Haible  <bruno@clisp.org>
3674         get-rusage-as: Make more robust in multithreaded applications.
3675         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
3676         flag to open().
3677         * modules/get-rusage-as (Depends-on): Add 'open'.
3679 2020-05-28  Bruno Haible  <bruno@clisp.org>
3681         crypto/gc: Make more robust in multithreaded applications.
3682         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
3683         * modules/crypto/gc (Depends-on): Add 'open'.
3685 2020-05-28  Bruno Haible  <bruno@clisp.org>
3687         copy-file: Make more robust in multithreaded applications.
3688         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
3689         open().
3691 2020-05-28  Bruno Haible  <bruno@clisp.org>
3693         chown: Make more robust in multithreaded applications.
3694         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
3696 2020-05-28  Bruno Haible  <bruno@clisp.org>
3698         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
3699         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
3701 2020-05-28  Daiki Ueno  <ueno@gnu.org>
3703         fopen-gnu: make 'b' flag can be used with 'e' on Windows
3704         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
3705         specified on Windows.
3706         * tests/test-fopen-gnu.c (DATA): New define.
3707         (main): Add test for reading binary files with an 'e' flag.
3709 2020-05-27  Bruno Haible  <bruno@clisp.org>
3711         Don't assume that UNICODE is not defined.
3712         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
3713         differently if the application defines the macro UNICODE.
3714         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
3715         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
3716         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
3717         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
3718         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
3720 2020-05-27  Bruno Haible  <bruno@clisp.org>
3722         Improve pattern for defining _WIN32_WINNT.
3723         Newer versions of the Windows API may not only add, but also remove API
3724         functions. Therefore, when the user is e.g. building for Windows 10, we
3725         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
3726         use of APIs that were present in Windows 8 but removed in Windows 10.
3727         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
3728         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
3729         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
3730         * lib/sethostname.c (_WIN32_WINNT): Likewise.
3731         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
3733 2020-05-27  Bruno Haible  <bruno@clisp.org>
3735         javacomp: Make more robust in multithreaded applications.
3736         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
3737         * modules/javacomp (Depends-on): Add fopen-gnu.
3739 2020-05-27  Bruno Haible  <bruno@clisp.org>
3741         mountlist: Make more robust in multithreaded applications.
3742         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
3743         to fopen.
3744         * modules/mountlist (Depends-on): Add fopen-gnu.
3746 2020-05-27  Bruno Haible  <bruno@clisp.org>
3748         sethostname: Make more robust in multithreaded applications.
3749         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
3750         * modules/sethostname (Depends-on): Add fopen-gnu.
3752 2020-05-27  Bruno Haible  <bruno@clisp.org>
3754         readutmp: Make more robust in multithreaded applications.
3755         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
3756         * modules/readutmp (Depends-on): Add fopen-gnu.
3758 2020-05-27  Bruno Haible  <bruno@clisp.org>
3760         getpass: Make more robust in multithreaded applications.
3761         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
3762         * modules/getpass (Depends-on): Add fopen-gnu.
3764 2020-05-27  Bruno Haible  <bruno@clisp.org>
3766         getloadavg: Make more robust in multithreaded applications.
3767         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
3768         * modules/getloadavg (Depends-on): Add fopen-gnu.
3770 2020-05-27  Bruno Haible  <bruno@clisp.org>
3772         exclude: Make more robust in multithreaded applications.
3773         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
3774         * modules/exclude (Depends-on): Add fopen-gnu.
3776 2020-05-27  Bruno Haible  <bruno@clisp.org>
3778         bitset: Make more robust in multithreaded applications.
3779         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
3780         'e' flag to fopen.
3781         * modules/bitset (Depends-on): Add fopen-gnu.
3783 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3785         read-file: add RF_SENSITIVE flag
3786         * lib/read-file.h (RF_SENSITIVE): New define.
3787         * lib/read-file.c (fread_file, read_file): Take into account of
3788         RF_SENSITIVE flag.
3789         * modules/read-file (Depends-on): Add explicit_bzero.
3790         This adds an alternative behavior of those functions to explicitly
3791         clear the internal memory block when it becomes unused.  This is
3792         useful for reading sensitive information from a file.
3794 2020-05-27  Daiki Ueno  <ueno@gnu.org>
3796         read-file: add flags to modify reading behavior
3797         * lib/read-file.h (RF_BINARY): New define.
3798         (fread_file, read_file): Take FLAGS argument.
3799         (read_binary_file): Remove.
3800         * lib/read-file.c (internal_read_file): Merge into ...
3801         (read_file): ... here.
3802         * modules/read-file-tests (Files): Add "tests/macros.h".
3803         * tests/test-read-file.c (main): Refactor using ASSERT macro.
3804         * NEWS: Mention this change.
3806 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
3808         doc/gnulib-intro.texi: add missing "to" in sentence
3809         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
3810         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
3811         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
3813 2020-05-26  Bruno Haible  <bruno@clisp.org>
3815         count-one-bits: Fix MSVC specific code.
3816         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3817         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
3818         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
3819         using GCC.
3820         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
3821         (__popcnt64): In 32-bit mode, define as an inline function.
3822         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
3824 2020-05-26  Bruno Haible  <bruno@clisp.org>
3826         argz: Avoid name clashes through argz.h.
3827         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3828         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
3829         * lib/argz.h: Don't use __ prefixed identifiers.
3830         (const): Remove definition.
3831         (argz_next): Remove inline definitions.
3833 2020-05-26  Daiki Ueno  <ueno@gnu.org>
3835         read-file: make use of fopen-gnu
3836         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
3837         (read_binary_file): Likewise.
3838         * modules/read-file (Depends-on): Add fopen-gnu.
3840 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
3842         getentropy, getrandom: new modules
3843         * MODULES.html.sh (func_all_modules):
3844         * lib/unistd.in.h (getentropy, getrandom):
3845         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
3846         * modules/unistd (unistd.h):
3847         Add support for getentropy, getrandom.
3848         * doc/glibc-functions/getentropy.texi (getentropy):
3849         * doc/glibc-functions/getrandom.texi (getrandom):
3850         These are now fixed on some platforms.
3851         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
3852         * m4/getentropy.m4, m4/getrandom.m4:
3853         * modules/getentropy, modules/getentropy-tests:
3854         * modules/getrandom, modules/getrandom-tests:
3855         * tests/test-getentropy.c, tests/test-getrandom.c:
3856         New files.
3858 2020-05-25  Bruno Haible  <bruno@clisp.org>
3860         Add missing C99 dependencies.
3861         Reported by Paul Smith <psmith@gnu.org> in
3862         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
3863         * modules/assert (Depends-on): Add c99.
3864         * modules/filenamecat-lgpl (Depends-on): Likewise.
3865         * modules/libc-config (Depends-on): Likewise.
3866         * modules/mktime (Depends-on): Likewise.
3867         * modules/random_r (Depends-on): Likewise.
3868         * modules/regex (Depends-on): Likewise.
3869         * modules/scratch_buffer (Depends-on): Likewise.
3870         * modules/timespec-add (Depends-on): Likewise.
3871         * modules/timespec-sub (Depends-on): Likewise.
3872         * modules/verify (Depends-on): Likewise.
3874 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
3876         explicit_bzero-tests: pacify -Wmissing-declarations
3877         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
3878         Now static.
3880 2020-05-24  Bruno Haible  <bruno@clisp.org>
3882         fopen-gnu: Add tests.
3883         * tests/test-fopen-gnu.c: New file.
3884         * modules/fopen-gnu-tests: New file.
3886         fopen-gnu: New module.
3887         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
3888         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
3889         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
3890         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
3891         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
3892         * modules/fopen-gnu: New file.
3893         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
3895 2020-05-24  Bruno Haible  <bruno@clisp.org>
3897         open, openat: Really support O_CLOEXEC.
3898         * lib/open.c (open): When have_cloexec is still undecided, do pass a
3899         O_CLOEXEC flag to orig_open.
3900         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
3901         pass a O_CLOEXEC flag to orig_openat.
3902         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
3903         * modules/open-tests (Depends-on): Add fcntl.
3904         * modules/openat-tests (Depends-on): Likewise.
3905         * modules/fcntl-safer-tests (Depends-on): Likewise.
3907 2020-05-24  Bruno Haible  <bruno@clisp.org>
3909         fopen: Fix the trailing slash workaround.
3910         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
3911         write access. Pass the right flags to open().
3912         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
3914 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3916         assure: new macro ‘affirm’
3917         * lib/assure.h: Include verify.h.
3918         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
3919         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
3920         and commentary by Bruno Haible in:
3921         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
3922         * modules/assure (Depends-on:): Add verify.
3924 2020-05-23  Bruno Haible  <bruno@clisp.org>
3926         calloc-gnu: Make test work in non-flat address spaces.
3927         Uses code by Paul Eggert.
3928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
3929         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
3931 2020-05-23  Bruno Haible  <bruno@clisp.org>
3933         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
3934         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
3935         AC_RUN_IFELSE invocations.
3937 2020-05-23  Bruno Haible  <bruno@clisp.org>
3939         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
3940         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
3941         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
3942         don't have it.
3943         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
3944         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
3945         don't have it.
3946         * lib/isnanf-nolibm.h (__has_builtin): New macro.
3947         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3948         it.
3949         * lib/isnanl-nolibm.h (__has_builtin): New macro.
3950         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3951         it.
3952         * lib/math.in.h (__has_builtin): New macro.
3953         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
3954         it.
3955         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
3956         it.
3957         (isnan): Don't use the builtins on clang versions that don't have
3958         __builtin_isnanf and __builtin_isnanl.
3960 2020-05-23  Bruno Haible  <bruno@clisp.org>
3962         calloc-gnu: Avoid wrong configure results with clang.
3963         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
3964         'volatile', to defeat compiler optimizations.
3966 2020-05-23  Bruno Haible  <bruno@clisp.org>
3968         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
3969         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
3970         'long double' values by reference, with values taken from a statically
3971         allocated array.
3973 2020-05-23  Bruno Haible  <bruno@clisp.org>
3975         findprog-in: Ignore directories.
3976         Reported by Frederick Eaton via Dmitry Goncharov in
3977         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
3978         * lib/findprog-in.c (find_in_given_path): When the file found is a
3979         directory, set errno to EACCES and, during a PATH search, continue
3980         searching.
3981         * modules/findprog-in (Depends-on): Add sys_stat, stat.
3983 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3985         verify: document ‘assume’ better
3986         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
3988 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
3990         gendocs: Clarify licenses for templates.
3991         * doc/gendocs_template: Add a GNU All-Permissive license notice
3992         and bump Parent-Version.
3993         * doc/gendocs_template_min: Add a GNU All-Permissive license
3994         notice and copy the explanatory comment about the license notice
3995         at the bottom from gendocs_template.
3997 2020-05-21  Bruno Haible  <bruno@clisp.org>
3999         group-member: Relicense under LGPLv2+.
4000         Jim Meyering's approval is in
4001         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
4002         Paul Eggert's approval is in
4003         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
4004         Eric Blake's approval is in
4005         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
4006         * modules/group-member (License): Change to LGPLv2+.
4008 2020-05-21  Bruno Haible  <bruno@clisp.org>
4010         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
4011         Reported by Tim Rühsen in
4012         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4013         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
4015 2020-05-21  Bruno Haible  <bruno@clisp.org>
4017         regex: Avoid wrong configure results with "clang -fsanitize=leak".
4018         Reported by Tim Rühsen in
4019         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4020         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
4021         before returning with status 0.
4023 2020-05-21  Bruno Haible  <bruno@clisp.org>
4025         glob: Avoid wrong configure results with "clang -fsanitize=leak".
4026         Reported by Tim Rühsen in
4027         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4028         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
4030 2020-05-21  Bruno Haible  <bruno@clisp.org>
4032         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
4033         Reported by Tim Rühsen in
4034         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
4035         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
4036         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
4037         respectively.
4039 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
4041         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
4042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
4044 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
4046         ftoastr: fix ifndef typo
4047         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
4049 2020-05-19  Bruno Haible  <bruno@clisp.org>
4051         havelib: Tweak documentation.
4052         * doc/havelib.texi (Searching for Libraries): Fix typo.
4054 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4056         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
4057         This was needed earlier because modules had to import the main script,
4058         but that is no longer true.  Rename the script so that it is
4059         consistent with all other scripts in gnulib and uses hyphens.
4060         * build-aux/vcs_to_changelog.py: Rename to...
4061         * build-aux/vcs-to-changelog.py: ... this.
4062         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
4063         * modules/vcs-to-changelog: Likewise.
4065 2020-05-17  Bruno Haible  <bruno@clisp.org>
4067         Clarify intended usage of the license file modules.
4068         Reported by Asher Gordon <AsDaGo@posteo.net> in
4069         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
4070         * doc/licenses-texi.texi (License Texinfo sources): Mention the
4071         GNU AGPL. Explain the intended usage of the modules.
4072         * modules/fdl (Notice): Discourage use as a module.
4073         * modules/fdl-1.3 (Notice): Likewise.
4075 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
4077         hash: add hash_xinsert
4078         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
4080 2020-05-16  Bruno Haible  <bruno@clisp.org>
4082         findprog-lgpl: Fix link error (existing since 2008-09-02).
4083         * modules/findprog-lgpl (Makefile.am): Arrange to compile
4084         findprog-lgpl.c, not findprog.c.
4085         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
4086         XNMALLOC.
4088 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
4090         c-stack: pacify -Wunused-result when DEBUG
4091         Problem reported by Marc Nieper-Wißkirchen in:
4092         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
4093         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
4094         Explicitly ignore write failures.
4096 2020-05-13  Jim Meyering  <meyering@fb.com>
4098         announce-gen: improve a comment
4099         * build-aux/announce-gen: Improve comment.
4101 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
4103         xalloc: pacify -Wanalyzer-possible-null-argument
4104         Problem reported for GCC 10.1.0 by Bruno Haible in:
4105         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
4106         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
4107         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
4108         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
4110 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4112         careadlinkat: fix GCC 10 workaround
4113         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4114         Massage the code so that it’s closer to what it was before
4115         the GCC 10.1.0 workaround was introduced.  This fixes
4116         a loop when !buffer and the bug workaround is in effect.
4117         Remove unnecessary casts.  Defend in a different way
4118         against (buffer && !buffer_size), by adding at least 1
4119         to buf_size each time through the loop.
4121 2020-05-10  Bruno Haible  <bruno@clisp.org>
4123         doc: Mark HP-UX as unsupported.
4124         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
4126 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
4128         careadlinkat: limit GCC workaround
4129         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
4130         10.1.0 and later, since the workaround is pretty bad and the GCC
4131         bug should get fixed.
4133 2020-05-10  Bruno Haible  <bruno@clisp.org>
4135         havelib: Enhance documentation.
4136         * doc/havelib.texi (Searching for Libraries): Mention the bad
4137         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
4139 2020-05-10  Bruno Haible  <bruno@clisp.org>
4141         attribute: Clarify list of attributes.
4142         * lib/attribute.h: Reorder the list of attributes, and group them by
4143         purpose.
4145 2020-05-10  Bruno Haible  <bruno@clisp.org>
4147         string: Fix compilation error in C++ mode.
4148         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
4149         _GL_WARN_ON_USE.
4150         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
4151         instead of _GL_WARN_ON_USE.
4153 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
4155         announce-gen: add support for dist-lzip
4156         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
4158 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4160         manywarnings: port to GCC 10.1
4161         * build-aux/gcc-warning.spec:
4162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
4163         Add GCC 10.1.0 warnings.
4165         careadlinkat: pacify -Wreturn-local-addr
4166         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
4167         Pacify gcc 10’s -Wreturn-local-addr option.
4168         Simplify some of the later code.
4170 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4172         attribute: remove ATTRIBUTE_DEPRECATED
4173         * lib/attribute.h: Improve recently-added comments, mostly
4174         by shortening them (use active voice, etc.).
4175         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
4176         Problem reported by Bruno Haible in:
4177         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
4179 2020-05-09  Bruno Haible  <bruno@clisp.org>
4181         attribute: Add comments.
4182         * lib/attribute.h: Document each macro.
4184 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
4186         bitset: use the attribute module
4187         * modules/bitset: Depend on 'attribute'.
4188         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
4189         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
4190         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
4191         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
4193 2020-05-09  Bruno Haible  <bruno@clisp.org>
4195         c-stack: Fix warning when DEBUG is enabled.
4196         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4197         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
4198         * lib/c-stack.c: Include <stdio.h>.
4200 2020-05-09  Bruno Haible  <bruno@clisp.org>
4202         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
4203         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
4204         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4205         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4206         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4207         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4208         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4209         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4210         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4211         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
4212         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4213         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4214         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4216 2020-05-09  Bruno Haible  <bruno@clisp.org>
4218         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
4219         Reported by Akim Demaille in
4220         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
4221         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
4222         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4223         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
4225 2020-05-09  Bruno Haible  <bruno@clisp.org>
4227         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
4228         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
4229         that usually comes from m4/gnulib-common.m4.
4230         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4232 2020-05-09  Bruno Haible  <bruno@clisp.org>
4234         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
4235         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
4236         that usually comes from m4/gnulib-common.m4.
4237         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4238         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4239         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4241 2020-05-09  Bruno Haible  <bruno@clisp.org>
4243         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
4244         * lib/uchar.in.h (char16_t): Define as macro if
4245         GNULIB_OVERRIDES_CHAR16_T.
4246         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
4247         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
4248         (gl_UCHAR_H): Invoke them.
4249         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
4250         GNULIB_OVERRIDES_CHAR32_T.
4251         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
4252         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
4253         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
4254         GNULIB_OVERRIDES_CHAR32_T.
4256 2020-05-09  Bruno Haible  <bruno@clisp.org>
4258         Macro tweaks.
4259         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
4260         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
4262 2020-05-08  Bruno Haible  <bruno@clisp.org>
4264         c32rtomb: Avoid compilation failure on Haiku.
4265         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
4266         inline definitions.
4267         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
4269 2020-05-08  Bruno Haible  <bruno@clisp.org>
4271         mbrtoc32: Avoid compilation failure on Haiku.
4272         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
4273         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
4274         AC_CHECK_FUNCS_ONCE.
4275         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
4277 2020-05-08  Bruno Haible  <bruno@clisp.org>
4279         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
4280         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
4282 2020-05-08  Bruno Haible  <bruno@clisp.org>
4284         list: Update documentation.
4285         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4286         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
4287         * doc/containers.texi (Container data types): Document the new list
4288         operations and their complexity.
4290 2020-05-08  Bruno Haible  <bruno@clisp.org>
4292         ignore-value tests: Use module 'attribute'.
4293         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
4294         * tests/test-ignore-value.c: Include attribute.h.
4295         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
4296         * modules/ignore-value-tests (Depends-on): Add attribute.
4298 2020-05-08  Bruno Haible  <bruno@clisp.org>
4300         uniname/uniname: Use module 'attribute'.
4301         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
4302         * lib/uniname/uninames.h: Regenerated.
4303         * lib/uniname/uniname.c: Include attribute.h.
4304         * modules/uniname/uniname (Depends-on): Add attribute.
4306 2020-05-08  Bruno Haible  <bruno@clisp.org>
4308         c32rtomb: Use module 'attribute'.
4309         * lib/c32rtomb.c: Include attribute.h.
4310         (FALLTHROUGH): Remove macro.
4311         * modules/c32rtomb (Depends-on): Add attribute.
4313 2020-05-08  Bruno Haible  <bruno@clisp.org>
4315         xsize: Use module 'attribute'.
4316         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
4317         * modules/xsize (Depends-on): Add attribute.
4319 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
4321         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
4323         * lib/attribute.h: Minor style fixes.
4325         Fix version-etc glitch on OpenIndiana
4326         Problem reported by Mats Erik Andersson in:
4327         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
4328         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
4329         that now clashes with gnulib-common.h.  All uses changed.
4331 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4333         attribute: new module
4334         This simplifies use of GCC and C2X attributes like ‘deprecated’.
4335         * MODULES.html.sh: Add attribute.
4336         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
4337         * doc/gnulib.texi (Particular Modules): Add Attributes.
4338         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
4339         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
4340         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
4341         * lib/vasnprintf.c:
4342         Include attribute.h, and let it define FALLTHROUGH.
4343         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
4344         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
4345         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
4346         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
4347         This is a copy since Gawk doesn’t use Gnulib.
4348         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
4349         is incompatible with gl_COMMON_BODY’s.  All uses changed.
4350         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
4351         Keep the existing FALLTHROUGH definition since Glibc might use it,
4352         and it does no harm to Gnulib’s FALLTHROUGH.
4353         * lib/fts_.h, lib/inttostr.h:
4354         (__GNUC_PREREQ): Remove; no longer needed.
4355         (__attribute_warn_unused_result__): Remove.  All uses
4356         replaced by _GL_ATTRIBUTE_NODISCARD.
4357         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
4358         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
4359         __attribute__ ((__warn_unused_result__)), for forward
4360         compatibility to C2X.
4361         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
4362         _GL_ATTRIBUTE_NODISCARD.
4363         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
4364         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
4365         replaced by gl_COMMON_BODY’s implementation, which has a
4366         slightly different signature.
4367         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
4368         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
4369         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
4370         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
4371         No doubt all uses should be replaced, at some point.
4372         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
4373         (_Noreturn): Use it.
4374         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
4375         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
4376         (_GL_ATTRIBUTE_COLD)
4377         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
4378         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
4379         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
4380         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
4381         (_GL_ATTRIBUTE_MAYBE_UNUSED)
4382         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
4383         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
4384         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
4385         (_GL_ATTRIBUTE_RETURNS_NONNULL)
4386         (_GL_ATTRIBUTE_SENTINEL): New macros.
4387         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
4388         * modules/fnmatch, modules/freopen-safer, modules/fts:
4389         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
4390         * modules/quotearg, modules/savewd:
4391         * modules/unistdio/u16-u16-vasnprintf:
4392         * modules/unistdio/u16-vasnprintf:
4393         * modules/unistdio/u32-u32-vasnprintf:
4394         * modules/unistdio/u32-vasnprintf:
4395         * modules/unistdio/u8-u8-vasnprintf:
4396         * modules/unistdio/u8-vasnprintf:
4397         * modules/unistdio/ulc-vasnprintf:
4398         * modules/unistr/u8-uctomb, modules/vasnprintf:
4399         (Depends-on:): Add attribute module.
4401 2020-05-03  Bruno Haible  <bruno@clisp.org>
4403         bison: Fix today's commit.
4404         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
4406 2020-05-03  Bruno Haible  <bruno@clisp.org>
4408         list-c++: Add get_first, get_last, set_first, set_last operations.
4409         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
4410         set_first, set_last.
4411         * lib/gl_list.h: Tweak comments.
4413 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
4415         bison: rely on bison's %require to check a version requirement
4416         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
4417         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
4418         enough of not.
4419         So far it is the only know Yacc tool that supports '%require'.
4420         Other yaccs will actually even choke on seeing the -o option after the
4421         input file name.
4422         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
4424 2020-05-02  Bruno Haible  <bruno@clisp.org>
4426         list: Add get_first, get_last, set_first, set_last operations.
4427         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
4428         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
4429         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
4431 2020-05-02  Bruno Haible  <bruno@clisp.org>
4433         list: Remove redundant code for remove_first and remove_last operations.
4434         * lib/gl_list.h (struct gl_list_implementation): Remove fields
4435         remove_first, remove_last.
4436         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
4437         * lib/gl_array_list.c: Revert last change.
4438         * lib/gl_carray_list.c: Likewise.
4439         * lib/gl_anylinked_list2.h: Likewise.
4440         * lib/gl_linked_list.c: Likewise.
4441         * lib/gl_linkedhash_list.c: Likewise.
4442         * lib/gl_anytree_list2.h: Likewise.
4443         * lib/gl_avltree_list.c: Likewise.
4444         * lib/gl_avltreehash_list.c: Likewise.
4445         * lib/gl_rbtree_list.c: Likewise.
4446         * lib/gl_rbtreehash_list.c: Likewise.
4447         * lib/gl_sublist.c: Likewise.
4449 2020-05-02  Bruno Haible  <bruno@clisp.org>
4451         bison-i18n: Add support for cross-compilation.
4452         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
4453         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
4454         via Akim Demaille <akim@lrde.epita.fr>.
4455         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
4456         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
4457         Don't use bison's --print-localedir option when cross-compiling.
4458         Also, fix an error message and a comment.
4460 2020-05-01  Bruno Haible  <bruno@clisp.org>
4462         list: Add remove_first and remove_last operations.
4463         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
4464         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
4465         * lib/gl_list.h (struct gl_list_implementation): Add fields
4466         remove_first, remove_last.
4467         (gl_list_remove_first, gl_list_remove_last): New functions.
4468         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
4469         functions, based on gl_array_remove_at.
4470         (gl_array_list_implementation): Implement the new operations.
4471         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
4472         New functions, based on gl_carray_remove_at.
4473         (gl_carray_list_implementation): Implement the new operations.
4474         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
4475         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
4476         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
4477         new operations.
4478         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
4479         Likewise.
4480         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
4481         New functions, based on gl_tree_remove_at.
4482         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
4483         new operations.
4484         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4485         Likewise.
4486         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
4487         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
4488         Likewise.
4489         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
4490         New functions, based on gl_sublist_remove_at.
4491         (gl_sublist_list_implementation): Implement the new operations.
4492         * lib/gl_list.hh (class gl_List): Add methods remove_first,
4493         remove_last.
4494         * tests/test-array_list.c (main): Test also gl_list_remove_first and
4495         gl_list_remove_last.
4496         * tests/test-avltree_list.c (main): Likewise.
4497         * tests/test-avltreehash_list.c (main): Likewise.
4498         * tests/test-carray_list.c (main): Likewise.
4499         * tests/test-linked_list.c (main): Likewise.
4500         * tests/test-linkedhash_list.c (main): Likewise.
4501         * tests/test-rbtree_list.c (main): Likewise.
4502         * tests/test-rbtreehash_list.c (main): Likewise.
4504 2020-05-01  Bruno Haible  <bruno@clisp.org>
4506         parse-datetime: Fix a build failure with an older bison version.
4507         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
4508         parse-datetime.tab.c if a suitable version of bison was not found.
4510 2020-05-01  Bruno Haible  <bruno@clisp.org>
4512         bison: New module.
4513         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
4514         m4/parse-datetime.m4.
4515         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
4516         * modules/bison: New file.
4517         * modules/parse-datetime (Files): Remove m4/bison.m4.
4518         (Depends-on): Add bison.
4520 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
4522         Update users.txt.
4523         * users.txt: Add poke.
4525 2020-04-28  Bruno Haible  <bruno@clisp.org>
4527         posix_spawn_file_actions_addfchdir tests: Enhance test.
4528         * tests/test-posix_spawn5.c: Include findprog.h.
4529         (test): New function, extracted from main.
4530         (main): Invoke it. Also, invoke it with a program name such as
4531         "bin/pwd".
4532         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
4533         findprog.
4535 2020-04-28  Bruno Haible  <bruno@clisp.org>
4537         posix_spawn_file_actions_addchdir tests: Enhance test.
4538         * tests/test-posix_spawn4.c: Include findprog.h.
4539         (test): New function, extracted from main.
4540         (main): Invoke it. Also, invoke it with a program name such as
4541         "bin/pwd".
4542         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
4543         findprog.
4545 2020-04-28  Bruno Haible  <bruno@clisp.org>
4547         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
4548         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
4549         access elements of the wrong union member.
4551 2020-04-27  Bruno Haible  <bruno@clisp.org>
4553         getdate: Remove deprecated module.
4554         * modules/getdate: Remove file.
4555         * doc/getdate.texi: Remove file.
4556         * lib/getdate.h: Remove file.
4557         * NEWS: Mention the removal.
4559 2020-04-27  Bruno Haible  <bruno@clisp.org>
4561         realloc: Remove deprecated module.
4562         * modules/realloc: Remove file.
4563         * NEWS: Mention the removal.
4565 2020-04-27  Bruno Haible  <bruno@clisp.org>
4567         calloc: Remove deprecated module.
4568         * modules/calloc: Remove file.
4569         * NEWS: Mention the removal.
4571 2020-04-27  Bruno Haible  <bruno@clisp.org>
4573         malloc: Remove deprecated module.
4574         * modules/malloc: Remove file.
4575         * NEWS: Mention the removal.
4577 2020-04-27  Bruno Haible  <bruno@clisp.org>
4579         fnmatch-posix: Remove deprecated module.
4580         * modules/fnmatch-posix: Remove file.
4581         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
4582         * NEWS: Mention the removal.
4584 2020-04-27  Bruno Haible  <bruno@clisp.org>
4586         pipe: Remove deprecated module.
4587         * modules/pipe: Remove file.
4588         * lib/pipe.h: Remove file.
4589         * NEWS: Mention the removal.
4591 2020-04-27  Bruno Haible  <bruno@clisp.org>
4593         getopt: Remove deprecated module.
4594         * modules/getopt: Remove file.
4595         * NEWS: Mention the removal.
4597 2020-04-27  Bruno Haible  <bruno@clisp.org>
4599         remove-dest-slash: Remove deprecated module.
4600         * modules/rename-dest-slash: Remove file.
4601         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
4602         Update.
4603         * NEWS: Mention the removal.
4605 2020-04-27  Bruno Haible  <bruno@clisp.org>
4607         unictype/bidicategory-*: Remove deprecated modules.
4608         * modules/unictype/bidicategory-all: Remove file.
4609         * modules/unictype/bidicategory-byname: Remove file.
4610         * modules/unictype/bidicategory-name: Remove file.
4611         * modules/unictype/bidicategory-of: Remove file.
4612         * modules/unictype/bidicategory-test: Remove file.
4613         * MODULES.html.sh (Unicode string functions): Update.
4614         * NEWS: Mention the removals.
4616 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
4618         Tune fts for FTS_LOGICAL+FTS_NOSTAT
4619         From a suggestion by Askar Safin in:
4620         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
4621         * lib/fts.c (fts_build): If file types are known, optimize
4622         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
4623         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
4624         non-directories.
4626 2020-04-19  Bruno Haible  <bruno@clisp.org>
4628         vasnprintf: Add support for printing wide characters using escapes.
4629         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
4630         (wctomb_fallback): New function.
4631         (local_wctomb): New function.
4632         (local_wcrtomb): New function or macro.
4633         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
4634         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
4635         %lc.
4637 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
4639         fts: remove NOSTAT_LEAF_OPTIMIZATION
4640         It caused ‘find’ and ‘du’ to dump core, and it was useful
4641         only for obsolescent Linux filesystems anyway.  Problem reported in:
4642         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
4643         Quite possibly there is still a serious underlying fts bug with
4644         tight-loop-check and mutating file systems, but if so this patch
4645         should cause the bug to be triggered less often.
4646         * lib/fts.c (enum leaf_optimization): Remove
4647         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
4648         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
4649         (leaf_optimization): Remove special cases for ReiserFS and XFS.
4650         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
4651         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
4652         Remove.  All uses removed.
4654 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4656         explicit_bzero: Improve code style.
4657         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
4659 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4661         explicit_bzero: On native Windows, use SecureZeroMemory().
4662         * lib/explicit_bzero.c: Include <windows.h>.
4663         (explicit_bzero): On native Windows, use SecureZeroMemory.
4665 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4667         explicit_bzero: Use memset_s() when available.
4668         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
4669         (explicit_bzero): Use memset_s when available.
4670         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
4672 2020-04-13  Bastien Roucariès  <rouca@debian.org>
4674         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
4675         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
4676         free() that overwrite the memory with canaries.
4678 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
4680         bootstrap: recommend git submodule update --init
4681         Reported by Bruno Haible.
4682         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
4683         * build-aux/bootstrap: recommand "git submodule update --init"
4684         rather than "git submodule init".
4686 2020-04-12  Bruno Haible  <bruno@clisp.org>
4688         explicit_bzero: Add tests.
4689         * tests/test-explicit_bzero.c: New file.
4690         * modules/explicit_bzero-tests: New file.
4692 2020-04-11  Bruno Haible  <bruno@clisp.org>
4694         explicit_bzero: Relicense under LGPLv2+.
4695         Approved by Paul Eggert.
4696         * modules/explicit_bzero (License): Change to LGPLv2+.
4698 2020-04-10  Bruno Haible  <bruno@clisp.org>
4700         findprog, relocatable-prog: Ignore directories during PATH search.
4701         Reported by Frederick Eaton via Dmitry Goncharov in
4702         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
4704         * lib/findprog.c (find_in_path): When the file found in a PATH element
4705         is a directory, continue searching.
4706         * modules/findprog (Depends-on): Add sys_stat, stat.
4707         * modules/findprog-lgpl (Depends-on): Likewise.
4709         * lib/progreloc.c (maybe_executable): When the file found in a PATH
4710         element is a directory, continue searching.
4711         * lib/relocwrapper.c: Update comments.
4712         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
4713         (configure.ac-early): New section.
4715 2020-04-10  Bruno Haible  <bruno@clisp.org>
4717         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
4718         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4719         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
4720         * MODULES.html.sh: In a git-less tarball, use the date of the first
4721         ChangeLog entry.
4723 2020-04-04  Bruno Haible  <bruno@clisp.org>
4725         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
4726         * m4/gettext.m4: Fix comments regarding the gettext library.
4727         * m4/intl-thread-locale.m4: Likewise.
4728         * m4/intlmacosx.m4: Likewise.
4729         * m4/lcmessage.m4: Likewise.
4730         * m4/nls.m4: Likewise.
4731         * m4/po.m4: Likewise.
4732         * m4/progtest.m4: Likewise.
4734 2020-04-04  Jim Meyering  <meyering@fb.com>
4736         maint: remove a stray inter-word space in a 6x-repeated comment
4737         Induce the changes by running this:
4738           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
4739         * build-aux/announce-gen: Change "by  perl" to "by perl".
4740         * build-aux/gitlog-to-changelog: Likewise.
4741         * build-aux/prefix-gnulib-mk: Likewise.
4742         * build-aux/update-copyright: Likewise.
4743         * build-aux/useless-if-before-free: Likewise.
4744         * tests/test-update-copyright.sh: Likewise.
4746 2020-03-28  Bruno Haible  <bruno@clisp.org>
4748         Use module 'filename' instead of module 'dosname'.
4750         * lib/at-func.c: Include filename.h instead of dosname.h.
4751         * lib/unlinkat.c: Likewise.
4752         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
4753         * modules/areadlinkat-with-size (Depends-on): Likewise.
4754         * modules/faccessat (Depends-on): Likewise.
4755         * modules/fchmodat (Depends-on): Likewise.
4756         * modules/fchownat (Depends-on): Likewise.
4757         * modules/fstatat (Depends-on): Likewise.
4758         * modules/mkdirat (Depends-on): Likewise.
4759         * modules/mkfifoat (Depends-on): Likewise.
4760         * modules/readlinkat (Depends-on): Likewise.
4761         * modules/selinux-at (Depends-on): Likewise.
4762         * modules/symlinkat (Depends-on): Likewise.
4763         * modules/unlinkat (Depends-on): Likewise.
4764         * modules/utimensat (Depends-on): Likewise.
4766         * lib/at-func2.c: Include filename.h instead of dosname.h.
4767         * modules/linkat (Depends-on): Add filename. Remove dosname.
4768         * modules/renameatu (Depends-on): Likewise.
4770         * lib/canonicalize.c: Include filename.h instead of dosname.h.
4771         * lib/canonicalize-lgpl.c: Likewise.
4772         * modules/canonicalize (Depends-on): Add filename.
4773         * modules/canonicalize-lgpl (Depends-on): Likewise.
4775         * lib/dirname.h: Include filename.h instead of dosname.h.
4776         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
4778         * lib/fchdir.c: Include filename.h instead of dosname.h.
4779         * modules/fchdir (Depends-on): Add filename. Remove dosname.
4781         * lib/openat.c: Include filename.h instead of dosname.h.
4782         * modules/openat (Depends-on): Add filename. Remove dosname.
4784         * lib/rmdir.c: Include filename.h instead of dosname.h.
4785         * modules/rmdir (Depends-on): Add filename. Remove dosname.
4787         * lib/savewd.c: Include filename.h instead of dosname.h.
4788         * modules/savewd (Depends-on): Add filename. Remove dosname.
4790         * lib/unlink.c: Include filename.h instead of dosname.h.
4791         * modules/unlink (Depends-on): Add filename. Remove dosname.
4793         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
4794         * lib/relocwrapper.c: Update comments.
4796         * modules/lstat (Depends-on): Remove dosname.
4798 2020-03-28  Bruno Haible  <bruno@clisp.org>
4800         dosname: Redirect to 'filename'.
4801         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
4802         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
4803         * lib/dosname.h: Remove all definitions. Just include filename.h.
4804         * modules/dosname (Status, Notice): Mark as deprecated.
4805         (Depends-on): Add 'filename'.
4807 2020-03-28  Bruno Haible  <bruno@clisp.org>
4809         dosname: Change IS_RELATIVE_FILE_NAME.
4810         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
4811         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
4812         * NEWS: Mention the change.
4814 2020-03-28  Bruno Haible  <bruno@clisp.org>
4816         filename: Copy some definitions from module 'dosname'.
4817         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
4818         (HAS_DEVICE): Document macro.
4819         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
4820         (IS_ABSOLUTE_FILE_NAME): Consider
4821         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
4822         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
4823         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
4824         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
4825         IS_PATH_WITH_DIR.
4826         (DllMain): Update.
4827         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
4828         IS_PATH_WITH_DIR.
4829         (find_executable): Update.
4830         * NEWS: Document the deprecations.
4832 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
4834         getopt-posix: port __GETOPT_PREFIX to macOS
4835         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
4836         Define to work around a problem with asm on macOS (Bug#40205).
4838 2020-03-22  Bruno Haible  <bruno@clisp.org>
4840         MODULES.html.sh: Add support for reproducible builds.
4841         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
4842         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
4843         * MODULES.html.sh: Print the date of the last gnulib commit, not the
4844         current date.
4846 2020-03-22  Bruno Haible  <bruno@clisp.org>
4848         Several modules: Depend on stat.
4849         * modules/acl-permissions (Depends-on): Add stat.
4850         * modules/canonicalize (Depends-on): Likewise.
4851         * modules/file-has-acl (Depends-on): Likewise.
4852         * modules/fstat (Depends-on): Likewise.
4853         * modules/fstatat (Depends-on): Likewise.
4854         * modules/glob (Depends-on): Likewise.
4855         * modules/javacomp (Depends-on): Likewise.
4856         * modules/linkat (Depends-on): Likewise.
4857         * modules/mkdir (Depends-on): Likewise.
4858         * modules/pt_chown (Depends-on): Likewise.
4859         * modules/ptsname_r (Depends-on): Likewise.
4860         * modules/readlinkat (Depends-on): Likewise.
4861         * modules/rename (Depends-on): Likewise.
4862         * modules/renameatu (Depends-on): Likewise.
4863         * modules/tmpdir (Depends-on): Likewise.
4864         * modules/utimens (Depends-on): Likewise.
4865         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
4866         * modules/same (Depends-on): Remove stat.
4868 2020-03-22  Bruno Haible  <bruno@clisp.org>
4870         acl-permissions: Improve autoconf macro.
4871         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
4872         more reliably.
4874 2020-03-22  Bruno Haible  <bruno@clisp.org>
4876         file-has-acl: Fix module description.
4877         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
4878         (Depends-on): Depend on acl-permissions unconditionally.
4880 2020-03-21  Bruno Haible  <bruno@clisp.org>
4882         unlink: Ensure errno also on native Windows.
4883         * modules/unlink (Depends-on): Add malloc-posix.
4885 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4887         unlink: fix malloc errno typo
4888         Problem reported by Tim Rühsen in:
4889         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
4890         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
4892 2020-03-16  Bruno Haible  <bruno@clisp.org>
4894         *printf-posix: Fix m4 error (regression from 2020-03-08).
4895         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
4896         brackets in AC_COMPILE_IFELSE invocation.
4898 2020-03-08  Bruno Haible  <bruno@clisp.org>
4900         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
4901         * modules/crypto/af_alg (Depends-on): Add fstat.
4902         * modules/renameatu (Depends-on): Likewise.
4903         * modules/same (Depends-on): Likewise.
4904         * modules/term-style-control (Depends-on): Likewise.
4906 2020-03-08  Bruno Haible  <bruno@clisp.org>
4908         *printf-posix: Document why it's overridden on some glibc systems.
4909         Reported by Adrian Bunk <bunk@stusta.de> in
4910         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
4911         * doc/posix-functions/*printf.texi: Document the problem with the %n
4912         directive on some glibc systems.
4913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
4914         the cross-compilation guesses accordingly.
4916 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4918         open, openat: port to (O_RDWR | O_RDONLY) != 0
4919         Potential portability problem reported by Dan Gohman in:
4920         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
4921         * lib/open.c (open):
4922         * lib/openat.c (rpl_openat):
4923         Don’t assume O_RDONLY is disjoint from O_RDWR.
4925 2020-03-07  Bruno Haible  <bruno@clisp.org>
4927         openat: Fix theoretically possible issue on GNU/Hurd.
4928         Reported by Dan Gohman <sunfish@mozilla.com> in
4929         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
4930         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
4931         ignore the bits that are also set in O_RDONLY.
4933 2020-02-24  Bruno Haible  <bruno@clisp.org>
4935         getloadavg: Don't use /usr/local when cross-compiling on AIX.
4936         Reported by Jens Rehsack <sno@netbsd.org> in
4937         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
4938         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
4939         cross-compiling.
4941 2020-02-24  Bruno Haible  <bruno@clisp.org>
4943         fcntl: Add witness of gnulib override.
4944         Reported by Jens Rehsack <sno@netbsd.org> in
4945         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
4946         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
4947         macros.
4949 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
4951         Update users.txt.
4952         * users.txt: Add datamash, time.
4954 2020-02-23  Bruno Haible  <bruno@clisp.org>
4956         uni*/base: Use 'restrict'.
4957         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
4958         from lib/regex.h.
4959         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
4960         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
4961         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
4962         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
4963         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
4964         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
4965         '_UC_RESTRICT'.
4966         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
4967         u32_conv_to_encoding): Use '_UC_RESTRICT'.
4968         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
4969         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
4970         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4971         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4972         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
4973         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
4974         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
4975         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
4976         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
4977         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
4978         '_UC_RESTRICT'.
4979         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
4980         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
4981         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
4982         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
4983         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
4984         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
4985         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
4986         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
4988 2020-02-23  Bruno Haible  <bruno@clisp.org>
4990         glob, spawn: Use improved '_Restrict_' definition.
4991         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
4992         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
4994 2020-02-23  Bruno Haible  <bruno@clisp.org>
4996         crypto/gc: Use 'restrict'.
4997         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
4998         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
5000         crypto/hmac-*: Use 'restrict'.
5001         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
5002         'restrict'.
5003         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
5004         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
5005         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
5006         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
5008         crypto/sm3: Use 'restrict'.
5009         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
5010         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
5012         crypto/*-buffer: Use 'restrict'.
5013         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
5014         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
5016         crypto/sha512-buffer: Use 'restrict'.
5017         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
5018         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
5019         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
5021         crypto/sha256-buffer: Use 'restrict'.
5022         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
5023         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
5024         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
5026         crypto/sha1-buffer: Use 'restrict'.
5027         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
5028         'restrict'.
5029         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
5031         crypto/md5-buffer: Use 'restrict'.
5032         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
5033         'restrict'.
5034         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
5036         crypto/md4: Use 'restrict'.
5037         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
5038         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
5040         crypto/md2: Use 'restrict'.
5041         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
5042         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
5044         crypto/rijndael: Use 'restrict'.
5045         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
5046         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
5047         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
5049         crypto/arctwo: Use 'restrict'.
5050         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
5051         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
5053         crypto/arcfour: Use 'restrict'.
5054         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
5055         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
5057         careadlinkat: Use 'restrict'.
5058         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
5059         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
5060         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
5062         regex-quote: Use 'restrict'.
5063         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
5064         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
5066         system-quote: Use 'restrict'.
5067         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
5068         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
5070         sh-quote: Use 'restrict'.
5071         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
5072         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
5074         quotearg: Use 'restrict'.
5075         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
5076         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
5078         parse-datetime: Use 'restrict'.
5079         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
5080         'restrict'.
5081         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
5083         nstrftime: Use 'restrict'.
5084         * lib/strftime.h (nstrftime): Use 'restrict'.
5085         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
5087         mbstok_r: Use 'restrict'.
5088         * lib/string.in.h (mbstok_r): Use 'restrict'.
5090         xmemcoll: Use 'restrict'.
5091         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
5092         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
5094         memcoll: Use 'restrict'.
5095         * lib/memcoll.h (memcoll): Use 'restrict'.
5096         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
5098         vasnprintf: Use 'restrict'.
5099         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
5100         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
5102         c-vasnprintf: Use 'restrict'.
5103         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
5104         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
5106         c-vsnprintf: Use 'restrict'.
5107         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
5108         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
5110         c-snprintf: Use 'restrict'.
5111         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
5112         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
5114         astrxfrm: Use 'restrict'.
5115         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
5116         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
5118         amemxfrm: Use 'restrict'.
5119         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
5120         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
5122 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5124         fchmodat, lchmod: simplify
5125         It appears that we may have overengineered lchmod and fchmodat,
5126         in that the code was prepared for some hypothetical platforms but
5127         was so complicated that it was hard to understand.  I attempted to
5128         improve the situation by simplifying the code when this
5129         simplification should not hurt on real platforms; we can re-add
5130         complexity later to port to platforms I didn’t know about.
5131         * lib/fchmodat.c (fchmodat):
5132         * lib/lchmod.c (lchmod):
5133         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
5134         around the /proc code that needs it.
5135         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
5136         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
5137         Do not include <config.h> twice.
5138         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
5139         lchmod on any known hosts.
5140         (lchmod): Do not defer to fchmodat, so that the lchmod module
5141         need not depend on the fchmodat module (which is a circular
5142         dependency).  Do not use openat, since ‘open’ suffices.
5143         Coalesce calls to lchmod/chmod.
5144         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
5145         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
5146         * modules/lchmod (Depends-on, configure.ac):
5147         * modules/sys_stat (Depends-on):
5148         Do not worry about replacing lchmod, since that shouldn’t happen.
5149         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
5150         Do not worry about whether lchmod works on non-symlinks,
5151         since every known lchmod works on non-symlinks.
5152         * modules/lchmod (Depends-on):
5153         Remove circular dependency on fchmodat.
5155 2020-02-22  Bruno Haible  <bruno@clisp.org>
5157         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
5158         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
5159         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
5161 2020-02-22  Bruno Haible  <bruno@clisp.org>
5163         Use 'restrict' in all POSIX function declarations.
5164         * lib/iconv.in.h (iconv): Use 'restrict'.
5165         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
5166         * lib/monetary.in.h (strfmon_l): Likewise.
5167         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
5168         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
5169         pthread_mutex_timedlock, pthread_rwlock_init,
5170         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
5171         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
5172         * lib/search.in.h (tdelete): Likewise.
5173         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
5174         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
5175         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
5176         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
5177         Likewise.
5178         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
5179         strtoull): Likewise.
5180         * lib/string.in.h (strncat): Likewise.
5181         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
5182         recvfrom): Likewise.
5183         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
5184         * lib/time.in.h (strftime): Likewise.
5185         * lib/unistd.in.h (readlink, readlinkat): Likewise.
5186         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
5187         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
5188         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
5189         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
5190         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
5191         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
5192         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5193         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5194         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
5195         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
5196         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
5197         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5198         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5199         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5200         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
5201         other *_h.m4 files.
5202         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
5204 2020-02-22  Bruno Haible  <bruno@clisp.org>
5206         Update NEWS.
5207         * NEWS: Mention the last change.
5209 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
5211         chmodat, chownat: new modules
5212         These are split from fchmodat, fchownat.  GNU Emacs needs the
5213         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
5214         lchmodat.  Split the latter two into a new module chmodat.
5215         Similarly for fchownat.  This the same basic idea for why statat
5216         was split from fstatat on 2013-01-23.
5217         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
5218         Rename from FCHMODAT_INLINE.  All uses changed.
5219         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
5220         Rename from FCHOWNAT_INLINE.  All uses changed.
5221         * lib/openat.h:
5222         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
5223         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
5224         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
5225         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
5226         (configure.ac): Remove fchmodat module indicator.
5227         (Makefile.am): Omit chmodat.c.
5228         (Maintainer): Add self.
5229         * modules/fchownat: Similarly, but for chown.
5230         * tests/test-fchownat.c (BASE): Don't define if already defined.
5231         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
5233 2020-02-22  Bruno Haible  <bruno@clisp.org>
5235         users.txt: Add groff.
5236         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
5237         * users.txt: Add groff.
5239 2020-02-22  Bruno Haible  <bruno@clisp.org>
5241         gnulib-tool: Ensure copied files are writable.
5242         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
5243         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
5244         * gnulib-tool (func_ensure_writable): New function.
5245         (func_ln_s, func_hardlink, func_lookup_file, func_import,
5246         func_create_testdir, copy-file): Invoke it after copying a file.
5248 2020-02-22  Bruno Haible  <bruno@clisp.org>
5250         users.txt: Update.
5251         * users.txt: Update URLs to projects that have moved or switched to git.
5252         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
5253         over the summary view. Add gawk.
5255 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5257         largefile: remove _DARWIN_USE_64_BIT_INODE
5258         It’s not needed in currently-supported macOS versions, and was
5259         problematic anyway in MacOS X 10.5 which was the only version that
5260         could use it.  Problem reported by Peter Eisentraut in:
5261         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
5262         * m4/largefile.m4 (AC_SYS_LARGEFILE):
5263         Don’t define _DARWIN_USE_64_BIT_INODE.
5264         This syncs with Autoconf master.
5266         Add ‘extern "C"’ to count-one-bits.h etc.
5267         This ports these .h files to C++.
5268         Problem reported by Simon Marchi in:
5269         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
5270         * lib/count-leading-zeros.h, lib/count-one-bits.h:
5271         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
5273 2020-02-19  Bruno Haible  <bruno@clisp.org>
5275         uninorm/decompose-internal: Avoid "no previous prototype" warning.
5276         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5277         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
5278         * lib/array-mergesort.h: Accept an optional macro definition
5279         STATIC_FROMTO.
5280         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
5282 2020-02-16  Bruno Haible  <bruno@clisp.org>
5284         fchmodat: Make more future-proof.
5285         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
5286         NEED_FCHMODAT_NONSYMLINK_FIX.
5287         (gl_PREREQ_FCHMODAT): New macro.
5288         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
5289         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
5290         without lchmod function.
5291         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
5293 2020-02-16  Bruno Haible  <bruno@clisp.org>
5295         lchmod: Make more future-proof.
5296         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
5297         (gl_PREREQ_LCHMOD): New macro.
5298         * lib/lchmod.c (orig_lchmod): New function.
5299         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
5300         Return EOPNOTSUPP only on Linux and on platforms without lchmod
5301         function.
5302         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
5304         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
5305         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
5307 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
5309         xnanosleep: prefer pause, and get remaining time
5310         Problem reported by Vladimir Panteleev in:
5311         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
5312         * lib/xnanosleep.c: Include intprops.h, unistd.h.
5313         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
5314         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
5315         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
5316         * modules/xnanosleep (Depends-on): Add intprops, unistd.
5318 2020-02-16  Bruno Haible  <bruno@clisp.org>
5320         lchmod: Improve cross-compilation guess.
5321         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
5322         cross-compiling, guess depending on the platform.
5324 2020-02-16  Bruno Haible  <bruno@clisp.org>
5326         fstrcmp: Add API to clean up resources.
5327         Reported by Akim Demaille <akim@lrde.epita.fr> in
5328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
5329         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
5330         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
5332 2020-02-14  Bruno Haible  <bruno@clisp.org>
5334         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
5335         Reported by Christian Biesinger in
5336         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
5337         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
5338         corresponding module is not enabled.
5339         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
5340         prototype if the corresponding module is not enabled.
5342 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
5344         fchmodat, lchmod: port to buggy Linux filesystems
5345         Problem reported by Florian Weimer in:
5346         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
5347         * lib/fchmodat.c (fchmodat):
5348         * lib/lchmod.c (lchmod):
5349         Don’t assume that chmod on the O_PATH-opened fd will do
5350         the right thing on a symbolic link.
5351         * lib/fchmodat.c (fchmodat):
5352         Don’t attempt to special-case
5353         any flag value other than AT_SYMLINK_NOFOLLOW.
5355 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
5357         lchmod: pacify Coverity CID 1491216
5358         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
5359         not complain about unreachable code at the ‘struct stat st;’
5360         declaration.
5362 2020-02-10  Bruno Haible  <bruno@clisp.org>
5364         copysignf: Fix link error on HP-UX with cc.
5365         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
5366         HP-UX, set COPYSIGNF_LIBM to -lm.
5368 2020-02-10  Bruno Haible  <bruno@clisp.org>
5370         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
5371         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
5372         with $(LIB_SEMAPHORE).
5373         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
5374         with $(LIB_SEMAPHORE).
5376 2020-02-10  Bruno Haible  <bruno@clisp.org>
5378         ptsname_r-tests: Avoid unused function warning.
5379         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
5381 2020-02-08  Bruno Haible  <bruno@clisp.org>
5383         lchmod: Add tests.
5384         * tests/test-lchmod.c: New file.
5385         * modules/lchmod-tests: New file.
5387 2020-02-08  Bruno Haible  <bruno@clisp.org>
5389         lchmod: Ensure declaration on HP-UX.
5390         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
5391         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
5393 2020-02-08  Bruno Haible  <bruno@clisp.org>
5395         fchmodat: Strengthen tests.
5396         * tests/test-fchmodat.c (BASE): New macro.
5397         (main): Use it, to avoid conflicts with other unit tests. Verify that
5398         fchmodat changed the file permission bits.
5400 2020-02-08  Bruno Haible  <bruno@clisp.org>
5402         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
5403         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
5404         '#undef __need_system_sys_stat_h'.
5406 2020-02-08  Bruno Haible  <bruno@clisp.org>
5408         fchmodat: Improve cross-compilation guesses.
5409         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
5410         cross-compiling, guess depending on the platform.
5411         * doc/posix-functions/fchmodat.texi: Clarify.
5413 2020-02-08  Bruno Haible  <bruno@clisp.org>
5415         Fix compilation errors in a testdir created with --with-c++-tests.
5416         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
5417         since it does not work any more with g++ >= 4.4.
5419 2020-02-08  Bruno Haible  <bruno@clisp.org>
5421         doc: Update for glibc 2.31.
5422         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
5423         * doc/gnulib.texi: Include it.
5424         * doc/pastposix-functions/h_errno.texi: Update.
5425         * doc/posix-functions/*.texi: Likewise.
5427 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
5429         mountlist: consider smb3 file systems as remote
5430         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
5431         "smb3" as remote.
5433 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5435         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
5436         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
5437         they act like chmod on non-symlinks.
5438         * NEWS:
5439         * doc/glibc-functions/lchmod.texi (lchmod):
5440         * doc/posix-functions/fchmodat.texi (fchmodat):
5441         Mention this.
5442         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
5443         config.h, and undef it after including sys/stat.h the first time.
5444         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
5445         sys/stat.h a second time after defining orig_fchmodat.
5446         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
5447         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
5448         * lib/lchmod.c: New file.
5449         * lib/sys_stat.in.h (fchmodat, lchmod):
5450         Support replacing these functions.
5451         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
5452         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
5453         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
5454         Test that lchmod works on non-symlinks.
5455         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
5456         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
5457         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
5458         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
5459         * modules/lchmod (Files): Add lib/lchmod.c.
5460         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
5461         (configure.ac): Compile lchmod.c if needed.
5462         (lib_SOURCES): Add lchmod.c.
5463         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
5464         and REPLACE_LCHMOD.
5465         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
5466         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
5468 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
5470         mountlist: Consider AFS filesystems as remote
5471         df --local relies on the ME_REMOTE macro to determine if a given
5472         mount entry should be considered "local".  There is special logic
5473         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
5474         kernel's kafs module or AuriStorFS is treated as a local mount.
5475         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
5476         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
5478 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5480         Port _Noreturn to older Clang
5481         Problem reported by Jeffery Walton in:
5482         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
5483         * lib/_Noreturn.h (_Noreturn):
5484         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5485         Assume _Noreturn works in Clang 3.5 and later.
5486         It is documented to work in Clang 3.5:
5487         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
5488         and is not documented in Clang 3.4:
5489         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
5490         Apple sets __clang_version__ to a different value, so use
5491         __apple_build_version__ there.  See:
5492         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
5494 2020-02-04  Pádraig Brady  <P@draigBrady.com>
5496         test-canonicalize: avoid unused function warning
5497         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
5498         with the same guard as that used to protect usage of the null_ptr
5499         function, so that one doesn't get a -Wunused warning.
5500         * tests/test-canonicalize-lgpl.c: Likewise.
5502 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
5504         libc-config: port to Apple’s Clang variant
5505         * lib/libc-config.h (__glibc_clang_prereq):
5506         Port to Apple’s Clang variant, which uses a different
5507         numbering scheme for __clang_major__.
5509 2020-02-02  Bruno Haible  <bruno@clisp.org>
5511         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
5512         * doc/containers.texi: Document these new modules.
5514 2020-02-02  Bruno Haible  <bruno@clisp.org>
5516         omap-c++: Add tests.
5517         * tests/test-omap-c++.cc: New file.
5518         * modules/omap-c++-tests: New file.
5520         omap-c++: New module.
5521         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
5522         * modules/omap-c++: New file.
5524 2020-02-02  Bruno Haible  <bruno@clisp.org>
5526         map-c++: Add tests.
5527         * tests/test-map-c++.cc: New file.
5528         * modules/map-c++-tests: New file.
5530         map-c++: New module.
5531         * lib/gl_map.hh: New file, based on lib/gl_map.h.
5532         * modules/map-c++: New file.
5534 2020-02-02  Bruno Haible  <bruno@clisp.org>
5536         oset-c++: Add tests.
5537         * tests/test-oset-c++.cc: New file.
5538         * modules/oset-c++-tests: New file.
5540         oset-c++: New module.
5541         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
5542         * modules/oset-c++: New file.
5544 2020-02-02  Bruno Haible  <bruno@clisp.org>
5546         set-c++: Add tests.
5547         * tests/test-set-c++.cc: New file.
5548         * modules/set-c++-tests: New file.
5550         set-c++: New module.
5551         * lib/gl_set.hh: New file, based on lib/gl_set.h.
5552         * modules/set-c++: New file.
5554 2020-02-02  Bruno Haible  <bruno@clisp.org>
5556         list-c++: Add tests.
5557         * tests/test-list-c++.cc: New file.
5558         * modules/list-c++-tests: New file.
5560         list-c++: New module.
5561         * lib/gl_list.hh: New file, based on lib/gl_list.h.
5562         * modules/list-c++: New file.
5564 2020-02-02  Bruno Haible  <bruno@clisp.org>
5566         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
5567         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
5568         '_Noreturn'.
5569         * lib/sigpipe-die.h (sigpipe_die): Likewise.
5571 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5573         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
5574         On x86_64 with glibc-2.30, gcc 9.2 is giving:
5575           error: argument 2 value '18446744073709551615'
5576           exceeds maximum object size 9223372036854775807
5577           [-Werror=alloc-size-larger-than=]
5578         The details of this restriction are discussed at:
5579         https://stackoverflow.com/q/42574890/4421
5580         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
5582 2020-02-02  Pádraig Brady  <P@draigBrady.com>
5584         sysctl.h: avoid including on glibc
5585         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
5586         * lib/physmem.c: Likewise.
5588 2020-02-02  Bruno Haible  <bruno@clisp.org>
5590         list, set, oset, map, omap: Avoid imperative voice in documentation.
5591         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
5592         in the specification of functions.
5593         * lib/gl_set.h: Likewise.
5594         * lib/gl_oset.h: Likewise.
5595         * lib/gl_map.h: Likewise.
5596         * lib/gl_omap.h: Likewise.
5597         * lib/gl_*.h: Likewise.
5599 2020-02-01  Bruno Haible  <bruno@clisp.org>
5601         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
5602         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
5603         does.
5605 2020-01-29  Bruno Haible  <bruno@clisp.org>
5607         array-map, hash-map, linkedhash-map: Fix module description.
5608         * modules/array-map (Description): Fix description.
5609         * modules/hash-map (Description): Likewise.
5610         * modules/linkedhash-map (Description): Likewise.
5612 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
5614         dfa: do not depend on isblank
5615         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
5616         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
5617         * modules/dfa (Depends-on): Remove isblank.
5618         * modules/isblank: Add a module indicator, for lib/dfa.c.
5620         dfa: do not assume 64-bit int
5621         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
5622         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
5623         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
5624         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
5625         Fall back to 32-bit words.
5626         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
5627         of 4 64-bit args.  All uses changed.
5629 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5631         regex: remove limits-h dependency
5632         * modules/regex (Depends-on): Remove limits-h, since the
5633         code no longer depends on ULONG_WIDTH already being defined.
5635         regex: port to non-GCC pre-IEC-60559
5636         Problem reported by Arnold Robbins in:
5637         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
5638         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
5640 2020-01-25  Bruno Haible  <bruno@clisp.org>
5642         c32isxdigit: Add tests.
5643         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
5644         * tests/test-c32isxdigit.sh: New file.
5645         * modules/c32isxdigit-tests: New file.
5647         c32isxdigit: New module.
5648         * lib/c32isxdigit.c: New file.
5649         * modules/c32isxdigit: New file.
5650         * doc/posix-functions/iswxdigit.texi: Mention the new module.
5652 2020-01-25  Bruno Haible  <bruno@clisp.org>
5654         c32isupper: Add tests.
5655         * tests/test-c32isupper.c: New file.
5656         * tests/test-c32isupper.sh: New file.
5657         * modules/c32isupper-tests: New file.
5659         c32isupper: New module.
5660         * lib/c32isupper.c: New file.
5661         * modules/c32isupper: New file.
5662         * doc/posix-functions/iswupper.texi: Mention the new module.
5664 2020-01-25  Bruno Haible  <bruno@clisp.org>
5666         c32isspace: Add tests.
5667         * tests/test-c32isspace.c: New file.
5668         * tests/test-c32isspace.sh: New file.
5669         * modules/c32isspace-tests: New file.
5671         c32isspace: New module.
5672         * lib/c32isspace.c: New file.
5673         * modules/c32isspace: New file.
5674         * doc/posix-functions/iswspace.texi: Mention the new module.
5676 2020-01-25  Bruno Haible  <bruno@clisp.org>
5678         c32ispunct: Add tests.
5679         * tests/test-c32ispunct.c: New file.
5680         * tests/test-c32ispunct.sh: New file.
5681         * modules/c32ispunct-tests: New file.
5683         c32ispunct: New module.
5684         * lib/c32ispunct.c: New file.
5685         * modules/c32ispunct: New file.
5686         * doc/posix-functions/iswpunct.texi: Mention the new module.
5688 2020-01-25  Bruno Haible  <bruno@clisp.org>
5690         c32isprint: Add tests.
5691         * tests/test-c32isprint.c: New file.
5692         * tests/test-c32isprint.sh: New file.
5693         * modules/c32isprint-tests: New file.
5695         c32isprint: New module.
5696         * lib/c32isprint.c: New file.
5697         * modules/c32isprint: New file.
5698         * doc/posix-functions/iswprint.texi: Mention the new module.
5700 2020-01-25  Bruno Haible  <bruno@clisp.org>
5702         c32islower: Add tests.
5703         * tests/test-c32islower.c: New file.
5704         * tests/test-c32islower.sh: New file.
5705         * modules/c32islower-tests: New file.
5707         c32islower: New module.
5708         * lib/c32islower.c: New file.
5709         * modules/c32islower: New file.
5710         * doc/posix-functions/iswlower.texi: Mention the new module.
5712 2020-01-25  Bruno Haible  <bruno@clisp.org>
5714         c32isgraph: Add tests.
5715         * tests/test-c32isgraph.c: New file.
5716         * tests/test-c32isgraph.sh: New file.
5717         * modules/c32isgraph-tests: New file.
5719         c32isgraph: New module.
5720         * lib/c32isgraph.c: New file.
5721         * modules/c32isgraph: New file.
5722         * doc/posix-functions/iswgraph.texi: Mention the new module.
5724 2020-01-25  Bruno Haible  <bruno@clisp.org>
5726         c32isdigit: Add tests.
5727         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
5728         * tests/test-c32isdigit.sh: New file.
5729         * modules/c32isdigit-tests: New file.
5731         c32isdigit: New module.
5732         * lib/c32isdigit.c: New file.
5733         * modules/c32isdigit: New file.
5734         * doc/posix-functions/iswdigit.texi: Mention the new module.
5736 2020-01-25  Bruno Haible  <bruno@clisp.org>
5738         c32iscntrl: Add tests.
5739         * tests/test-c32iscntrl.c: New file.
5740         * tests/test-c32iscntrl.sh: New file.
5741         * modules/c32iscntrl-tests: New file.
5743         c32iscntrl: New module.
5744         * lib/c32iscntrl.c: New file.
5745         * modules/c32iscntrl: New file.
5746         * doc/posix-functions/iswcntrl.texi: Mention the new module.
5748 2020-01-25  Bruno Haible  <bruno@clisp.org>
5750         c32isblank: Add tests.
5751         * tests/test-c32isblank.c: New file.
5752         * tests/test-c32isblank.sh: New file.
5753         * modules/c32isblank-tests: New file.
5755         c32isblank: New module.
5756         * lib/c32isblank.c: New file.
5757         * modules/c32isblank: New file.
5758         * doc/posix-functions/iswblank.texi: Mention the new module.
5760 2020-01-25  Bruno Haible  <bruno@clisp.org>
5762         c32isalpha: Add tests.
5763         * tests/test-c32isalpha.c: New file.
5764         * tests/test-c32isalpha.sh: New file.
5765         * modules/c32isalpha-tests: New file.
5767         c32isalpha: New module.
5768         * lib/c32isalpha.c: New file.
5769         * modules/c32isalpha: New file.
5770         * doc/posix-functions/iswalpha.texi: Mention the new module.
5772 2020-01-25  Bruno Haible  <bruno@clisp.org>
5774         c32isalnum: Add tests.
5775         * tests/test-c32isalnum.c: New file.
5776         * tests/test-c32isalnum.sh: New file.
5777         * modules/c32isalnum-tests: New file.
5779         c32isalnum: New module.
5780         * lib/c32isalnum.c: New file.
5781         * lib/c32is-impl.h: New file.
5782         * modules/c32isalnum: New file.
5783         * doc/posix-functions/iswalnum.texi: Mention the new module.
5785 2020-01-25  Bruno Haible  <bruno@clisp.org>
5787         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
5788         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
5789         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
5790         c32isupper, c32isxdigit): New declarations.
5791         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
5792         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5793         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5794         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5795         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5796         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
5797         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
5798         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
5799         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
5800         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
5801         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
5802         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
5803         c32ispunct, c32isspace, c32isupper, c32isxdigit.
5805 2020-01-25  Bruno Haible  <bruno@clisp.org>
5807         mbchar, wctype: Use the corrected iswxdigit function.
5808         * modules/mbchar (Depends-on): Add iswxdigit.
5809         * modules/wctype (Depends-on): Likewise.
5811         iswxdigit: Add tests.
5812         * tests/test-iswxdigit.c: New file.
5813         * tests/test-iswxdigit.sh: New file.
5814         * modules/iswxdigit-tests: New file.
5816         iswxdigit: New module.
5817         * m4/iswxdigit.m4: New file.
5818         * lib/wctype.in.h (iswxdigit): Potentially override.
5819         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
5820         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
5821         * lib/iswxdigit.c: New file.
5822         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
5823         REPLACE_ISWXDIGIT.
5824         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
5825         REPLACE_ISWXDIGIT.
5826         * modules/iswxdigit: New file.
5827         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
5829 2020-01-25  Bruno Haible  <bruno@clisp.org>
5831         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
5832         Reported by John Donoghue <john.david.donoghue@gmail.com> in
5833         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
5834         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
5835         off_t on mingw, invoke _lseeki64 instead of lseek.
5837 2020-01-25  Bruno Haible  <bruno@clisp.org>
5839         iswdigit tests: Avoid test failure on Cygwin.
5840         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
5841         byte sequence, return 0.
5843         iswdigit: Fix test failure on native Windows.
5844         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
5846         mbchar, wctype: Use the corrected iswdigit function.
5847         * modules/mbchar (Depends-on): Add iswdigit.
5848         * modules/wctype (Depends-on): Likewise.
5850         iswdigit: Add tests.
5851         * tests/test-iswdigit.c: New file.
5852         * tests/test-iswdigit.sh: New file.
5853         * modules/iswdigit-tests: New file.
5855         iswdigit: New module.
5856         * m4/iswdigit.m4: New file.
5857         * lib/wctype.in.h (iswdigit): Potentially override.
5858         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
5859         * lib/iswdigit.c: New file.
5860         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
5861         REPLACE_ISWDIGIT.
5862         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
5863         REPLACE_ISWDIGIT.
5864         * modules/iswdigit: New file.
5865         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
5867 2020-01-25  Bruno Haible  <bruno@clisp.org>
5869         hard-locale tests: Make it easy to reuse the musl test.
5870         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
5871         * modules/hard-locale-tests (Files): Add it.
5872         (configure.ac): Invoke gl_MUSL_LIBC.
5874 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
5876         regex: port to Gawk on nonstandard platforms
5877         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
5878         This is useful for Gawk, which does not use the Gnulib stdlib-h
5879         module.  Problem reported by Arnold Robbins in:
5880         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
5882 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5884         regex: fix bug with >=16 subexpressions
5885         * lib/regex_internal.h (struct re_backref_cache_entry):
5886         Use bitset_word_t as the type of eps_reachable_subexps_map,
5887         instead of unsigned short int.  This fixes a bug I introduced
5888         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
5889         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
5890         Remove unused member 'unused'.
5892         regex: simplify definition of BITSET_WORD_BITS
5893         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
5894         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
5895         * lib/regex_internal.h (BITSET_WORD_BITS):
5896         * modules/regex (Depends-on): Add limits-h.
5897         Simplify now that we can use ULONG_WIDTH.
5899 2020-01-20  Bruno Haible  <bruno@clisp.org>
5901         mbrtoc32: Add note about FreeBSD 12.
5902         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
5903         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
5904         affected.
5906 2020-01-20  Bruno Haible  <bruno@clisp.org>
5908         unistr/u8-uctomb: Fix warning.
5909         Reported by Andreas Schwab <schwab@suse.de> in
5910         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
5911         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
5912         (u8_uctomb): Add FALLTHROUGH markers.
5914 2020-01-20  Bruno Haible  <bruno@clisp.org>
5916         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
5917         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
5918         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
5919         (glthread_once): Use it.
5921 2020-01-19  Bruno Haible  <bruno@clisp.org>
5923         threadlib: Disable use of weak symbols on FreeBSD 11.
5924         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5925         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
5926         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
5927         against a bug in FreeBSD 11.
5929 2020-01-19  Bruno Haible  <bruno@clisp.org>
5931         iconv_open: Improve z/OS support.
5932         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
5933         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
5934         Remove mapping for EUC-TW.
5936 2020-01-18  Bruno Haible  <bruno@clisp.org>
5938         Rename ~~gnulib.m4 to zzgnulib.m4.
5939         Suggested by Paul Eggert.
5940         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
5941         * gnulib-tool (func_get_filelist): Update.
5942         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5944 2020-01-18  Bruno Haible  <bruno@clisp.org>
5946         doc: Update license notices.
5947         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
5948         reference to a section or to a "file as part of this distribution".
5950 2020-01-18  Bruno Haible  <bruno@clisp.org>
5952         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
5953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
5954         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
5955         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
5956         AC_EGREP_CPP.
5958 2020-01-18  Bruno Haible  <bruno@clisp.org>
5960         Ensure Automake does not drop ~~gnulib.m4.
5961         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
5962         * m4/gnulib-common.m4 (gl_COMMON): Require it.
5964 2020-01-18  Bruno Haible  <bruno@clisp.org>
5966         Fix major regression from 2020-01-10.
5967         Reported by Paul Eggert in
5968         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
5969         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
5970         Don't AC_REQUIRE anything.
5971         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
5972         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
5973         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
5974         use ac_compile instead.
5975         (AC_CHECK_DECL): Remove override.
5976         * m4/~~gnulib.m4: New file.
5977         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
5978         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
5980 2020-01-17  Bruno Haible  <bruno@clisp.org>
5981             Paul Eggert  <eggert@cs.ucla.edu>
5983         glob: Fix use-after-free bug.
5984         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5985         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
5986         * lib/glob.c (__glob): Delay freeing dirname until after the use of
5987         end_name.
5989 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5991         vcs-to-changelog: Fix parsing of fndecl without args.
5992         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
5993         for empty arguments.
5995 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
5997         vcs-to-changelog: Add documentation.
5998         * doc/vcs-to-changelog.texi: New file.
5999         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
6000         section.
6002 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6004         vcs-to-changelog: Allow loading of custom quirks file.
6005         * build-aux/vcs_to_changelog.py: New commandline option -q.
6007 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6009         vcs-to-changelog: Fix formatting of ChangeLog output.
6010         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
6011         output.
6013 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6015         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
6016         Reported in
6017         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
6018         * build-aux/vcstocl/frontend_c.py: Remove shebang.
6020 2020-01-15  Simon Josefsson  <simon@josefsson.org>
6022         crypto/gc-pbkdf2: New module.
6023         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
6024         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
6025         * lib/gc-pbkdf2.c: New file.
6026         * lib/gc-pbkdf2-sha1.c: Use new interface.
6027         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
6028         * modules/crypto/gc-pbkdf2: New file.
6029         * modules/crypto/gc-pbkdf2-tests: New file.
6030         * tests/test-gc-pbkdf2.c: New file.
6032 2020-01-12  Bruno Haible  <bruno@clisp.org>
6034         c32stombs: Add tests.
6035         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
6036         * tests/test-c32stombs-1.sh: New file, based on
6037         tests/test-c32srtombs-1.sh.
6038         * tests/test-c32stombs-2.sh: New file, based on
6039         tests/test-c32srtombs-2.sh.
6040         * tests/test-c32stombs-3.sh: New file, based on
6041         tests/test-c32srtombs-3.sh.
6042         * tests/test-c32stombs-4.sh: New file, based on
6043         tests/test-c32srtombs-4.sh.
6044         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
6046         c32stombs: New module.
6047         * lib/uchar.in.h (c32stombs): New declaration.
6048         * lib/c32stombs.c: New file.
6049         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
6050         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
6051         * modules/c32stombs: New file.
6052         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
6053         * doc/posix-functions/wcstombs.texi: Mention the new module.
6055 2020-01-11  Jim Meyering  <meyering@fb.com>
6057         perl: require the "warnings" module
6058         * m4/perl.m4: Also "use warnings", so we reject the perl found
6059         on at least one IRIX 6.5 system. Reported by Bruno Haible in
6060         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
6062 2020-01-10  Bruno Haible  <bruno@clisp.org>
6064         Fix major regression from 2020-01-04.
6065         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
6066         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
6067         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
6068         AC_DEFUN_ONCE.
6069         (AC_CHECK_DECL): Invoke, not require, it.
6071 2020-01-10  Bruno Haible  <bruno@clisp.org>
6073         c32snrtombs: Add tests.
6074         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
6075         * tests/test-c32snrtombs-1.sh: New file, based on
6076         tests/test-wcsnrtombs1.sh.
6077         * tests/test-c32snrtombs-2.sh: New file, based on
6078         tests/test-wcsnrtombs2.sh.
6079         * tests/test-c32snrtombs-3.sh: New file, based on
6080         tests/test-wcsnrtombs3.sh.
6081         * tests/test-c32snrtombs-4.sh: New file, based on
6082         tests/test-wcsnrtombs4.sh.
6083         * modules/c32snrtombs-tests: New file, based on
6084         modules/wcsnrtombs-tests.
6086         c32snrtombs: New module.
6087         * lib/uchar.in.h (c32snrtombs): New declaration.
6088         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6089         INTERNAL_STATE, WCRTOMB.
6090         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6091         * lib/c32snrtombs.c: New file.
6092         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
6093         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
6094         * modules/c32snrtombs: New file.
6095         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
6096         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
6098 2020-01-09  Bruno Haible  <bruno@clisp.org>
6100         c32srtombs: Add tests.
6101         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
6102         * tests/test-c32srtombs-1.sh: New file, based on
6103         tests/test-wcsrtombs1.sh.
6104         * tests/test-c32srtombs-2.sh: New file, based on
6105         tests/test-wcsrtombs2.sh.
6106         * tests/test-c32srtombs-3.sh: New file, based on
6107         tests/test-wcsrtombs3.sh.
6108         * tests/test-c32srtombs-4.sh: New file, based on
6109         tests/test-wcsrtombs4.sh.
6110         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
6112         c32srtombs: New module.
6113         * lib/uchar.in.h (c32srtombs): New declaration.
6114         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
6115         INTERNAL_STATE, WCRTOMB.
6116         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
6117         * lib/c32srtombs.c: New file.
6118         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
6119         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
6120         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
6121         * modules/c32srtombs: New file.
6122         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
6123         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
6125 2020-01-08  Bruno Haible  <bruno@clisp.org>
6127         c32tob: Make consistent with mbrtoc32.
6128         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
6129         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
6130         use c32rtomb, not wctob.
6131         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
6132         (Depends-on): Add c32rtomb.
6133         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
6135 2020-01-08  Bruno Haible  <bruno@clisp.org>
6137         c32rtomb: Add tests.
6138         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
6139         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
6140         * tests/test-c32rtomb-w32.c: New file, based on
6141         tests/test-wcrtomb-w32.c.
6142         * tests/test-c32rtomb-w32-1.sh: New file, based on
6143         tests/test-wcrtomb-w32-1.sh.
6144         * tests/test-c32rtomb-w32-2.sh: New file, based on
6145         tests/test-wcrtomb-w32-2.sh.
6146         * tests/test-c32rtomb-w32-3.sh: New file, based on
6147         tests/test-wcrtomb-w32-3.sh.
6148         * tests/test-c32rtomb-w32-4.sh: New file, based on
6149         tests/test-wcrtomb-w32-4.sh.
6150         * tests/test-c32rtomb-w32-5.sh: New file, based on
6151         tests/test-wcrtomb-w32-5.sh.
6152         * tests/test-c32rtomb-w32-6.sh: New file, based on
6153         tests/test-wcrtomb-w32-6.sh.
6154         * tests/test-c32rtomb-w32-7.sh: New file, based on
6155         tests/test-wcrtomb-w32-7.sh.
6156         * modules/c32rtomb-tests: New file.
6158         c32rtomb: New module.
6159         * lib/uchar.in.h (c32rtomb): New declaration.
6160         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
6161         * m4/c32rtomb.m4: New file.
6162         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
6163         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
6164         REPLACE_C32RTOMB.
6165         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
6166         HAVE_C32RTOMB, REPLACE_C32RTOMB.
6167         * modules/c32rtomb: New file.
6168         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
6169         * doc/posix-functions/c32rtomb.texi: Document the new module.
6170         * doc/posix-functions/wcrtomb.texi: Mention the new module.
6172 2020-01-08  Bruno Haible  <bruno@clisp.org>
6174         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
6175         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
6176         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
6177         but is not working.
6178         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
6179         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
6180         differ, use the system's mbrtoc32, adding workarounds.
6181         * modules/mbrtoc32 (Depends-on): Add hard-locale.
6182         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
6183         Windows problem.
6184         * lib/btoc32.c: Include <stdio.h>, <string.h>.
6185         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
6186         use mbrtoc32, not btowc.
6187         * modules/btoc32 (Depends-on): Add mbrtoc32.
6188         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
6189         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
6190         * modules/mbsrtoc32s (Depends-on): Update conditions.
6191         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6192         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
6193         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
6194         * modules/mbsnrtoc32s (Depends-on): Update conditions.
6195         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
6197 2020-01-07  Bruno Haible  <bruno@clisp.org>
6199         wcrtomb: Make multithread-safe, except possibly on IRIX.
6200         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
6201         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
6202         WCRTOMB_RETVAL_BUG.
6203         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
6204         wctomb only on IRIX.
6206 2020-01-05  Jim Meyering  <meyering@fb.com>
6208         tests: skip thread-using tests when threading is disabled
6209         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
6210         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
6211         of those, so they are skipped in this case.
6212         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
6213         * tests/test-setlocale_null-mt-all.c (main): Likewise.
6214         * tests/test-setlocale_null-mt-one.c (main): Likewise.
6216 2020-01-05  Bruno Haible  <bruno@clisp.org>
6218         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
6219         Reported by Jim Meyering in
6220         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
6221         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
6222         (GNULIB_defined_ptsname_r): New macro.
6223         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
6224         (main): Disable the NULL argument test if canonicalize_file_name does
6225         not come from gnulib.
6226         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
6227         (main): Disable the NULL argument test if canonicalize_file_name does
6228         not come from gnulib.
6229         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
6230         (test_errors): Disable the NULL argument test if ptsname_r does not come
6231         from gnulib.
6233 2020-01-04  Jim Meyering  <meyering@fb.com>
6235         update-copyright: reenable its always-skipped test
6236         * tests/test-update-copyright.sh: Restore the "-pi" options removed
6237         on 2019-06-15. Without those, an internal preliminary test would
6238         fail, causing this test always to be skipped.
6239         Verify that the test is now run and passes via this:
6240           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
6242 2020-01-05  Bruno Haible  <bruno@clisp.org>
6244         mbstoc32s: Add tests.
6245         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
6246         * tests/test-mbstoc32s-1.sh: New file, based on
6247         tests/test-mbsrtoc32s-1.sh.
6248         * tests/test-mbstoc32s-2.sh: New file, based on
6249         tests/test-mbsrtoc32s-2.sh.
6250         * tests/test-mbstoc32s-3.sh: New file, based on
6251         tests/test-mbsrtoc32s-3.sh.
6252         * tests/test-mbstoc32s-4.sh: New file, based on
6253         tests/test-mbsrtoc32s-4.sh.
6254         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
6256         mbstoc32s: New module.
6257         * lib/uchar.in.h (mbstoc32s): New declaration.
6258         * lib/mbstoc32s.c: New file.
6259         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
6260         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
6261         * modules/mbstoc32s: New file.
6262         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
6263         * doc/posix-functions/mbstowcs.texi: Mention the new module.
6265 2020-01-05  Bruno Haible  <bruno@clisp.org>
6267         Tweak recently added tests.
6268         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
6269         * tests/test-mbsrtoc32s.c: Likewise.
6270         * tests/test-mbsnrtoc32s.c: Likewise.
6272 2020-01-04  Bruno Haible  <bruno@clisp.org>
6274         mbsnrtoc32s: Add tests.
6275         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
6276         * tests/test-mbsnrtoc32s-1.sh: New file, based on
6277         tests/test-mbsnrtowcs1.sh.
6278         * tests/test-mbsnrtoc32s-2.sh: New file, based on
6279         tests/test-mbsnrtowcs2.sh.
6280         * tests/test-mbsnrtoc32s-3.sh: New file, based on
6281         tests/test-mbsnrtowcs3.sh.
6282         * tests/test-mbsnrtoc32s-4.sh: New file, based on
6283         tests/test-mbsnrtowcs4.sh.
6284         * modules/mbsnrtoc32s-tests: New file, based on
6285         modules/mbsnrtowcs-tests.
6287         mbsnrtoc32s: New module.
6288         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
6289         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6290         INTERNAL_STATE, MBRTOWC.
6291         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6292         * lib/mbsnrtoc32s.c: New file.
6293         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
6294         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
6295         * modules/mbsnrtoc32s: New file.
6296         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
6297         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
6299 2020-01-04  Bruno Haible  <bruno@clisp.org>
6301         mbsrtoc32s tests: Enhance test.
6302         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
6303         test strings for UTF-8 and GB18030.
6305 2020-01-04  Bruno Haible  <bruno@clisp.org>
6307         mbsrtoc32s: Fix bug.
6308         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
6309         that SMALL_WCHAR_T is defined.
6311 2020-01-04  Bruno Haible  <bruno@clisp.org>
6313         mbsrtoc32s: Add tests.
6314         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
6315         * tests/test-mbsrtoc32s-1.sh: New file, based on
6316         tests/test-mbsrtowcs1.sh.
6317         * tests/test-mbsrtoc32s-2.sh: New file, based on
6318         tests/test-mbsrtowcs2.sh.
6319         * tests/test-mbsrtoc32s-3.sh: New file, based on
6320         tests/test-mbsrtowcs3.sh.
6321         * tests/test-mbsrtoc32s-4.sh: New file, based on
6322         tests/test-mbsrtowcs4.sh.
6323         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
6325         mbsrtoc32s: New module.
6326         * lib/uchar.in.h (mbsrtoc32s): New declaration.
6327         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
6328         INTERNAL_STATE, MBRTOWC.
6329         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
6330         * lib/mbsrtoc32s.c: New file.
6331         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
6332         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
6333         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
6334         * modules/mbsrtoc32s: New file.
6335         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
6336         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
6338 2020-01-04  Bruno Haible  <bruno@clisp.org>
6340         mbrtowc, mbrtoc32: Tighten dependendies.
6341         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
6342         REPLACE_MBSTATE_T is 1.
6343         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6344         REPLACE_MBSTATE_T is 0.
6345         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
6346         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
6347         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
6348         REPLACE_MBSTATE_T is 0.
6350 2020-01-04  Bruno Haible  <bruno@clisp.org>
6352         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
6353         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
6354         * modules/uchar (Files): Add stdint.m4.
6355         (Makefile.am): Substitute SMALL_WCHAR_T.
6356         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
6358 2020-01-04  Bruno Haible  <bruno@clisp.org>
6360         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
6361         Reported by Martin Storsjö <martin@martin.st> in
6362         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
6363         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
6364         New macros.
6365         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
6367 2020-01-04  Bruno Haible  <bruno@clisp.org>
6369         btoc32: Add tests.
6370         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
6371         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
6372         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
6373         * modules/btoc32-tests: New file, based on modules/btowc-tests.
6375         btoc32: New module.
6376         * lib/uchar.in.h (btoc32): New declaration.
6377         * lib/btoc32.c: New file.
6378         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
6379         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
6380         * modules/btoc32: New file.
6381         * tests/test-uchar-c++.cc: Test the signature of btoc32.
6382         * doc/posix-functions/btowc.texi: Mention the new module.
6384 2020-01-03  Bruno Haible  <bruno@clisp.org>
6386         uchar tests: Avoid compilation error with HP cc.
6387         * tests/test-uchar.c: Disable a test when HP cc is in use.
6389 2020-01-03  Bruno Haible  <bruno@clisp.org>
6391         mbrtoc32: Add tests.
6392         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
6393         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
6394         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
6395         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
6396         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
6397         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
6398         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
6399         * tests/test-mbrtoc32-w32-1.sh: New file, based on
6400         tests/test-mbrtowc-w32-1.sh.
6401         * tests/test-mbrtoc32-w32-2.sh: New file, based on
6402         tests/test-mbrtowc-w32-2.sh.
6403         * tests/test-mbrtoc32-w32-3.sh: New file, based on
6404         tests/test-mbrtowc-w32-3.sh.
6405         * tests/test-mbrtoc32-w32-4.sh: New file, based on
6406         tests/test-mbrtowc-w32-4.sh.
6407         * tests/test-mbrtoc32-w32-5.sh: New file, based on
6408         tests/test-mbrtowc-w32-5.sh.
6409         * tests/test-mbrtoc32-w32-6.sh: New file, based on
6410         tests/test-mbrtowc-w32-6.sh.
6411         * tests/test-mbrtoc32-w32-7.sh: New file, based on
6412         tests/test-mbrtowc-w32-7.sh.
6413         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
6415         mbrtoc32: New module.
6416         * lib/uchar.in.h (mbrtoc32): New declaration.
6417         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
6418         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
6419         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
6420         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
6421         REPLACE_MBRTOC32.
6422         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
6423         HAVE_MBRTOC32, REPLACE_MBRTOC32.
6424         * modules/mbrtoc32: New file, based on modules/mbrtowc.
6425         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
6426         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
6427         $(LIB_MBRTOWC).
6428         * doc/posix-functions/mbrtoc32.texi: Document the new module.
6429         * doc/posix-functions/mbrtowc.texi: Mention the new module.
6431 2020-01-03  Bruno Haible  <bruno@clisp.org>
6433         mbrtowc: Refactor to share code with mbrtoc32.
6434         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
6435         * lib/mbrtowc-impl-utf8.h: Likewise.
6436         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
6437         mbrtowc-impl.h.
6438         * modules/mbrtowc (Files): Add the new files.
6440 2020-01-03  Jim Meyering  <meyering@fb.com>
6442         doc: fix time.texi wording
6443         * doc/posix-headers/time.texi (time.h): Typo.
6445 2020-01-03  Bruno Haible  <bruno@clisp.org>
6447         mbrtowc: Refactor locale charset dispatching.
6448         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
6449         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
6450         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
6451         localcharset.h, streq.h.
6452         (enc_t): Remove type.
6453         (locale_enc): Remove function.
6454         (cached_locale_enc): Remove variable.
6455         (locale_enc_cached): Remove function.
6456         (mbrtowc): Invoke locale_encoding_classification.
6457         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
6458         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
6459         lc-charset-dispatch.c.
6460         (configure.ac): Arrange to compile lc-charset-dispatch.c.
6462 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6464         doc: mention 32-bit time_t issue
6465         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6466         * doc/posix-headers/time.texi (time.h): Mention 2038.
6468 2020-01-03  Bruno Haible  <bruno@clisp.org>
6470         mbrtowc: Ensure the mbtowc_lock is unique.
6471         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
6472         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
6473         lib/setlocale_null.c.
6474         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
6475         glthread/lock.h. Include mbtowc-lock.h.
6476         (mbtowc_lock): Remove declaration.
6477         (mbrtowc): Use mbtowc_with_lock.
6478         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
6479         threads.h. Set LIB_MBRTOWC.
6480         (gl_PREREQ_MBTOWC_LOCK): New macro.
6481         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
6482         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
6483         (Depends-on): Remove lock.
6484         (configure.ac): Arrange to compile mbtowc-lock.c.
6485         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
6486         * modules/acl (Link): Likewise.
6487         * modules/argmatch (Link): Likewise.
6488         * modules/backup-rename (Link): Likewise.
6489         * modules/backupfile (Link): Likewise.
6490         * modules/closein (Link): Likewise.
6491         * modules/closeout (Link): Likewise.
6492         * modules/copy-file (Link): Likewise.
6493         * modules/csharpcomp (Link): Likewise.
6494         * modules/csharpexec (Link): Likewise.
6495         * modules/dfa (Link): Likewise.
6496         * modules/exclude (Link): Likewise.
6497         * modules/fnmatch (Link): Likewise.
6498         * modules/fnmatch-gnu (Link): Likewise.
6499         * modules/fnmatch-posix (Link): Likewise.
6500         * modules/glob (Link): Likewise.
6501         * modules/human (Link): Likewise.
6502         * modules/javacomp (Link): Likewise.
6503         * modules/javaexec (Link): Likewise.
6504         * modules/javaversion (Link): Likewise.
6505         * modules/mbfile (Link): Likewise.
6506         * modules/mbiter (Link): Likewise.
6507         * modules/mbmemcasecmp (Link): Likewise.
6508         * modules/mbmemcasecoll (Link): Likewise.
6509         * modules/mbrlen (Link): Likewise.
6510         * modules/mbscasecmp (Link): Likewise.
6511         * modules/mbscasestr (Link): Likewise.
6512         * modules/mbschr (Link): Likewise.
6513         * modules/mbscspn (Link): Likewise.
6514         * modules/mbsinit (Link): Likewise.
6515         * modules/mbslen (Link): Likewise.
6516         * modules/mbsncasecmp (Link): Likewise.
6517         * modules/mbsnlen (Link): Likewise.
6518         * modules/mbsnrtowcs (Link): Likewise.
6519         * modules/mbspbrk (Link): Likewise.
6520         * modules/mbspcasecmp (Link): Likewise.
6521         * modules/mbsrchr (Link): Likewise.
6522         * modules/mbsrtowcs (Link): Likewise.
6523         * modules/mbssep (Link): Likewise.
6524         * modules/mbsspn (Link): Likewise.
6525         * modules/mbsstr (Link): Likewise.
6526         * modules/mbstok_r (Link): Likewise.
6527         * modules/mbswidth (Link): Likewise.
6528         * modules/mbuiter (Link): Likewise.
6529         * modules/mkdir-p (Link): Likewise.
6530         * modules/propername (Link): Likewise.
6531         * modules/quote (Link): Likewise.
6532         * modules/quotearg (Link): Likewise.
6533         * modules/quotearg-simple (Link): Likewise.
6534         * modules/regex-quote (Link): Likewise.
6535         * modules/rpmatch (Link): Likewise.
6536         * modules/sh-quote (Link): Likewise.
6537         * modules/system-quote (Link): Likewise.
6538         * modules/trim (Link): Likewise.
6539         * modules/unistdio/ulc-asnprintf (Link): Likewise.
6540         * modules/unistdio/ulc-fprintf (Link): Likewise.
6541         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
6542         * modules/unistdio/ulc-vasprintf (Link): Likewise.
6543         * modules/unistdio/ulc-vfprintf (Link): Likewise.
6544         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
6545         * modules/unistdio/ulc-vsprintf (Link): Likewise.
6546         * modules/xfreopen (Link): Likewise.
6547         * modules/xmemcoll (Link): Likewise.
6548         * modules/yesno (Link): Likewise.
6549         * modules/regex (Link): Add $(LIB_MBRTOWC).
6550         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
6551         instead of $(LIBTHREAD).
6552         * modules/argmatch-tests (Makefile.am): Likewise.
6553         * modules/closein-tests (Makefile.am): Likewise.
6554         * modules/copy-file-tests (Makefile.am): Likewise.
6555         * modules/dfa-tests (Makefile.am): Likewise.
6556         * modules/fnmatch-tests (Makefile.am): Likewise.
6557         * modules/glob-tests (Makefile.am): Likewise.
6558         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
6559         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
6560         * modules/mbrtowc-tests (Makefile.am): Likewise.
6561         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6562         * modules/mbscasestr-tests (Makefile.am): Likewise.
6563         * modules/mbschr-tests (Makefile.am): Likewise.
6564         * modules/mbscspn-tests (Makefile.am): Likewise.
6565         * modules/mbsinit-tests (Makefile.am): Likewise.
6566         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6567         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
6568         * modules/mbspbrk-tests (Makefile.am): Likewise.
6569         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6570         * modules/mbsrchr-tests (Makefile.am): Likewise.
6571         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
6572         * modules/mbsspn-tests (Makefile.am): Likewise.
6573         * modules/mbsstr-tests (Makefile.am): Likewise.
6574         * modules/quotearg-simple-tests (Makefile.am): Likewise.
6575         * modules/quotearg-tests (Makefile.am): Likewise.
6576         * modules/readtokens-tests (Makefile.am): Likewise.
6577         * modules/sh-quote-tests (Makefile.am): Likewise.
6578         * modules/system-quote-tests (Makefile.am): Likewise.
6579         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
6580         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6581         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
6582         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
6583         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
6584         * modules/yesno-tests (Makefile.am): Likewise.
6585         * modules/exclude-tests (Makefile.am): Link the programs with
6586         $(LIB_MBRTOWC).
6587         * modules/regex-tests (Makefile.am): Likewise.
6588         * modules/regex-quote-tests (Makefile.am): Likewise.
6590 2020-01-03  Bruno Haible  <bruno@clisp.org>
6592         getopt-posix: Fix compilation failure in testdirs.
6593         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
6594         when the gnulib module 'getopt-posix' is enabled.
6595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
6596         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
6597         module indicator.
6598         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
6600 2020-01-03  Bruno Haible  <bruno@clisp.org>
6602         doc: Mention the 64-bit inode number problem.
6603         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
6604         64-bit inode number problem.
6605         * doc/posix-functions/stat.texi: Mention that this module fixes the
6606         64-bit inode number problem.
6607         * doc/posix-functions/lstat.texi: Likewise.
6608         * doc/posix-functions/fstat.texi: Likewise.
6609         * doc/posix-functions/readdir.texi: Add more details.
6610         * doc/posix-functions/readdir_r.texi: Likewise.
6612 2020-01-02  Bruno Haible  <bruno@clisp.org>
6614         wcrtomb: Add more tests.
6615         * tests/test-wcrtomb-w32.c: Include localcharset.h.
6616         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6617         locale_charset() returns the expected value; otherwise, skip the test.
6618         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
6619         * tests/test-wcrtomb-w32-7.sh: Likewise.
6620         * modules/wcrtomb-tests (Files): Add these files.
6621         (Depends-on): Add localcharset.
6622         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
6624 2020-01-02  Bruno Haible  <bruno@clisp.org>
6626         mbrtowc: Add more tests.
6627         * tests/test-mbrtowc-w32.c: Include localcharset.h.
6628         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
6629         locale_charset() returns the expected value; otherwise, skip the test.
6630         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
6631         * tests/test-mbrtowc-w32-7.sh: Likewise.
6632         * modules/mbrtowc-tests (Files): Add these files.
6633         (Depends-on): Add localcharset.
6634         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
6636 2020-01-02  Bruno Haible  <bruno@clisp.org>
6638         mbrtowc: Fix test failures on MSVC (regression by previous commit).
6639         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
6640         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
6641         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
6642         MBRTOWC_STORES_INCOMPLETE_BUG.
6643         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
6645 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
6647         doc: mention glibc bug 24269
6648         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
6649         Reformat slightly so that it looks nicer in the Grep manual.
6651 2020-01-02  Bruno Haible  <bruno@clisp.org>
6653         mbrtowc: Don't replace mbstate_t on MSVC.
6654         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
6655         a missing mbsinit function on native Windows.
6656         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
6657         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
6658         MSVC bug.
6659         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
6661 2020-01-02  Bruno Haible  <bruno@clisp.org>
6663         setlocale-null: Avoid crashing the MSVC linker.
6664         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
6665         MSVC.
6667 2020-01-02  Bruno Haible  <bruno@clisp.org>
6669         wchar: Make the HP-UX workaround work on HP-UX 11.31.
6670         * modules/wchar (Depends-on): Add inttypes-incomplete.
6671         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
6672         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
6673         of strtoimax.
6675 2020-01-02  Bruno Haible  <bruno@clisp.org>
6677         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
6678         * lib/mbrtowc.c: Include <stdint.h>.
6679         * modules/mbrtowc (Depends-on): Add stdint.
6681 2020-01-01  Pádraig Brady  <P@draigBrady.com>
6683         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
6684         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
6685         which will auto enable use of openssl, only for >= version 3,
6686         which is newly licensed under the Apache Software License.
6688 2020-01-01  Bruno Haible  <bruno@clisp.org>
6690         mbrtowc: Include function name in macro names.
6691         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
6692         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
6693         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
6694         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
6695         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
6696         C_LOCALE_MAYBE_EILSEQ.
6698 2020-01-01  Bruno Haible  <bruno@clisp.org>
6700         c32tob: New module.
6701         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
6702         (c32tob): New declaration.
6703         * lib/c32tob.c: New file.
6704         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
6705         macros.
6706         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
6707         * modules/uchar (Depends-on): Add snippet/c++defs.
6708         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
6709         uchar.h.
6710         * modules/c32tob: New file.
6711         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
6712         defined.
6713         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
6714         c32tob.
6715         * modules/uchar-c++-tests (Files): Add tests/signature.h.
6716         * doc/posix-functions/wctob.texi: Mention the new module.
6718 2020-01-01  Bruno Haible  <bruno@clisp.org>
6720         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
6721         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
6722         $(LIB_SETLOCALE).
6724 2020-01-01  Bruno Haible  <bruno@clisp.org>
6726         hard-locale tests: Fix a conflict with the C++ tests.
6727         * modules/hard-locale-tests (Makefile.am): Build a program named
6728         'current-locale', not 'locale'.
6730 2020-01-01  Bruno Haible  <bruno@clisp.org>
6732         doc: Update documentation about wchar_t.
6733         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
6734         wchar_t type.
6736 2020-01-01  Bruno Haible  <bruno@clisp.org>
6738         mbrtowc tests: Fix typos.
6739         * tests/test-mbrtowc.c (main): Fix typo.
6740         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
6742 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6744         maint: update copyright notices
6745         Before doing the following changes done by hand, I also ran ‘make
6746         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
6747         to do most of the copyright years automatically.  A few upstream
6748         sources are still in 2019 but these should eventually be changed
6749         automatically too.
6750         * build-aux/declared.sh (func_version):
6751         * build-aux/libtool-next-version (func_version):
6752         * build-aux/run-test (func_version):
6753         Update these notices by hand.  Put just the last year
6754         in output of programs, as per GNU coding standards.
6756 2019-12-31  Bruno Haible  <bruno@clisp.org>
6758         uchar: Add C++ tests.
6759         * tests/test-uchar-c++.cc: New file.
6760         * tests/test-uchar-c++2.cc: New file.
6761         * modules/uchar-c++-tests: New file.
6763         uchar: Add tests.
6764         * tests/test-uchar.c: New file.
6765         * modules/uchar-tests: New file.
6767         uchar: New module.
6768         * lib/uchar.in.h: New file.
6769         * m4/uchar.m4: New file.
6770         * modules/uchar: New file.
6771         * doc/posix-headers/uchar.texi: Mention the new module.
6773 2019-12-30  Jim Meyering  <meyering@fb.com>
6775         localeinfo: ->simple would be wrong for LC_ALL=C
6776         That would lead to using unnecessary and expensive code paths in dfa.c.
6777         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
6778         error that would have made grep many times slower in the C locale.
6779         With this change, and a file created like this:
6780           yes 00 | head -10000000 > in
6781         Running grep as follows becomes more than 40 times faster:
6782           LC_ALL=C grep -Fw 0 in
6784 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
6786         doc: document trouble with back-references
6787         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
6789 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6791         doc: use “back-reference” for \1 etc.
6792         * doc/regex.texi: Consistently spell “back-reference” with
6793         a hyphen, since that’s how POSIX does it.
6795 2019-12-26  Jim Meyering  <meyering@fb.com>
6797         test-framework-sh: tighten an internal grep regexp
6798         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
6799         that helps test for a working printf.
6801 2019-12-26  Bruno Haible  <bruno@clisp.org>
6803         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
6804         Reported by Paul Eggert in
6805         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
6806         Simplification by Jim Meyering.
6807         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
6808         octal escape sequence in a UTF-8 locale.
6810 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
6812         mbrtowc: port better to narrow-wchar_t platforms
6813         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
6814         wchar_t is too narrow to represent all the Unicode characters,
6815         consider a byte sequence for an out-of-wchar_t-range character to
6816         be an encoding error.  This fixes grep’s surrogate-pair test
6817         failure on AIX 7.2.
6819 2019-12-24  Bruno Haible  <bruno@clisp.org>
6821         localcharset: Avoid referencing rpl_setlocale on native Windows.
6822         * lib/localcharset.c (setlocale): Undefine.
6824 2019-12-24  Bruno Haible  <bruno@clisp.org>
6826         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
6827         * m4/semaphore.m4: New file.
6828         * modules/lock-tests (Files): Add it.
6829         (configure.ac): Require gl_SEMAPHORE.
6830         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
6832 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
6834         strptime: fix typo in previous patch
6835         Problem and fix reported by Bruno Haible in:
6836         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
6837         * lib/strptime.c (day_of_the_week): Fix paren bug.
6839 2019-12-24  Bruno Haible  <bruno@clisp.org>
6841         setlocale-null: Make it easy to rely on the lock in another library.
6842         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
6843         defined.
6845 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6847         gethrxtime, mktime, nstrftime, strptime: tweak division performance
6848         Performanced analyzed by Bruno Haible in:
6849         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
6850         * config/srclist.txt: Do not sync mktime.c for now.
6851         * lib/mktime.c (shr, ydhms_diff):
6852         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
6853         * lib/strptime.c (day_of_the_week):
6854         * lib/xtime.h (xtime_sec):
6855         Redo with neither ‘%’ nor conditional branches.
6857 2019-12-23  Bruno Haible  <bruno@clisp.org>
6859         setlocale-null: Export the lock function also on non-Windows platforms.
6860         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
6861         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
6862         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
6863         * modules/setlocale-null (configure.ac): Invoke it.
6864         (Files): Add m4/visibility.m4.
6866 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6868         gethrxtime: fix rounding bug with negative args
6869         Problem reported by Bruno Haible in:
6870         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
6871         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
6872         with negative rounding.  Common platforms can compute / and % with
6873         a single instruction, so the simplified code should be shorter and
6874         faster on these platforms anyway.
6876 2019-12-22  Bruno Haible  <bruno@clisp.org>
6878         gethrxtime: remove incorrect overflow detection
6879         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
6880         integer overflow, as it didn’t suffice.  This reverts the xtime.h
6881         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
6882         cannot now see the need for anyway (even in cases where it works),
6883         as the patch is helpful only when the signs of S and NS disagree,
6884         and all callers pass nonnegative values for S and NS.
6886 2019-12-22  Bruno Haible  <bruno@clisp.org>
6888         setlocale-null: Add standalone include file.
6889         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
6890         * lib/locale.in.h: Include setlocale_null.h.
6891         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
6892         setlocale_null): Remove declarations.
6893         * lib/setlocale_null.c: Include setlocale_null.h.
6894         * lib/localename.c: Likewise.
6895         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
6896         (Depends-on): Add snippet/arg-nonnull.
6897         (Include): Allow either "setlocale_null.h" or <locale.h>.
6899 2019-12-22  Bruno Haible  <bruno@clisp.org>
6901         strfmon_l: Fix test failures on FreeBSD and Cygwin.
6902         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
6903         AC_RUN_IFELSE test.
6904         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
6905         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
6906         problem.
6908 2019-12-22  Bruno Haible  <bruno@clisp.org>
6910         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
6911         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
6912         unconditional AC_LIBOBJ.
6913         * modules/selinux-at: Likewise.
6914         * modules/xmemdup0: Likewise.
6915         * modules/xstrtoll: Likewise.
6917 2019-12-22  Bruno Haible  <bruno@clisp.org>
6919         longlong: Mark module obsolete.
6920         * modules/longlong (Status, Notice): New sections.
6922         stdint: Assume that the compiler supports 'long long'.
6923         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
6924         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
6925         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6926         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
6927         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6928         * modules/stdint (Files): Remove longlong.m4.
6929         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
6930         HAVE_UNSIGNED_LONG_LONG_INT.
6932         inttypes-incomplete: Assume that the compiler supports 'long long'.
6933         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6934         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
6935         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6936         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
6937         HAVE_LONG_LONG_INT to be 1.
6938         * modules/inttypes-incomplete (Makefile.am): Don't substitute
6939         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
6941         malloca: Assume that the compiler supports 'long long'.
6942         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
6943         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
6944         * modules/malloca (Files): Remove longlong.m4.
6945         * modules/relocatable-prog-wrapper (Files): Likewise.
6947         atoll: Assume that the compiler supports 'long long'.
6948         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
6949         * modules/atoll (Files): Remove longlong.m4.
6951         strtoll: Assume that the compiler supports 'long long'.
6952         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
6953         * modules/strtoll (Files): Remove longlong.m4.
6955         strtoull: Assume that the compiler supports 'long long'.
6956         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
6957         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6958         * modules/strtoull (Files): Remove longlong.m4.
6960         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
6961         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
6962         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
6963         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
6964         AC_TYPE_LONG_LONG_INT.
6965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
6966         AC_TYPE_UNSIGNED_LONG_LONG_INT.
6967         * modules/strtoimax (Files): Remove longlong.m4.
6968         * modules/strtoumax (Files): Likewise.
6970         xstrtoll: Assume that the compiler supports 'long long'.
6971         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
6972         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
6974         vasnprintf: Assume that the compiler supports 'long long'.
6975         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
6976         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
6977         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
6978         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
6979         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
6980         require AC_TYPE_LONG_LONG_INT.
6981         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
6982         gl_PREREQ_VASNPRINTF): Likewise.
6983         * modules/vasnprintf (Files): Remove longlong.m4.
6984         * modules/c-vasnprintf (Files): Likewise.
6985         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6986         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6987         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6988         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6989         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6990         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6991         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6993         gethrxtime: Assume that the compiler supports 'long long'.
6994         * lib/xtime.h (xtime_t): Define to 'long long int' always.
6995         (XTIME_PRECISION): Define to 1000000000 always.
6996         (xtime_make, xtime_sec): Optimize accordingly.
6997         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
6998         * modules/gethrxtime (Files): Remove longlong.m4.
7000         integer_length*: Assume that the compiler supports 'long long'.
7001         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
7002         * modules/integer_length (Files): Remove longlong.m4.
7003         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7004         * modules/integer_length_l (Files): Remove longlong.m4.
7005         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7006         * modules/integer_length_ll (Files): Remove longlong.m4.
7007         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
7009         count-one-bits: Assume that the compiler supports 'long long'.
7010         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
7011         * m4/count-one-bits.m4: Remove file.
7012         * modules/count-one-bits (Files): Remove it.
7013         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
7014         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
7015         unconditionally.
7017         count-trailing-zeros: Assume that the compiler supports 'long long'.
7018         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
7019         unconditionally.
7020         * m4/count-trailing-zeros.m4: Remove file.
7021         * modules/count-trailing-zeros (Files): Remove it.
7022         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
7023         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
7024         unconditionally.
7026         count-leading-zeros: Assume that the compiler supports 'long long'.
7027         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
7028         unconditionally.
7029         * m4/count-leading-zeros.m4: Remove file.
7030         * modules/count-leading-zeros (Files): Remove it.
7031         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
7032         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
7033         unconditionally.
7035 2019-12-22  Bruno Haible  <bruno@clisp.org>
7037         localcharset: Update support for OpenBSD.
7038         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
7040 2019-12-21  Bruno Haible  <bruno@clisp.org>
7042         pthread_sigmask: Avoid test failure on NetBSD 8.0.
7043         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
7044         NetBSD.
7045         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
7047 2019-12-21  Bruno Haible  <bruno@clisp.org>
7049         threadlib: Improve code structure.
7050         * m4/threadlib.m4: Reorder macros. Add comments.
7052 2019-12-21  Bruno Haible  <bruno@clisp.org>
7054         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
7055         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
7056         here from m4/threads.m4).
7057         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
7058         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
7059         (gl_STDTHREADLIB): New macro.
7060         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
7061         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
7063 2019-12-21  Bruno Haible  <bruno@clisp.org>
7065         sched_yield: Don't depend on threadlib and yield.
7066         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
7067         LIB_SCHED_YIELD.
7068         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
7069         m4/yield.m4).
7070         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
7071         gl_THREADLIB and gl_YIELD.
7072         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
7073         based on $(LIB_SCHED_YIELD).
7074         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
7075         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7076         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
7077         (Depends-on): Remove threadlib.
7078         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7079         * modules/threads-h (Files): Remove m4/yield.m4.
7080         * modules/pthread-cond-tests (Makefile.am): Link the programs against
7081         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
7082         * modules/pthread-mutex-tests (Makefile.am): Likewise.
7083         * modules/pthread-once-tests (Makefile.am): Likewise.
7084         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
7085         * modules/pthread-tss-tests (Makefile.am): Likewise.
7087 2019-12-21  Bruno Haible  <bruno@clisp.org>
7089         threads-h: Don't depend on threadlib.
7090         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
7091         not gl_THREADLIB_EARLY.
7093 2019-12-21  Bruno Haible  <bruno@clisp.org>
7095         nl_langinfo tests: Fix link error (regression from 2019-12-18).
7096         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
7097         with $(LIB_SETLOCALE).
7099 2019-12-21  Bruno Haible  <bruno@clisp.org>
7101         threadlib: Remove unused dependency (left over from 2019-07-06).
7102         * modules/threadlib (Depends-on): Remove havelib.
7104 2019-12-21  Bruno Haible  <bruno@clisp.org>
7106         New convention for multithread-safety tests.
7107         * tests/test-setlocale_null-mt-one.c: Renamed from
7108         tests/test-setlocale_null-one.c.
7109         * tests/test-setlocale_null-mt-all.c: Renamed from
7110         tests/test-setlocale_null-all.c.
7111         * modules/setlocale-null-tests (Files, Makefile.am): Update.
7113 2019-12-21  Bruno Haible  <bruno@clisp.org>
7115         quotearg tests: Fix conflict with hard-locale tests.
7116         * tests/testlocale: Renamed from tests/locale.
7117         * modules/quotearg-tests (Files): Update.
7118         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
7120 2019-12-21  Bruno Haible  <bruno@clisp.org>
7122         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
7123         Reported by Daniel Richard G. in
7124         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
7125         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
7126         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
7127         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
7128         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
7129         alternative to PTHREAD_RWLOCK_INITIALIZER.
7130         * lib/glthread/lock.c: Likewise.
7132 2019-12-21  Bruno Haible  <bruno@clisp.org>
7134         memcmp tests: Work around the clang bug.
7135         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
7136         the clang optimization.
7138 2019-12-20  Bruno Haible  <bruno@clisp.org>
7140         localcharset: Add support for z/OS encoding names.
7141         * lib/localcharset.h: Mention which encodings are used as locale
7142         encodings on z/OS.
7144 2019-12-20  Bruno Haible  <bruno@clisp.org>
7146         iconv_open: Add support for z/OS encoding names.
7147         Reported by Daniel Richard G. in
7148         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
7149         * lib/iconv_open-zos.gperf: New file.
7150         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
7151         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
7152         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
7153         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
7154         * doc/posix-functions/iconv_open.texi: Mention z/OS.
7156 2019-12-20  Bruno Haible  <bruno@clisp.org>
7158         doc: Document the problem of the per-thread locale functions on z/OS.
7159         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
7160         * doc/posix-functions/newlocale.texi: Likewise.
7161         * doc/posix-functions/duplocale.texi: Likewise.
7162         * doc/posix-functions/freelocale.texi: Likewise.
7164 2019-12-20  Bruno Haible  <bruno@clisp.org>
7166         localename, gettext: Fix host_os value for z/OS.
7167         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
7168         cross-configuration code.
7170 2019-12-19  Jim Meyering  <meyering@fb.com>
7172         nstrftime: avoid a shadowing warning
7173         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
7174         to avoid shadowing an "i" declared hundreds of lines above.
7176 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7178         dfa: struct dfamust now uses flexible array
7179         * lib/dfa.c: Include flexmember.h.
7180         (dfamust, dfamustfree): Adjust to struct dfamust change.
7181         This saves a call to malloc+free.
7182         * lib/dfa.h (struct dfamust): Make the final member a
7183         flexible array member.
7184         * modules/dfa (Depends-on): Add flexmember.
7186         dfa: fast->small for array elements
7187         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
7188         since this type is used in arrays.  This change is more for
7189         documentation than for any practical effect, since the two types
7190         are the same on all known platforms.
7192 2019-12-19  Bruno Haible  <bruno@clisp.org>
7194         iconv tests: Test canonicalized, not system-dependent, encoding names.
7195         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
7196         * modules/iconv-tests (Depends-on): Add iconv_open.
7198 2019-12-18  Bruno Haible  <bruno@clisp.org>
7200         localename: Fix test failure on AIX 7.2.
7201         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
7202         locales on AIX.
7203         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
7204         locales on AIX.
7206 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7208         Improve port of AC_C_RESTRICT to Oracle C++
7209         Problem reported by Christian Biesinger in:
7210         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
7211         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
7212         Oracle Developer Studio C++ 12.5 or later.
7214 2019-12-18  Bruno Haible  <bruno@clisp.org>
7216         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
7217         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
7219 2019-12-18  Bruno Haible  <bruno@clisp.org>
7221         localename: Ensure multithread-safety in future changes.
7222         * lib/localename.c (setlocale): Reference the system's setlocale().
7223         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
7224         (gl_locale_name_posix): Likewise.
7225         * modules/localename (Depends-on): Add setlocale-null.
7227 2019-12-18  Bruno Haible  <bruno@clisp.org>
7229         setlocale-null: Make API more useful.
7230         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
7231         callers changed.
7232         (setlocale_null): New declaration.
7233         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
7234         extracted from setlocale_null_unlocked.
7235         (setlocale_null_unlocked): Invoke it.
7236         (setlocale_null_r): Renamed from setlocale_null.
7237         (setlocale_null): New function, extracted from setlocale_mtsafe in
7238         setlocale.c.
7239         * lib/setlocale.c: Don't include <errno.h>.
7240         (setlocale_mtsafe): Invoke setlocale_null.
7241         * lib/setlocale-lock.c: Update comments.
7242         * doc/posix-functions/setlocale.texi: Mention both functions.
7244 2019-12-18  Bruno Haible  <bruno@clisp.org>
7246         localename: Optimize code for native Windows.
7247         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
7248         category (not allowed here).
7250 2019-12-18  Bruno Haible  <bruno@clisp.org>
7252         setlocale: Make calls with NULL argument multithread-safe.
7253         * lib/setlocale.c: Include <errno.h>.
7254         (setlocale_mtsafe): New function.
7255         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
7256         (setlocale_improved): Renamed from rpl_setlocale.
7257         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7258         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
7259         LIB_SETLOCALE.
7260         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
7261         (Link): New section.
7262         * tests/locale.c: Undefine setlocale.
7263         * tests/test-setlocale_null-one.c: Likewise.
7264         * tests/test-setlocale_null-all.c: Likewise.
7265         * modules/setlocale-tests (Makefile.am): Link the test programs with
7266         $(LIB_SETLOCALE).
7267         * modules/astrxfrm-tests (Makefile.am): Likewise.
7268         * modules/btowc-tests (Makefile.am): Likewise.
7269         * modules/c-ctype-tests (Makefile.am): Likewise.
7270         * modules/c-snprintf-tests (Makefile.am): Likewise.
7271         * modules/c-strcase-tests (Makefile.am): Likewise.
7272         * modules/c-vasprintf-tests (Makefile.am): Likewise.
7273         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
7274         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
7275         * modules/dfa-tests (Makefile.am): Likewise.
7276         * modules/duplocale-tests (Makefile.am): Likewise.
7277         * modules/hard-locale-tests (Makefile.am): Likewise.
7278         * modules/localcharset-tests (Makefile.am): Likewise.
7279         * modules/localename-tests (Makefile.am): Likewise.
7280         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
7281         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
7282         * modules/mbrtowc-tests (Makefile.am): Likewise.
7283         * modules/mbscasecmp-tests (Makefile.am): Likewise.
7284         * modules/mbscasestr-tests (Makefile.am): Likewise.
7285         * modules/mbschr-tests (Makefile.am): Likewise.
7286         * modules/mbscspn-tests (Makefile.am): Likewise.
7287         * modules/mbsinit-tests (Makefile.am): Likewise.
7288         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
7289         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
7290         * modules/mbspbrk-tests (Makefile.am): Likewise.
7291         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
7292         * modules/mbsrchr-tests (Makefile.am): Likewise.
7293         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
7294         * modules/mbsspn-tests (Makefile.am): Likewise.
7295         * modules/mbsstr-tests (Makefile.am): Likewise.
7296         * modules/nl_langinfo-tests (Makefile.am): Likewise.
7297         * modules/quotearg-tests (Makefile.am): Likewise.
7298         * modules/regex-tests (Makefile.am): Likewise.
7299         * modules/strfmon_l-tests (Makefile.am): Likewise.
7300         * modules/strtod-tests (Makefile.am): Likewise.
7301         * modules/strtold-tests (Makefile.am): Likewise.
7302         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
7303         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
7304         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
7305         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
7306         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
7307         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
7308         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
7309         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
7310         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
7311         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
7312         * modules/wcrtomb-tests (Makefile.am): Likewise.
7313         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
7314         * modules/wcsrtombs-tests (Makefile.am): Likewise.
7315         * modules/wcwidth-tests (Makefile.am): Likewise.
7316         * doc/posix-functions/setlocale.texi: Mention that the multithread-
7317         safety fix is also available in module 'setlocale'.
7319 2019-12-18  Bruno Haible  <bruno@clisp.org>
7321         hard-locale: Make multithread-safe.
7322         * lib/hard-locale.h (hard_locale): Move documentation to here.
7323         * lib/hard-locale.c: Don't include <stdlib.h>.
7324         (GLIBC_VERSION): Remove macro.
7325         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
7326         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
7327         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
7328         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
7329         (Link): New section.
7330         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
7331         $(LIB_HARD_LOCALE).
7333 2019-12-18  Bruno Haible  <bruno@clisp.org>
7335         hard-locale: Avoid test failure on Haiku.
7336         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
7338 2019-12-18  Bruno Haible  <bruno@clisp.org>
7340         setlocale-null: Handle NULL result from setlocale.
7341         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
7342         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
7343         from setlocale or _wsetlocale.
7345 2019-12-18  Bruno Haible  <bruno@clisp.org>
7347         hard-locale: Add test.
7348         * tests/test-hard-locale.c: New file.
7349         * tests/locale.c: New file.
7350         * modules/hard-locale-tests: New file.
7352 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7354         dfa: do not match invalid UTF-8
7355         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
7356         from 5 to 9 tokens; this is needed due to the changes to
7357         add_utf8_anychar.
7358         (charclass_index): 2nd arg is now pointer-to-const.
7359         (add_utf8_anychar): Match only valid UTF-8 byte sequences
7360         instead of allowing overlong encodings or surrogate halves.
7362         dfa: simplify charclass by assuming C99
7363         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
7364         (charclass_word): Now always uint_fast64_t.
7365         (CHARCLASS_PAIR): Remove.
7366         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
7368         fts: tune via calloc
7369         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
7371         dfa: tune via xzalloc
7372         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
7374 2019-12-17  Bruno Haible  <bruno@clisp.org>
7376         localcharset: Fix multithread-safety bug on Windows and OS/2.
7377         * lib/localcharset.h (locale_charset): Clarify when the result becomes
7378         invalid.
7379         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
7380         assemble the result.
7382 2019-12-17  Bruno Haible  <bruno@clisp.org>
7384         localcharset: Optimize code for native Windows.
7385         * lib/localcharset.c (locale_charset): Don't bother calling
7386         setlocale (LC_ALL, NULL) since we're not interested in its result.
7388 2019-12-17  Bruno Haible  <bruno@clisp.org>
7390         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
7391         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
7392         setlocale.
7393         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
7394         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
7395         * modules/nl_langinfo (Depends-on): Add setlocale-null.
7397 2019-12-17  Bruno Haible  <bruno@clisp.org>
7399         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
7400         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
7401         stack-allocated buffer to assemble each result and different static
7402         buffers to return it.
7403         * tests/test-nl_langinfo-mt.c: New file.
7404         * modules/nl_langinfo-tests (Files): Add it.
7405         (Depends-on): Add thread, nanosleep.
7406         (Makefile.am): Build test-nl_langinfo-mt test.
7408 2019-12-17  Bruno Haible  <bruno@clisp.org>
7410         langinfo: Document more details.
7411         * doc/posix-headers/langinfo.texi: List platform details.
7412         * doc/posix-functions/nl_langinfo.texi: Likewise.
7414 2019-12-17  Bruno Haible  <bruno@clisp.org>
7416         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
7417         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
7418         and Martin Storsjö <martin@martin.st>
7419         in <https://savannah.gnu.org/bugs/?57406>.
7420         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
7421         mingw.
7423 2019-12-17  Bruno Haible  <bruno@clisp.org>
7425         glob: Avoid warning on mingw.
7426         Reported by Christian Biesinger <cbiesinger@google.com> in
7427         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
7428         * lib/glob.c (__stat64): Undefine first.
7430 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
7432         xalloc: tune xzalloc for fresh allocations
7433         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
7434         because when the memory is freshly allocated from the OS via sbrk
7435         or mmap, calloc can avoid doing the memset.
7437         dfa: new function dfacopysyntax
7438         * lib/dfa.c (struct dfa): Move syntax member later so
7439         that dfacopysyntax can easily clear earlier members.
7440         (dfacopysyntax): New function, used by Gawk.
7442 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7444         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
7445         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
7446         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
7447         if not already defined.
7449         dfa: remove one dependency on MB_CUR_MAX
7450         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
7452         dfa: remove struct lexer_state.cur_mb_len
7453         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
7454         as it’s not needed and the code is simpler without it.
7455         All uses removed.
7457 2019-12-16  Bruno Haible  <bruno@clisp.org>
7459         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
7460         Reported by Arnold Robbins <arnold@skeeve.com>.
7461         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
7462         copied from lib/glthread/lock.h.
7463         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
7464         (setlocale_null_with_lock): If pthread_in_use() is false, use
7465         setlocale_null_unlocked directly.
7466         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
7467         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
7468         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
7469         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
7470         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
7471         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
7473 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
7475         dfa: make dfasyntax thread-safe
7476         Problem reported by Bruno Haible in:
7477         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
7478         * lib/dfa.c: Do not include locale.h.
7479         (struct dfa): Remove simple_locale member.
7480         All uses replaced by localeinfo.simple.
7481         (using_simple_locale): Remove; now present (with some
7482         changes) in localeinfo.c.
7483         (dfasyntax): No need to initialize removed member.
7485         localeinfo: record whether locale is simple
7486         * lib/localeinfo.c (using_simple_locale): New function,
7487         copied here from lib/dfa.c but with a change: it uses
7488         strcoll for its heuristic, instead of using setlocale.
7489         This lets it be thread-safe.
7490         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
7492 2019-12-15  Bruno Haible  <bruno@clisp.org>
7494         duplocale: Fix multithread-safety bug on AIX.
7495         * lib/duplocale.c: Don't include <stdlib.h>.
7496         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
7497         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
7498         Set LIB_DUPLOCALE.
7499         * modules/duplocale (Depends-on): Add setlocale-null.
7500         (Link): New section.
7501         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
7502         $(LIB_DUPLOCALE).
7504 2019-12-15  Bruno Haible  <bruno@clisp.org>
7506         setlocale-null: Add tests.
7507         * tests/test-setlocale_null.c: New file.
7508         * tests/test-setlocale_null-one.c: New file.
7509         * tests/test-setlocale_null-all.c: New file.
7510         * modules/setlocale-null-tests: New file.
7512         setlocale-null: New module.
7513         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
7514         setlocale_null): New declarations.
7515         * lib/setlocale_null.c: New file.
7516         * lib/setlocale-lock.c: New file.
7517         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
7518         * m4/setlocale_null.m4: New file.
7519         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
7520         GNULIB_SETLOCALE_NULL.
7521         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
7522         * modules/setlocale-null: New file.
7523         * doc/posix-functions/setlocale.texi: Mention the new module.
7525 2019-12-15  Bruno Haible  <bruno@clisp.org>
7527         lock tests: Skip test when no multithreading is enabled.
7528         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
7530 2019-12-14  Bruno Haible  <bruno@clisp.org>
7532         locale, duplocale, localename: Fix last patch.
7533         Reported by Daniel Richard G. in
7534         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
7535         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
7536         Don't define if locale_t does not exist.
7538 2019-12-13  Bruno Haible  <bruno@clisp.org>
7540         locale, duplocale, localename: Fix errors if locale_t does not exist.
7541         Reported by Daniel Richard G. in
7542         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
7543         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
7544         macros.
7545         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
7546         HAVE_NEWLOCALE.
7547         * tests/test-localename.c: Likewise.
7548         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
7549         HAVE_DUPLOCALE.
7550         * tests/test-locale-c++.cc: Likewise.
7552 2019-12-13  Bruno Haible  <bruno@clisp.org>
7554         wcstok: Fix test failure on HP-UX.
7555         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
7556         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
7558 2019-12-12  Bruno Haible  <bruno@clisp.org>
7560         strtod, strtold tests: Avoid test failure on AIX 7.2.
7561         * tests/test-strtod1.c (main): Allow implementations in which ',' and
7562         '.' both are radix characters.
7563         * tests/test-strtold1.c (main): Likewise.
7565 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7567         dfa: prefer ptrdiff_t for API, too
7568         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
7569         but do this only for internal use for now.
7570         * NEWS: Mention the API change.
7571         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
7572         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
7573         values known to be nonnegative.
7574         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
7575         Prefer idx_t or ptrdiff_t to size_t for API.
7576         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
7577         Prefer ptrdiff_t to size_t for API.
7579         stdalign: port to xlclang 16.01
7580         Problem reportd by Bruno Haible in:
7581         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
7582         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
7583         ((__aligned__ (...))) with xlclang, as a top-level
7584         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
7585         xlclang version 16.01.0000.0001; the alignment directive is ignored.
7587 2019-12-12  Bruno Haible  <bruno@clisp.org>
7589         duplocale: Fix test failure on AIX 7.2 with xlclang.
7590         * lib/duplocale.c: Include <stdlib.h>.
7591         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
7592         value.
7594 2019-12-12  Bruno Haible  <bruno@clisp.org>
7596         stddef: Document the AIX xlc issue.
7597         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
7599 2019-12-12  Bruno Haible  <bruno@clisp.org>
7601         duplocale: Don't attempt to override if locale_t does not exist.
7602         Reported by Daniel Richard G. in
7603         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
7604         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
7605         HAVE_DUPLOCALE to 0.
7607 2019-12-12  Bruno Haible  <bruno@clisp.org>
7609         wcwidth: Avoid test failure on AIX 7.2.
7610         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
7611         negative.
7612         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
7614 2019-12-12  Bruno Haible  <bruno@clisp.org>
7616         ilogbl: Work around Cygwin bug.
7617         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
7618         correct.
7619         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
7621 2019-12-12  Bruno Haible  <bruno@clisp.org>
7623         strtold: Work around Cygwin bug.
7624         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
7625         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
7626         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
7627         STRTOLD_HAS_UNDERFLOW_BUG is defined.
7628         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
7630 2019-12-12  Bruno Haible  <bruno@clisp.org>
7632         strtold: Fix autoconf test.
7633         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
7635 2019-12-11  Bruno Haible  <bruno@clisp.org>
7637         fsync tests: Skip test that is known to fail.
7638         * doc/posix-functions/fsync.texi: Update list of platforms.
7639         * tests/test-fsync.c (main): Skip test with read-only file descriptors
7640         that is known to fail on AIX and Cygwin.
7642 2019-12-11  Bruno Haible  <bruno@clisp.org>
7644         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
7645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
7646         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
7647         HAVE_GETADDRINFO as a C macro.
7648         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
7649         declare as replacement functions.
7650         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
7651         define as no-op overrides.
7652         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
7653         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
7654         * modules/getaddrinfo (Depends-on, configure.ac): Test
7655         REPLACE_GETADDRINFO.
7656         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
7657         problem.
7658         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
7659         convention problems.
7661 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
7663         dfa: prefer signed integers for internals
7664         Signed integers can be checked more easily for integer overflow.
7665         * lib/dfa.c (position, struct lexer_state, struct parser_state)
7666         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
7667         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
7668         (nsubtoks, copytoks, closure, alloc_position_set, delete)
7669         (replace, state_index, epsclosure, charclass_context)
7670         (state_separate_contexts, merge_nfa_state, dfaoptimize)
7671         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
7672         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
7673         (comsubs, inboth, allocmust):
7674         Prefer a signed to an unsigned integer when calculating indexes,
7675         unless the integer is part of the external API (a bigger deal,
7676         and to be done later).
7678         dfa: fix index overflow
7679         * lib/dfa.c (compare): Avoid integer overflow when analyzing
7680         very large regular expressions.
7682         dfa: update commentary for previous change
7683         * NEWS: Mention the change.
7684         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
7686 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7688         dfa: separate parse and compile phase
7689         ‘dfamust’ must be called after parsing and before tokens are
7690         reordered, but both are executed in the compilation phase.
7691         Token reordering was introduced in Gnulib commit
7692         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
7693         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
7694         * lib/dfa.c (dfaparse): Change it to global function.
7695         (dfacomp): If first argument is NULL, skip parse.
7696         * lib/dfa.h: (dfaparse): Add a prototype.
7698 2019-12-11  Bruno Haible  <bruno@clisp.org>
7700         unistd tests: Fix link error on MSVC.
7701         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
7702         $(LIB_GETLOGIN).
7704 2019-12-11  Bruno Haible  <bruno@clisp.org>
7706         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
7707         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
7708         and POSIX substitutes are supported in C++ mode.
7709         * NEWS: Likewise.
7711 2019-12-11  Bruno Haible  <bruno@clisp.org>
7713         stddef: Fix compilation error in C++ mode on MSVC.
7714         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
7715         instead, include <cstddef>.
7717 2019-12-11  Bruno Haible  <bruno@clisp.org>
7719         unistd: Fix compilation error in C++ mode on MSVC.
7720         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
7721         does not have <unistd.h>.
7723 2019-12-11  Bruno Haible  <bruno@clisp.org>
7725         locale: Fix compilation error in C++ mode on MSVC.
7726         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
7727         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
7728         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
7729         int_n_sep_by_space): Define as macros on MSVC.
7731 2019-12-11  Bruno Haible  <bruno@clisp.org>
7733         wchar: Fix compilation error in C++ mode on MSVC.
7734         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
7736 2019-12-11  Bruno Haible  <bruno@clisp.org>
7738         pthread-thread: Fix compilation error in C++ mode on MSVC.
7739         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
7740         _GL_CXXALIAS_RPL invocation.
7742 2019-12-08  Bruno Haible  <bruno@clisp.org>
7744         Fix compilation errors in C++ mode on Haiku.
7745         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
7746         non-glibc systems.
7747         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
7748         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7749         posix_spawnattr_setschedparam): Likewise.
7750         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
7751         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7752         * lib/unistd.in.h (usleep): Likewise.
7754 2019-12-08  Bruno Haible  <bruno@clisp.org>
7756         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
7757         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
7758         * modules/fseeko (configure.ac-early): Require it instead of
7759         AC_FUNC_FSEEKO.
7760         * modules/ftello (configure.ac-early): Likewise.
7761         * modules/fflush (configure.ac-early): Likewise.
7763 2019-12-08  Bruno Haible  <bruno@clisp.org>
7765         Fix compilation error in C++ mode on HP-UX 11.
7766         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
7767         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
7769 2019-12-08  Bruno Haible  <bruno@clisp.org>
7771         Fix compilation errors on HP-UX 11/ia64.
7772         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
7773         _GL_FUNCDECL_SYS.
7775 2019-12-08  Bruno Haible  <bruno@clisp.org>
7777         Fix compilation error in C++ mode on OpenBSD.
7778         * lib/signal.in.h (signal): Declare on OpenBSD.
7780 2019-12-08  Bruno Haible  <bruno@clisp.org>
7782         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
7783         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
7784         instead of #error.
7786 2019-12-08  Bruno Haible  <bruno@clisp.org>
7788         Fix compilation errors in C++ mode on FreeBSD.
7789         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
7790         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
7791         * lib/threads.in.h (thrd_exit): Likewise.
7792         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
7794 2019-12-08  Bruno Haible  <bruno@clisp.org>
7796         Fix compilation errors in C++ mode on macOS and FreeBSD.
7797         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
7798         or FreeBSD with clang, use the approach without C preprocessor macro.
7800 2019-12-07  Bruno Haible  <bruno@clisp.org>
7802         Fix compilation errors in C++ mode on AIX with xlclang++.
7803         Reported by Christian Biesinger <cbiesinger@google.com> in
7804         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7805         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
7807 2019-12-07  Bruno Haible  <bruno@clisp.org>
7809         Document compilation error in C++ mode on NetBSD 8.0.
7810         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
7812 2019-12-07  Bruno Haible  <bruno@clisp.org>
7814         Fix compilation errors in C++ mode on Solaris 10.
7815         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
7816         to non-empty on Solaris with a non-GCC compiler.
7817         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
7819 2019-12-07  Bruno Haible  <bruno@clisp.org>
7821         Reword NEWS entry.
7822         * NEWS: Reword the latest NEWS entry.
7824 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
7826         Move xstrtol_fatal to a new xstrtol-error module.
7827         * lib/xstrtol.h: Stop including <getopt.h>.
7828         (xstrtol_fatal): Move ...
7829         * lib/xstrtol-error.h: ... here.  New file.
7830         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
7831         * tests/test-xstrtol.c: Likewise.
7832         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
7833         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
7834         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
7835         * modules/xstrtol-error: New file.
7836         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
7837         * MODULES.html.sh: Add xstrtol-error.
7838         * NEWS: Document the change.
7840 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
7842         nstrftime: better width support for %N, %z
7843         * lib/nstrftime.c (width_add, width_add1, width_cpy):
7844         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
7845         a new WIDTH parameter.
7846         (add, add1, cpy): Use these macros.
7847         (width_add): Do not treat digits == 0 as a special case,
7848         do not pad if padding is ‘-’, and do not use a negative width.
7849         (__strftime_internal): Redo formatting of nanoseconds and numeric
7850         timezones to avoid buffer misuse in unusual cases, and so that
7851         widths make more sense.  Add support for widths greater than 9 to
7852         the %N format; they are zero filled on the right.
7853         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
7855 2019-12-05  Bruno Haible  <bruno@clisp.org>
7857         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
7858         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
7859         set REPLACE_ISFINITE to 1.
7860         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
7861         REPLACE_ISINF to 1.
7862         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
7863         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
7864         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
7865         * lib/threads.in.h (call_once): Likewise.
7866         * lib/iconv.in.h (iconv): Likewise.
7868 2019-12-05  Bruno Haible  <bruno@clisp.org>
7870         wchar: Add more C++ tests.
7871         Reported by Christian Biesinger <cbiesinger@google.com> in
7872         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
7873         * tests/test-wchar-c++3.cc: New file.
7874         * modules/wchar-c++-tests (Files): Add it.
7875         (Makefile.am): Compile it.
7877 2019-12-05  Bruno Haible  <bruno@clisp.org>
7879         Add more C++ tests.
7881         assert-h: Add C++ tests.
7882         * tests/test-assert-h-c++.cc: New file.
7883         * tests/test-assert-h-c++2.cc: New file.
7884         * modules/assert-h-c++-tests: New file.
7885         * modules/assert-h-tests: New file.
7887         ctype: Add C++ tests.
7888         * tests/test-ctype-c++.cc: New file.
7889         * tests/test-ctype-c++2.cc: New file.
7890         * modules/ctype-c++-tests: New file.
7891         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
7893         errno: Add C++ tests.
7894         * tests/test-errno-c++.cc: New file.
7895         * tests/test-errno-c++2.cc: New file.
7896         * modules/errno-c++-tests: New file.
7897         * modules/errno-tests (Depends-on): Add errno-c++-tests.
7899         float: Add C++ tests.
7900         * tests/test-float-c++.cc: New file.
7901         * tests/test-float-c++2.cc: New file.
7902         * modules/float-c++-tests: New file.
7903         * modules/float-tests (Depends-on): Add float-c++-tests.
7905         inttypes: Add more C++ tests.
7906         * tests/test-inttypes-c++2.cc: New file.
7907         * modules/inttypes-c++-tests (Files): Add it.
7908         (Makefile.am): Compile it.
7910         limits-h: Add C++ tests.
7911         * tests/test-limits-h-c++.cc: New file.
7912         * tests/test-limits-h-c++2.cc: New file.
7913         * modules/limits-h-c++-tests: New file.
7914         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
7916         stdarg: Add C++ tests.
7917         * tests/test-stdarg-c++.cc: New file.
7918         * tests/test-stdarg-c++2.cc: New file.
7919         * modules/stdarg-c++-tests: New file.
7920         * modules/stdarg-tests: New file.
7922         stdbool: Add C++ tests.
7923         * tests/test-stdbool-c++.cc: New file.
7924         * tests/test-stdbool-c++2.cc: New file.
7925         * modules/stdbool-c++-tests: New file.
7926         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
7928         stddef: Add C++ tests.
7929         * tests/test-stddef-c++.cc: New file.
7930         * tests/test-stddef-c++2.cc: New file.
7931         * modules/stddef-c++-tests: New file.
7932         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
7934         stdint: Add C++ tests.
7935         * tests/test-stdint-c++.cc: New file.
7936         * tests/test-stdint-c++2.cc: New file.
7937         * modules/stdint-c++-tests: New file.
7938         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
7940         wchar: Add more C++ tests.
7941         * tests/test-wchar-c++2.cc: New file.
7942         * modules/wchar-c++-tests (Files): Add it.
7943         (Makefile.am): Compile it.
7945         wctype-h: Add more C++ tests.
7946         * tests/test-wctype-h-c++2.cc: New file.
7947         * modules/wctype-h-c++-tests (Files): Add it.
7948         (Makefile.am): Compile it.
7950 2019-12-04  Bruno Haible  <bruno@clisp.org>
7952         Fix compilation errors in C++ mode with xlclang++ on AIX.
7953         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
7954         C++ mode on AIX.
7955         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
7956         without C preprocessor macro.
7957         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
7958         _GL_CXXALIAS_SYS.
7959         * lib/threads.in.h (thrd_exit): Likewise.
7961 2019-12-04  Bruno Haible  <bruno@clisp.org>
7963         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
7964         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
7965         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
7967 2019-12-04  Bruno Haible  <bruno@clisp.org>
7969         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
7970         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
7971         _GL_CXXALIASWARN invocation on non-glibc systems.
7972         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
7973         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
7974         iswctype, towlower, towupper): Likewise.
7976 2019-12-03  Bruno Haible  <bruno@clisp.org>
7978         Avoid hassles caused by [[noreturn]] in C++.
7979         Reported by Christian Biesinger <cbiesinger@google.com> in
7980         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
7981         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
7982         * lib/_Noreturn.h: Likewise.
7984 2019-12-02  Bruno Haible  <bruno@clisp.org>
7986         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
7987         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
7988         LIBMULTITHREAD.
7989         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
7990         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
7991         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
7992         gl_THREADLIB.
7993         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
7995 2019-12-02  Bruno Haible  <bruno@clisp.org>
7997         Fix some more link errors with --enable-threads=isoc.
7998         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
7999         * modules/pthread-rwlock (Depends-on): Likewise.
8001 2019-12-02  Bruno Haible  <bruno@clisp.org>
8003         Fix link errors with --enable-threads=posix on AIX.
8004         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
8005         program with $(LIBTHREAD).
8006         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
8007         program with $(LIBTHREAD).
8009 2019-12-02  Bruno Haible  <bruno@clisp.org>
8011         Fix link errors with --enable-threads=posix on AIX.
8012         * modules/mbrtowc (Link): New section.
8013         * modules/acl (Link): Likewise.
8014         * modules/argmatch (Link): Likewise.
8015         * modules/backup-rename (Link): Likewise.
8016         * modules/backupfile (Link): Likewise.
8017         * modules/closein (Link): Likewise.
8018         * modules/closeout (Link): Likewise.
8019         * modules/copy-file (Link): Likewise.
8020         * modules/csharpcomp (Link): Likewise.
8021         * modules/csharpexec (Link): Likewise.
8022         * modules/dfa (Link): Likewise.
8023         * modules/exclude (Link): Likewise.
8024         * modules/fnmatch (Link): Likewise.
8025         * modules/fnmatch-gnu (Link): Likewise.
8026         * modules/fnmatch-posix (Link): Likewise.
8027         * modules/glob (Link): Likewise.
8028         * modules/human (Link): Likewise.
8029         * modules/javacomp (Link): Likewise.
8030         * modules/javaexec (Link): Likewise.
8031         * modules/javaversion (Link): Likewise.
8032         * modules/mbfile (Link): Likewise.
8033         * modules/mbiter (Link): Likewise.
8034         * modules/mbmemcasecmp (Link): Likewise.
8035         * modules/mbmemcasecoll (Link): Likewise.
8036         * modules/mbrlen (Link): Likewise.
8037         * modules/mbscasecmp (Link): Likewise.
8038         * modules/mbscasestr (Link): Likewise.
8039         * modules/mbschr (Link): Likewise.
8040         * modules/mbscspn (Link): Likewise.
8041         * modules/mbsinit (Link): Likewise.
8042         * modules/mbslen (Link): Likewise.
8043         * modules/mbsncasecmp (Link): Likewise.
8044         * modules/mbsnlen (Link): Likewise.
8045         * modules/mbsnrtowcs (Link): Likewise.
8046         * modules/mbspbrk (Link): Likewise.
8047         * modules/mbspcasecmp (Link): Likewise.
8048         * modules/mbsrchr (Link): Likewise.
8049         * modules/mbsrtowcs (Link): Likewise.
8050         * modules/mbssep (Link): Likewise.
8051         * modules/mbsspn (Link): Likewise.
8052         * modules/mbsstr (Link): Likewise.
8053         * modules/mbstok_r (Link): Likewise.
8054         * modules/mbswidth (Link): Likewise.
8055         * modules/mbuiter (Link): Likewise.
8056         * modules/mkdir-p (Link): Likewise.
8057         * modules/propername (Link): Likewise.
8058         * modules/quote (Link): Likewise.
8059         * modules/quotearg (Link): Likewise.
8060         * modules/quotearg-simple (Link): Likewise.
8061         * modules/regex-quote (Link): Likewise.
8062         * modules/rpmatch (Link): Likewise.
8063         * modules/sh-quote (Link): Likewise.
8064         * modules/system-quote (Link): Likewise.
8065         * modules/trim (Link): Likewise.
8066         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8067         * modules/unistdio/ulc-fprintf (Link): Likewise.
8068         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8069         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8070         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8071         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8072         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8073         * modules/xfreopen (Link): Likewise.
8074         * modules/xmemcoll (Link): Likewise.
8075         * modules/yesno (Link): Likewise.
8076         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
8077         * modules/argmatch-tests (Makefile.am): Likewise.
8078         * modules/closein-tests (Makefile.am): Likewise.
8079         * modules/copy-file-tests (Makefile.am): Likewise.
8080         * modules/dfa-tests (Makefile.am): Likewise.
8081         * modules/fnmatch-tests (Makefile.am): Likewise.
8082         * modules/glob-tests (Makefile.am): Likewise.
8083         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8084         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8085         * modules/mbrtowc-tests (Makefile.am): Likewise.
8086         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8087         * modules/mbscasestr-tests (Makefile.am): Likewise.
8088         * modules/mbschr-tests (Makefile.am): Likewise.
8089         * modules/mbscspn-tests (Makefile.am): Likewise.
8090         * modules/mbsinit-tests (Makefile.am): Likewise.
8091         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8092         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8093         * modules/mbspbrk-tests (Makefile.am): Likewise.
8094         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8095         * modules/mbsrchr-tests (Makefile.am): Likewise.
8096         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8097         * modules/mbsspn-tests (Makefile.am): Likewise.
8098         * modules/mbsstr-tests (Makefile.am): Likewise.
8099         * modules/quotearg-tests (Makefile.am): Likewise.
8100         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8101         * modules/readtokens-tests (Makefile.am): Likewise.
8102         * modules/regex-quote-tests (Makefile.am): Likewise.
8103         * modules/sh-quote-tests (Makefile.am): Likewise.
8104         * modules/system-quote-tests (Makefile.am): Likewise.
8105         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8106         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8107         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8108         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8109         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8110         * modules/yesno-tests (Makefile.am): Likewise.
8112 2019-12-02  Bruno Haible  <bruno@clisp.org>
8114         Simplify link sections.
8115         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
8116         * modules/lock (Link): Likewise.
8117         * modules/cond (Link): Likewise.
8118         * modules/tls (Link): Likewise.
8119         * modules/yield (Link): Likewise.
8120         * modules/regex (Link): Likewise.
8121         * modules/localename (Link): Likewise.
8122         * modules/unicase/locale-language (Link): Likewise.
8123         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
8125 2019-12-02  Bruno Haible  <bruno@clisp.org>
8127         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
8128         * tests/test-thread_self.c (main): Disable test on AIX.
8130 2019-12-01  Bruno Haible  <bruno@clisp.org>
8132         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
8133         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
8134         gl_THREADLIB_EARLY_BODY.
8135         (gl_THREADLIB_EARLY_BODY): Invoke it.
8136         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
8137         (gl_THREADLIB_BODY): Invoke it.
8138         (gl_PTHREADLIB): New macro.
8139         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
8140         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
8141         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
8142         * modules/pthread-h (Files): Add threadlib.m4.
8143         (Depends-on): Remove threadlib.
8144         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
8145         and _THREAD_SAFE here.
8146         (Link): Use LIBPTHREAD, not LIBTHREAD.
8147         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
8148         LIBMULTITHREAD.
8149         * modules/pthread-once (Link): Likewise.
8150         * modules/pthread-mutex (Link): Likewise.
8151         * modules/pthread-rwlock (Link): Likewise.
8152         * modules/pthread-cond (Link): Likewise.
8153         * modules/pthread-tss (Link): Likewise.
8154         * modules/pthread-spin (Link): Likewise.
8155         * modules/pthread (Link): Likewise.
8156         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
8157         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
8158         * modules/pthread-once-tests (test_pthread_once1_LDADD,
8159         test_pthread_once2_LDADD): Likewise.
8160         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
8161         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
8162         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
8163         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
8165 2019-12-01  Bruno Haible  <bruno@clisp.org>
8167         cond: State linking requirements.
8168         * modules/cond (Link): New section.
8170 2019-12-01  Bruno Haible  <bruno@clisp.org>
8172         threadlib: Remove unnecessary file (left over from 2019-07-06).
8173         * modules/threadlib (Files): Remove config.rpath.
8175 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
8177         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
8178         Reported by Dagobert Michelsen <dam@opencsw.org> in
8179         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
8180         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
8181         list of strings instead of one string.
8182         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
8183         * pygnulib/GLImport.py (execute): Likewise.
8185 2019-11-27  Bruno Haible  <bruno@clisp.org>
8187         openpty, forkpty: Fix build error on Solaris 11.4.
8188         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
8189         also in <termios.h>.
8190         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
8191         of the function also in <termios.h>.
8192         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
8193         * doc/glibc-functions/forkpty.texi: Likewise.
8195 2019-11-27  Bruno Haible  <bruno@clisp.org>
8197         New options --enable-threads=isoc and --enable-threads=isoc+posix.
8198         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
8199         --enable-threads=isoc and --enable-threads=isoc+posix.
8200         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
8201         When both the ISO C and the POSIX threads API are available, choose
8202         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
8203         --enable-threads=isoc+posix was specified. When only the ISO C threads
8204         API is available and --enable-threads=iso was specified, choose
8205         USE_ISOC_THREADS.
8206         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
8207         USE_ISOC_AND_POSIX_THREADS.
8208         * lib/glthread/lock.c: Likewise.
8209         * lib/glthread/cond.h: Likewise.
8210         * lib/glthread/cond.c: Likewise.
8211         * lib/glthread/tls.h: Likewise.
8212         * lib/glthread/tls.c: Likewise.
8213         * lib/glthread/yield.h: Likewise.
8214         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
8215         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
8216         * lib/glthread/thread.c: Likewise.
8217         * lib/glthread/threadlib.c: Likewise.
8218         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
8219         USE_ISOC_AND_POSIX_THREADS.
8220         * tests/test-cond.c: Consider USE_ISOC_THREADS and
8221         USE_ISOC_AND_POSIX_THREADS.
8222         * tests/test-tls.c: Likewise.
8223         * tests/test-thread_create.c (main): Likewise.
8224         * tests/test-pthread-cond.c: Likewise.
8225         * tests/test-pthread-mutex.c: Likewise.
8226         * tests/test-pthread-once2.c: Likewise.
8227         * tests/test-pthread-rwlock.c: Likewise.
8228         * tests/test-pthread-tss.c: Likewise.
8229         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
8230         USE_POSIX_THREADS.
8232 2019-11-24  Bruno Haible  <bruno@clisp.org>
8234         mbrtowc: Modernize autoconf test.
8235         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
8236         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
8237         try a UTF-8 locale.
8238         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
8240 2019-11-24  Bruno Haible  <bruno@clisp.org>
8242         Fix errors in C++ mode on mingw.
8243         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
8244         instead of _GL_CXXALIAS_SYS.
8245         * lib/signal.in.h (pthread_sigmask): Likewise.
8246         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
8247         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8248         Likewise.
8249         * lib/wchar.in.h (btowc): Likewise.
8251 2019-11-24  Bruno Haible  <bruno@clisp.org>
8253         sys_time: Fix errors in C++ mode on mingw.
8254         * lib/sys_time.in.h (timeval): Restore the redirection
8255         '#define timeval rpl_timeval', for when the symbol timeval is being used
8256         outside the 'gnulib' namespace.
8257         * lib/sys_select.in.h (select): In C++, write 'timeval', not
8258         'struct timeval'.
8260 2019-11-24  Bruno Haible  <bruno@clisp.org>
8262         iswctype: Fix errors in C++ mode on mingw.
8263         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
8264         is 1.
8265         * lib/iswctype.c (iswctype): Add another implementation, for the
8266         GNULIB_defined_wint_t case.
8267         * modules/iswctype (configure.ac): Compile iswctype.c also if
8268         GNULIB_OVERRIDES_WINT_T is 1.
8270 2019-11-24  Bruno Haible  <bruno@clisp.org>
8272         windows-timedmutex: Fix errors in C++ mode on mingw.
8273         * lib/windows-timedmutex.h: Add closing brace.
8275 2019-11-24  Bruno Haible  <bruno@clisp.org>
8277         Fix errors in C++ mode on Cygwin.
8278         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
8279         _GL_CXXALIAS_SYS.
8281 2019-11-24  Bruno Haible  <bruno@clisp.org>
8283         time_r: Fix for mingw (regression from 2019-11-16).
8284         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
8285         AC_LINK_IFELSE test only if the function does not appear to exist.
8287 2019-11-24  Bruno Haible  <bruno@clisp.org>
8289         wcstok: Add tests.
8290         * tests/test-wcstok.c: New file.
8291         * modules/wcstok-tests: New file.
8293 2019-11-24  Bruno Haible  <bruno@clisp.org>
8295         wcstok: Work around wrong signature on native Windows.
8296         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
8297         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
8298         REPLACE_WCSTOK.
8299         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
8300         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
8301         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
8302         * doc/posix-functions/wcstok.texi: Mention the problem.
8304 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8306         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
8307         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
8308         remove workaround for GCC bug 91450 as the bug should be fixed
8309         there too.
8311 2019-11-21  Bruno Haible  <bruno@clisp.org>
8313         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
8314         Reported by Christian Biesinger <cbiesinger@google.com> in
8315         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
8316         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
8317         non-glibc systems.
8318         * lib/locale.in.h (localeconv, setlocale): Likewise.
8319         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
8320         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
8321         rint, round, trunc): Likewise.
8322         * lib/monetary.in.h (strfmon_l): Likewise.
8323         * lib/pthread.in.h (pthread_mutexattr_getrobust,
8324         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
8325         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
8326         pthread_spin_destroy): Likewise.
8327         * lib/signal.in.h (raise, signal): Likewise.
8328         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
8329         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
8330         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
8331         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
8332         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
8333         Likewise.
8334         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
8335         Likewise.
8336         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
8337         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
8338         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
8339         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
8340         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
8341         wcsftime): Likewise.
8342         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
8344 2019-11-21  Bruno Haible  <bruno@clisp.org>
8346         Fix various errors in _GL_CXXALIAS_SYS invocations.
8347         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
8348         _GL_CXXALIAS_SYS.
8349         * lib/pthread.in.h (pthread_mutexattr_gettype,
8350         pthread_mutexattr_getrobust): Likewise.
8351         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
8352         * lib/sys_socket.in.h (recv, send): Likewise.
8353         * lib/unistd.in.h (getdtablesize): Likewise.
8354         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
8355         'struct timeval'.
8357 2019-11-21  Bruno Haible  <bruno@clisp.org>
8359         math tests: Update after 2019-08-28 change.
8360         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
8361         return type of 'bool', not 'int'.
8363 2019-11-21  Bruno Haible  <bruno@clisp.org>
8365         pthread-spin: Fix errors in C++ mode.
8366         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
8367         functions as nonexistent when <pthread.h> exists but does not define
8368         the pthread_spinlock_t type.
8370 2019-11-21  Bruno Haible  <bruno@clisp.org>
8372         pthread-mutex: Fix errors in C++ mode.
8373         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
8374         pthread_mutexattr_getrobust exists. If not, define
8375         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8376         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
8377         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
8378         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
8379         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
8380         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
8381         definition.
8383 2019-11-19  Bruno Haible  <bruno@clisp.org>
8385         threads-h tests: Fix typo.
8386         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
8388 2019-11-19  Bruno Haible  <bruno@clisp.org>
8390         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
8391         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
8392         to 'const pthread_attr_t *'.
8393         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
8394         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
8396 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8398         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
8399         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
8400         work around GCC bug 91450 as the bug should be fixed there.
8402 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8404         glob: get closer to glibc glob.c
8405         Omit differences from glibc when the differences don’t matter.
8406         * lib/glob.c [_LIBC]: Include shlib-compat.h.
8407         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
8408         (glob_lstat): New function.
8409         (glob_in_dir): Use it.
8410         (GLOB_ATTRIBUTE): Define to empty if not already defined.
8411         Use changed.
8413 2019-11-18  Bruno Haible  <bruno@clisp.org>
8415         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
8416         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
8417         UINTPTR_MAX): Consider _WIN64.
8418         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
8419         a pointer.
8421 2019-11-18  Bruno Haible  <bruno@clisp.org>
8423         stdint: Fix value of WINT_MAX when we override wint_t.
8424         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
8425         when GNULIB_OVERRIDES_WINT_T is 1.
8427 2019-11-18  Bruno Haible  <bruno@clisp.org>
8429         vcs-to-changelog: New module.
8430         * modules/vcs-to-changelog: New file.
8431         * MODULES.html.sh (func_all_modules): Add it.
8433 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8435         vcs-to-changelog: New script to generate ChangeLog-like output.
8436         Discussion:
8437         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
8438         * build-aux/vcs_to_changelog.py: New file.
8439         * build-aux/vcstocl/frontend_c.py: New file.
8440         * build-aux/vcstocl/misc_util.py: New file.
8441         * build-aux/vcstocl/vcs_git.py: New file.
8443 2019-11-18  Bruno Haible  <bruno@clisp.org>
8445         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
8446         Reported by Keith Marshall <keith@users.osdn.me> in
8447         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
8448         and <https://osdn.net/projects/mingw/ticket/39677>.
8449         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
8450         already been defined by mingw's <crtdefs.h>.
8452 2019-11-18  Bruno Haible  <bruno@clisp.org>
8454         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
8455         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
8456         conditionally enabled.
8458 2019-11-18  Bruno Haible  <bruno@clisp.org>
8460         gc: Mirror libgcrypt.m4 from libgcrypt.
8461         * config/srclistvars.sh (LIBGCRYPT): New variable.
8462         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
8464 2019-11-17  Bruno Haible  <bruno@clisp.org>
8466         locale, localename: Improve z/OS support.
8467         Reported by Daniel Richard G. in
8468         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
8469         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
8470         gl_LOCALE_H.
8471         (gl_LOCALE_H): Require it.
8472         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
8473         defined, don't even check for newlocale, duplocale, freelocale.
8474         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
8475         locale_t is not defined.
8477 2019-11-17  Bruno Haible  <bruno@clisp.org>
8479         havelib: Make libdirstems processing more flexible.
8480         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
8481         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
8482         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
8483         patch from 2017-02-19).
8484         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
8485         libdirs, even when the first one exists as a directory.
8487 2019-11-17  Bruno Haible  <bruno@clisp.org>
8489         havelib: Match the bitness when searching for libraries.
8490         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
8491         acl_is_expected_elfclass.
8492         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
8493         file exists, in ELF, also test whether it has the ELF class that
8494         corresponds to the host's bitness.
8496 2019-11-17  Bruno Haible  <bruno@clisp.org>
8498         host-cpu-c-abi: Add support for unknown CPUs.
8499         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
8500         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
8501         32-bit or 64-bit.
8503 2019-11-17  Bruno Haible  <bruno@clisp.org>
8505         havelib: Remove redundant code.
8506         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
8507         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
8509 2019-11-17  Bruno Haible  <bruno@clisp.org>
8511         havelib: Fix a bug in dependency processing.
8512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
8513         of .la files, don't overwrite the value of additional_libdir for the
8514         next rounds.
8516 2019-11-16  Bruno Haible  <bruno@clisp.org>
8518         wctype-h: When overriding wint_t, override also the related functions.
8519         Reported by Christian Biesinger <cbiesinger@google.com> in
8520         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
8521         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
8522         REPLACE_ISWCNTRL to 1.
8523         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
8524         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
8525         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
8526         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
8527         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
8528         on mingw.
8529         * doc/posix-headers/wctype.texi: Likewise.
8531 2019-11-16  Bruno Haible  <bruno@clisp.org>
8533         time_r: Fix for mingw.
8534         Reported by Christian Biesinger <cbiesinger@google.com> in
8535         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
8536         * lib/time.in.h: On mingw, include <unistd.h>.
8537         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
8538         <time.h>. Test for localtime_r in a way that works when it is defined
8539         as an inline function.
8541 2019-11-13  Bruno Haible  <bruno@clisp.org>
8543         havelib: Revert last change.
8544         * build-aux/config.rpath: Revert last change. We can add msys2 support
8545         when it has been added to libtool.m4 upstream.
8547 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8549         config: add msys support
8550         Requested by Arnold Robbins in:
8551         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
8552         He also requested a change to config.guess, which I’ll forward
8553         upstream.
8554         * build-aux/ar-lib (func_file_conv):
8555         * build-aux/compile (func_file_conv):
8556         * build-aux/config.rpath (wl, with_gnu_ld)
8557         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
8558         Treat msys like cygwin.
8560 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8562         regex: now back in sync with glibc
8563         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
8564         regexec.c got merged into glibc and are now copies again.
8566 2019-10-27  Bruno Haible  <bruno@clisp.org>
8568         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
8569         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
8570         statement.
8571         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
8572         32-bit CPUs.
8574 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
8576         timespec-add, timespec-sub: simplify
8577         * lib/timespec-add.c (timespec_add):
8578         * lib/timespec-sub.c (timespec_sub):
8579         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
8580         work on unsigned integers.
8582 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8584         nstrftime: speed up integer overflow checking
8585         * lib/nstrftime.c: Include intprops.h.
8586         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
8587         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
8588         instead of doing it by hand.
8589         * modules/nstrftime (Depends-on): Add intprops.
8591         Port better to GCC under macOS
8592         Work around macOS header that has ‘#define __has_builtin(x) 0’
8593         when compiled by GCC.  Apple really, really doesn’t want you to
8594         use GCC, apparently.  Rroblem reported by Akim Demaille in:
8595         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
8596         The fix is to not trust __has_builtin when being compiled by
8597         recent-enough GCC.
8598         * lib/intprops.h (__has_builtin)
8599         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
8600         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
8601         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
8602         Remove.  All uses removed.
8603         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
8604         directly, if defined and if not newer GCC.
8605         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
8606         New macro, that use __has_builtin directly, if defined and if
8607         not newer GCC.
8608         (assume): Use them.
8610 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
8612         maintainer-makefile: update rule for argmatch.
8613         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
8615 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
8617         bitset: let freeing functions accept NULL.
8618         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
8619         given NULL.
8620         * lib/bitset.h: Document that.
8621         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
8623 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
8625         inttypes: use more-robust test for int range
8626         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
8627         Problem reported by Dagobert Michelsen in:
8628         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
8629         * lib/inttypes.in.h: Rely only on limits.h when checking
8630         int range.
8632 2019-10-15  Bruno Haible  <bruno@clisp.org>
8634         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
8635         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
8636         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
8637         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
8638         term_ostream_set_hyperlink): New functions.
8639         (term_styled_ostream_get_hyperlink_ref,
8640         term_styled_ostream_get_hyperlink_id,
8641         term_styled_ostream_set_hyperlink): New function aliases.
8643 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
8645         update-copyright: use en dashes in .texi ranges
8646         * build-aux/update-copyright: Match year ranges like "1998--2019",
8647         which are used in the Autoconf manual.  Also, update ranges in
8648         .tex, .texi, and .texinfo files to use en dashes instead of
8649         hyphens.
8651 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8653         * config/srclist.txt: Remove posix/regex_internal.c for now.
8655 2019-10-13  Bruno Haible  <bruno@clisp.org>
8657         git-version-gen: Allow 'snapshot' as .tarball-version contents.
8658         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
8659         contents to the empty string.
8661 2019-10-12  Bruno Haible  <bruno@clisp.org>
8663         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
8664         * tests/test-intprops.c (main): Disable two more tests when using
8665         HP-UX cc.
8667 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8669         Simplify and regularize regex use of ‘assert’
8670         Also, tell GCC about the asserts even when compiling without
8671         debugging, to give it further optimization opportunities.
8672         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
8673         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
8674         (parse_expression, parse_bracket_exp):
8675         * lib/regex_internal.c (build_wcs_buffer)
8676         (build_wcs_upper_buffer, re_string_reconstruct)
8677         (re_string_context_at):
8678         * lib/regexec.c (re_search_stub, re_copy_regs)
8679         (re_search_internal, prune_impossible_nodes, check_matching)
8680         (check_halt_state_context, set_regs, sift_states_backward)
8681         (build_sifted_states, transit_state_mb, transit_state_bkref)
8682         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
8683         (match_ctx_add_subtop):
8684         Use it instead of plain ‘assert’.
8686 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
8688         regex: omit debug assignment when not debugging
8689         * lib/regexec.c (re_search_internal) [!DEBUG]:
8690         Remove unnecessary assignment.
8692         regex: tell compiler there’s at most 256 arcs out
8693         Partly this is to help the reader (and maybe help GCC);
8694         partly this is to pacify Coverity.
8695         * lib/regex_internal.h: Include verify.h.
8696         * lib/regexec.c (group_nodes_into_DFAstates):
8697         Tell the compiler that ndests cannot exceed SBC_MAX.
8698         * modules/regex (Depends-on): Add ‘verify’.
8700         regex: simplify by assuming C99
8701         * config/srclist.txt: Comment out regex_internal.h and regexec.c
8702         temporarily.
8703         * lib/regex_internal.h (lock_define, re_match_context_t):
8704         Simplify by assuming C99 macros and const.
8705         * lib/regexec.c (re_search_internal): Simplify by assuming C99
8706         initializers.  Remove unnecessary assignment, as mctx is now
8707         safely initialized earlier.
8709         regex: avoid copying of uninitialized storage
8710         * config/srclist.txt: Comment out regcomp.c temporarily.
8711         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
8712         Initialize even when not checking for lint, as the behavior is
8713         arguably undefined otherwise and Coverity warns about it.
8715 2019-10-06  Bruno Haible  <bruno@clisp.org>
8717         access tests: Fix test failure when run as root.
8718         * tests/test-access.c: Include root-uid.h.
8719         (geteuid): Define fallback.
8720         (main): Don't expect that writing to a read-only file would fail when
8721         running as root. Also, remove the created files at the end.
8722         * modules/access-tests (Depends-on): Add root-uid.
8723         (configure.ac): Test whether geteuid exists.
8725 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
8727         users.txt: add GNU nano
8728         Nano has been making use of gnulib since March 2017, version 2.8.0.
8730 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
8732         bootstrap: simplify debugging of wget failures
8733         Problem reported by Tim Rühsen in:
8734         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
8735         * build-aux/bootstrap (po_download_command_format):
8736         Invoke wget with -nv instead of -q, to make debugging easier.
8738 2019-09-29  Bruno Haible  <bruno@clisp.org>
8740         avltree-list: Fix compilation warning (introduced on 2014-09-16).
8741         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
8742         'const' attribute.
8744 2019-09-29  Bruno Haible  <bruno@clisp.org>
8746         fbufmode: Fix compilation error on glibc >= 2.28 systems.
8747         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
8749 2019-09-28  Bruno Haible  <bruno@clisp.org>
8751         Update comments that refer to POSIX.
8752         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
8753         sentence about trailing slashes.
8754         * lib/fflush.c: Clarify the reasoning.
8755         * tests/test-fflush2.c: Cite the relevant sentence.
8757 2019-09-28  Bruno Haible  <bruno@clisp.org>
8759         access: Document limitations on Windows.
8760         Suggested by Zaretskii <eliz@gnu.org>.
8761         * doc/posix-functions/access.texi: Mention two limitations on Windows.
8763 2019-09-28  Bruno Haible  <bruno@clisp.org>
8765         findprog-in: Fix comment.
8766         Reported by Eli Zaretskii <eliz@gnu.org>.
8767         * lib/findprog.h (find_in_given_path): Extend description of EACCES
8768         condition.
8769         * lib/stat.c (rpl_stat): Fix typo in comment.
8770         * lib/utime.c (_gl_utimens_windows): Likewise.
8772 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8774         Update URLs and associated text
8775         (Thanks to Bruno Haible for proofreading this patch.)
8776         Prefer https: to http: in URLs where either will do, for the usual
8777         security reasons.  I also updated broken and/or moved URLs
8778         discovered during the process. In a few places I had to resort to
8779         archive.org, since I didn't find the originals elsewhere.
8781 2019-09-15  Paul Smith  <psmith@gnu.org>
8782             Bruno Haible  <bruno@clisp.org>
8784         findprog-in: Set errno when the search fails.
8785         * lib/findprog-in.c: Include <errno.h>.
8786         (find_in_given_path): Set errno before returning NULL.
8787         * lib/findprog.h (find_in_given_path): Update comment accordingly.
8788         Define the term "slash".
8790 2019-09-15  Bruno Haible  <bruno@clisp.org>
8792         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
8793         * modules/findprog (Depends-on): Add access.
8794         * modules/findprog-lgpl (Depends-on): Likewise.
8795         * modules/findprog-in (Depends-on): Likewise.
8797 2019-09-15  Bruno Haible  <bruno@clisp.org>
8799         access: Add tests.
8800         * tests/test-access.c: New file.
8801         * modules/access-tests: New file.
8803         access: New module.
8804         * lib/unistd.in.h (access): New declaration.
8805         * lib/access.c: New file.
8806         * m4/access.m4: New file.
8807         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
8808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
8809         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
8810         REPLACE_ACCESS.
8811         * modules/access: New file.
8812         * tests/test-unistd-c++.cc (access): Check signature.
8813         * doc/posix-functions/access.texi: Mention the new module.
8815 2019-09-15  Bruno Haible  <bruno@clisp.org>
8817         fcntl-h: Fix compilation error of creat.c on MSVC.
8818         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
8819         defined.
8821 2019-09-15  Bruno Haible  <bruno@clisp.org>
8823         creat: Add tests.
8824         * tests/test-creat.c: New file, based on tests/test-open.h.
8825         * modules/creat-tests: New file.
8827         creat: New module.
8828         * lib/fcntl.in.h (creat): New declaration.
8829         * lib/creat.c: New file, based on lib/open.c.
8830         * m4/creat.m4: New file.
8831         * m4/open-slash.m4: New file, extracted from m4/open.m4.
8832         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
8833         Invoke gl_OPEN_TRAILING_SLASH_BUG.
8834         * modules/open (Files): Add m4/open-slash.m4.
8835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
8836         REPLACE_CREAT.
8837         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
8838         * modules/creat: New file.
8839         * tests/test-fcntl-h-c++.cc (creat): Check signature.
8840         * doc/posix-functions/creat.texi: Mention the new module.
8842 2019-09-15  Bruno Haible  <bruno@clisp.org>
8844         open tests: Enhance test.
8845         * tests/test-open.h (test_open): Test the creation of an executable
8846         regular file. Also improve initial cleanup.
8848 2019-09-15  Bruno Haible  <bruno@clisp.org>
8850         intprops tests: Avoid build failure with HP-UX cc.
8851         * tests/test-intprops.c: Disable a check that makes HP cc choke with
8852         "error 4018: Macro param too large after substitution - use -H option.".
8854 2019-09-14  Bruno Haible  <bruno@clisp.org>
8856         Make autoconf tests work with -Werror=implicit-function-declaration.
8857         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
8858         towupper() declaration.
8859         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
8860         declaration.
8862 2019-09-14  Bruno Haible  <bruno@clisp.org>
8864         findprog-in: Better mimic the system on native Windows.
8865         Reported by Paul Smith <psmith@gnu.org>.
8866         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
8867         non-empty suffixes when the file name already contains a '.'.
8869 2019-09-10  Bruno Haible  <bruno@clisp.org>
8871         wctob: Fix autoconf test.
8872         Based on patch by Florian Weimer <fweimer@redhat.com>.
8873         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
8875 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
8877         xhash: provide hash_xinitialize.
8878         Suggested by Egor Pugin <egor.pugin@gmail.com>
8879         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
8880         * modules/xhash, lib/xhash.c: New.
8881         * lib/hash.h (hash_xinitialize): New.
8883 2019-09-09  Bruno Haible  <bruno@clisp.org>
8885         findprog-in: Make exec optimization optional.
8886         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
8887         (find_in_given_path): Add optimize_for_exec parameter.
8888         * lib/findprog-in.c (find_in_given_path): Likewise.
8890 2019-09-08  Bruno Haible  <bruno@clisp.org>
8892         Add option to assume the best, not the worst, when cross-compiling.
8893         Suggested by Jonas Termansen <sortie@maxsi.org>.
8894         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
8895         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
8896         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
8897         lt_cv_sys_argz_works.
8898         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
8899         ac_cv_func_calloc_0_nonnull.
8900         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
8901         --enable-cross-guesses for gl_cv_func_realpath_works.
8902         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
8903         gl_cv_func_cbrtl_ieee.
8904         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
8905         gl_cv_func_ceil_ieee.
8906         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
8907         gl_cv_func_ceilf_ieee.
8908         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
8909         gl_cv_func_ceill_ieee.
8910         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
8911         ac_cv_func_chown_works.
8912         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
8913         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
8914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
8915         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
8916         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
8917         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
8918         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
8919         gl_cv_func_expl_works.
8920         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
8921         gl_cv_func_expm1_ieee.
8922         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
8923         gl_cv_func_expm1l_works.
8924         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
8925         gl_cv_func_open_directory_works.
8926         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
8927         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
8928         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
8929         gl_cv_func_fchownat_empty_filename_works.
8930         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
8931         gl_cv_func_fdopendir_works.
8932         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
8933         gl_cv_func_floor_ieee.
8934         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
8935         gl_cv_func_floorf_ieee.
8936         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
8937         gl_cv_func_fma_works.
8938         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
8939         gl_cv_func_fmaf_works.
8940         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
8941         gl_cv_func_fmal_works.
8942         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
8943         gl_cv_func_fmod_ieee.
8944         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
8945         gl_cv_func_fmodf_ieee.
8946         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
8947         gl_cv_func_fmodl_ieee.
8948         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
8949         gl_cv_func_fpurge_works.
8950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
8951         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
8952         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
8953         gl_cv_func_getcwd_null.
8954         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
8955         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
8956         gl_cv_func_working_getdelim.
8957         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8958         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
8959         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
8960         gl_cv_func_getgroups_works.
8961         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
8962         am_cv_func_working_getline.
8963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
8964         for gl_cv_func_getopt_gnu.
8965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
8966         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
8967         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
8968         gl_cv_func_hypot_ieee.
8969         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
8970         gl_cv_func_hypotf_ieee.
8971         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
8972         gl_cv_func_hypotl_ieee.
8973         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
8974         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
8975         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
8976         gl_cv_func_link_works.
8977         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
8978         gl_cv_func_linkat_slash.
8979         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
8980         gl_cv_func_log_ieee.
8981         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
8982         gl_cv_func_logf_ieee.
8983         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
8984         gl_cv_func_logl_works.
8985         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
8986         gl_cv_func_log10_ieee.
8987         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
8988         gl_cv_func_log10f_ieee.
8989         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
8990         gl_cv_func_log10l_works.
8991         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
8992         gl_cv_func_log1p_ieee.
8993         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
8994         gl_cv_func_log1pf_ieee.
8995         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
8996         gl_cv_func_log1pl_ieee.
8997         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
8998         gl_cv_func_log2_ieee.
8999         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
9000         gl_cv_func_log2f_ieee.
9001         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
9002         --enable-cross-guesses for
9003         gl_cv_func_lstat_dereferences_slashed_symlink.
9004         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
9005         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9006         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
9007         gl_cv_C_locale_sans_EILSEQ.
9008         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
9009         gl_cv_func_memchr_works.
9010         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
9011         gl_cv_func_memmem_works_always.
9012         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
9013         gl_cv_func_memmem_works_fast.
9014         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
9015         gl_cv_func_mkdir_trailing_slash_works,
9016         gl_cv_func_mkdir_trailing_dot_works.
9017         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
9018         gl_cv_func_mkfifo_works.
9019         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
9020         gl_cv_func_mknod_works.
9021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
9022         gl_cv_func_working_mkstemp.
9023         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
9024         gl_cv_func_working_mktime.
9025         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
9026         gl_cv_func_modf_ieee.
9027         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
9028         gl_cv_func_modff_ieee.
9029         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
9030         gl_cv_func_modfl_ieee.
9031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
9032         gl_cv_func_nanosleep.
9033         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
9034         gl_cv_func_perror_works.
9035         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
9036         gl_cv_func_printf_sizes_c99.
9037         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
9038         gl_cv_func_printf_infinite.
9039         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
9040         gl_cv_func_printf_infinite_long_double.
9041         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
9042         gl_cv_func_printf_directive_a.
9043         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
9044         gl_cv_func_printf_directive_f.
9045         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
9046         gl_cv_func_printf_flag_zero.
9047         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
9048         gl_cv_func_printf_enomem.
9049         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
9050         gl_cv_func_snprintf_truncation_c99.
9051         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
9052         gl_cv_func_snprintf_retval_c99.
9053         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
9054         gl_cv_func_snprintf_directive_n.
9055         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
9056         gl_cv_func_vsnprintf_zerosize_c99.
9057         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
9058         gl_cv_func_pselect_detects_ebadf.
9059         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9060         Obey --enable-cross-guesses for
9061         gl_cv_pthread_rwlock_rdlock_prefer_writer.
9062         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
9063         gl_cv_func_ptsname_sets_errno.
9064         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
9065         gl_cv_func_svid_putenv.
9066         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
9067         gl_cv_func_readlink_works.
9068         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
9069         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
9070         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
9071         gl_cv_func_re_compile_pattern_working.
9072         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
9073         gl_cv_func_remainder_ieee.
9074         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
9075         gl_cv_func_remainderf_ieee.
9076         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
9077         gl_cv_func_remainderl_ieee.
9078         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
9079         gl_cv_func_rintl_works.
9080         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
9081         gl_cv_func_rmdir_works.
9082         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
9083         gl_cv_func_round_ieee.
9084         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
9085         gl_cv_func_roundf_ieee.
9086         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
9087         gl_cv_func_roundl_ieee.
9088         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
9089         gl_cv_func_select_detects_ebadf.
9090         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
9091         gl_cv_func_setenv_works.
9092         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
9093         gl_cv_func_unsetenv_works.
9094         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
9095         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
9096         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
9097         gl_cv_func_sleep_works.
9098         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
9099         gl_cv_func_stat_file_slash.
9100         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
9101         gl_cv_func_stpncpy.
9102         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
9103         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
9104         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
9105         gl_cv_func_strcasestr_linear.
9106         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
9107         gl_cv_func_working_strerror.
9108         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
9109         gl_cv_func_strerror_0_works.
9110         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
9111         --enable-cross-guesses for gl_cv_func_strerror_r_works.
9112         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
9113         gl_cv_func_strstr_works_always.
9114         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
9115         gl_cv_func_strstr_linear.
9116         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
9117         gl_cv_func_strtod_works.
9118         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
9119         gl_cv_func_strtold_works.
9120         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
9121         gl_cv_func_symlink_works.
9122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
9123         gl_cv_func_symlinkat_works.
9124         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
9125         gl_cv_func_trunc_ieee.
9126         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
9127         gl_cv_func_truncf_ieee.
9128         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
9129         gl_cv_func_truncl_ieee.
9130         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
9131         gl_cv_func_tzset_clobber.
9132         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
9133         gl_cv_func_ungetc_works.
9134         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
9135         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
9136         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
9137         gl_cv_func_usleep_works.
9138         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
9139         gl_cv_func_futimesat_works.
9140         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
9141         gl_cv_func_working_utimes.
9142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
9143         gl_cv_func_wcwidth_works.
9144         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
9145         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
9146         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
9147         links for testing. Obey --enable-cross-guesses for
9148         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
9149         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
9151 2019-09-08  Bruno Haible  <bruno@clisp.org>
9153         Clarify that cross-compilation guesses are guesses.
9154         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
9155         cross-compiling.
9157 2019-09-08  Bruno Haible  <bruno@clisp.org>
9159         chown: Fix configure output (regression from 2019-03-23).
9160         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
9161         gl_cv_func_chown_follows_symlink variable.
9163 2019-09-08  Bruno Haible  <bruno@clisp.org>
9165         findprog-in: New module.
9166         Suggested by Paul Smith <psmith@gnu.org>.
9167         * lib/findprog.h (find_in_given_path): New declaration.
9168         * lib/findprog-in.c: New file, based on lib/findprog.c.
9169         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
9170         * modules/findprog-in: New file.
9172 2019-09-08  Bruno Haible  <bruno@clisp.org>
9174         findprog: Remove unused dependency.
9175         * modules/findprog (Depends-on): Remove strdup.
9177 2019-09-08  Bruno Haible  <bruno@clisp.org>
9179         findprog: Remove test that is obsolete since 2006-04-24.
9180         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
9182 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9184         bitset: style changes
9185         * lib/bitset/vector.c (vbitset_resize): Factor computation.
9186         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
9187         xzalloc to xcalloc.
9188         Suggested by Paul Eggert.
9190 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
9192         bitset: check memory allocation
9193         Reported by 江 祖铭 (Zu-Ming Jiang).
9194         With help from Paul Eggert.
9195         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
9196         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
9197         instead of realloc.
9198         When shrinking, accept failures.
9199         * lib/bitset/vector.c (vbitset_resize): Likewise.
9201 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9203         scratch_buffer: sync from glibc
9204         * config/srclist.txt: Add the scratch_buffer source
9205         code from glibc, since these should be in sync.
9206         Autoupdate.
9208 2019-09-07  Bruno Haible  <bruno@clisp.org>
9210         doc: Update for glibc 2.30.
9211         * doc/glibc-functions/gettid.texi: New file.
9212         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
9213         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
9214         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
9215         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
9216         * doc/glibc-functions/sem_clockwait.texi: New file.
9217         * doc/glibc-functions/tgkill.texi: New file.
9218         * doc/glibc-functions/twalk_r.texi: New file.
9219         * doc/gnulib.texi: Include them.
9220         (Glibc semaphore.h): New section.
9221         * doc/pastposix-functions/h_errno.texi: Update.
9222         * doc/posix-functions/*.texi: Likewise.
9224 2019-09-06  Bruno Haible  <bruno@clisp.org>
9226         symlink tests: Avoid test failure on Linux with Lustre file system.
9227         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
9228         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
9229         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
9231 2019-09-01  Bruno Haible  <bruno@clisp.org>
9233         gitsub.sh: Add support for shallow-cloning of subdirectories.
9234         * top/gitsub.sh (func_usage): Document allowed git options with
9235         'git pull'.
9236         (func_pull): Accept GIT_OPTIONS argument.
9237         (pull): Parse git options before complaining about too many arguments.
9238         Pass the git options to func_pull.
9240 2019-08-29  Bruno Haible  <bruno@clisp.org>
9242         lock: Fix cross-compilation guesses.
9243         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
9244         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
9245         platforms.
9247 2019-08-28  Bruno Haible  <bruno@clisp.org>
9249         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
9250         Reported by Martin Storsjö <martin@martin.st> in
9251         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
9252         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
9253         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
9254         files from GCC 6 or newer, use an override through '#define', because
9255         the inline definitions in the platform's <cmath> cannot be overridden
9256         in another way.
9258 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9260         Revert macOS INT_MULTIPLY_WRAPV patch
9261         Problem reported by Bruno Haible in:
9262         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
9263         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
9264         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9265         Go back to working around the Clang bug on macOS.
9267 2019-08-27  Bruno Haible  <bruno@clisp.org>
9269         libtool-next-version: Fix error output.
9270         * build-aux/libtool-next-version (func_fatal_error): Fix the program
9271         name.
9273 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
9275         Speed up INT_MULTIPLY_WRAPV on macOS
9276         Assume that __builtin_mul_overflow works OK with Clang on macOS.
9277         Mattias Engdegård says it’s safe to assume the relevant library
9278         is always available there.
9279         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
9280         New temporary internal macro.
9281         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
9282         No need to work around the Clang bug on macOS.
9284 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9286         intprops.h, verify.h: port better to clang
9287         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
9288         with Clang.  Problem reported privately by Mattias Engdegård.
9289         Also, insulate intprops.h and verify.h better against each other’s
9290         definitions of __has_builtin on non-Clang hosts.
9291         * lib/intprops.h (__has_builtin): Define a temporary substitute
9292         if __has_builtin is not already defined.
9293         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
9294         New temporary internal macros.
9295         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
9296         Now two separate macros, replacing the old
9297         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
9298         __builtin_mul_overflow is like the rest.  All uses changed.
9299         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
9300         Adjust to above changes.
9301         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
9302         longer relevant.  All uses changed.
9303         * lib/verify.h (__has_builtin): Treat like intprops.h,
9304         so that the two .h files do not collide with each other.
9305         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
9306         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
9308 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9310         intprops: say why not Clang __builtin_add_overflow
9311         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
9312         Mention Clang in comment, responding to a query from
9313         Mattias Engdegård.
9315 2019-08-24  Bruno Haible  <bruno@clisp.org>
9317         doc: Document most of the files outside of modules.
9318         * doc/gnulib.texi (Build Infrastructure Files,
9319         Release Management Files): New chapters.
9321 2019-08-24  Bruno Haible  <bruno@clisp.org>
9323         bootstrap: Keep in sync with the 'gettext' module.
9324         Reported by Assaf Gordon in
9325         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
9326         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
9327         * build-aux/po/remove-potcdate.sin: Likewise.
9329 2019-08-24  Bruno Haible  <bruno@clisp.org>
9331         crypto/gc-sha512: Add tests.
9332         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
9333         * modules/crypto/gc-sha512-tests: New file.
9335         crypto/gc-sha256: Add tests.
9336         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
9337         * modules/crypto/gc-sha256-tests: New file.
9339         crypto/gc-sha256, crypto/gc-sha512: New modules.
9340         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
9341         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
9342         (MAX_DIGEST_SIZE): Set to 64.
9343         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
9344         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
9345         (gc_sha256, gc_sha512): New functions.
9346         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
9347         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
9348         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
9350 2019-08-24  Bruno Haible  <bruno@clisp.org>
9352         crypto/gc-sha1 tests: Improve output when the test fails.
9353         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
9354         output.
9356 2019-08-24  Bruno Haible  <bruno@clisp.org>
9358         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
9359         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
9360         LIBGCRYPT_HAS_MD_SM3.
9361         * lib/gc-libgcrypt.c: Include sm3.h.
9362         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
9363         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
9364         implementation if libgcrypt does not support SM3.
9366 2019-08-24  Bruno Haible  <bruno@clisp.org>
9368         crypto/gc-md2: Optimize and clarify code.
9369         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
9370         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
9371         is not needed.
9373 2019-08-24  Bruno Haible  <bruno@clisp.org>
9375         crypto/gc-md2: Add comment.
9376         * lib/gc-libgcrypt.c: Add comment.
9378 2019-08-24  Bruno Haible  <bruno@clisp.org>
9380         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
9381         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
9382         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
9383         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
9384         variable.
9386 2019-08-24  Bruno Haible  <bruno@clisp.org>
9388         crypto/gc: Fix link error with --with-libgcrypt.
9389         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
9390         AC_LIB_HAVE_LINKFLAGS invocation.
9392 2019-08-24  Bruno Haible  <bruno@clisp.org>
9394         crypto/gc: Access the module indicators correctly.
9395         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
9396         * lib/gc-libgcrypt.c: Likewise.
9398 2019-08-24  Bruno Haible  <bruno@clisp.org>
9400         crypto/gc: Fix configuration with --with-libgcrypt.
9401         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
9402         * modules/crypto/gc (Files): Add it.
9403         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
9405 2019-08-24  Bruno Haible  <bruno@clisp.org>
9407         Remove unused file.
9408         * m4/stat-macros.m4: Remove file.
9410 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9412         New strip-trailing-space option for srclist-update
9413         * config/srclist-update (fixfile): Support new option.
9414         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
9415         Use it.
9417 2019-08-20  Eric Blake  <eblake@redhat.com>
9419         accept4: Support SOCK_NONBLOCK, if defined
9420         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
9422         accept4: Fix compilation when native accept4() exists.
9423         Reported by Richard W.M. Jones <rjones@redhat.com> in
9424         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
9425         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
9427 2019-08-18  Bruno Haible  <bruno@clisp.org>
9429         Defeat -flto GCC optimization in math autoconf tests.
9430         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
9431         at <https://savannah.gnu.org/bugs/?56109>.
9432         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
9433         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
9434         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9435         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9436         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9437         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
9438         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9439         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
9440         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
9441         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9442         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9443         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9445 2019-08-17  Bruno Haible  <bruno@clisp.org>
9447         windows-spin: Implement declared functions.
9448         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
9449         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
9450         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
9451         name.
9453 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9455         intprops: port to Oracle Developer Studio 12.6
9456         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
9457         typos that were in a section not compiled by GCC.
9459 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
9461         intprops: support uchar, ushort _WRAPV dests
9462         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
9463         when __builtin_add_overflow etc. and _Generic are not used.
9464         (_GL_INT_OP_WRAPV): Use it to support destinations that
9465         are unsigned char or unsigned short, even in compilers
9466         that lack __typeof__ and are not C11-compatible.
9468         intprops: pacify picky GCC
9469         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
9470         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
9471         possibly-incorrect result.
9472         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
9473         about (A) used as a boolean, when A is an expression like 3 * 4.
9475         intprops: support unsigned *_WRAPV results
9476         Add support for unsigned, unsigned long, and unsigned long long
9477         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
9478         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
9479         bug with unsigned inputs reported by Eli Zaretskii in:
9480         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
9481         * config/srclist.txt: Break the glibc connection for intprops.h
9482         temporarily, while more testing is done in Gnulib-using apps.
9483         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
9484         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
9485         Support unsigned results no narrower than unsigned int.  Report
9486         overflow correctly if some arguments are unsigned.
9487         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
9488         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
9489         the right thing with narrow args.
9490         (_GL_INT_OP_CALC1): Remove.  All callers removed.
9491         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
9492         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
9493         * tests/test-intprops.c: Check for bugs and test new behavior.
9495 2019-08-14  Bruno Haible  <bruno@clisp.org>
9497         get_progname_of: New module.
9498         * lib/get_progname_of.h: New file.
9499         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
9500         * lib/getprogname.c (getprogname): Tweak coding style.
9501         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
9502         * modules/get_progname_of: New file.
9504 2019-08-14  Bruno Haible  <bruno@clisp.org>
9506         get_ppid_of: New module.
9507         * lib/get_ppid_of.h: New file.
9508         * lib/get_ppid_of.c: New file.
9509         * modules/get_ppid_of: New file.
9511 2019-08-13  Bruno Haible  <bruno@clisp.org>
9513         libtextstyle-optional tests: Support the NO_COLOR environment variable.
9514         * tests/test-libtextstyle.c (main): Do not emit styling when the
9515         environment variable NO_COLOR is set.
9517 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9519         verify: improve diagnostic quality in recent GCC
9520         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
9521         useful line number containing the top-level caller of the macro.
9522         So, bring back the older way of issuing a diagnostic containing
9523         the top-level call’s arg, so that it is easier to diagnose
9524         ‘verify’ failures with recent GCC.
9525         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
9526         Bring back DIAGNOSTIC arg.  All callers changed.
9527         (verify): Just use _GL_VERIFY.
9529 2019-08-11  Bruno Haible  <bruno@clisp.org>
9531         localcharset: Add more aliases for OS/2.
9532         Based on patch by KO Myung-Hun <komh78@gmail.com> in
9533         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
9534         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
9536 2019-08-10  Eric Blake  <eblake@redhat.com>
9538         configmake: Update advice on usage.
9539         * modules/configmake (Include): No longer necessary to include
9540         last, since configmake.h itself worries about collision avoidance.
9542 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
9544         parse-datetime: fix 'T' military timezone handling
9545         * lib/parse-datetime.y (zone):
9546         follow-up to the previous commit: the 'T' case is handled outside the
9547         conversion table (used as either military timezone UTC-7 or ISO8601
9548         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
9549         timezone letters.
9551 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
9553         parse-datetime: fix military timezone letters
9554         Problem and trivial fix reported by Neil Hoggarth in:
9555         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
9556         * lib/parse-datetime.y (military_table):
9557         Do it the right way, not the RFC 822 way.
9559 2019-08-08  Eric Blake  <eblake@redhat.com>
9561         configmake: Avoid namespace pollution issue on mingw.
9562         * modules/configmake (Makefile.am): If the project uses
9563         <winsock2.h>, include that header before defining DATADIR.
9565 2019-07-28  Bruno Haible  <bruno@clisp.org>
9567         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
9568         * tests/test-mbrtowc.c (main): Fix expected value of wc.
9570 2019-07-24  Bruno Haible  <bruno@clisp.org>
9572         pthread-h: Fix definitions of types and macros on mingw.
9573         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
9574         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
9575         not in use.
9576         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
9577         'pthread-once' is not in use.
9578         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
9579         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
9580         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
9581         in use.
9582         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
9583         Define also when module 'pthread-rwlock' is not in use.
9584         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
9585         also when module 'pthread-cond' is not in use.
9586         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
9587         'pthread-tss' is not in use.
9588         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
9589         use.
9591 2019-07-24  Simon Josefsson  <simon@josefsson.org>
9593         crypto/gc: Cope with libgcrypt without SM3.
9594         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
9596 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9598         backupfile: fix resource leak on memory failure
9599         Problem found by Coverity (CID 1484214).
9600         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
9602 2019-07-22  Bruno Haible  <bruno@clisp.org>
9604         Avoid missing-declarations warning in various tests.
9605         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
9606         test6, test_optional, test7, test8, test9, test10, test11, test12,
9607         test13, test14, test15, test_fun): Declare static.
9608         * tests/test-cnd.c (test_cnd_wait): Likewise.
9609         * tests/test-cond.c (test_cond): Likewise.
9611 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
9613         pthread tests: Avoid missing-declarations warning.
9614         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
9616 2019-07-19  Bruno Haible  <bruno@clisp.org>
9618         parse-datetime: Avoid warnings from bison versions >= 3.3.
9619         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
9620         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
9622 2019-07-19  Bruno Haible  <bruno@clisp.org>
9624         parse-datetime: Require Bison 2.4 or newer.
9625         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
9626         Code taken from gettext's intl.m4.
9627         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
9628         of YACC.
9630 2019-07-19  Bruno Haible  <bruno@clisp.org>
9632         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
9633         * lib/areadlink-with-size.c: Include <string.h>.
9634         * lib/areadlinkat-with-size.c: Likewise.
9635         * lib/xgethostname.c: Likewise.
9636         * lib/xgetdomainname.c: Likewise.
9638 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
9640         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
9641         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
9642         "%pure-parser".  The former is available since Bison 2.3b (2008),
9643         while the latter is marked as obsolete since version 3.4 (May 2019).
9645 2019-07-16  Bruno Haible  <bruno@clisp.org>
9647         update-copyright: Make it work again (regression from 2019-06-15).
9648         Reported by Brian C. Lane <bcl@redhat.com>.
9649         * build-aux/update-copyright: Add back the -0777, -p, -i options.
9651 2019-07-14  Bruno Haible  <bruno@clisp.org>
9653         doc: Update info about <pthread.h>.
9654         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
9655         of 'pthread'.
9657 2019-07-14  Bruno Haible  <bruno@clisp.org>
9659         pthread_sigmask tests: Use new multithread modules.
9660         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
9661         glthread/thread.h.
9662         (main_thread, killer_thread): Change type to pthread_t.
9663         (main): Update accordingly.
9664         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
9665         thread.
9667 2019-07-14  Bruno Haible  <bruno@clisp.org>
9669         pthread-tss: Add tests.
9670         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
9671         tests/test-tss.c.
9672         * modules/pthread-tss-tests: New file.
9674 2019-07-14  Bruno Haible  <bruno@clisp.org>
9676         pthread-cond: Add tests.
9677         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
9678         tests/test-cnd.c.
9679         * modules/pthread-cond-tests: New file.
9681 2019-07-14  Bruno Haible  <bruno@clisp.org>
9683         pthread-rwlock: Add tests.
9684         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
9685         * modules/pthread-rwlock-tests: New file.
9687 2019-07-14  Bruno Haible  <bruno@clisp.org>
9689         pthread-mutex: Add tests.
9690         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
9691         tests/test-mtx.c.
9692         * modules/pthread-mutex-tests: New file.
9694 2019-07-14  Bruno Haible  <bruno@clisp.org>
9696         pthread-once: Add tests.
9697         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
9698         tests/test-call_once.c.
9699         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
9700         tests/test-mtx.c.
9701         * modules/pthread-once-tests: New file.
9703 2019-07-14  Bruno Haible  <bruno@clisp.org>
9705         pthread-thread: Add tests.
9706         * tests/test-pthread-thread.c: New file, based on
9707         tests/test-thread_create.c and tests/test-thrd_create.c.
9708         * modules/pthread-thread-tests: New file.
9710 2019-07-14  Bruno Haible  <bruno@clisp.org>
9712         pthread: Turn into a convenience module.
9713         * lib/pthread.in.h: Remove declarations for extern inline functions.
9714         * lib/pthread.c: Remove file.
9715         * modules/pthread (Files): Remove it.
9716         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
9717         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
9718         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
9719         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
9720         GNULIB_PTHREAD.
9721         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
9723 2019-07-14  Bruno Haible  <bruno@clisp.org>
9725         pthread-spin: New module.
9726         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
9727         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
9728         inline definitions.
9729         * lib/pthread-spin.c: New file.
9730         * m4/pthread-spin.m4: New file.
9731         * modules/pthread-spin: New file.
9732         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
9733         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
9734         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
9735         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
9736         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
9738 2019-07-14  Bruno Haible  <bruno@clisp.org>
9740         pthread-tss: New module.
9741         * lib/pthread-tss.c: New file.
9742         * m4/pthread-tss.m4: New file.
9743         * modules/pthread-tss: New file.
9744         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
9745         * doc/posix-functions/pthread_setspecific.texi: Likewise.
9746         * doc/posix-functions/pthread_getspecific.texi: Likewise.
9747         * doc/posix-functions/pthread_key_delete.texi: Likewise.
9749 2019-07-14  Bruno Haible  <bruno@clisp.org>
9751         pthread-cond: New module.
9752         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
9753         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
9754         * lib/pthread-cond.c: New file.
9755         * m4/pthread-cond.m4: New file.
9756         * modules/pthread-cond: New file.
9757         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
9758         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
9759         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
9760         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
9761         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
9762         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
9763         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
9764         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
9766 2019-07-14  Bruno Haible  <bruno@clisp.org>
9768         pthread-rwlock: New module.
9769         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
9770         * m4/pthread-rwlock.m4: New file.
9771         * modules/pthread-rwlock: New file.
9772         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
9773         and the Android problem.
9774         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
9775         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
9776         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
9777         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
9778         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
9779         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
9780         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
9781         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
9782         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
9783         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
9785 2019-07-14  Bruno Haible  <bruno@clisp.org>
9787         pthread-mutex: New module.
9788         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
9789         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
9790         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
9791         pthread_mutex_unlock): Remove inline definitions.
9792         * lib/pthread-mutex.c: New file.
9793         * m4/pthread-mutex.m4: New file.
9794         * modules/pthread-mutex: New file.
9795         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
9796         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
9797         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
9798         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
9799         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9800         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9801         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
9802         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
9803         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
9804         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
9805         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
9806         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
9808 2019-07-14  Bruno Haible  <bruno@clisp.org>
9810         pthread-once: New module.
9811         * lib/pthread-once.c: New file.
9812         * m4/pthread-once.m4: New file.
9813         * modules/pthread-once: New file.
9814         * doc/posix-functions/pthread_once.texi: Mention the new module.
9816 2019-07-14  Bruno Haible  <bruno@clisp.org>
9818         pthread-thread: New module.
9819         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
9820         inline definitions.
9821         * lib/pthread-thread.c: New file.
9822         * m4/pthread-thread.m4: New file.
9823         * modules/pthread-thread: New file.
9824         * doc/posix-functions/pthread_create.texi: Mention the new module.
9825         * doc/posix-functions/pthread_attr_init.texi: Likewise.
9826         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
9827         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
9828         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
9829         * doc/posix-functions/pthread_self.texi: Likewise.
9830         * doc/posix-functions/pthread_equal.texi: Likewise.
9831         * doc/posix-functions/pthread_detach.texi: Likewise.
9832         * doc/posix-functions/pthread_join.texi: Likewise.
9833         * doc/posix-functions/pthread_exit.texi: Likewise.
9835 2019-07-14  Bruno Haible  <bruno@clisp.org>
9837         pthread-h: Prepare for adding new modules.
9838         * lib/pthread.in.h: Define the types and macros for each of the
9839         facilities separately.
9840         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
9841         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9842         HAVE_PTHREAD_PROCESS_SHARED.
9843         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
9844         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
9845         HAVE_PTHREAD_PROCESS_SHARED.
9846         * modules/pthread-h (Makefile.am): Substitute
9847         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
9848         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
9850 2019-07-14  Bruno Haible  <bruno@clisp.org>
9852         pthread-h: Add declarations of essential pthread functions.
9853         * lib/pthread.in.h: Include snippets.
9854         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
9855         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
9856         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
9857         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
9858         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
9859         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
9860         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
9861         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
9862         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
9863         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
9864         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
9865         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
9866         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
9867         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
9868         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
9869         pthread_key_create, pthread_setspecific, pthread_getspecific,
9870         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
9871         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
9872         declarations.
9873         (pthread_mutex_timedlock): Move declaration.
9874         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
9875         declared.
9876         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
9877         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
9878         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
9879         HAVE_* and REPLACE_* variables for the new functions.
9880         * modules/pthread-h (Depends-on): Add snippet/c++defs,
9881         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
9882         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
9883         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
9884         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
9885         variables for the new functions. Split the sed script, to avoid the
9886         limit of 99 commands of HP-UX sed.
9887         * tests/test-pthread-c++.cc: Check the signature of the new functions.
9889 2019-07-14  Bruno Haible  <bruno@clisp.org>
9891         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
9892         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
9893         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
9894         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
9895         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
9896         * modules/pthread-h (Depends-on): Add threadlib.
9897         (Link): Change to $(LIBTHREAD).
9898         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
9899         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
9901 2019-07-14  Bruno Haible  <bruno@clisp.org>
9903         pthread-h: Add C++ tests.
9904         * tests/test-pthread-c++.cc: New file.
9905         * modules/pthread-h-c++-tests: New file.
9907 2019-07-14  Bruno Haible  <bruno@clisp.org>
9909         pthread-h: Add tests.
9910         * tests/test-pthread.c: New file.
9911         * modules/pthread-h-tests: New file.
9913 2019-07-14  Bruno Haible  <bruno@clisp.org>
9915         pthread-h: New module.
9916         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
9917         is 1.
9918         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
9919         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
9920         <pthread.h> pollutes the namespace; instead, prepare for generating a
9921         pthread.h always. Substitute HAVE_PTHREAD_H here.
9922         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
9923         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
9924         * modules/pthread-h: New file, based on modules/pthread.
9925         * modules/pthread: Rely on 'pthread-h'.
9926         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
9927         Update.
9928         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
9929         pthread.
9931 2019-07-14  Bruno Haible  <bruno@clisp.org>
9933         sched_yield: New module.
9934         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
9935         (sched_yield): New declaration.
9936         * lib/sched_yield.c: New file.
9937         * m4/sched_yield.m4: New file.
9938         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
9939         provide a replacement sched.h always. Test whether sched_yield is
9940         declared.
9941         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
9942         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
9943         (Makefile.am): Provide a replacement sched.h always. Substitute
9944         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
9945         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
9946         * modules/sched_yield: New file.
9947         * doc/posix-functions/sched_yield.texi: Mention the new module.
9949 2019-07-14  Bruno Haible  <bruno@clisp.org>
9951         windows-spin: New module.
9952         * lib/windows-spin.h: New file.
9953         * lib/windows-spin.c: New file.
9954         * modules/windows-spin: New file.
9956 2019-07-14  Bruno Haible  <bruno@clisp.org>
9958         windows-timedrwlock: New module.
9959         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
9960         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
9961         windows-cond.c.
9962         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
9963         redefinition conflict with windows-timedrwlock.h.
9964         * modules/windows-timedrwlock: New file.
9966 2019-07-14  Bruno Haible  <bruno@clisp.org>
9968         windows-rwlock: New module.
9969         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
9970         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
9971         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
9972         windows-initguard.h.
9973         (gl_rwlock_t): Define using glwthread_rwlock_t.
9974         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
9975         (glthread_rwlock_init): Define using glwthread_rwlock_init.
9976         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
9977         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
9978         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
9979         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
9980         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
9981         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
9982         glthread_rwlock_destroy_func): Remove declarations.
9983         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
9984         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
9985         gl_waitqueue_notify_all, glthread_rwlock_init_func,
9986         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
9987         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
9988         functions.
9989         * modules/windows-rwlock: New file.
9990         * modules/lock (Depends-on): Add windows-rwlock.
9992 2019-07-14  Bruno Haible  <bruno@clisp.org>
9994         windows-thread: Add support for creating a thread in detached state.
9995         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
9996         (glwthread_thread_create): Add attr argument.
9997         * lib/windows-thread.c (glwthread_thread_create): Likewise.
9998         * lib/glthread/thread.h (glthread_create): Update.
9999         * lib/thrd.c (thrd_create): Update.
10001 2019-07-14  Bruno Haible  <bruno@clisp.org>
10003         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
10004         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
10005         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
10006         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
10007         * lib/windows-mutex.h: Update.
10008         * lib/windows-recmutex.h: Likewise.
10009         * lib/windows-timedmutex.h: Likewise.
10010         * lib/windows-timedrecmutex.h: Likewise.
10011         * lib/windows-cond.h: Likewise.
10012         * lib/glthread/lock.h: Likewise.
10013         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
10014         lib/windows-spinlock.h.
10015         * modules/windows-recmutex (Files): Likewise.
10016         * modules/windows-timedmutex (Files): Likewise.
10017         * modules/windows-timedrecmutex (Files): Likewise.
10018         * modules/windows-cond (Files): Likewise.
10019         * modules/threads-h (Files): Likewise.
10021 2019-07-14  Bruno Haible  <bruno@clisp.org>
10023         doc: Fix info about pthread API in HP-UX.
10024         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
10026 2019-07-14  Bruno Haible  <bruno@clisp.org>
10028         threads-h: Fix generation of threads.h.
10029         * modules/threads-h (Makefile.am): Insert the required header file
10030         snippets.
10032 2019-07-09  Bruno Haible  <bruno@clisp.org>
10034         striconveh test: Fix a compilation failure when iconv is not available.
10035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10036         * tests/test-striconveh.c (main): Move iconv_close invocations inside
10037         HAVE_ICONV.
10039 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
10041         argmatch: adjust columns for help2man.
10042         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
10043         requires column 20 or more, return 20.
10045 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10047         areadlink-with-size: avoid realloc when size==0
10048         * lib/areadlink-with-size.c (areadlink_with_size):
10049         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
10050         Reallocate at the end to the actual size, to avoid memory waste,
10051         as suggested by Bruno Haible.  But when the guessed size is zero -
10052         useful when the size is unknown - do the initial small readlink
10053         into the stack, to avoid that realloc in the usual case.
10055 2019-07-06  Pádraig Brady  <P@draigBrady.com>
10057         areadlink-with-size: guess a buffer size with 0 size
10058         The size is usually taken from st_size, which can be zero,
10059         resulting in inefficient operation.
10060         Instead let zero select an initial memory allocation
10061         of 128 bytes, which most symlinks fit within.
10062         * lib/areadlink-with-size.c (areadlink_with_size):
10063         Start with a 128 byte buffer, for SIZE == 0.
10064         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
10066 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
10068         Replace manually crafted hex regexes with [:xdigit:]
10069         * build-aux/gitlog-to-changelog (parse_amend_file)
10070         (git_dir_option):
10071         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
10072         This patch is backported from Emacs (Bug#36167).
10074 2019-07-06  Bruno Haible  <bruno@clisp.org>
10076         error: Fix documentation.
10077         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
10078         module provides.
10079         * doc/glibc-functions/error_message_count.texi: Likewise.
10080         * doc/glibc-functions/error_one_per_line.texi: Likewise.
10081         * doc/glibc-functions/error_print_progname.texi: Likewise.
10083 2019-07-06  Bruno Haible  <bruno@clisp.org>
10085         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
10086         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
10087         and older is unsupported.
10088         * doc/**/*.texi: Update.
10090 2019-07-06  Bruno Haible  <bruno@clisp.org>
10092         doc: Remove documentation of Linux libc5 as a supported platform.
10093         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
10094         to Linux libc5.
10095         * doc/posix-functions/iswalpha.texi: Likewise.
10096         * doc/posix-functions/iswblank.texi: Likewise.
10097         * doc/posix-functions/iswcntrl.texi: Likewise.
10098         * doc/posix-functions/iswdigit.texi: Likewise.
10099         * doc/posix-functions/iswgraph.texi: Likewise.
10100         * doc/posix-functions/iswlower.texi: Likewise.
10101         * doc/posix-functions/iswprint.texi: Likewise.
10102         * doc/posix-functions/iswpunct.texi: Likewise.
10103         * doc/posix-functions/iswspace.texi: Likewise.
10104         * doc/posix-functions/iswupper.texi: Likewise.
10105         * doc/posix-functions/iswxdigit.texi: Likewise.
10106         * doc/posix-functions/snprintf.texi: Likewise.
10107         * doc/posix-functions/vsnprintf.texi: Likewise.
10109 2019-07-06  Bruno Haible  <bruno@clisp.org>
10111         doc: Remove documentation of Tandem/NSK as a supported platform.
10112         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
10113         Tandem/NSK.
10114         * doc/**/*.texi: Update.
10116 2019-07-06  Bruno Haible  <bruno@clisp.org>
10118         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
10119         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
10120         and older is unsupported.
10121         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
10122         Mac OS X 10.4 and older.
10123         * doc/posix-functions/asinl.texi: Likewise.
10124         * doc/posix-functions/atanl.texi: Likewise.
10125         * doc/posix-functions/cosl.texi: Likewise.
10126         * doc/posix-functions/expl.texi: Likewise.
10127         * doc/posix-functions/frexpl.texi: Likewise.
10128         * doc/posix-functions/gettimeofday.texi: Likewise.
10129         * doc/posix-functions/logl.texi: Likewise.
10130         * doc/posix-functions/mkstemp.texi: Likewise.
10131         * doc/posix-functions/sinl.texi: Likewise.
10132         * doc/posix-functions/sqrtl.texi: Likewise.
10133         * doc/posix-functions/tanl.texi: Likewise.
10134         * doc/posix-functions/wcswidth.texi: Likewise.
10135         * doc/**/*.texi: Update.
10137 2019-07-06  Bruno Haible  <bruno@clisp.org>
10139         doc: Remove documentation of AIX 4 as a supported platform.
10140         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
10141         unsupported.
10142         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
10143         workarounds.
10144         * doc/posix-functions/strnlen.texi: Likewise.
10145         * doc/posix-headers/inttypes.texi: Likewise.
10146         * doc/**/*.texi: Update.
10148 2019-07-06  Bruno Haible  <bruno@clisp.org>
10150         doc: Remove documentation of HP-UX 10 as a supported platform.
10151         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
10152         unsupported.
10153         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
10154         workarounds.
10155         * doc/posix-functions/gmtime_r.texi: Likewise.
10156         * doc/posix-functions/localtime_r.texi: Likewise.
10157         * doc/posix-functions/mkstemp.texi: Likewise.
10158         * doc/**/*.texi: Update.
10160 2019-07-06  Bruno Haible  <bruno@clisp.org>
10162         doc: Remove documentation of Interix 3.5 as a supported platform.
10163         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
10164         unsupported.
10165         * doc/posix-functions/select.texi: Don't mention Interix specific
10166         workarounds.
10167         * doc/posix-headers/signal.texi: Likewise.
10168         * doc/**/*.texi: Update.
10170 2019-07-06  Bruno Haible  <bruno@clisp.org>
10172         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
10173         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
10174         unsupported.
10175         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
10176         workarounds.
10177         * doc/posix-functions/nl_langinfo.texi: Likewise.
10178         * doc/posix-functions/remainder.texi: Likewise.
10179         * doc/posix-functions/towlower.texi: Likewise.
10180         * doc/posix-functions/towupper.texi: Likewise.
10181         * doc/posix-functions/vsnprintf.texi: Likewise.
10182         * doc/posix-functions/wcscat.texi: Likewise.
10183         * doc/posix-functions/wcschr.texi: Likewise.
10184         * doc/posix-functions/wcscmp.texi: Likewise.
10185         * doc/posix-functions/wcscpy.texi: Likewise.
10186         * doc/posix-functions/wcscspn.texi: Likewise.
10187         * doc/posix-functions/wcslen.texi: Likewise.
10188         * doc/posix-functions/wcsncat.texi: Likewise.
10189         * doc/posix-functions/wcsncmp.texi: Likewise.
10190         * doc/posix-functions/wcsncpy.texi: Likewise.
10191         * doc/posix-functions/wcspbrk.texi: Likewise.
10192         * doc/posix-functions/wcsrchr.texi: Likewise.
10193         * doc/posix-functions/wcsspn.texi: Likewise.
10194         * doc/posix-headers/langinfo.texi: Likewise.
10195         * doc/posix-headers/signal.texi: Likewise.
10196         * doc/posix-headers/wchar.texi: Likewise.
10197         * doc/posix-headers/wctype.texi: Likewise.
10198         * doc/**/*.texi: Update.
10200 2019-07-05  Bruno Haible  <bruno@clisp.org>
10202         doc: Remove documentation of OSF/1 as supported platform.
10203         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
10204         unsupported.
10205         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
10206         workarounds.
10207         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
10208         * doc/glibc-functions/ptsname_r.texi: Likewise.
10209         * doc/posix-functions/ceil.texi: Likewise.
10210         * doc/posix-functions/ceilf.texi: Likewise.
10211         * doc/posix-functions/ceill.texi: Likewise.
10212         * doc/posix-functions/fchdir.texi: Likewise.
10213         * doc/posix-functions/floor.texi: Likewise.
10214         * doc/posix-functions/floorf.texi: Likewise.
10215         * doc/posix-functions/fmod.texi: Likewise.
10216         * doc/posix-functions/fmodf.texi: Likewise.
10217         * doc/posix-functions/fmodl.texi: Likewise.
10218         * doc/posix-functions/log.texi: Likewise.
10219         * doc/posix-functions/logf.texi: Likewise.
10220         * doc/posix-functions/logl.texi: Likewise.
10221         * doc/posix-functions/log10.texi: Likewise.
10222         * doc/posix-functions/log10f.texi: Likewise.
10223         * doc/posix-functions/log10l.texi: Likewise.
10224         * doc/posix-functions/log2.texi: Likewise.
10225         * doc/posix-functions/log2f.texi: Likewise.
10226         * doc/posix-functions/log2l.texi: Likewise.
10227         * doc/posix-functions/mbrtowc.texi: Likewise.
10228         * doc/posix-functions/recv.texi: Likewise.
10229         * doc/posix-functions/recvfrom.texi: Likewise.
10230         * doc/posix-functions/remainder.texi: Likewise.
10231         * doc/posix-functions/remainderf.texi: Likewise.
10232         * doc/posix-functions/remainderl.texi: Likewise.
10233         * doc/posix-functions/round.texi: Likewise.
10234         * doc/posix-functions/roundf.texi: Likewise.
10235         * doc/posix-functions/roundl.texi: Likewise.
10236         * doc/posix-functions/send.texi: Likewise.
10237         * doc/posix-functions/sendto.texi: Likewise.
10238         * doc/posix-functions/setenv.texi: Likewise.
10239         * doc/posix-functions/snprintf.texi: Likewise.
10240         * doc/posix-functions/tcgetsid.texi: Likewise.
10241         * doc/posix-functions/trunc.texi: Likewise.
10242         * doc/posix-functions/truncf.texi: Likewise.
10243         * doc/posix-functions/truncl.texi: Likewise.
10244         * doc/posix-functions/ttyname_r.texi: Likewise.
10245         * doc/posix-functions/unsetenv.texi: Likewise.
10246         * doc/posix-functions/wcsrtombs.texi: Likewise.
10247         * doc/posix-headers/sys_select.texi: Likewise.
10248         * doc/posix-headers/wchar.texi: Likewise.
10249         * doc/posix-headers/wctype.texi: Likewise.
10250         * doc/**/*.texi: Update.
10252 2019-07-05  Bruno Haible  <bruno@clisp.org>
10254         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
10255         * doc/**/*.texi: Update.
10257 2019-07-05  Bruno Haible  <bruno@clisp.org>
10259         doc: Remove documentation of Solaris 8 and older as supported platforms.
10260         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
10261         unsupported.
10262         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
10263         workarounds.
10264         * doc/posix-functions/memcmp.texi: Likewise.
10265         * doc/posix-functions/rename.texi: Likewise.
10266         * doc/posix-functions/tzset.texi: Likewise.
10267         * doc/posix-headers/wctype.texi: Likewise.
10268         * doc/**/*.texi: Update.
10270 2019-07-05  Bruno Haible  <bruno@clisp.org>
10272         doc: Remove documentation of Interix 3.5 as a supported platform.
10273         * doc/**/*.texi: Update.
10275 2019-07-05  Bruno Haible  <bruno@clisp.org>
10277         doc: Remove documentation of BeOS as a supported platform.
10278         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
10279         unsupported.
10280         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
10281         * doc/posix-functions/getdelim.texi: Likewise.
10282         * doc/**/*.texi: Update.
10284 2019-07-05  Bruno Haible  <bruno@clisp.org>
10286         thread, lock, cond, tls: Remove support for Pth threads.
10287         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10288         --enable-threads=pth any more.
10289         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
10290         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
10291         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
10292         threads and ISO C11 threads.
10293         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
10294         * lib/glthread/lock.h: Likewise.
10295         * lib/glthread/lock.c: Likewise.
10296         * lib/glthread/cond.h: Likewise.
10297         * lib/glthread/cond.c: Likewise.
10298         * lib/glthread/tls.h: Likewise.
10299         * lib/glthread/tls.c: Likewise.
10300         * lib/glthread/yield.h: Likewise.
10301         * lib/regex_internal.h: Likewise.
10302         * tests/test-thread_create.c: Likewise.
10303         * tests/test-lock.c: Likewise.
10304         * tests/test-cond.c: Likewise.
10305         * tests/test-tls.c: Likewise.
10306         * tests/test-rwlock1.c: Don't include glthread/yield.h.
10307         (main): Sleep without calling gl_thread_yield.
10309 2019-07-05  Bruno Haible  <bruno@clisp.org>
10311         thread, lock, cond, tls: Remove support for old Solaris threads.
10312         Solaris >= 2.5.1 has POSIX threads.
10313         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
10314         --enable-threads=solaris any more.
10315         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
10316         * lib/glthread/thread.c: Update comment.
10317         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
10318         * lib/glthread/lock.h: Likewise.
10319         * lib/glthread/lock.c: Likewise.
10320         * lib/glthread/cond.h: Likewise.
10321         * lib/glthread/cond.c: Likewise.
10322         * lib/glthread/tls.h: Likewise.
10323         * lib/glthread/tls.c: Likewise.
10324         * lib/glthread/yield.h: Likewise.
10325         * lib/regex_internal.h: Likewise.
10326         * tests/test-thread_create.c: Likewise.
10327         * tests/test-lock.c: Likewise.
10328         * tests/test-cond.c: Likewise.
10329         * tests/test-tls.c: Likewise.
10331 2019-07-05  Bruno Haible  <bruno@clisp.org>
10333         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
10334         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
10335         needed size is equal to the allocated size.
10336         * lib/getcwd.c (__getcwd): Likewise.
10338 2019-07-05  Bruno Haible  <bruno@clisp.org>
10340         xgetdomainname: Don't return an excessive memory allocation.
10341         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
10342         before returning it.
10344 2019-07-05  Bruno Haible  <bruno@clisp.org>
10346         xgethostname: Don't return an excessive memory allocation.
10347         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
10348         returning it.
10350 2019-07-05  Bruno Haible  <bruno@clisp.org>
10352         areadlinkat-with-size: Don't return an excessive memory allocation.
10353         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
10354         before returning it.
10356 2019-07-05  Bruno Haible  <bruno@clisp.org>
10358         areadlink-with-size: Don't return an excessive memory allocation.
10359         Reported by Andreas Dilger <adilger@whamcloud.com>.
10360         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
10361         before returning it.
10363 2019-07-03  Bruno Haible  <bruno@clisp.org>
10365         renameatu: Fix test failure on MSVC.
10366         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
10367         empty string.
10369 2019-07-03  Bruno Haible  <bruno@clisp.org>
10371         mbrtowc: Fix invalid use of mbtowc() on MSVC.
10372         * lib/mbrtowc.c: Include glthread/lock.h.
10373         (mbtowc_lock): New variable.
10374         (mbrtowc): Treat UTF-8 encoding without locking. For the other
10375         encodings, explicitly reset the internal state of mbtowc, and protect
10376         this through a lock.
10377         * modules/mbrtowc (Depends-on): Add lock.
10379 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
10381         argmatch: don't define _ in the header.
10382         Reported by Jim Meyering.
10383         * lib/argmatch.h (N_, _): Don't define.
10384         Use gettext instead.
10385         * lib/argmatch.h (_): Define.
10386         * tests/test-argmatch.c (N_): Define.
10388 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
10390         verify: document ‘assume’ better
10391         * lib/verify.h: Reword doc (Bug#36370).
10393 2019-07-02  Bruno Haible  <bruno@clisp.org>
10395         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
10396         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
10397         "CPutf8".
10398         * lib/nl_langinfo.c (ctype_codeset): Likewise.
10400 2019-07-02  Bruno Haible  <bruno@clisp.org>
10402         getcwd: Fix crash when invoked with size = 0 on MSVC.
10403         * lib/getcwd.c: Include msvc-inval.h.
10404         (getcwd_nothrow): New function/macro.
10405         (getcwd_system): New macro.
10406         (__getcwd): Use it instead of getcwd.
10407         * modules/getcwd (Depends-on): Add msvc-inval.
10408         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
10410 2019-07-02  Bruno Haible  <bruno@clisp.org>
10412         nonblocking-pipe tests: Fix test failure on MSVC.
10413         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
10414         native Windows.
10416 2019-07-02  Bruno Haible  <bruno@clisp.org>
10418         usleep: Implement with millisecond resolution on native Windows.
10419         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
10420         * doc/pastposix-functions/usleep.texi: Update accordingly.
10422 2019-07-02  Bruno Haible  <bruno@clisp.org>
10424         lstat tests: Fix test failure on MSVC.
10425         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
10426         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10428 2019-07-02  Bruno Haible  <bruno@clisp.org>
10430         stat tests: Fix test failure on MSVC.
10431         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
10432         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
10434 2019-07-02  Bruno Haible  <bruno@clisp.org>
10436         getaddrinfo tests: Fix test failure on MSVC.
10437         * tests/test-getaddrinfo.c: Include sockets.h.
10438         (main): Invoke gl_sockets_startup.
10439         * modules/getaddrinfo-tests (Depends-on): Add sockets.
10441 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
10443         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
10444         * lib/poll.c: Call Windows native select() with Windows native timeval.
10446 2019-06-30  Bruno Haible  <bruno@clisp.org>
10448         argmatch: Fix compilation errors.
10449         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
10450         * tests/test-argmatch.c (main): Update after last-minute function names
10451         change.
10453 2019-06-30  Bruno Haible  <bruno@clisp.org>
10455         Include <stdlib.h> when needed.
10456         * lib/cnd.c: Include <stdlib.h>, needed for abort().
10457         * lib/fcntl.c: Likewise.
10458         * lib/mbscasestr.c: Likewise.
10459         * lib/mbssep.c: Likewise.
10460         * lib/mbsstr.c: Likewise.
10461         * lib/openat.c: Include <stdlib.h>, needed for free().
10462         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
10463         abort().
10465 2019-06-30  Bruno Haible  <bruno@clisp.org>
10467         Include <stdlib.h> when needed.
10468         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
10469         * lib/faccessat.c: Likewise.
10470         * lib/fchmodat.c: Likewise.
10471         * lib/fchownat.c: Likewise.
10472         * lib/fstatat.c: Likewise.
10473         * lib/mkfifoat.c: Likewise.
10474         * lib/mknodat.c: Likewise.
10475         * lib/readlinkat.c: Likewise.
10476         * lib/symlinkat.c: Likewise.
10477         * lib/utimensat.c: Likewise.
10478         * lib/mkdirat.c: Likewise. Include also the specification header.
10480 2019-06-30  Bruno Haible  <bruno@clisp.org>
10482         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
10483         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
10484         from gl_PREREQ_SYS_H_SOCKET.
10485         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
10486         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
10487         gl_PREREQ_SYS_H_WS2TCPIP.
10488         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
10489         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
10490         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
10492 2019-06-30  Bruno Haible  <bruno@clisp.org>
10494         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
10495         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
10496         REPLACE_INET_NTOP to 1 always.
10497         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
10498         REPLACE_INET_PTON to 1 always.
10500 2019-06-30  Bruno Haible  <bruno@clisp.org>
10502         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
10503         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
10504         not REPLACE_INET_NTOP.
10506 2019-06-30  Bruno Haible  <bruno@clisp.org>
10508         poll: Add comment.
10509         * lib/poll.c: Add comment about WSAPoll.
10511 2019-06-30  Bruno Haible  <bruno@clisp.org>
10513         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
10514         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
10515         * lib/poll.in.h: Include <winsock2.h>.
10516         (POLL*, pollfd): Override on native Windows.
10517         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10518         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
10519         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10521 2019-06-28  Bruno Haible  <bruno@clisp.org>
10523         accept4: Fix compilation error on OpenIndiana.
10524         Reported by Michal Nowak <mnowak@startmail.com>
10525         via Mark H Weaver <mhw@netris.org>.
10526         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
10527         whether it exists as a function.
10529 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
10531         strverscmp: sync from glibc
10532         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
10533         comments, include libc-config.h, define __strverscmp to be
10534         strverscmp, and don’t assume types line uint8_t and int8_t that
10535         that C99 doesn’t guarantee.
10536         [!_LIBC]: Include libc-config.h; define __strverscmp.
10537         Include stdint.h.
10538         (__strverscmp): Assume C99.  Use uint_least8_t
10539         and int_least8_t instead of unsigned char and signed char.
10540         * modules/strverscmp (Depends-on): Add libc-config, stdint.
10542 2019-06-25  Bruno Haible  <bruno@clisp.org>
10544         tss tests: Add tests for destructors and races.
10545         * tests/test-tss.c (worker_thread): Fix typo in debug message.
10546         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
10547         functions.
10548         (main): Invoke them.
10549         * modules/tls-tests (Depends-on): Add mtx.
10551 2019-06-25  Bruno Haible  <bruno@clisp.org>
10553         tls tests: Add tests for destructors and races.
10554         * tests/test-tls.c: Include glthread/lock.h.
10555         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
10556         functions.
10557         (main): Invoke them.
10558         * modules/tls-tests (Depends-on): Add lock.
10560 2019-06-25  Bruno Haible  <bruno@clisp.org>
10562         windows-tls: Implement TLS key destructors for native Windows.
10563         * lib/windows-tls.h (glwthread_tls_process_destructors): New
10564         declaration.
10565         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
10566         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
10567         (dtor_table_init_once, dtor_table_lock: New variables.
10568         (struct dtor): New type.
10569         (dtor_table, dtors_count, dtors_used, dtors_allocated,
10570         dtor_processing_threads): New variables.
10571         (dtor_table_initialize, dtor_table_ensure_initialized,
10572         dtor_table_shrink_used, glwthread_tls_process_destructors): New
10573         functions.
10574         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
10575         handle non-NULL destructors.
10576         * modules/windows-tls (Depends-on): Add windows-once.
10577         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
10578         Use the functions declared in windows-tls.h.
10579         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
10580         GLWTHREAD_DESTRUCTOR_ITERATIONS.
10581         * lib/windows-thread.c: Include windows-tls.h.
10582         (wrapper_func, glwthread_thread_exit): Invoke
10583         glwthread_tls_process_destructors.
10584         * modules/windows-thread (Depends-on): Add windows-tls.
10586 2019-06-25  Bruno Haible  <bruno@clisp.org>
10588         threadlib: Avoid autoconf warning "was expanded before it was required".
10589         * modules/threadlib (configure.ac): Require gl_THREADLIB.
10591 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
10593         argmatch: remove duplicate const qualifier
10594         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
10596 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10598         unistd: stddef.h and sys/types.h namespace cleanup
10599         * lib/unistd.in.h [__GLIBC__]:
10600         Do not include stddef.h or sys/types.h.
10601         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
10602         supposed to declare off_t and ssize_t.  Problem found when looking
10603         at why @GNULIB_PWRITE@ was different from the newly-added
10604         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
10606 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10608         maintainer-makefile: restore portability to non-GNU awks
10609         Reported by Tim Rühsen.
10610         * top/maint.mk (AWK): New variable.  Use it.
10611         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
10613 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10615         Document setvbuf _IOLBF problem
10616         * doc/posix-functions/setvbuf.texi (setvbuf):
10617         Document MS-Windows portability problem with _IOLBF.
10619         Document lseek SEEK_DATA/SEEK_HOLE
10620         * doc/posix-functions/lseek.texi (lseek):
10621         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
10623 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
10625         argmatch: put all the docs member last.
10626         Reported by Bruno Haible.
10627         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
10628         member before the docs done.
10629         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
10631 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
10633         argmatch: add support to generate the usage message.
10634         * lib/argmatch.c: Move some #includes and gettext support to...
10635         * lib/argmatch.h: here.
10636         (ARGMATCH_DEFINE_GROUP): New macro.
10637         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
10638         (argmatch_backup_group): New.
10639         (CHECK): New.
10640         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
10641         argmatch_backup_argument and argmatch_backup_usage.
10642         * modules/argmatch: We depend on c99.
10643         * doc/argmatch.texi (Recognizing Option Arguments): New.
10644         * doc/gnulib.texi: Use it.
10646 2019-06-21  Bruno Haible  <bruno@clisp.org>
10648         thrd: Add comment.
10649         * lib/thrd.c (pthread_main_func): Add comment.
10651 2019-06-21  Bruno Haible  <bruno@clisp.org>
10653         threads-h: Define 'thread_local' if and only if it actually works.
10654         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
10655         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
10656         Oracle Solaris Studio C. Compile a simple program, to see whether
10657         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
10658         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
10659         * lib/threads.in.h (thread_local): Undefine if it does not work.
10660         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
10661         (Link): Mention LIBTHREADLOCAL.
10662         * tests/test-threads.c: Don't check that thread_local is defined.
10663         * tests/test-thread_local.c: New file.
10664         * modules/threads-h-tests (Files): Add it and macros.h.
10665         (Depends-on): Add thrd and stdint.
10666         (configure.ac): Test whether 'alarm' is declared.
10667         (Makefile.am): Arrange to build and link test-thread_local.
10668         * doc/posix-headers/threads.texi: Mention the platforms that don't
10669         support 'thread_local'.
10671 2019-06-20  Bruno Haible  <bruno@clisp.org>
10673         threads-h: Simplify link dependencies.
10674         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
10675         Don't set LTLIBSTDTHREAD.
10676         * modules/thrd (Link): Simplify accordingly.
10677         * modules/mtx (Link): Likewise.
10678         * modules/cnd (Link): Likewise.
10679         * modules/tss (Link): Likewise.
10680         * modules/threads (Link): Likewise.
10682 2019-06-20  Bruno Haible  <bruno@clisp.org>
10684         threads-h: Fix link error on FreeBSD 11.
10685         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
10686         also with -lpthread.
10688 2019-06-20  Bruno Haible  <bruno@clisp.org>
10690         threadlib: Fix typo (regression from today).
10691         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
10693 2019-06-20  Bruno Haible  <bruno@clisp.org>
10695         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
10696         * lib/windows-thread.c: Include <errno.h>.
10697         * lib/windows-tls.c: Likewise.
10699 2019-06-20  Bruno Haible  <bruno@clisp.org>
10701         tss tests: Small improvement.
10702         * tests/test-tss.c (test_tss): Pass a different id to each thread.
10704 2019-06-20  Bruno Haible  <bruno@clisp.org>
10706         threads: New module.
10707         * modules/threads: New file.
10709 2019-06-20  Bruno Haible  <bruno@clisp.org>
10711         tss: Add tests.
10712         * tests/test-tss.c: New file, based on tests/test-tls.c.
10713         * modules/tss-tests: New file.
10715 2019-06-20  Bruno Haible  <bruno@clisp.org>
10717         cnd: Add tests.
10718         * tests/test-cnd.c: New file, based on tests/test-cond.c.
10719         * modules/cnd-tests: New file.
10721 2019-06-20  Bruno Haible  <bruno@clisp.org>
10723         mtx: Add tests.
10724         * tests/test-mtx.c: New file, based on tests/test-lock.c.
10725         * tests/test-call_once.c: New file, based on tests/test-once.c.
10726         * modules/mtx-tests: New file.
10728 2019-06-20  Bruno Haible  <bruno@clisp.org>
10730         thrd: Add tests.
10731         * tests/test-thrd_create.c: New file, based on
10732         tests/test-thread_create.c.
10733         * tests/test-thrd_current.c: New file, based on
10734         tests/test-thread_self.c.
10735         * modules/thrd-tests: New file.
10737 2019-06-20  Bruno Haible  <bruno@clisp.org>
10739         tss: New module.
10740         * lib/tss.c: New file.
10741         * modules/tss: New file.
10742         * doc/posix-functions/tss_create.texi: Mention the new module.
10743         * doc/posix-functions/tss_set.texi: Likewise.
10744         * doc/posix-functions/tss_get.texi: Likewise.
10745         * doc/posix-functions/tss_delete.texi: Likewise.
10747 2019-06-20  Bruno Haible  <bruno@clisp.org>
10749         cnd: New module.
10750         * lib/cnd.c: New file.
10751         * modules/cnd: New file.
10752         * doc/posix-functions/cnd_init.texi: Mention the new module.
10753         * doc/posix-functions/cnd_wait.texi: Likewise.
10754         * doc/posix-functions/cnd_timedwait.texi: Likewise.
10755         * doc/posix-functions/cnd_signal.texi: Likewise.
10756         * doc/posix-functions/cnd_broadcast.texi: Likewise.
10757         * doc/posix-functions/cnd_destroy.texi: Likewise.
10759 2019-06-20  Bruno Haible  <bruno@clisp.org>
10761         mtx: New module.
10762         * lib/mtx.c: New file.
10763         * modules/mtx: New file.
10764         * doc/posix-functions/call_once.texi: Mention the new module.
10765         * doc/posix-functions/mtx_init.texi: Likewise.
10766         * doc/posix-functions/mtx_lock.texi: Likewise.
10767         * doc/posix-functions/mtx_trylock.texi: Likewise.
10768         * doc/posix-functions/mtx_timedlock.texi: Likewise.
10769         * doc/posix-functions/mtx_unlock.texi: Likewise.
10770         * doc/posix-functions/mtx_destroy.texi: Likewise.
10772 2019-06-20  Bruno Haible  <bruno@clisp.org>
10774         thrd: New module.
10775         * lib/thrd.c: New file.
10776         * m4/thrd.m4: New file.
10777         * modules/thrd: New file.
10778         * doc/posix-functions/thrd_current.texi: Mention the new module.
10779         * doc/posix-functions/thrd_detach.texi: Likewise.
10780         * doc/posix-functions/thrd_equal.texi: Likewise.
10781         * doc/posix-functions/thrd_exit.texi: Likewise.
10782         * doc/posix-functions/thrd_sleep.texi: Likewise.
10783         * doc/posix-functions/thrd_yield.texi: Likewise.
10784         * doc/posix-functions/thrd_create.texi: Mention the new module and the
10785         AIX bug.
10786         * doc/posix-functions/thrd_join.texi: Mention the new module and the
10787         AIX and Solaris bugs.
10789 2019-06-20  Bruno Haible  <bruno@clisp.org>
10791         threads-h: Add tests.
10792         * tests/test-threads.c: New file.
10793         * modules/threads-h-tests: New file.
10794         * tests/test-threads-c++.cc: New file.
10795         * modules/threads-h-c++-tests: New file.
10797 2019-06-20  Bruno Haible  <bruno@clisp.org>
10799         threads-h: New module.
10800         * lib/threads.in.h: New file.
10801         * m4/threads.m4: New file.
10802         * m4/yield.m4 (gl_YIELD): Update comment.
10803         * modules/threads-h: New file.
10804         * modules/yields (configure.ac): Use AC_REQUIRE.
10805         * doc/posix-headers/threads.texi: Mention the new module and the AIX
10806         bugs.
10808 2019-06-20  Bruno Haible  <bruno@clisp.org>
10810         windows-thread: New module.
10811         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
10812         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
10813         * lib/glthread/thread.h: Include windows-thread.h.
10814         (gl_thread_t): Define using glwthread_thread_t.
10815         (glthread_create): Define using glwthread_thread_create.
10816         (glthread_join): Define using glwthread_thread_join.
10817         (gl_thread_self): Define using glwthread_thread_self.
10818         (gl_thread_exit): Define using glwthread_thread_exit.
10819         (glthread_create_func, glthread_join_func, gl_thread_self_func,
10820         gl_thread_exit_func): Remove declarations.
10821         * lib/glthread/thread.c (self_key): Remove variable.
10822         (do_init_self_key, init_self_key): Remove functions.
10823         (struct gl_thread_struct): Remove type.
10824         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
10825         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
10826         functions.
10827         * modules/windows-thread: New file.
10828         * modules/thread (Depends-on): Add windows-thread.
10830 2019-06-20  Bruno Haible  <bruno@clisp.org>
10832         windows-tls: New module.
10833         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
10834         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
10835         * lib/glthread/tls.h: Include windows-tls.h.
10836         (gl_tls_key_t): Define using glwthread_tls_key_t.
10837         * modules/windows-tls: New file.
10838         * modules/tls (Depends-on): Add windows-tls.
10840 2019-06-20  Bruno Haible  <bruno@clisp.org>
10842         windows-cond: New module.
10843         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
10844         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
10845         * lib/glthread/cond.h: Include windows-cond.h.
10846         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
10847         (gl_cond_t): Define using glwthread_cond_t.
10848         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
10849         (glthread_cond_init): Define using glwthread_cond_init.
10850         (glthread_cond_wait): Define using glwthread_cond_wait.
10851         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
10852         (glthread_cond_signal): Define using glwthread_cond_signal.
10853         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
10854         (glthread_cond_destroy): Define using glwthread_cond_destroy.
10855         (glthread_cond_init_func, glthread_cond_wait_func,
10856         glthread_cond_timedwait_func, glthread_cond_signal_func,
10857         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10858         declarations.
10859         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
10860         types.
10861         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10862         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
10863         glthread_cond_init_func, glthread_cond_wait_func,
10864         glthread_cond_timedwait_func, glthread_cond_signal_func,
10865         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
10866         functions.
10867         * modules/windows-cond: New file.
10868         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
10870 2019-06-20  Bruno Haible  <bruno@clisp.org>
10872         windows-timedrecmutex: New module.
10873         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
10874         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
10875         * modules/windows-timedrecmutex: New file.
10877 2019-06-20  Bruno Haible  <bruno@clisp.org>
10879         windows-timedmutex: New module.
10880         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
10881         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
10882         * modules/windows-timedmutex: New file.
10884 2019-06-20  Bruno Haible  <bruno@clisp.org>
10886         windows-recmutex: New module.
10887         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
10888         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
10889         * lib/glthread/lock.h: Include windows-recmutex.h.
10890         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
10891         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
10892         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
10893         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
10894         (glthread_recursive_lock_unlock): Define using
10895         glwthread_recmutex_unlock.
10896         (glthread_recursive_lock_destroy): Define using
10897         glwthread_recmutex_destroy.
10898         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
10899         glthread_recursive_lock_unlock_func,
10900         glthread_recursive_lock_destroy_func): Remove declarations.
10901         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
10902         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
10903         glthread_recursive_lock_destroy_func): Remove functions.
10904         * modules/windows-recmutex: New file.
10905         * modules/lock (Depends-on): Add windows-recmutex.
10907 2019-06-20  Bruno Haible  <bruno@clisp.org>
10909         windows-mutex: New module.
10910         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
10911         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
10912         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
10913         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
10914         (gl_spinlock_t): Remove type.
10915         (gl_lock_t): Define using glwthread_mutex_t.
10916         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
10917         (glthread_lock_init): Define using glwthread_mutex_init.
10918         (glthread_lock_lock): Define using glwthread_mutex_lock.
10919         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
10920         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
10921         (glthread_lock_init_func, glthread_lock_lock_func,
10922         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10923         declarations.
10924         Use glwthread_spinlock_t instead of gl_spinlock_t.
10925         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
10926         GLWTHREAD_SPINLOCK_INIT.
10927         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
10928         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
10929         functions.
10930         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
10931         gl_spinlock_t.
10932         * modules/windows-mutex: New file.
10933         * modules/lock (Depends-on): Add windows-mutex.
10935 2019-06-20  Bruno Haible  <bruno@clisp.org>
10937         windows-once: New module.
10938         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
10939         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
10940         * lib/glthread/lock.h: Include windows-once.h.
10941         (gl_once_t): Define using glwthread_once_t.
10942         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
10943         (glthread_once): Define using glwthread_once.
10944         (glthread_once_func): Remove declaration.
10945         * lib/glthread/lock.c (glthread_once_func): Remove function.
10946         * modules/windows-once: New file.
10947         * modules/lock (Depends-on): Add windows-once.
10949 2019-06-20  Bruno Haible  <bruno@clisp.org>
10951         lock, cond: Avoid possible counter wraparound on Windows.
10952         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
10953         field of the guard unchanged if it was already positive.
10954         (glthread_rwlock_rdlock_func): Likewise.
10955         (glthread_rwlock_wrlock_func): Likewise.
10956         (glthread_recursive_lock_lock_func): Likewise.
10957         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
10958         (glthread_cond_timedwait_func): Likewise.
10960 2019-06-20  Bruno Haible  <bruno@clisp.org>
10962         cond: Make glthread_cond_timedwait more reliable on Windows.
10963         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
10964         condition variable before looking at the current time.
10966 2019-06-20  Bruno Haible  <bruno@clisp.org>
10968         pthread_mutex_timedlock: New module.
10969         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
10970         new declaration.
10971         * lib/pthread_mutex_timedlock.c: New file.
10972         * m4/pthread_mutex_timedlock.m4: New file.
10973         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
10974         whether pthread_mutex_timedlock is declared.
10975         (gl_PTHREAD_MODULE_INDICATOR): New macro.
10976         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10977         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10978         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
10979         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
10980         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
10981         * modules/pthread_mutex_timedlock: New file.
10982         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
10983         module.
10985 2019-06-20  Bruno Haible  <bruno@clisp.org>
10987         thread, lock, cond, tls: Recognize C11 multithreaded applications.
10988         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
10989         * lib/glthread/thread.h (c11_threads_in_use): New macro.
10990         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10991         * lib/glthread/lock.h (c11_threads_in_use): New macro.
10992         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10993         * lib/glthread/cond.h (c11_threads_in_use): New macro.
10994         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10995         * lib/glthread/tls.h (c11_threads_in_use): New macro.
10996         (pthread_in_use, pth_in_use, thread_in_use): Use it.
10998 2019-06-20  Bruno Haible  <bruno@clisp.org>
11000         tls tests: Small improvements.
11001         * tests/test-tls.c: Include <stdint.h>.
11002         (worker_thread): Avoid gcc warning on 64-bit mingw.
11003         (test_tls): Pass a different id to each thread.
11004         * modules/tls-tests (Depends-on): Add stdint.
11006 2019-06-20  Bruno Haible  <bruno@clisp.org>
11008         cond tests: Simplify.
11009         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
11011 2019-06-20  Bruno Haible  <bruno@clisp.org>
11013         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
11014         * tests/test-lock.c (test_once): Don't reference fire_signal if
11015         !ENABLE_LOCKING.
11017 2019-06-19  Bruno Haible  <bruno@clisp.org>
11019         nanosleep: Relicense under LGPLv2+.
11020         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
11021         * modules/nanosleep (License): Change to LGPLv2+.
11023 2019-06-19  Bruno Haible  <bruno@clisp.org>
11025         Reorder pieces of header in perl scripts.
11026         The desired order is
11027         - Prologue part 1 (2 lines with #!)
11028         - Program short description
11029         - Copyright and license notice
11030         - Written-by notice
11031         - Program short description (optional)
11032         - Program long description (optional)
11033         - Prologue part 2
11034         - Time stamp
11035         - Code
11036         Reported by Paul Eggert.
11037         * build-aux/announce-gen: Reorder header.
11038         * build-aux/gitlog-to-changelog: Likewise.
11039         * build-aux/useless-if-before-free: Likewise.
11040         * build-aux/prefix-gnulib-mk: Add copyright notice and short
11041         description.
11042         * build-aux/update-copyright: Likewise. Add short description. Bump
11043         time-stamp-line-limit to 200.
11045 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
11047         verify-tests: work around xlc bug
11048         Problem reported by Bruno Haible in:
11049         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
11050         * tests/test-verify.c (item): Move the arithmetic inside the
11051         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
11053 2019-06-16  Bruno Haible  <bruno@clisp.org>
11055         Restore Emacs time-stamp hook applicability.
11056         Reported by Darshit Shah <darnir@gnu.org>.
11057         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
11058         * build-aux/announce-gen: Likewise.
11059         * build-aux/gitlog-to-changelog: Likewise.
11060         * build-aux/prefix-gnulib-mk: Likewise.
11061         * build-aux/update-copyright: Likewise.
11063 2019-06-15  Bruno Haible  <bruno@clisp.org>
11065         Fix scripts to have valid executable format on Alpine Linux.
11066         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
11067         Idea by Paul Eggert.
11068         * build-aux/useless-if-before-free: Use a prologue that starts with
11069         '#!/bin/sh'.
11070         * build-aux/announce-gen: Likewise.
11071         * build-aux/gitlog-to-changelog: Likewise.
11072         * build-aux/prefix-gnulib-mk: Likewise.
11073         * build-aux/update-copyright: Likewise.
11074         * tests/test-update-copyright.sh: Update test program accordingly.
11076 2019-06-10  Bruno Haible  <bruno@clisp.org>
11078         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
11079         Reported by Nikita Ermakov <arei@altlinux.org> in
11080         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
11081         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
11082         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
11084 2019-06-10  Bruno Haible  <bruno@clisp.org>
11086         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
11087         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11088         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
11089         a copy of the path argument.
11090         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11091         it.
11093 2019-06-10  Bruno Haible  <bruno@clisp.org>
11095         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
11096         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
11097         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
11098         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
11099         a copy of the path argument.
11100         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
11101         it.
11103 2019-06-10  Bruno Haible  <bruno@clisp.org>
11105         posix_spawn_file_actions_addfchdir: Add tests.
11106         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
11107         * tests/test-posix_spawn5.c: New file.
11108         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
11110 2019-06-10  Bruno Haible  <bruno@clisp.org>
11112         posix_spawn_file_actions_addfchdir: New module.
11113         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
11114         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
11115         union member 'fchdir_action'.
11116         * lib/spawn_faction_addfchdir.c: New file.
11117         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
11118         * m4/posix_spawn_faction_addfchdir.m4: New file.
11119         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
11120         'posix_spawn_file_actions_addfchdir' is present and whether
11121         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
11122         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
11123         posix_spawn_file_actions_addfchdir is declared.
11124         (gl_SPAWN_H_DEFAULTS): Initialize
11125         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11126         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11127         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11128         * modules/spawn (Makefile.am): Substitute
11129         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11130         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
11131         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
11132         * modules/posix_spawn_file_actions_addfchdir: New file.
11133         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
11134         signature.
11135         * doc/posix-functions/posix_spawn.texi: Mention the new module.
11136         * doc/posix-functions/posix_spawnp.texi: Likewise.
11137         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
11138         Likewise.
11140 2019-06-10  Bruno Haible  <bruno@clisp.org>
11142         doc: Document existence of posix_spawn_file_actions_addchdir module.
11143         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
11144         the posix_spawn_file_actions_addchdir module.
11146 2019-06-10  Bruno Haible  <bruno@clisp.org>
11148         posix_spawn-internal: Fix module description.
11149         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
11150         from here...
11151         * modules/posix_spawnp (configure.ac): ... and here...
11152         * modules/posix_spawn-internal (configure.ac): ... to here.
11154 2019-06-10  Bruno Haible  <bruno@clisp.org>
11156         doc: Update and improve documentation of glibc functions.
11157         This is a series of commits that
11158         - updates the documentation to the state of glibc 2.29,
11159         - adds references to Linux man pages and glibc documentation,
11160         - marks Linux specific functions as such.
11161         These are the commits:
11162         doc: Update after removal of crypt functions from glibc 2.28.
11163         doc: Remove mention of function vm86 (does not exist on x86_64).
11164         doc: Remove mention of functions that are gone from glibc.
11165         doc: Mention that glibc no longer provides h_errno.
11166         doc: Mention the availability of specific functions in glibc versions.
11167         doc: Mention eaccess.
11168         doc: Add references to Linux man pages.
11169         doc: Add references to glibc documentation.
11170         doc: Mention inotify_* functions.
11171         doc: Mention ppoll.
11172         doc: Mention sched_getcpu.
11173         doc: Mention sync_file_range.
11174         doc: Mention epoll_pwait.
11175         doc: Mention eventfd, eventfd_read, eventfd_write.
11176         doc: Mention signalfd.
11177         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
11178         doc: Mention epoll_create1.
11179         doc: Mention getauxval.
11180         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
11181         doc: Mention nextdown, nextup.
11182         doc: Mention more ISO TS 18661-1 <math.h> functions.
11183         doc: Mention ISO TS 18661-1 <fenv.h> functions.
11184         doc: Mention getrandom, getentropy.
11185         doc: Mention strfromf, strfromd, strfroml.
11186         doc: Mention preadv2, pwritev2.
11187         doc: Mention copy_file_range.
11188         doc: Mention memfd_create.
11189         doc: Mention mlock2.
11190         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
11191         doc: Mention more ISO TS 18661-1 <math.h> functions.
11192         doc: Mention renameat2.
11193         doc: Mention statx.
11194         doc: Mention the ISO C11 multithreading header and functions.
11195         doc: Mention getcpu.
11196         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
11197         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
11198         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
11199         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
11200         doc: Some glibc functions also exist on Solaris 11.
11201         doc: Some glibc functions also exist on Solaris 11.4.
11202         doc: Some glibc functions also exist on FreeBSD.
11203         doc: Some glibc functions also exist on BeOS.
11204         doc: Some glibc functions also exist on Haiku.
11205         doc: Mark functions which exist only on Linux.
11206         doc: Mark functions which exist only on Linux and illumos.
11208 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
11210         copy-file: fix typo
11211         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
11213         copy-file-range: simplify into a stub
11214         Based on a comment by Florian Weimer in:
11215         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
11216         It turns out that Emacs (which will use this module) won’t need an
11217         emulation and I suspect other programs won’t either, because these
11218         programs will need to fall back on read+write anyway.  Perhaps I
11219         am wrong and other programs will be able to use an emulation; if
11220         so, this patch can be reverted.
11221         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
11222         Just call it copy_file_range.
11223         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
11224         Check via AC_LINK_IFELSE.
11225         * modules/copy-file-range (Depends-on): Remove modules no longer used.
11227 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
11229         copy-file: prefer copy_file_range
11230         * lib/copy-file.c: Do not include xalloc.h.
11231         (qcopy_file_preserving): Allocate a buffer only if
11232         copy_file_range does not suffice.  If the allocation fails
11233         don't give up; just use a small stack-based buffer.
11234         Prefer copy_file_range if it works.
11235         * modules/copy-file (Depends-on): Add copy-file-range.
11236         Remove xalloc.
11238         copy-file-range: new module
11239         * MODULES.html.sh: Add copy-file-range.
11240         * lib/copy-file-range.c, m4/copy-file-range.m4:
11241         * modules/copy-file-range: New files.
11242         * lib/unistd.in.h (copy_file_range): Declare.
11243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
11244         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
11245         * modules/unistd (unistd.h): Substitute them.
11247 2019-05-28  Bruno Haible  <bruno@clisp.org>
11249         binary-io: Attempted use of O_BINARY on consoles no longer fails.
11250         Reported by KO Myung-Hun <komh78@gmail.com> in
11251         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
11252         * lib/binary-io.h (__gl_setmode_check): Remove function.
11253         (set_binary_mode): Declare as notinline on DJGPP and EMX.
11254         * lib/binary-io.c (__gl_setmode_check): Remove function.
11255         (set_binary_mode): Define here on DJGPP and EMX. Inline
11256         __gl_setmode_check. In case of a tty, don't return an error code.
11258 2019-05-28  James Youngman  <jay@gnu.org>
11260         dirent-safer: Make opendir_safer usable from C++.
11261         * lib/dirent-safer.h: use extern "C".
11263 2019-05-28  James Youngman  <jay@gnu.org>
11265         canonicalize: Make canonicalize_filename_mode usable from C++.
11266         * lib/canonicalize.h: use extern "C".
11268 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
11270         prefix-gnulib-mk: Fix CPPFLAGS migration.
11271         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
11272         _a part of the library name.
11274 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11276         flexmember: update comments again
11277         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
11279         flexmember: update comment
11280         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
11282 2019-05-20  Bruno Haible  <bruno@clisp.org>
11284         setlocale: Improve fallback on macOS.
11285         * lib/setlocale.c (search): Optimize away a redundant strcmp()
11286         invocation.
11287         (locales_with_principal_territory): New array.
11288         (langcmp, get_main_locale_with_same_language): New functions.
11289         (locales_with_principal_language): New array.
11290         (terrcmp, get_main_locale_with_same_territory): New functions.
11291         (rpl_setlocale): When setlocale_single failed, try again with a locale
11292         that is more likely to exist. Don't warn if the environment variable
11293         SETLOCALE_VERBOSE is not set.
11295 2019-05-19  Bruno Haible  <bruno@clisp.org>
11297         localename: Fix default on macOS.
11298         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
11299         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
11300         (gl_locale_name_environ, gl_locale_name_default): Remove code for
11301         HAVE_CFLOCALECOPYCURRENT.
11302         * lib/localename.h (gl_locale_name_default): Update.
11304 2019-05-19  Karl Berry  <karl@freefriends.org>
11306         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
11307         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
11308         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
11310 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
11312         maintainer-makefile: catch uses of $< in non-implicit rules
11313         * top/maint.mk (sc_prohibit_magic_number_exit): New.
11315 2019-05-18  Bruno Haible  <bruno@clisp.org>
11317         threadlib: Provide an easy way to avoid mingw's winpthreads library.
11318         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
11319         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
11320         gl_use_threads accordingly.
11322 2019-05-18  Bruno Haible  <bruno@clisp.org>
11324         pthread_sigmask: Fix compilation error with --enable-threads=windows.
11325         Reported by Tim Rühsen in
11326         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
11327         and Michele Locati in
11328         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
11329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
11330         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
11331         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
11332         in use and regardless which threads API is chosen.
11334 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
11336         close-stream, closein, closeout: simplify
11337         I noticed this opportunity for simplification while drafting a
11338         new, related module that I haven’t had time to finish yet.
11339         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
11340         * modules/close-stream (Files): Remove m4/close-stream.m4.
11341         (configure.ac): Omit gl_CLOSE_STREAM.
11342         * modules/closein (Files): Remove m4/closein.m4
11343         (configure.ac): Omit gl_CLOSEIN.
11344         * modules/closeout (Files): Remove m4/closeout.m4.
11345         (configure.ac): Omit gl_CLOSEOUT.
11347 2019-05-12  Bruno Haible  <bruno@clisp.org>
11349         libtool-next-version: New program.
11350         * build-aux/libtool-next-version: New file.
11352 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
11353             Bruno Haible  <bruno@clisp.org>
11355         version-etc: Ease translation.
11356         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
11357         URLs and formatting newlines out of translatable string.
11359 2019-05-11  Bruno Haible  <bruno@clisp.org>
11361         gnupload: Explain how to create symlinks.
11362         * build-aux/gnupload (usage): Add an example that creates symlinks.
11364 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
11366         fpucw: port to gcc -pedantic
11367         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
11368         Use __extension__ if using ({ ... }).
11370         crypto/af_alg: port to strict C compilers
11371         * lib/af_alg.c: Include af_alg.h regardless, so that the
11372         compilation unit is nonempty.
11374 2019-05-10  Bruno Haible  <bruno@clisp.org>
11376         base64: Avoid false positive warning from Coverity.
11377         Reported by Kamil Dudka <kdudka@redhat.com>.
11378         Idea by Paul Eggert.
11379         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
11380         '& 0x3f' to the array index expressions. This convinces Coverity that
11381         there is no out-of-bounds array reference, regardless of the input.
11383 2019-05-09  Bruno Haible  <bruno@clisp.org>
11385         gettext: Update to gettext 0.20.
11386         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
11387         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
11388         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
11389         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
11390         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
11391         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
11392         (configure.ac): Request infrastructure compatible with gettext 0.20.
11393         * m4/glibc2.m4: Remove file.
11394         * m4/intdiv0.m4: Remove file.
11395         * m4/intl.m4: Remove file.
11396         * m4/intldir.m4: Remove file.
11397         * m4/intmax.m4: Remove file.
11398         * m4/printf-posix.m4: Remove file.
11399         * m4/uintmax_t.m4: Remove file.
11400         * m4/gettext.m4: Update from gettext 0.20.
11401         * m4/po.m4: Likewise.
11403 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
11405         verify: remove verify_true
11406         * NEWS: Mention this.
11407         * lib/verify.h (verify_true): Remove.
11408         * tests/test-verify.c (item): Test verify_expr, not verify_true.
11410         Support C2X and C++17 static_assert
11411         C2X and C++17 finally added support for a simple, single-argument
11412         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
11413         doing back in 2005.  Implement static_assert on older platforms.
11414         The only remaining advantage of ‘verify’ is a shorter name.
11415         * doc/posix-headers/assert.texi (assert.h):
11416         * doc/verify.texi (Compile-time Assertions):
11417         Modernize for C2X and C++17.
11418         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
11419         New macros.
11420         (_GL_HAVE__STATIC_ASSERT): Remove.
11421         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
11422         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
11423         string.  All callers changed.
11424         (_GL_VERIFY): Require 3 or more args, of which only the first 2
11425         are used.  All callers changed.
11426         (_Static_assert): Allow either 1 or 2 args, and define if
11427         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
11428         !_GL_HAVE__STATIC_ASSERT.
11429         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
11430         of defining if !_GL_HAVE_STATIC_ASSERT.
11431         (verify_expr, verify): Don’t bother trying to copy the expression
11432         into the diagnostic, since 1-argument static_assert doesn’t.
11433         (verify): Prefer 1-argument _Static_assert if it works.
11434         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
11436 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11438         Fix _GL_HAVE__STATIC_ASSERT typo
11439         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
11440         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
11442 2019-05-05  Bruno Haible  <bruno@clisp.org>
11444         wcwidth: Ensure width 1, not 2, for ambiguous characters.
11445         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
11446         via Akim Demaille <akim.demaille@gmail.com>.
11447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
11448         en_US.UTF-8 locale, since that is more likely to be present than an
11449         fr_FR.UTF-8 locale.
11450         * tests/test-wcwidth.c (main): Check the width of U+2202.
11451         * doc/posix-functions/wcwidth.texi: Mention the issue.
11453 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
11455         Port manywarnings to GCC 9
11456         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
11457         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
11458         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
11459         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
11460         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
11461         --help=warnings output.
11462         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
11463         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
11464         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
11466 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
11468         Sync lib/mktime-internal.h from glibc
11469         * config/srclist.txt: Add entry for lib/mktime-internal.h.
11470         * lib/mktime-internal.h: Autoupdate.
11472 2019-04-28  Bruno Haible  <bruno@clisp.org>
11474         tls tests: Prevent that the test takes too long.
11475         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
11476         (main): Let the test fail if it takes more than 10 minutes.
11477         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
11479 2019-04-27  Bruno Haible  <bruno@clisp.org>
11481         lock tests: Prevent that the test takes too long.
11482         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
11483         (main): Let the test fail if it takes more than 10 minutes.
11484         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
11486 2019-04-27  Bruno Haible  <bruno@clisp.org>
11488         localename: Fix crash on mingw (regression from 2018-11-23).
11489         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
11490         locale name that is null.
11492 2019-04-27  Bruno Haible  <bruno@clisp.org>
11494         Fix gcc warnings on 64-bit mode mingw.
11495         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
11496         * lib/gl_array_list.c: Likewise.
11497         * lib/gl_array_map.c: Likewise.
11498         * lib/gl_array_set.c: Likewise.
11499         * lib/gl_carray_list.c: Likewise.
11500         * lib/gl_sublist.c: Likewise.
11501         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
11502         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
11503         * lib/gl_hash_map.c (uintptr_t): Likewise.
11504         * lib/gl_hash_set.c (uintptr_t): Likewise.
11505         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
11506         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
11507         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
11508         * lib/iconv.c (uintptr_t): Likewise.
11509         * lib/iconv_close.c (uintptr_t): Likewise.
11510         * tests/test-lock.c: Include <stdint.h>.
11511         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
11512         'long'.
11513         * modules/clean-temp (Depends-on): Add stdint.
11514         * modules/array-list (Depends-on): Likewise.
11515         * modules/array-map (Depends-on): Likewise.
11516         * modules/array-set (Depends-on): Likewise.
11517         * modules/carray-list (Depends-on): Likewise.
11518         * modules/sublist (Depends-on): Likewise.
11519         * modules/lock-tests (Depends-on): Likewise.
11521 2019-04-27  Bruno Haible  <bruno@clisp.org>
11523         error: Tweak indentation.
11524         * lib/error.c: Correct indentation.
11526 2019-04-27  Bruno Haible  <bruno@clisp.org>
11528         term-style-control: Fix gcc warning on mingw.
11529         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
11530         of i.
11532 2019-04-26  Bruno Haible  <bruno@clisp.org>
11534         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
11535         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
11537 2019-04-26  Bruno Haible  <bruno@clisp.org>
11539         relocatable-prog: Fix gcc warning on mingw.
11540         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
11541         on EMX.
11543 2019-04-02  Bruno Haible  <bruno@clisp.org>
11545         gitsub.sh: New file.
11546         * top/gitsub.sh: New file.
11548 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
11550         argmatch: use void* for raw memory pointers
11551         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
11552         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
11553         to "values", keep char* for strings.
11555 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
11557         prefix-gnulib-mk: fix the support for gnulib-po
11558         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
11559         Don't touch HAVE_* variables.
11560         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
11562 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
11564         di-set: allow free with 'ino_map' being NULL.
11565         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
11566         is NULL.  Bug introduced in commit 3703dbbe88dd.
11567         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
11568         as a test.
11570 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
11572         * lib/str-two-way.h: Fix comment typo.
11574 2019-04-13  Bruno Haible  <bruno@clisp.org>
11576         x-to-1: Restore ability to use original calling convention.
11577         * build-aux/x-to-1.in: Add comments. Accept the original form of
11578         HELP2MAN argument as well as the form expected since 2012-12-12.
11580 2019-04-13  Bruno Haible  <bruno@clisp.org>
11582         x-to-1: Avoid failure due to missing perl modules.
11583         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
11584         needs are installed.
11586 2019-04-13  Bruno Haible  <bruno@clisp.org>
11588         openmp-init: New module.
11589         * modules/openmp-init: New file.
11590         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
11591         the changes from 2019-04-09.
11593 2019-04-12  Bruno Haible  <bruno@clisp.org>
11595         signbit: Fix compilation error when gnulib's math.h exists twice.
11596         * lib/math.in.h (GNULIB_defined_signbit): New macro.
11598 2019-04-12  Bruno Haible  <bruno@clisp.org>
11600         openmp: Fix compilation error on platforms without OpenMP.
11601         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
11603 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
11605         mountlist: make parsing /proc/self/mountinfo more robust
11606         Cater for the following issues with mountinfo parsing (the first
11607         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
11608         in <https://bugs.gnu.org/35137>).
11609         1. The fields source, target, mntroot and fstype may contain characters
11610         like '\r'; sscanf(3) fails to read such values with the %s format
11611         specifier because it would stop at such characters.
11612         Example: "mount -t tmpfs tmpfs /foo^Mbar".
11613         The only true separator in that file is the ' ' character.
11614         2. The source field may be an empty string, which happens e.g. with
11615         "mount -t tmpfs '' /target".
11616         3. The fstype field may contain mangled characters as well which need
11617         unescaping.
11618         * lib/mountlist.c (terminate_at_blank): Add utility function.
11619         (read_file_system_list): In the block trying to read the mountinfo file,
11620         avoid using sscanf(3) with %s format; instead, parse the above fields
11621         separated by spaces one by one.
11622         This also handles the case when the source field is an empty string.
11623         Unescape the fstype field.
11625 2019-04-09  Bruno Haible  <bruno@clisp.org>
11627         openmp: Add workaround for 32-bit programs on AIX.
11628         * lib/omp.in.h: New file.
11629         * lib/omp-init.c: New file, based on lib/nproc.c.
11630         * m4/omp_h.m4: New file.
11631         * modules/openmp (Files): Add them.
11632         (Depends-on): Add include_next, c-ctype, setenv.
11633         (configure.ac): Invoke gl_OMP_H.
11634         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
11635         (Include): Mention <omp.h>.
11637 2019-04-09  Bruno Haible  <bruno@clisp.org>
11639         nproc: Fix return value for privileged processes.
11640         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
11641         getpid().
11643 2019-04-07  Bruno Haible  <bruno@clisp.org>
11645         Add copyright notices in several files.
11646         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
11647         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
11648         * lib/libunistring.valgrind: Likewise.
11649         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
11650         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
11651         * lib/memchr.valgrind: Likewise.
11652         * lib/memchr2.valgrind: Likewise.
11653         * lib/rawmemchr.valgrind: Likewise.
11654         * lib/relocatable.valgrind: Likewise.
11655         * lib/strchrnul.valgrind: Likewise.
11657 2019-03-25  Bruno Haible  <bruno@clisp.org>
11659         term-style-control tests: Fix link error.
11660         Reported by Tom G. Christensen in
11661         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
11662         * modules/term-style-control-tests (Makefile.am): Link
11663         test-term-style-control-hello and test-term-style-control-yes against
11664         LIBINTL.
11666 2019-03-24  Bruno Haible  <bruno@clisp.org>
11668         term-style-control: Add tests.
11669         * tests/test-term-style-control-hello.c: New file.
11670         * tests/test-term-style-control-yes.c: New file.
11671         * modules/term-style-control-tests: New file.
11673         term-style-control: New module.
11674         * lib/term-style-control.h: New file, based on libtextstyle's
11675         term-ostream.oo.h and term-ostream.oo.c.
11676         * lib/term-style-control.c: New file, based on libtextstyle's
11677         term-ostream.oo.c.
11678         * modules/term-style-control: New file.
11680 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11682         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
11683         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
11684         C++98 appears to be supported by Clang, but not by GCC nor ICC.
11686 2019-03-23  Bruno Haible  <bruno@clisp.org>
11688         Support cross-compilation to musl libc.
11689         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
11690         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
11691         musl libc.
11692         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
11693         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
11694         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11695         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11696         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11697         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
11698         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11699         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
11700         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11701         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11702         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11703         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
11704         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11705         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11706         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
11707         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
11708         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
11709         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
11710         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
11711         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
11712         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11713         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
11714         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
11715         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
11716         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
11717         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
11718         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
11719         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
11720         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
11721         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
11722         * m4/log.m4 (gl_FUNC_LOG): Likewise.
11723         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
11724         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
11725         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
11726         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
11727         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
11728         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
11729         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
11730         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
11731         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
11732         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
11733         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
11734         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
11735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
11736         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
11737         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
11738         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
11739         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
11740         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
11741         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
11742         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
11743         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
11744         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
11745         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
11746         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
11747         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
11748         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
11749         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
11750         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
11751         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11752         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11753         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11755         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
11756         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11757         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11759         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
11760         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11761         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
11762         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11763         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11764         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11765         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
11766         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
11767         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
11768         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11771 2019-03-23  Bruno Haible  <bruno@clisp.org>
11773         posix_spawn_file_actions_*: Document musl libc bugs.
11774         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11775         the bug.
11776         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
11777         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
11778         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
11779         cross-compiling to a musl system, guess no.
11780         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
11781         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
11783 2019-03-23  Bruno Haible  <bruno@clisp.org>
11785         futimens: Document musl libc bug.
11786         * doc/posix-functions/futimens.texi: Mention the bug.
11787         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
11788         cross-compiling, guess no on glibc and musl systems.
11790 2019-03-23  Bruno Haible  <bruno@clisp.org>
11792         Clarify that cross-compilation guesses are guesses.
11793         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
11794         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
11795         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
11796         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
11797         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
11798         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
11799         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
11800         gl_cv_glob_lists_symlinks.
11801         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
11802         'guessing ' to ac_cv_func_malloc_0_nonnull.
11803         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
11804         'guessing ' to ac_cv_func_realloc_0_nonnull.
11805         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
11806         'guessing ' to gl_cv_func_poll.
11807         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
11808         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
11809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
11811 2019-03-23  Bruno Haible  <bruno@clisp.org>
11813         strtold: Fix typo.
11814         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
11816 2019-03-23  Bruno Haible  <bruno@clisp.org>
11818         noreturn: In C++ mode with clang, use _Noreturn as fallback.
11819         Reported by Akim Demaille.
11820         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
11821         [[noreturn]] would not work, use _Noreturn instead.
11823 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
11825         libtextstyle-optional: Fix compiler warnings.
11826         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
11827         as unused.
11829 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11831         bitset: fix memory leaks
11832         Reported by Bruno Haible.
11833         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
11834         * lib/bitset/vector.c (vbitset_free): New.
11835         (vbitset_vtable): Use it.
11837 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11839         bitset: minor changes
11840         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
11841         * lib/bitset/table.c: Formatting changes.
11842         Remove useless braces.
11843         Prefer using else in cascades of if/else-if with returns.
11844         * lib/bitset/vector.c: Reduce scopes.
11846 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
11848         bitset: expose bitset_resize
11849         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
11850         * tests/test-bitset.c (check_attributes): Check bitset_resize.
11851         (main): Use a variable bitset as reference, since fixed does not support resize.
11853 2019-03-19  Bruno Haible  <bruno@clisp.org>
11855         doc: Document the 'stdnoreturn' and 'noreturn' modules.
11856         Reported by Akim Demaille.
11857         * doc/noreturn.texi: New file.
11858         * doc/gnulib.texi: Include it.
11860 2019-03-19  Bruno Haible  <bruno@clisp.org>
11862         doc: Document how to use 'static inline'.
11863         * doc/static-inline.texi: New file.
11864         * doc/gnulib.texi: Include it.
11866 2019-03-19  Bruno Haible  <bruno@clisp.org>
11868         libtextstyle-optional: Add tests.
11869         * tests/test-libtextstyle.c: New file, based on libtextstyle's
11870         adhoc-tests/hello.c.
11871         * tests/test-libtextstyle-default.css: New file, copied from
11872         libtextstyle's adhoc-tests/hello-default.css.
11873         * modules/libtextstyle-optional-tests: New file.
11875         libtextstyle-optional: New module.
11876         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
11877         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
11878         * modules/libtextstyle-optional: New file.
11880 2019-03-19  Bruno Haible  <bruno@clisp.org>
11882         c-stack: Make signal handlers more reliable.
11883         * lib/c-stack.c (progname): New variable.
11884         (die): Use it.
11885         (c_stack_action): Initialize it.
11886         (segv_handler): Save and restore errno.
11888 2019-03-19  Bruno Haible  <bruno@clisp.org>
11890         Help making signal handlers more reliable.
11891         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
11892         _GL_ASYNC_SAFE into config.h.
11893         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
11894         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
11895         argument.
11896         * lib/fatal-signal.c (action_t, uninstall_handlers,
11897         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
11898         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
11899         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
11900         _GL_ASYNC_SAFE.
11901         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
11902         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
11904 2019-03-18  Bruno Haible  <bruno@clisp.org>
11906         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
11907         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
11908         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
11910 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11912         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
11913         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
11914         GCC 4.8.
11916 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
11918         fts: minor simplification
11919         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
11921 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
11923         bitset, timevar: Depend on c99.
11924         Reported by Bruno Haible.
11925         * modules/bitset, modules/timevar (Depends-on): Add c99.
11927 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11929         bitset: a bit (...) more tests
11930         * tests/test-bitset.c (check_attributes): Check zero and ones.
11932 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
11934         bitset: fix overflows.
11935         Reported by Bruno Haible.
11936         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
11937         * lib/bitset/table.c (tbitset_test): last_bit is the position of
11938         the bit in the array of bitset_word, so be sure to take its modulo
11939         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
11940         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
11942 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
11944         bitset: style changes.
11945         * lib/bitset/table.c: Use NULL, not 0, for pointers.
11946         Formatting changes.
11947         (tbitset_list): Reduce scopes.
11949 2019-03-16  Bruno Haible  <bruno@clisp.org>
11951         fatal-signal: Pass the signal number to the action.
11952         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
11953         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
11954         (fatal_signal_handler): Pass the signal number to the action.
11955         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
11956         signal number as parameter.
11957         (create_temp_dir): Update.
11958         * lib/wait-process.c (cleanup_slaves_action): New function.
11959         (register_slave_subprocess): Update at_fatal_signal invocation.
11960         * NEWS: Mention the change.
11962 2019-03-16  Bruno Haible  <bruno@clisp.org>
11964         fatal-signal: Add function that lists the fatal signals.
11965         * lib/fatal-signal.h (get_fatal_signals): New declaration.
11966         * lib/fatal-signal.c (get_fatal_signals): New function.
11968 2019-03-14  Bruno Haible  <bruno@clisp.org>
11970         isatty: Make it return true in Cygwin consoles on native Windows.
11971         * lib/isatty.c: Include <string.h>.
11972         (GetProcAddress): New macro.
11973         (GetNamedPipeClientProcessIdFuncType): New type.
11974         (GetNamedPipeClientProcessIdFunc): New variable.
11975         (QueryFullProcessImageNameFuncType): New type.
11976         (QueryFullProcessImageNameFunc): New variable.
11977         (initialized): New variable.
11978         (initialize): New function.
11979         (IsCygwinConsoleHandle): New function.
11980         (isatty): Invoke it.
11981         * doc/posix-functions/isatty.texi: Mention the issue.
11983 2019-03-14  Bruno Haible  <bruno@clisp.org>
11985         all: Update URLs to msdn.microsoft.com.
11986         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
11987         was moved to docs.microsoft.com.
11989 2019-03-13  Bruno Haible  <bruno@clisp.org>
11991         gnulib-tool: Clarify the coding style.
11992         Suggested by Pavel Raiskup <praiskup@redhat.com>.
11993         * gnulib-tool: Add comment about coding style.
11995 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
11997         strtod: fix clash with strtold
11998         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
11999         * lib/strtod.c (compute_minus_zero, minus_zero):
12000         Simplify by remving the macro / external variable,
12001         and having just a function.  User changed.  This avoids
12002         the need for an external variable that might clash.
12004 2019-03-10  Bruno Haible  <bruno@clisp.org>
12006         alloca-opt: Fix conflict mingw's new <alloca.h> file.
12007         Reported by Eli Zaretskii <eliz@gnu.org>.
12008         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
12009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
12010         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
12012 2019-03-10  Bruno Haible  <bruno@clisp.org>
12014         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
12015         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
12016         is in use.
12017         * tests/test-printf-posix2.c: Likewise.
12019 2019-03-10  Bruno Haible  <bruno@clisp.org>
12021         uninorm tests: Free allocated memory.
12022         * tests/uninorm/test-u32-normalize-big.h
12023         (struct normalization_test_file): Remove 'const' from allocated member.
12024         (free_normalization_test_file): New declaration.
12025         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
12026         memory.
12027         (free_normalization_test_file): New function.
12028         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
12029         'struct normalization_test_file' contents.
12030         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
12031         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
12032         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
12034 2019-03-10  Bruno Haible  <bruno@clisp.org>
12036         di-set: Fix memory leak.
12037         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
12038         not free().
12040 2019-03-10  Bruno Haible  <bruno@clisp.org>
12042         tests: Free allocated memory.
12043         Reported by <deltatau@protonmail.com> via Assaf Gordon.
12044         * tests/test-astrxfrm.c (main): Free allocated memory.
12045         * tests/test-bitset.c (compare, check_attributes): Free allocated
12046         bitsets.
12047         * tests/test-filenamecat.c (main): Free allocated memory.
12048         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
12049         * tests/test-freadptr.c (main): Likewise.
12050         * tests/test-freadptr2.c (main): Free allocated memory.
12051         * tests/test-freadseek.c (main): Likewise.
12052         * tests/test-gc-arcfour.c (main): Close allocated context.
12053         * tests/test-gc-arctwo.c (main): Likewise.
12054         * tests/test-gc-des.c (main): Close all allocated contexts.
12055         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
12056         * tests/test-pipe-filter-ii1.c (main): Likewise.
12057         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
12058         allocated file actions.
12059         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
12060         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
12061         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
12062         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
12063         * tests/test-strfmon_l.c (main): Free allocated locales.
12064         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
12065         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
12066         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12067         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12068         * tests/unistr/test-chr.h (main): Free input32.
12069         * tests/unistr/test-strchr.h (test_strchr): Likewise.
12071 2019-03-10  Bruno Haible  <bruno@clisp.org>
12073         tests: Prepare for using valgrind.
12074         * tests/*.sh: Invoke all test programs through ${CHECKER}.
12075         * tests/*/*.sh: Likewise.
12076         * tests/test-freadptr.c (main): Update accordingly.
12077         * tests/test-freadseek.c (main): Likewise.
12079 2019-03-09  Bruno Haible  <bruno@clisp.org>
12081         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
12082         * lib/get-rusage-as.c (get_rusage_as): When compiled by
12083         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
12084         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
12085         before exiting.
12087 2019-03-09  Jim Meyering  <meyering@fb.com>
12089         test-userspec.c: don't print NULL
12090         * tests/test-userspec.c (main): A test release of gcc,
12091         9.0.1 20190310, warned that this test would attempt to
12092         print a NULL pointer via a %s printf format.  Fix that
12093         and remove the unnecessary preceding "!diag" conjunct.
12094         Also add a comment.
12096 2019-03-03  Bruno Haible  <bruno@clisp.org>
12098         getloadavg: Write NULL for the null pointer.
12099         Reported by Michal Privoznik <mprivozn@redhat.com>.
12100         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
12102 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
12104         alloca, tsearch-tests: Write NULL for the null pointer.
12105         * lib/alloca.c (i00afunc): Write NULL instead of 0.
12106         * tests/test-tsearch.c (mangle_tree): Likewise.
12108 2019-03-09  Bruno Haible  <bruno@clisp.org>
12110         strfmon_l: Fix -fsanitize=address finding.
12111         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
12112         <string.h>.
12113         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
12114         (directive_t, directives_t): New types.
12115         (fmon_parse): New function.
12116         (rpl_strfmon_l): Don't call va_arg more often than needed for the
12117         format string. Consume 'long double' arguments in places where the
12118         format string indicates so.
12119         * modules/strfmon_l (Depends-on): Add 'stdbool'.
12121 2019-03-09  Bruno Haible  <bruno@clisp.org>
12123         crypto/des: Fix undefined behaviour.
12124         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
12125         shift operations on 'int'.
12127 2019-03-09  Bruno Haible  <bruno@clisp.org>
12129         Fix undefined behaviour.
12130         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
12131         'unsigned int', to avoid shift operations on 'int'.
12132         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
12133         * tests/test-count-leading-zeros.c (main): Use a random number that has
12134         as many bits as TYPE, not only 2*15 or 2*31 bits.
12135         * tests/test-count-trailing-zeros.c (main): Likewise.
12136         * tests/test-count-one-bits.c (main): Likewise.
12137         * tests/test-memmem.c: Don't include "null-ptr.h".
12138         (main): Use zerosize_ptr() instead of null_ptr().
12139         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
12141 2019-03-08  Bruno Haible  <bruno@clisp.org>
12143         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
12144         Reported by Jeffrey Walton <noloader@gmail.com>.
12145         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
12146         invoke memset with a zero size.
12147         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
12148         Likewise.
12149         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
12150         Adjust accordingly.
12152 2019-03-08  Bruno Haible  <bruno@clisp.org>
12154         unistr/*, uniconv/*: Fix undefined behaviour.
12155         Reported by Jeffrey Walton <noloader@gmail.com>.
12156         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
12157         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
12158         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12159         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12161 2019-03-08  Bruno Haible  <bruno@clisp.org>
12163         unistr/u8-cmp: Fix undefined behaviour.
12164         Reported by Jeffrey Walton <noloader@gmail.com>.
12165         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
12167 2019-03-08  Bruno Haible  <bruno@clisp.org>
12169         unictype/numeric: Fix undefined behaviour.
12170         Reported by Jeffrey Walton <noloader@gmail.com>.
12171         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
12172         on shift overflow, caught by "gcc -fsanitize=undefined".
12173         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
12174         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
12175         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
12177 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
12179         git-version-gen: fix --version copyright year
12180         * build-aux/git-version-gen, build-aux/move-if-change (version):
12181         --version output copyright year is now taken from script year,
12182         so that it no longer needs to be updated by hand.
12184 2019-03-04  Bruno Haible  <bruno@clisp.org>
12186         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
12187         This approach supports relocatable installation of shared libraries
12188         which depend on other shared libraries from the same package.
12189         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12190         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
12191         wrapper around the original LIBTOOL.
12192         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
12193         token '@loader_path' instead of '$ORIGIN'.
12194         * build-aux/libtool-reloc: New file.
12195         * modules/relocatable-prog (Files): Add it.
12196         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12197         the recent changes. Document the need to set the *_LDFLAGS of libraries.
12198         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
12199         Makefile.am, not in configure.ac.
12201 2019-03-04  Bruno Haible  <bruno@clisp.org>
12203         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
12204         * build-aux/install-reloc: Revert change.
12205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12207 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12209         nstrftime: support the ‘+’ flag
12210         * lib/nstrftime.c (add, __strftime_internal):
12211         Add support for the ‘+’ flag introduced in POSIX.1-2017.
12212         (__strftime_internal): New arg ‘width’.  All uses changed.
12213         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
12215 2019-02-24  Bruno Haible  <bruno@clisp.org>
12217         relocatable-prog: Improve verbose output.
12218         * build-aux/install-reloc (func_verbose): Escape characters that would
12219         be interpreted by the shell.
12221 2019-02-24  Bruno Haible  <bruno@clisp.org>
12223         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
12224         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
12225         "sys/stat.h".
12226         * lib/lstat.c: Likewise.
12227         * lib/fstat.c: Likewise.
12228         * lib/fstatat.c: Likewise.
12230 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
12232         long-options: add parse_gnu_standard_options_only
12233         Discussed in https://bugs.gnu.org/33468 .
12235         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
12236         (parse_gnu_standard_options_only): Add function to process
12237         the GNU default options --help and --version and fail for
12238         any other unknown long or short option. See
12239         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
12240         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
12241         * modules/long-options (depends-on): Add stdbool, exitfail.
12242         * top/maint.mk (sc_prohibit_long_options_without_use): Update
12243         syntax-check rule, add new function name.
12245 2019-02-23  Bruno Haible  <bruno@clisp.org>
12247         relocatable-prog: Update documentation.
12248         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
12249         the recent changes.
12251 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12253         nstrftime: tweak arg order
12254         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
12255         All callers changed.  Suggested by TAMUKI Shoichi in:
12256         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
12258 2019-02-23  Bruno Haible  <bruno@clisp.org>
12260         relocatable-prog: Use wrapper-free installation also on Mac OS X.
12261         Reported by Paul Smith <psmith@gnu.org>.
12262         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
12263         (func_relativize): New function, from gnulib-tool.
12264         Handle mode 'macosx' through invocations of 'otool' and
12265         'install_name_tool'.
12266         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
12267         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
12268         'install-reloc' invocation with mode 'macosx'.
12270 2019-02-23  Bruno Haible  <bruno@clisp.org>
12272         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
12273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12274         Hurd with glibc >= 2.27.
12276 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12278         nstrftime: merge glibc strftime changes
12279         This incorporates:
12280         2019-02-11 Fix a few whitespace arrangement inconsistencies
12281         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
12282         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
12283         2019-01-11 strftime: use the "L_" macro with character literals
12284         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
12285         callers changed.  Default width of %Ey is now 2.  This is needed
12286         for proper handling of Japanese dates starting on 2019-05-01.
12288 2019-02-19  Bruno Haible  <bruno@clisp.org>
12290         relocatable-prog: Use $ORIGIN trick on more platforms.
12291         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
12292         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
12293         Solaris >= 10, Haiku. But don't use it on Android.
12294         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
12295         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
12297 2019-02-19  Bruno Haible  <bruno@clisp.org>
12299         progreloc: Speed up executable lookup on various platforms.
12300         * lib/progreloc.c: Include <errno.h>.
12301         (safe_read, full_read): New functions.
12302         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
12303         prefer the information from the /proc file system to a PATH search.
12305 2019-02-19  Bruno Haible  <bruno@clisp.org>
12307         progreloc: Simplify code for Android.
12308         * lib/progreloc.c (executable_fd): Don't define on Android.
12309         (maybe_executable, find_executable): Don't use executable_fd on Android.
12311 2019-02-15  Bruno Haible  <bruno@clisp.org>
12313         gnulib-tool: Support --import with just a few tests, not --with-tests.
12314         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
12315         'inctests' when generating files; use 'inctests' only for computing the
12316         transitive closure.
12318 2019-02-14  Bruno Haible  <bruno@clisp.org>
12320         gnulib-tool: Improve handling of multiple --local-dir options.
12321         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
12322         options work.
12323         * gnulib-tool (func_path_prepend): Remove function.
12324         (func_path_foreach): Make IFS handling more robust.
12325         (local_gnulib_path): Collect --local-dir values using func_path_append,
12326         not func_path_prepend.
12327         (func_determine_path_separator): Make IFS handling more robust.
12328         (func_lookup_file_cb): New function.
12329         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
12330         func_lookup_local_file. Apply the patches in the reverse order of their
12331         origin in $local_gnulib_path.
12332         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
12333         * NEWS: Mention that the first --local-dir option is the one with
12334         highest priority.
12336 2019-02-10  Bruno Haible  <bruno@clisp.org>
12338         libtextstyle: New module.
12339         * m4/libtextstyle.m4: New file.
12340         * modules/libtextstyle: New file.
12342 2019-02-05  Bruno Haible  <bruno@clisp.org>
12344         declared.sh: Fix bug with variables of pointer type.
12345         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
12346         before the symbol to be omitted if the preceding character is a '*'.
12348 2019-02-04  Bruno Haible  <bruno@clisp.org>
12350         Add script for running tests under valgrind.
12351         * build-aux/run-test: New file, from GNU libunistring.
12352         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
12353         as well.
12355 2019-02-04  Bruno Haible  <bruno@clisp.org>
12357         declared.sh: Fix --version output.
12358         * build-aux/declared.sh (func_version): Update package name.
12360 2019-02-03  Bruno Haible  <bruno@clisp.org>
12362         Add script for determining the set of symbols to export from a library.
12363         * build-aux/declared.sh: New file, from GNU libunistring.
12364         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
12365         Mention it.
12367 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
12369         vla: add commentary about VLA_ELEMS
12370         * lib/vla.h (VLA_ELEMS): Add commentary,
12371         some inspired by Bruno Haible’s proposal in:
12372         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
12374         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
12375         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
12376         assume the C99 signatures for strtod and strtold.  Programs that
12377         require stricter adherence to C99 should also use the strtod and
12378         strtold modules as needed, and we no longer need the
12379         HAVE_C99_STRTOLD macro.
12380         * NEWS: Mention this.
12381         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
12382         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
12383         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
12384         (Files): Remove m4/c-strtod.m4.
12385         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
12386         exists.
12388 2019-02-02  Bruno Haible  <bruno@clisp.org>
12390         fma: Improve code style.
12391         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
12393 2019-02-02  Colin Watson  <cjwatson@debian.org>
12395         *-map tests: Fix compilation error.
12396         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
12397         * tests/test-hash_map.c: Likewise.
12398         * tests/test-linkedhash_map.c: Likewise.
12400 2019-01-31  Bruno Haible  <bruno@clisp.org>
12402         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
12403         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
12404         GNULIB_defined_strtold_function): New macros.
12405         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
12406         (STRTOD): Ignore HAVE_C99_STRTOLD.
12407         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
12408         deemed buggy. But do use it on platforms where uselocale exists and is
12409         usable.
12410         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
12411         deemed buggy. On platforms where uselocale exists and is usable, use
12412         uselocale and strtod/strtold.
12413         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
12414         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
12415         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
12416         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
12417         (Depends-on): Add strtod.
12418         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
12419         (Depends-on): Add strtold.
12421 2019-01-31  Bruno Haible  <bruno@clisp.org>
12423         strtod, strtold: Use the locale's decimal point.
12424         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
12425         (decimal_point_char): New function, copied from lib/vasnprintf.c.
12426         (parse_number): Add a radixchar argument. Use it instead of '.'.
12427         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
12428         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
12429         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
12430         * tests/test-strtod1.c: New file.
12431         * tests/test-strtod1.sh: New file.
12432         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
12433         locale-fr.m4 and its dependencies.
12434         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12435         (Makefile.am): Arrange to compile test-strtod1.c and run
12436         test-strtod1.sh.
12437         * tests/test-strtold1.c: New file.
12438         * tests/test-strtold1.sh: New file.
12439         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
12440         locale-fr.m4 and its dependencies.
12441         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
12442         (Makefile.am): Arrange to compile test-strtold1.c and run
12443         test-strtold1.sh.
12445 2019-01-31  Bruno Haible  <bruno@clisp.org>
12447         strtod, strtold tests: Simplify tests.
12448         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
12449         * tests/test-strtold.c (main): Likewise.
12451 2019-01-31  Bruno Haible  <bruno@clisp.org>
12453         strtod, strtold: Avoid unnecessary rounding errors.
12454         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
12455         decimal to DOUBLE conversion.
12457 2019-01-31  Bruno Haible  <bruno@clisp.org>
12459         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
12460         * lib/strtod.c (STRTOD): When there is an extra character after the
12461         exponent marker 'p', reparse the number.
12462         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
12463         * doc/posix-functions/strtold.texi: Likewise.
12465 2019-01-29  Bruno Haible  <bruno@clisp.org>
12467         strtold: Add tests.
12468         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
12469         * modules/strtold-tests: New file.
12471 2019-01-29  Bruno Haible  <bruno@clisp.org>
12473         strtold: New module.
12474         * lib/stdlib.in.h (strtold): New declaration.
12475         * lib/strtold.c: New file.
12476         * lib/strtod.c: Consider USE_LONG_DOUBLE.
12477         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
12478         USE_LDEXP): New macros.
12479         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
12480         USE_LONG_DOUBLE.
12481         (underlying_strtod): Remove function. Replace with some macros.
12482         Re-add the code for a missing underlying function that was removed on
12483         2013-02-19.
12484         * m4/strtold.m4: New file.
12485         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
12486         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
12487         REPLACE_STRTOLD.
12488         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
12489         REPLACE_STRTOLD.
12490         * modules/strtold: New file.
12491         * doc/posix-functions/strtold.texi: Document the new module.
12493 2019-01-29  Bruno Haible  <bruno@clisp.org>
12495         strtod: Fix compilation error on IRIX 6.5.
12496         * modules/strtod (Depends-on): Add 'math'.
12498 2019-01-28  Bruno Haible  <bruno@clisp.org>
12500         Fix build error when building a shared libunistring on Android.
12501         * tests/uninorm/test-nfc.c (n): Don't define on Android.
12502         (main): Add 'volatile', to defeat a GCC optimization that would
12503         eliminate the reference.
12504         * tests/uninorm/test-nfd.c (n): Don't define on Android.
12505         (main): Add 'volatile', to defeat a GCC optimization that would
12506         eliminate the reference.
12507         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
12508         (main): Add 'volatile', to defeat a GCC optimization that would
12509         eliminate the reference.
12510         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
12511         (main): Add 'volatile', to defeat a GCC optimization that would
12512         eliminate the reference.
12514 2019-01-27  Bruno Haible  <bruno@clisp.org>
12516         Avoid build errors due to wrong references between modules.
12517         * lib/uninorm/canonical-decomposition.c: Include
12518         "uninorm/decomposition-table.h", not "decomposition-table.h".
12519         * lib/uninorm/decomposition.c: Likewise.
12520         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
12521         not "decompose-internal.h".
12522         * lib/uninorm/u16-normalize.c: Likewise.
12523         * lib/uninorm/u32-normalize.c: Likewise.
12524         * lib/uninorm/uninorm-filter.c: Likewise.
12525         * lib/uninorm/nfkc.c: Likewise.
12526         * lib/uninorm/nfkd.c: Likewise.
12527         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
12528         "caseprop.h".
12529         * lib/unicase/u8-ct-totitle.c: Likewise.
12530         * lib/unicase/u8-prefix-context.c: Likewise.
12531         * lib/unicase/u8-suffix-context.c: Likewise.
12532         * lib/unicase/u16-casemap.c: Likewise.
12533         * lib/unicase/u16-ct-totitle.c: Likewise.
12534         * lib/unicase/u16-prefix-context.c: Likewise.
12535         * lib/unicase/u16-suffix-context.c: Likewise.
12536         * lib/unicase/u32-casemap.c: Likewise.
12537         * lib/unicase/u32-ct-totitle.c: Likewise.
12538         * lib/unicase/u32-prefix-context.c: Likewise.
12539         * lib/unicase/u32-suffix-context.c: Likewise.
12540         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
12541         "unicasemap.h".
12542         * lib/unicase/u8-toupper.c: Likewise.
12543         * lib/unicase/u8-ct-tolower.c: Likewise.
12544         * lib/unicase/u8-ct-toupper.c: Likewise.
12545         * lib/unicase/u16-tolower.c: Likewise.
12546         * lib/unicase/u16-toupper.c: Likewise.
12547         * lib/unicase/u16-ct-tolower.c: Likewise.
12548         * lib/unicase/u16-ct-toupper.c: Likewise.
12549         * lib/unicase/u32-tolower.c: Likewise.
12550         * lib/unicase/u32-toupper.c: Likewise.
12551         * lib/unicase/u32-ct-tolower.c: Likewise.
12552         * lib/unicase/u32-ct-toupper.c: Likewise.
12553         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
12554         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
12555         * lib/unicase/u16-ct-casefold.c: Likewise.
12556         * lib/unicase/u32-ct-casefold.c: Likewise.
12558 2019-01-27  Bruno Haible  <bruno@clisp.org>
12560         gperf: Fix error when this module is required by some test module.
12561         * modules/gperf (Applicability): Set to 'all'.
12563 2019-01-27  Bruno Haible  <bruno@clisp.org>
12565         tmpfile: Add support for Android.
12566         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
12567         works.
12568         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12569         Android.
12570         * modules/tmpfile (Depends-on): Add 'stdbool'.
12571         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
12572         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
12574 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
12576         bitsetv: allow free on NULL.
12577         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
12579 2019-01-27  Bruno Haible  <bruno@clisp.org>
12581         test-framework-sh: Improve maintainability.
12582         * tests/init.sh: Clarify what belongs together. Reorder definitions.
12584 2019-01-27  Bruno Haible  <bruno@clisp.org>
12586         tests: Don't assume that /tmp exists.
12587         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
12588         * tests/test-copy-acl-1.sh: Likewise.
12589         * tests/test-file-has-acl-1.sh: Likewise.
12590         * tests/test-copy-file-1.sh: Likewise.
12592 2019-01-27  Bruno Haible  <bruno@clisp.org>
12594         tests: Accommodate a shell that is not in /bin/sh.
12595         * tests/init.sh (setup_): Set srcdir and builddir.
12596         (BOURNE_SHELL): New variable.
12597         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
12598         * modules/file-has-acl-tests (Depends-on): Likewise.
12599         * modules/copy-file-tests (Depends-on): Likewise.
12600         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
12601         scripts through $BOURNE_SHELL.
12602         * tests/test-set-mode-acl-2.sh: Likewise.
12603         * tests/test-copy-acl-1.sh: Likewise.
12604         * tests/test-copy-acl-2.sh: Likewise.
12605         * tests/test-file-has-acl-1.sh: Likewise.
12606         * tests/test-file-has-acl-2.sh: Likewise.
12607         * tests/test-copy-file-1.sh: Likewise.
12608         * tests/test-copy-file-2.sh: Likewise.
12609         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
12610         invoker.
12611         * tests/test-copy-acl.sh (builddir): Likewise.
12612         * tests/test-file-has-acl.sh (builddir): Likewise.
12613         * tests/test-copy-file.sh (builddir): Likewise.
12614         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
12615         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
12616         * tests/test-vc-list-files-git.sh: Likewise.
12618 2019-01-27  Bruno Haible  <bruno@clisp.org>
12620         tests: Fix some "unused variable" warnings.
12621         * tests/test-fts.c (fts_dealloc): Remove unused variable.
12622         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
12623         * tests/test-striconveh.c (main): Move some variable into the
12624         '#if HAVE_ICONV'.
12625         * tests/test-striconveha.c (main): Likewise.
12626         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
12627         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
12628         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
12629         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
12630         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
12631         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
12632         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
12633         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
12634         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
12635         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
12636         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
12637         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
12638         * tests/test-tsearch.c (main): Move some variable into the
12639         '#if HAVE_INITSTATE'.
12641 2019-01-27  Bruno Haible  <bruno@clisp.org>
12643         unigbrk/uc-grapheme-breaks: Fix build failure.
12644         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
12645         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
12647 2019-01-27  Bruno Haible  <bruno@clisp.org>
12649         mountlist: Merge two .m4 files.
12650         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
12651         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
12652         * m4/ls-mntd-fs.m4: Remove file.
12653         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
12655 2019-01-27  Bruno Haible  <bruno@clisp.org>
12657         tests: Enable Linux specific tests on Android.
12658         * tests/test-flock.c (main): Treat Android like Linux.
12659         * tests/test-openat-safer.c (main): Likewise.
12661 2019-01-27  Bruno Haible  <bruno@clisp.org>
12663         relocatable-prog: Use Linux code on Android.
12664         * lib/progreloc.c: Treat Android like Linux.
12666 2019-01-26  Bruno Haible  <bruno@clisp.org>
12668         getloadavg: Add support for Android.
12669         * lib/getloadavg.c: Treat Android like Linux.
12671 2019-01-26  Bruno Haible  <bruno@clisp.org>
12673         vma-iter: Add support for Android.
12674         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
12675         * lib/vma-iter.c: Treat Android like Linux.
12676         * lib/get-rusage-data.c (get_rusage_data): Likewise.
12678 2019-01-26  Bruno Haible  <bruno@clisp.org>
12680         fts: Optimize on Android.
12681         * lib/fts.c: Treat Android like Linux.
12683 2019-01-26  Bruno Haible  <bruno@clisp.org>
12685         fts: Add support for Android.
12686         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
12687         defined by this module and the ones in libc.
12688         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
12690 2019-01-26  Bruno Haible  <bruno@clisp.org>
12692         mountlist: Use Linux code on Android.
12693         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
12694         (unescape_tab, read_file_system_list): Enable Linux code on Android
12695         as well.
12696         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
12697         and endmntent.
12698         * modules/mountlist (Depends-on): Add 'getline'.
12700 2019-01-26  Bruno Haible  <bruno@clisp.org>
12702         localename tests: Fix test failure on Android.
12703         * modules/localename-tests (Depends-on): Add 'setlocale'.
12705 2019-01-26  Bruno Haible  <bruno@clisp.org>
12707         mountlist: Port better to Android.
12708         * lib/mountlist.c (MOUNTED): Redefine on Android.
12709         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
12710         Android.
12712 2019-01-26  Bruno Haible  <bruno@clisp.org>
12714         striconveh: Fix use of uninitialized iconv_t.
12715         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
12716         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
12717         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
12719 2019-01-26  Bruno Haible  <bruno@clisp.org>
12721         nonblocking-socket-tests: Fix test failure on Android 4.3.
12722         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
12723         also on Android.
12725 2019-01-26  Bruno Haible  <bruno@clisp.org>
12727         sh-filename: Add support for Android 4.3.
12728         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
12730 2019-01-26  Bruno Haible  <bruno@clisp.org>
12732         ptsname_r: Work around bug on Android 4.3.
12733         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
12734         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
12735         correct.
12736         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
12737         is defined, just fix the return value.
12738         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
12739         The behaviour of musl libc is nothing to be "fixed", since it is
12740         compliant with the next POSIX standard.
12742 2019-01-26  Bruno Haible  <bruno@clisp.org>
12744         ttyname_r: Work around bug on Android 4.3.
12745         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
12746         * lib/ttyname_r.c (ttyname_r): Implement for Android.
12747         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
12748         * doc/posix-functions/ttyname.texi: Likewise.
12750 2019-01-25  Bruno Haible  <bruno@clisp.org>
12752         getprogname: Port to Android 4.3.
12753         * lib/getprogname.c (getprogname): On Android, take only the last
12754         component of __progname.
12756 2019-01-25  Bruno Haible  <bruno@clisp.org>
12758         wcrtomb: Work around bug on Android 4.3.
12759         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
12760         the C locale.
12761         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
12762         which does not have the 'wctomb' function.
12763         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
12764         * tests/test-wcrtomb.c (main): Accept argument '5'.
12765         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
12767 2019-01-25  Bruno Haible  <bruno@clisp.org>
12769         setlocale: Work around bug on Android 4.3.
12770         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
12771         the "C" locale.
12772         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
12773         * doc/posix-functions/setlocale.texi: Mention the Android bug.
12775 2019-01-24  Bruno Haible  <bruno@clisp.org>
12777         memchr: Work around bug on Android <= 5.0.
12778         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
12779         * doc/posix-functions/memchr.texi: Mention the Android bug.
12781 2019-01-24  Bruno Haible  <bruno@clisp.org>
12783         random: Fix compilation error on Android 4.3.
12784         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
12785         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
12786         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
12787         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
12788         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
12790         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12791         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
12792         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
12793         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
12794         REPLACE_INITSTATE, REPLACE_SETSTATE.
12795         * doc/posix-functions/random.texi: Correct the description of the
12796         situation on Android.
12797         * doc/posix-functions/srandom.texi: Likewise.
12798         * doc/posix-functions/rand.texi: Likewise.
12799         * doc/posix-functions/srand.texi: Likewise.
12801 2019-01-24  Bruno Haible  <bruno@clisp.org>
12803         mbtowc: Fix compilation error on Android 4.3.
12804         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
12805         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
12806         HAVE_MBTOWC.
12807         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
12808         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
12809         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
12810         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
12811         * doc/posix-functions/mbtowc.texi: Mention the change.
12813 2019-01-24  Bruno Haible  <bruno@clisp.org>
12815         fdatasync: Fix compilation error on Android 4.3.
12816         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
12817         test whether fdatasync() exists.
12819 2019-01-24  Bruno Haible  <bruno@clisp.org>
12821         unlinkat: Fix compilation error on Android 4.3.
12822         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
12823         also on Android.
12824         * doc/posix-functions/unlinkat.texi: Mention the issue.
12826 2019-01-24  Bruno Haible  <bruno@clisp.org>
12828         renameat: Fix compilation error on Android 4.3.
12829         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
12830         * doc/posix-functions/renameat.texi: Mention the issue.
12832 2019-01-24  Bruno Haible  <bruno@clisp.org>
12834         fchownat: Fix compilation error on Android 4.3.
12835         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
12836         use.
12837         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
12838         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
12839         * doc/posix-functions/fchownat.texi: Mention the issue.
12841 2019-01-23  Bruno Haible  <bruno@clisp.org>
12843         gnulib-tool: Support running testdirs on Android.
12844         * build-aux/test-driver.diff: New file.
12845         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
12846         build-aux/test-driver after running automake.
12848 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12850         relocatable-prog: avoid warnings from Automake
12851         * modules/relocatable-prog: Don't declare PHONY dependencies in
12852         Automake conditionals.
12854 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
12856         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
12857         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
12859 2019-01-23  Bruno Haible  <bruno@clisp.org>
12861         threadlib: Revert commit from 2018-06-25. We now have a better fix.
12862         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
12863         preceding -Wl,--as-needed option. Don't check whether the linker
12864         supports --as-needed/--no-as-needed and --push-state/--pop-state.
12866 2019-01-23  Bruno Haible  <bruno@clisp.org>
12868         thread: Force linking with -lpthread, even when --as-needed is in use.
12869         Reported by Richard W.M. Jones <rjones@redhat.com> in
12870         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
12871         * lib/glthread/thread.h (pthread_create): Don't declare weak.
12873 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
12874             Bruno Haible  <bruno@clisp.org>
12876         relocatable: avoid compiler warnings (-Wshadow)
12877         * lib/relocatable.c (compute_curr_prefix): Rename local variables
12878         to avoid name collisions with global variables.
12880 2019-01-22  Bruno Haible  <bruno@clisp.org>
12882         vasnprintf: Don't use %n on Android.
12883         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
12884         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
12885         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
12887 2019-01-22  Bruno Haible  <bruno@clisp.org>
12889         *printf: Support cross-compilation to Android.
12890         * m4/printf.m4: Add cross-compilation guesses for Android.
12892 2019-01-21  Bruno Haible  <bruno@clisp.org>
12894         diacrit: Mark deprecated.
12895         * modules/diacrit (Status, Notice): Mark as deprecated.
12896         * NEWS: Mention it.
12898 2019-01-20  Bruno Haible  <bruno@clisp.org>
12900         rintl: Override broken implementation on NetBSD.
12901         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
12902         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
12903         REPLACE_RINTL.
12904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
12905         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
12906         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
12907         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
12909 2019-01-20  Bruno Haible  <bruno@clisp.org>
12911         log10l: Work around inaccurate implementation on NetBSD.
12912         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
12913         * lib/log10l.c: Comment out too simplistic override.
12914         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
12916 2019-01-20  Bruno Haible  <bruno@clisp.org>
12918         logl: Work around inaccurate implementation on NetBSD.
12919         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
12920         * lib/logl.c: Comment out unused code.
12921         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
12923 2019-01-20  Bruno Haible  <bruno@clisp.org>
12925         expm1l: Work around inaccurate implementation on NetBSD.
12926         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
12927         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
12928         REPLACE_EXPM1L.
12929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
12930         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
12931         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
12932         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
12934 2019-01-20  Bruno Haible  <bruno@clisp.org>
12936         expl: Work around inaccurate implementation on NetBSD.
12937         * lib/math.in.h (expl): Test also REPLACE_EXPL.
12938         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
12939         REPLACE_EXPL.
12940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
12941         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
12942         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
12943         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
12945 2019-01-20  Bruno Haible  <bruno@clisp.org>
12947         exp2l: Work around inaccurate implementation on NetBSD.
12948         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
12949         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
12951 2019-01-20  Bruno Haible  <bruno@clisp.org>
12953         floor, floorl: Avoid autoconf warnings.
12954         * modules/floor (configure.ac): Use AC_REQUIRE.
12955         * modules/floorl (configure.ac): Likewise.
12957 2019-01-20  Bruno Haible  <bruno@clisp.org>
12959         Defeat current GCC optimizations in math autoconf tests.
12960         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
12961         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12962         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12963         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12964         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12965         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12966         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12967         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12968         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12969         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12970         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12971         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12972         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
12973         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
12974         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12975         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12976         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
12977         * m4/log.m4 (gl_FUNC_LOG): Likewise.
12978         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
12979         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
12980         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
12981         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12982         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
12983         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12984         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
12985         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
12986         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12987         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12988         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12989         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12990         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
12991         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
12992         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12993         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12994         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12995         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12996         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12997         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12999 2019-01-19  Pádraig Brady  <P@draigBrady.com>
13001         gettext: support disabling use of VLAs
13002         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
13004 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13006         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
13007         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
13009 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
13011         fcntl: Fix syntax error (regression from 2018-10-05).
13012         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
13014 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13016         relocatable: improve documentation.
13017         * doc/relocatable-maint.texi (Supporting Relocation): For
13018         substitutions performed by config.status, we need more variables
13019         (for instance datarootdir defaults to '${prefix}/share' so we need
13020         prefix).
13022 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
13024         backup: update dependencies
13025         * modules/backup-rename (Depends-on): It now depends on opendirat
13026         instead of opendir.  It also uses stdint, and xalloc-oversized.
13027         But no longer dirfd.
13028         * modules/backupfile (Depends-on): Add xalloc-oversized.
13030 2019-01-13  Bruno Haible  <bruno@clisp.org>
13032         getcwd: Fix test failure when building on a Linux 9p file system.
13033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
13034         EINVAL from mkdir like ENAMETOOLONG.
13035         * tests/test-getcwd.c (test_long_name): Likewise.
13037 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
13039         Fix typos found by codespell.
13040         * lib/*.[hc]: Fix typos in comments.
13041         * pygnulib/*.py: Fix typos in error messages and comments.
13043 2019-01-12  Bruno Haible  <bruno@clisp.org>
13045         doc: Fix documentation about container data types.
13046         Reported by Werner Lemberg <wl@gnu.org>.
13047         * doc/containers.texi (Container data types): Fix typo.
13049 2019-01-10  Bruno Haible  <bruno@clisp.org>
13051         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
13052         Reported by Reuben Thomas <rrt@sc3d.org>.
13053         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
13055 2019-01-06  Bruno Haible  <bruno@clisp.org>
13057         maintainer-makefile: Make the configure.ac section optional.
13058         * top/maint.mk (GREP, SED): Define if not defined.
13060 2019-01-06  Bruno Haible  <bruno@clisp.org>
13062         localename: Assume setlocale function.
13063         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
13064         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
13066 2019-01-06  Bruno Haible  <bruno@clisp.org>
13068         doc: Add documentation about container data types.
13069         * doc/containers.texi: New file.
13070         * doc/gnulib.texi (Particular Modules): Include it.
13072 2019-01-06  Bruno Haible  <bruno@clisp.org>
13074         doc: Update documentation about 'progname' module.
13075         * doc/progname.texi: Rename from doc/error.texi. Change node name and
13076         title. Rewrite.
13077         * doc/gnulib.texi (Particular Modules): Update.
13079 2019-01-06  Bruno Haible  <bruno@clisp.org>
13081         doc: Document the xstdopen and *-safer modules.
13082         * doc/xstdopen.texi: New file.
13083         * doc/gnulib.texi (Particular Modules): Include it.
13085 2019-01-06  Bruno Haible  <bruno@clisp.org>
13087         xstdopen: Add tests.
13088         * tests/test-xstdopen.c: New file.
13089         * tests/test-xstdopen.sh: New file.
13090         * modules/xstdopen-tests: New file.
13092         xstdopen: New module.
13093         * lib/xstdopen.h: New file.
13094         * lib/xstdopen.c: New file.
13095         * modules/xstdopen: New file.
13097 2019-01-06  Bruno Haible  <bruno@clisp.org>
13099         stdopen: Fix compilation error with IRIX cc.
13100         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
13102 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
13104         xfreopen need not include stdio--.h
13105         * lib/xfreopen.c: Do not include stdio--.h.
13107         xfreopen need not depend on freopen-safer
13108         * modules/xfreopen (Depends-on):
13109         Depend on freopen, not freopen-safer.
13111         stdopen: modernize and simplify
13112         * lib/stdopen.c: Update copyright date
13113         Do not include sys/types.h; no longer needed these days.
13114         (stdopen): Use C99-style decl in loop.  Return int errno
13115         value, rather than just a bool.  Do not worry about fd mismatches,
13116         since the caller cares only if 0, 1, 2 are occupied.
13117         * lib/stdopen.h: No need to include <stdbool.h>.
13118         * m4/stdopen.m4: Remove.
13119         * modules/stdopen: New file.
13121         stdopen: copy from last use in coreutils
13122         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
13123         New files, taken from their last commit in coreutils
13124         2007-07-23T12:35:58Z!jim@meyering.net
13125         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
13127 2019-01-05  Bruno Haible  <bruno@clisp.org>
13129         argp: Don't pass an invalid argument to dgettext().
13130         Reported by He X <xw897002528@gmail.com>.
13131         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
13132         dgettext().
13134 2019-01-05  Bruno Haible  <bruno@clisp.org>
13136         argp: Don't pass an invalid argument to dgettext().
13137         Reported by He X <xw897002528@gmail.com>.
13138         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
13139         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
13140         dgettext().
13142 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13144         stdioext: port to newer 32-bit Android
13145         Problem reported by Tom Yan in:
13146         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
13147         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
13148         (fp_) [__ANDROID__]: Use it.
13150 2019-01-04  Bruno Haible  <bruno@clisp.org>
13152         lock: Fix link error with --enable-threads=pth.
13153         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
13154         Mark as weak.
13156 2019-01-04  Bruno Haible  <bruno@clisp.org>
13158         Fix link errors in unit tests.
13159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13160         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
13161         * modules/array-map-tests (Makefile.am): Link test-array_map against
13162         libintl.
13163         * modules/array-set-tests (Makefile.am): Link test-array_set against
13164         libintl.
13165         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
13166         libintl.
13167         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
13168         libintl.
13169         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
13170         against libintl.
13171         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
13172         against libintl.
13174 2019-01-04  Bruno Haible  <bruno@clisp.org>
13176         Fix incorrect 'Link' sections.
13177         * modules/regex (Link): Mention the link requirement of module 'lock'.
13178         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
13180 2019-01-04  Bruno Haible  <bruno@clisp.org>
13182         Fix some 'Link' sections.
13183         * modules/c-stack (Link): Add link directive from the 'gettext-h'
13184         dependency.
13185         * modules/getaddrinfo (Link): Likewise.
13187 2019-01-04  Bruno Haible  <bruno@clisp.org>
13189         Remove redundant 'Link' sections.
13190         * modules/canon-host (Link): Remove section.
13191         * modules/timevar (Link): Likewise.
13193 2019-01-04  Bruno Haible  <bruno@clisp.org>
13195         Remove incorrect 'Link' sections.
13196         * modules/acl (Link): Remove section. Use combined 'Link' sections from
13197         the dependencies instead.
13198         * modules/crypto/md5 (Link): Likewise.
13199         * modules/crypto/sha1 (Link): Likewise.
13200         * modules/crypto/sha256 (Link): Likewise.
13201         * modules/crypto/sha512 (Link): Likewise.
13202         * modules/faccessat (Link): Likewise.
13203         * modules/fdutimensat (Link): Likewise.
13204         * modules/iconv_open-utf (Link): Likewise.
13205         * modules/propername (Link): Likewise.
13206         * modules/qacl (Link): Likewise.
13207         * modules/unicodeio (Link): Likewise.
13208         * modules/utimecmp (Link): Likewise.
13209         * modules/utimensat (Link): Likewise.
13210         * modules/xstriconv (Link): Likewise.
13211         * modules/xstriconveh (Link): Likewise.
13213 2019-01-04  Bruno Haible  <bruno@clisp.org>
13215         gnulib-tool: New option --extract-recursive-link-directive.
13216         * gnulib-tool (func_usage): Document the new options
13217         --extract-recursive-dependencies, --extract-recursive-link-directive.
13218         (func_verify_module): Document output variables.
13219         (func_get_dependencies_recursively): New function.
13220         (func_get_link_directive_recursively): New function.
13221         Use them to implement the new options
13222         --extract-recursive-dependencies, --extract-recursive-link-directive.
13223         * doc/gnulib-tool.texi (Link-time requirements): New section.
13225 2019-01-04  Bruno Haible  <bruno@clisp.org>
13227         Clarify meaning of 'Link' section in module description.
13228         * doc/gnulib.texi (Module description): Clarify the meaning of the
13229         'Link' section versus the one of the dependencies.
13230         * NEWS: Mention the change.
13232 2019-01-04  Bruno Haible  <bruno@clisp.org>
13234         pselect: Fix module description.
13235         * modules/pselect (Link): Put one link option per line.
13237 2019-01-04  Bruno Haible  <bruno@clisp.org>
13239         cosl: Fix module description.
13240         * modules/cosl (Link): Fix typo.
13241         * modules/mathl (configure.ac): Likewise.
13243 2019-01-04  Bruno Haible  <bruno@clisp.org>
13245         c-xvasprintf: Fix module dependencies.
13246         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
13248 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
13250         bootstrap: die when some submodules are not initialized
13251         * build-aux/bootstrap: Make sure all submodules are initialized.
13253 2019-01-04  Bruno Haible  <bruno@clisp.org>
13255         bitsetv: Fix module dependencies.
13256         * lib/bitsetv.c: Include xalloc.h.
13257         * modules/bitsetv (Depends-on): Add 'xalloc'.
13259 2019-01-04  Bruno Haible  <bruno@clisp.org>
13261         xmemdup0: Remove redundant code.
13262         * lib/xmemdup0.h (xalloc_die): Remove declaration.
13264 2019-01-04  Bruno Haible  <bruno@clisp.org>
13266         backupfile: Fix module dependencies.
13267         * modules/backupfile (Depends-on): Add 'xalloc'.
13269 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13271         bitset, crypto/gc: fix conflicts with Solaris 11
13272         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
13273         avoid clash with Solaris 11 <sys/bitset.h>.
13274         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
13275         with Solaris 11 <xorg/gc.h>.
13277 2019-01-04  Bruno Haible  <bruno@clisp.org>
13279         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
13280         Reported by Andy Fiddaman <andy@omniosce.org>.
13281         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
13283 2019-01-03  Eric Blake  <eblake@redhat.com>
13285         maintainer-makefile: fix typo in previous patch
13286         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
13287         of Roman's work.
13289 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
13291         maintainer-makefile: prefer $(GREP) over grep
13292         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
13293         defined.
13294         * top/maint.mk: Use it everywhere.
13296         maintainer-makefile: split long argument lines
13297         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
13298         it would be too long for exec limits on BSD.
13300 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13302         mkfifo: bring back HAVE_MKFIFO macro
13303         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
13304         Problem reported by Andrew Janke in:
13305         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
13307 2018-12-21  Bruno Haible  <bruno@clisp.org>
13309         Assume Autoconf >= 2.63.
13310         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
13311         versions < 2.60.
13313 2018-12-21  Bruno Haible  <bruno@clisp.org>
13315         memcmp: Mention the clang bug.
13316         * tests/test-memcmp.c: Add comment about a known test failure.
13317         * doc/posix-functions/memcmp.texi: Mention the clang bug.
13319 2018-12-20  Jim Meyering  <meyering@fb.com>
13321         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
13322         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
13323           echo '123-x'|LC_ALL=C grep -E '.\bx'
13324         The goal is to revert the first, but reverting it requires to restore
13325         the function deleted in the second. I ran this to restore the deleted
13326         function:
13327           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
13328             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
13329             | patch -R -p1
13330         * lib/dfa.c (charclass_context): Restore deleted function.
13331         Reverting the primary commit removes this change:
13332         dfa: Simplify a building state
13333         * lib/dfa.c (build_state): Simplify a building state.
13335 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13337         version-etc: allow zero authors
13338         * lib/version-etc.c (version_etc_arn): If no authors are given,
13339         omit authorship info instead of dumping core.
13341 2018-12-19  Bruno Haible  <bruno@clisp.org>
13343         lchown tests: Be more permissive regarding errno values.
13344         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
13345         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
13346         alternative to ENOSYS.
13347         * modules/lchown-tests (Depends-on): Add 'errno'.
13348         * modules/fchownat-tests (Depends-on): Likewise.
13350 2018-12-18  Bruno Haible  <bruno@clisp.org>
13352         duplocale: Avoid test failure on AIX 7.
13353         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
13354         (configure.ac): Invoke gt_FUNC_USELOCALE.
13355         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
13356         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
13357         works.
13359 2018-12-18  Bruno Haible  <bruno@clisp.org>
13361         localename: Fix test failure on AIX 7.
13362         Reported by Assaf Gordon in
13363         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
13364         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
13365         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
13366         instead of ac_cv_func_uselocale.
13367         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
13368         HAVE_USELOCALE.
13369         * lib/localename-table.h: Likewise.
13370         * lib/localename-table.c: Likewise.
13371         * tests/test-localename.c: Likewise.
13372         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
13374 2018-12-18  Bruno Haible  <bruno@clisp.org>
13376         localename: Update comments regarding Cygwin.
13377         * lib/localename.c: Update comment.
13378         * doc/posix-functions/uselocale.texi: Update platforms list.
13379         * doc/posix-functions/newlocale.texi: Likewise.
13380         * doc/posix-functions/duplocale.texi: Likewise.
13381         * doc/posix-functions/freelocale.texi: Likewise.
13383 2018-12-16  Bruno Haible  <bruno@clisp.org>
13385         c-stack: Fix for Linux/sparc.
13386         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
13387         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
13389 2018-12-16  Bruno Haible  <bruno@clisp.org>
13391         localename: Avoid test failure on some glibc systems.
13392         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
13393         Unset environment variables that might disturb the first setlocale call,
13394         and verify that this setlocale call succeeds.
13396 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
13398         random: Fix build error on native Windows (regression from 2018-06-21).
13399         * lib/random.c (__srandom, __initstate, __setstate, __random,
13400         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
13401         to the symbols without '__' prefix.
13403 2018-12-16  Bruno Haible  <bruno@clisp.org>
13405         obstack, libc-config: Support HP-UX cc in C99 mode.
13406         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
13407         compiler, even when in C99 mode.
13408         * lib/cdefs.h (__flexarr): Likewise.
13409         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
13411 2018-12-16  Bruno Haible  <bruno@clisp.org>
13413         localename: Fix test failure on OpenBSD >= 6.2.
13414         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
13415         locale system. Define HAVE_FAKE_LOCALES in this case.
13416         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
13417         HAVE_USELOCALE.
13418         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
13419         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
13420         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
13421         platforms list.
13422         * doc/posix-functions/newlocale.texi: Likewise.
13423         * doc/posix-functions/duplocale.texi: Update platforms list.
13424         * doc/posix-functions/freelocale.texi: Likewise.
13426 2018-12-16  Bruno Haible  <bruno@clisp.org>
13428         duplocale tests: Re-enable the test on platforms without <monetary.h>.
13429         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
13430         of the test, on platforms without <monetary.h>.
13432 2018-12-16  Bruno Haible  <bruno@clisp.org>
13434         localename: Update comments.
13435         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
13437 2018-12-15  Jim Meyering  <meyering@fb.com>
13439         regex: fix indentation
13440         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
13442 2018-12-15  Bruno Haible  <bruno@clisp.org>
13444         openat-safer tests: Avoid test failure on NetBSD 8.
13445         * tests/test-openat-safer.c (main): Execute a Linux specific test only
13446         on Linux.
13448 2018-12-15  Jim Meyering  <meyering@fb.com>
13450         regex: work around a bug in glibc-2.27 and prior
13451         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
13452         assertion for /0|()0|\1|0/.
13453         * tests/test-regex.c (main): Add the same test here.
13455 2018-12-15  Bruno Haible  <bruno@clisp.org>
13457         localename: Fix use of uninitialized shell variable.
13458         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
13459         gt_cv_locale_solaris114 always before use. Remove assignment without
13460         effect.
13462 2018-12-15  Bruno Haible  <bruno@clisp.org>
13464         dfa tests: Avoid test failure on Alpine Linux.
13465         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
13466         command found on Alpine Linux.
13468 2018-12-15  Jim Meyering  <meyering@fb.com>
13470         dfa: avoid new warnings from gcc
13471         These would prevent building with -Werror and a Dec snapshot of gcc.
13472         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
13473         Rename each inner instance to "p".
13474         (charclass_context): Remove unused static function.
13476 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
13478         mkdir-p: improve diagnostic for FUSE mounts
13479         Problem reported by Niklas Hambüchen in:
13480         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
13481         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
13482         errno to mkdir errno if the stat errno is likely more interesting.
13484 2018-12-14  Bruno Haible  <bruno@clisp.org>
13486         hash-map: Add tests.
13487         * tests/test-hash_map.c: New file.
13488         * modules/hash-map-tests: New file.
13490         linkedhash-map: Add tests.
13491         * tests/test-linkedhash_map.c: New file.
13492         * modules/linkedhash-map-tests: New file.
13494         array-map: Add tests.
13495         * tests/test-array_map.c: New file.
13496         * modules/array-map-tests: New file.
13498         xmap: New module.
13499         * lib/gl_xmap.h: New file.
13500         * lib/gl_xmap.c: New file.
13501         * modules/xmap: New file.
13503         hash-map: New module.
13504         * lib/gl_hash_map.h: New file.
13505         * lib/gl_hash_map.c: New file.
13506         * modules/hash-map: New file.
13508         linkedhash-map: New module.
13509         * lib/gl_linkedhash_map.h: New file.
13510         * lib/gl_linkedhash_map.c: New file.
13511         * lib/gl_anyhash1.h: Update comments.
13512         * lib/gl_anyhash2.h: Likewise.
13513         * modules/linkedhash-map: New file.
13515         array-map: New module.
13516         * lib/gl_array_map.h: New file.
13517         * lib/gl_array_map.c: New file.
13518         * modules/array-map: New file.
13520         map: New module.
13521         * lib/gl_map.h: New file.
13522         * lib/gl_map.c: New file.
13523         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
13524         conflict with gl_map.h.
13525         * modules/map: New file.
13527 2018-12-13  Bruno Haible  <bruno@clisp.org>
13529         select tests: Avoid test failure on Cygwin.
13530         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
13532 2018-12-13  Bruno Haible  <bruno@clisp.org>
13534         localtime-buffer: Avoid endless recursion in localtime and gmtime.
13535         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
13537 2018-12-13  Bruno Haible  <bruno@clisp.org>
13539         localeconv tests: Avoid test failure on Cygwin.
13540         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
13541         'mon_grouping' tests.
13543 2018-12-11  Bruno Haible  <bruno@clisp.org>
13545         omap: Don't dispose the old value when the function returns it.
13546         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
13547         here.
13548         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13549         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
13550         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
13551         here.
13553         array-omap, avltree-omap, rbtree-omap: Tweak style.
13554         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
13555         false.
13556         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
13558         rbtree-omap: Add tests.
13559         * tests/test-rbtree_omap.c: New file.
13560         * modules/rbtree-omap-tests: New file.
13562         avltree-omap: Add tests.
13563         * tests/test-avltree_omap.c: New file.
13564         * modules/avltree-omap-tests: New file.
13566         array-omap: Add tests.
13567         * tests/test-array_omap.c: New file.
13568         * modules/array-omap-tests: New file.
13570         xomap: New module.
13571         * lib/gl_xomap.h: New file.
13572         * lib/gl_xomap.c: New file.
13573         * modules/xomap: New file.
13575         rbtree-omap: New module.
13576         * lib/gl_rbtree_omap.h: New file.
13577         * lib/gl_rbtree_omap.c: New file.
13578         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
13579         Parameterize.
13580         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
13581         * modules/rbtree-omap: New file.
13582         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
13583         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
13585         avltree-omap: New module.
13586         * lib/gl_avltree_omap.h: New file.
13587         * lib/gl_avltree_omap.c: New file.
13588         * lib/gl_avltree_ordered.h: Code moved to here from
13589         lib/gl_avltree_oset.c. Parameterize.
13590         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
13591         * lib/gl_anytree_omap.h: New file.
13592         * modules/avltree-omap: New file.
13593         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
13594         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
13596         array-omap: New module.
13597         * lib/gl_array_omap.h: New file.
13598         * lib/gl_array_omap.c: New file.
13599         * modules/array-omap: New file.
13601         omap: New module.
13602         * lib/gl_omap.h: New file.
13603         * lib/gl_omap.c: New file.
13604         * modules/omap: New file.
13606 2018-12-11  Bruno Haible  <bruno@clisp.org>
13608         hash-set, linkedhash-set: Reduce code duplication.
13609         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
13610         lib/gl_anyhash_set1.h.
13611         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
13612         lib/gl_anyhash_set2.h. Parameterize.
13613         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
13614         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
13615         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
13616         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
13617         * lib/gl_rbtreehash_list.c: Likewise.
13618         * lib/gl_linkedhash_list.c: Likewise.
13619         (hash_resize_after_add): Remove function.
13620         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
13621         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
13622         * gl_hash_set.c: Likewise.
13623         * modules/avltreehash-list (Files, Makefile.am): Update file list.
13624         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
13625         * modules/linkedhash-list (Files, Makefile.am): Likewise.
13626         * modules/linkedhash-set (Files, Makefile.am): Likewise.
13627         * modules/hash-set (Files, Makefile.am): Likewise.
13629 2018-12-11  Bruno Haible  <bruno@clisp.org>
13631         array-set: Optimize.
13632         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
13633         outside the loop, not inside the loop.
13635 2018-12-11  Bruno Haible  <bruno@clisp.org>
13637         times: Fix tests.
13638         * tests/test-times.c (doublecmp): Implement a total order.
13640 2018-12-11  Bruno Haible  <bruno@clisp.org>
13642         array-set, linkedhash-set, hash-set: Fix tests.
13643         * tests/test-array_set.c (cmp_objects_in_array): New function.
13644         (check_equals): Use it.
13645         * tests/test-hash_set.c: Likewise.
13646         * tests/test-linkedhash_set.c: Likewise.
13648 2018-12-08  Bruno Haible  <bruno@clisp.org>
13650         Fix comments.
13651         * lib/gl_list.h (gl_list_free): Clarify what it does.
13652         * lib/gl_oset.h (gl_oset_free): Likewise.
13653         * lib/gl_set.h (gl_set_free): Likewise.
13654         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
13655         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
13656         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
13657         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
13659 2018-12-03  Bruno Haible  <bruno@clisp.org>
13661         hash-set: Add tests.
13662         * tests/test-hash_set.c: New file.
13663         * modules/hash-set-tests: New file.
13665         linkedhash-set: Add tests.
13666         * tests/test-linkedhash_set.c: New file.
13667         * modules/linkedhash-set-tests: New file.
13669         array-set: Add tests.
13670         * tests/test-array_set.c: New file.
13671         * modules/array-set-tests: New file.
13673         xset: New module.
13674         * lib/gl_xset.h: New file.
13675         * lib/gl_xset.c: New file.
13676         * modules/xset: New file.
13678         hash-set: New module.
13679         * lib/gl_hash_set.h: New file.
13680         * lib/gl_hash_set.c: New file.
13681         * modules/hash-set: New file.
13683         linkedhash-set: New module.
13684         * lib/gl_linkedhash_set.h: New file.
13685         * lib/gl_linkedhash_set.c: New file.
13686         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
13687         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
13688         * lib/gl_anyhash_primes.h: New file, extracted from
13689         lib/gl_anyhash_list2.h.
13690         * lib/gl_anyhash_list2.h: Include it.
13691         (primes, next_prime): Remove definitions.
13692         * modules/linkedhash-set: New file.
13693         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
13694         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13695         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
13696         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13697         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
13698         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
13700         array-set: New module.
13701         * lib/gl_array_set.h: New file.
13702         * lib/gl_array_set.c: New file.
13703         * modules/array-set: New file.
13705         set: New module.
13706         * lib/gl_set.h: New file.
13707         * lib/gl_set.c: New file.
13708         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
13709         gl_set.h.
13710         * modules/set: New file.
13712 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
13714         bison: don't force the Yacc mode
13715         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
13716         errors when Bison features are used in the grammar file.  Some of
13717         these features (such as %expect) were flagged non-yacc recently.  Most
13718         of the time, -y is actually used to please Automake's ylwrap which
13719         expects the output to be y.tab.c.
13720         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
13722 2018-12-01  Bruno Haible  <bruno@clisp.org>
13724         gnupload: Document short options.
13725         * build-aux/gnupload (usage): Document the short options.
13727 2018-11-28  Ben Elliston  <bje@gnu.org>
13729         gnupload: Support option -h as alias of --help.
13730         * build-aux/gnupload: Support -h.
13732 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
13734         memrchr: port better to clang
13735         * lib/memrchr.c (__memrchr): Cast to void * instead of to
13736         longword *, to pacify clang -Wcast-align (Bug#33544).
13738 2018-11-29  Eric Blake  <eblake@redhat.com>
13740         docs: mention printf %m considerations
13741         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
13742         is not portable, and is easy enough to work around.
13743         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
13744         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
13745         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
13746         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13747         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13748         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13749         * doc/posix-functions/printf.texi (printf): Likewise.
13750         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13751         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13752         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
13753         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13754         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13755         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13756         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13757         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13758         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13759         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
13760         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13761         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13763 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
13765         bitset: rename ebitset/expandable.* as tbitset/table.*
13766         See
13767         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
13768         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
13769         * lib/bitset/table.h, lib/bitset/table.c: these.
13770         Rename all the ebitset* symbols as tbitset*.
13771         Adjust dependencies.
13773 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13775         bitset: check the operations
13776         * tests/test-bitset.c (bitset_random): New.
13777         Use it.
13778         * lib/bitset/expandable.c (ebitset_not): Fix typo.
13780 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13782         bitset: properly use false/true instead of 0/1 for Booleans
13783         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
13784         0/1, as Booleans.
13786 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
13788         bitset: rename BITSET_VARRAY as BITSET_VECTOR
13789         For consistency with the name of the file.
13790         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
13791         * lib/bitset/stats.c, lib/bitset/vector.c
13792         (BITSET_VARRAY): Rename as...
13793         (BITSET_VECTOR): this.
13795 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13797         strerror_r-posix: memmove, not memcpy
13798         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
13799         since the source and destination might overlap in the call
13800         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
13801         Simplify.
13803 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13805         bitsetv: new module
13806         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
13808 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13810         bitset: add tests and doc
13811         First stabs at providing a documentation and test for the bitset
13812         module.
13813         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
13815 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
13817         bitset: new module
13818         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
13819         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
13820         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
13821         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
13822         * lib/bitset/vector.h, modules/bitset:
13823         New.
13825 2018-11-23  Bruno Haible  <bruno@clisp.org>
13827         localename: Fix gettext test failures on mingw.
13828         * lib/localename.c (gl_locale_name_posix): Convert the result of
13829         gl_locale_name_environ to XPG syntax.
13831 2018-11-23  Karl Berry  <karl@freefriends.org>
13833         * config/srclistvars.txt,
13834         * config/srclist.txt: remove all gettext references;
13835         the gettext maintainers will sync as needed.
13837 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13839         mktime: add libc-config dependency
13840         I missed this when we synced from glibc.
13841         * modules/mktime (Depends-on): Add libc-config.
13843 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13845         longlong: fix comment typo
13846         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
13848 2018-11-11  Bruno Haible  <bruno@clisp.org>
13850         havelib: Remove the need to include asm-underscore.m4.
13851         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
13852         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
13853         gl_HOST_CPU_C_ABI.
13854         * modules/havelib (Files): Add host-cpu-c-abi.m4.
13855         (Depends-on): Remove host-cpu-c-abi.
13857 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13859         parse-datetime: simplify test for mktime failure
13860         * lib/parse-datetime.y (mktime_ok): Simplify.
13861         Remove args TZ and T; no longer needed.  Callers changed.
13863         posixtm: simplify test for mktime failure
13864         * lib/posixtm.c (posixtime): Simplify.
13866         nstrftime: simplify test for mktime failure
13867         * lib/nstrftime.c (__strftime_internal): Simplify.
13869 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13871         gnulib-common.m4: port _Noreturn to C++
13872         Problem reported by Akim Demaille in:
13873         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
13874         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
13875         Merge adjustments from _Noreturn.h and from glibc into the non-C++
13876         version.
13877         * lib/_Noreturn.h: Match gnulib-common.
13879 2018-10-30  Bruno Haible  <bruno@clisp.org>
13881         gnu-make: Fix for NetBSD 8 'make'.
13882         Reported by Reuben Thomas in
13883         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
13884         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
13885         output, ignoring exit codes.
13887 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
13889         maintainer-makefile: fix syntax-check rule for "same.h"
13890         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
13891         for 'same_nameat', too.
13893 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13895         havelib: fix nested ‘configure’ chatter
13896         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
13897         AC_CACHE_CHECK calls, which resulted in confusing output like
13898         “checking for the common suffixes of directories in the library
13899         search path... checking for 64-bit host... no lib,lib”.
13901         backupfile: tweak for better code
13902         * lib/backupfile.c: Sort include directives, and remove
13903         unnecessary <limits.h> include.
13904         (FALLTHROUGH): New macro, copied from other modules.
13905         (backupfile_internal): Use it to avoid code duplication.
13906         This lets GCC 8.2.1 generate better code by inlining the
13907         call to check_extension.
13909 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
13911         backupfile: new dir_fd args
13912         New module opendirat with code taken from fts.
13913         Use this module to let backupfile use a directory file descriptor.
13914         * NEWS: Document the incompatible change.
13915         * lib/backup-find.c (find_backup_file_name):
13916         * lib/backup-rename.c (backup_file_rename):
13917         New arg DIR_FD.
13918         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
13919         (SIZE_MAX): Remove.
13920         Include opendirat.h rather than dirent--.h.
13921         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
13922         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
13923         (backupfile_internal): New arg DIR_FD.  All callers changed.
13924         * lib/fts.c: Include opendirat.h.
13925         (opendirat): Move to opendirat.c.
13926         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
13927         * modules/backupfile (Depends-on): Remove dirfd, opendir.
13928         Add opendirat.
13929         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
13930         Add opendirat.
13932 2018-10-23  Bruno Haible  <bruno@clisp.org>
13934         localename: Simplify support for per-thread locales on Solaris 11.4.
13935         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
13936         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
13937         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
13938         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
13939         specific code.
13940         * lib/localename-table.h: Update comments.
13941         * lib/localename-table.c: Update comments.
13942         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
13943         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
13944         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
13945         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
13946         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
13947         HAVE_NAMELESS_LOCALES here.
13948         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
13949         m4/intlsolaris.m4.
13950         * modules/gettext (Files): Likewise.
13952 2018-10-22  Bruno Haible  <bruno@clisp.org>
13954         std-gnu11: Support Autoconf versions < 2.64.
13955         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
13956         when _AC_DO_LIMIT does not exist.
13958 2018-10-22  Bruno Haible  <bruno@clisp.org>
13960         Assume Autoconf >= 2.63.
13961         * DEPENDENCIES: Mention the requirement.
13963         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
13964         (func_get_filelist): Don't list m4/onceonly.m4 any more.
13965         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
13966         * m4/onceonly.m4: Remove file.
13968         * m4/openmp.m4: Remove file.
13969         * modules/openmp (Files): Remove m4/openmp.m4.
13971         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
13972         htmldir, dvidir, pdfdir, psdir, localedir.
13973         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
13975         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
13976         Autoconf < 2.60.
13977         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
13978         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
13980         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
13981         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
13982         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
13984         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
13985         exists.
13986         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
13988         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
13989         Autoconf < 2.61.
13991         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
13992         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
13993         Autoconf >= 2.52.
13995         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
13996         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
13997         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
13999 2018-10-22  Bruno Haible  <bruno@clisp.org>
14001         Assume Automake >= 1.11.
14002         * m4/configmake.m4: Update comments.
14003         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
14004         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
14005         of 'eval'.
14006         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
14007         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
14008         requires Automake >= 1.11.
14010 2018-10-22  Bruno Haible  <bruno@clisp.org>
14012         localename: Fix typo in comment.
14013         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
14015 2018-10-22  Bruno Haible  <bruno@clisp.org>
14017         Fix failure of 'gnulib-tool --create-testdir' with all modules.
14018         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
14020 2018-10-21  Bruno Haible  <bruno@clisp.org>
14022         locale: Ease integration with GNU libintl.
14023         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
14024         GNULIB_defined_freelocale): New macros.
14026 2018-10-21  Bruno Haible  <bruno@clisp.org>
14028         localename: Fine-tune support for per-thread locales on Solaris 11.4.
14029         * lib/localename-table.h: New file, extracted from lib/localename.c.
14030         * lib/localename-table.c: Likewise.
14031         * lib/localename.c: Include localename-table.h.
14032         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
14033         locale_hash_function instead of pointer_hash.
14034         * modules/localename (Files): Add lib/localename-table.h,
14035         lib/localename-table.c.
14036         (lib_SOURCES): Add localename-table.c.
14037         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
14038         for Solaris 11.4 locale system only on Solaris. Test for it
14039         independently whether getlocalename_l exists.
14040         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
14041         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
14042         HAVE_NAMELESS_LOCALES.
14043         * modules/gettext (Files): Add m4/intlsolaris.m4.
14045 2018-10-21  Bruno Haible  <bruno@clisp.org>
14047         Small update from gettext.
14048         * m4/intl.m4: Update from gettext:
14049         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
14050         mode on AIX.
14051         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
14052         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
14054 2018-10-16  Bruno Haible  <bruno@clisp.org>
14056         mountlist: Remove support for Cray with UNICOS 9.
14057         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14058         MOUNTED_LISTMNTENT.
14059         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
14061 2018-10-16  Bruno Haible  <bruno@clisp.org>
14063         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
14064         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
14065         STAT_STATFS2_FS_DATA.
14066         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
14067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14068         MOUNTED_GETMNT.
14069         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
14070         * lib/getloadavg.c (decstation): Remove definition and case.
14071         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
14072         * lib/getgroups.c: Likewise.
14073         * doc/posix-functions/getgroups.texi: Likewise.
14074         * lib/time.in.h: Update comments.
14076 2018-10-16  Bruno Haible  <bruno@clisp.org>
14078         getloadavg: Remove support for ConvexOS.
14079         * lib/getloadavg.c: Remove convex case.
14081 2018-10-16  Bruno Haible  <bruno@clisp.org>
14083         getloadavg: Remove support for Sony NEWS.
14084         * lib/getloadavg.c: Remove sony_news case.
14086 2018-10-16  Bruno Haible  <bruno@clisp.org>
14088         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
14089         * lib/fsusage.c: Remove _SEQUENT_ case.
14090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14091         * lib/mountlist.c: Don't test for MNTTABNAME.
14092         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
14093         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
14094         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
14095         * lib/stat-size.h: Don't mention the Sequent bug.
14096         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
14098 2018-10-16  Bruno Haible  <bruno@clisp.org>
14100         fsusage: Remove support for AIX 3.
14101         * lib/fsusage.c: Remove code for AIX 3.
14102         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
14104 2018-10-16  Bruno Haible  <bruno@clisp.org>
14106         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
14107         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
14108         * lib/fsusage.c: Remove code for AIX PS/2.
14109         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
14110         * lib/getloadavg.c: Likewise.
14112 2018-10-16  Bruno Haible  <bruno@clisp.org>
14114         getloadavg: Remove support for HP-UX on m68k.
14115         * lib/getloadavg.c: Remove hp9000s300 case.
14117 2018-10-16  Bruno Haible  <bruno@clisp.org>
14119         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
14120         * lib/fsusage.c: Remove DOLPHIN case.
14121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
14122         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
14124 2018-10-16  Bruno Haible  <bruno@clisp.org>
14126         getloadavg: Remove support for Alliant FX/2800.
14127         * lib/getloadavg.c: Remove alliant case.
14129 2018-10-16  Bruno Haible  <bruno@clisp.org>
14131         getloadavg: Remove support for tek4300.
14132         * lib/getloadavg.c: Remove tek4300 case.
14134 2018-10-16  Bruno Haible  <bruno@clisp.org>
14136         getloadavg: Remove support for Ardent.
14137         * lib/getloadavg.c: Remove ardent case.
14139 2018-10-16  Bruno Haible  <bruno@clisp.org>
14141         mountlist: Remove support for SVR2.
14142         Reported by Andrew Borodin <aborodin@vmail.ru> in
14143         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
14144         * lib/mountlist.c: Remove MOUNTED_FREAD case.
14145         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
14146         MOUNTED_FREAD.
14148 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
14150         libc-config: merge from glibc
14151         * lib/cdefs.h (__glibc_has_attribute): New macro.
14153         regex: depend on libc-config
14154         * modules/regex (Depends-on): Add libc-config.
14155         This is needed after the recent autoupdate from glibc.
14157 2018-10-14  Bruno Haible  <bruno@clisp.org>
14159         localename: Add support for per-thread locales on Solaris 11.4.
14160         * lib/locale.in.h (newlocale, freelocale): New declarations.
14161         (duplocale): Declare also when the 'localename' module requests it.
14162         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
14163         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
14164         (struniq): Update.
14165         (struct locale_categories_names, struct locale_hash_node): New types.
14166         (LOCALE_HASH_TABLE_SIZE): New constant.
14167         (locale_hash_table, locale_lock): New variables.
14168         (pointer_hash, get_locale_t_name): New functions.
14169         (newlocale, duplocale, freelocale): New overridden functions.
14170         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
14171         * m4/intlsolaris.m4: New file.
14172         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
14173         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
14174         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
14175         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
14176         declared.
14177         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
14178         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14179         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
14180         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
14181         * modules/localename (Files): Add intlsolaris.m4.
14182         (Depends-on): Add 'locale'.
14183         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
14184         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
14185         the signatures.
14187 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
14189         timevar: use gethrxtime to get wall clock time
14190         clock_gettime is not portable.  gethrxtime takes the best available
14191         option to get the wall clock time, including clock_gettime (monotonic
14192         clock), and gettime (non monotonic).
14193         Also, using xtime_t instead of float preserves the precision.
14194         Suggested by Bruno Haible.
14195         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
14196         * modules/timevar (Depends-on): We need gethrxtime.
14197         We no longer use times().
14198         (Link): Update.
14199         * lib/timevar.h (timevar_time_def): Use xtime_t.
14200         * lib/timevar.c (set_to_current_time): Use gethrxtime.
14201         (timevar_print): Instead of checking whether the timings themselves
14202         are large enough for the timevar to be printed, check the percentages.
14204 2018-10-14  Bruno Haible  <bruno@clisp.org>
14206         wcsnrtombs: Work around Solaris 11.4 bug.
14207         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
14208         macro.
14209         (gl_FUNC_WCSNRTOMBS): Invoke it.
14210         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
14212 2018-10-14  Bruno Haible  <bruno@clisp.org>
14214         mbsnrtowcs: Work around Solaris 11.4 bug.
14215         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
14216         macro.
14217         (gl_FUNC_MBSNRTOWCS): Invoke it.
14218         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
14220 2018-10-14  Bruno Haible  <bruno@clisp.org>
14222         doc: Update for Solaris 11.4.
14223         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
14224         mention Solaris 11.4.
14225         * m4/printf.m4: Update comments about Solaris.
14226         * m4/log.m4: Likewise.
14227         * m4/log10.m4: Likewise.
14228         * m4/logb.m4: Likewise.
14229         * m4/logbf.m4: Likewise.
14230         * m4/logbl.m4: Likewise.
14231         * m4/rename.m4: Likewise.
14232         * m4/wcrtomb.m4: Likewise.
14233         * m4/hostent.m4: Likewise.
14234         * m4/servent.m4: Likewise.
14236 2018-10-14  Bruno Haible  <bruno@clisp.org>
14238         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
14239         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
14240         pointer.
14241         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
14242         pointer.
14243         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
14244         pointer.
14245         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
14246         pointer.
14247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
14248         pointer.
14250 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14252         bootstrap: fix wget command for po files.
14253         * build-aux/bootstrap (po_download_command_format): Fix comment,
14254         and adjust callers.
14256 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14258         timevar: improve the output format
14259         Suggested by Bruno Haible.
14260         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
14261         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
14262         wall, since its resolution is much higher.
14264 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
14266         timevar: expect that getrusage is available.
14267         Don't keep both times and getrusage as backend: both are guaranteed by
14268         gnulib, a single one suffices.  Using getrusage is open to possibly
14269         tracking other types of resources in the future.
14270         * modules/timevar (Depends-on): Add getrusage.
14271         (configure.ac): Remove gl_TIMEVAR.
14272         (Files): Remove m4/timevar.m4.
14273         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
14274         * lib/timevar.h (timevar_enabled): Clarify documentation.
14275         * lib/timevar.c: Remove all the code about times.
14276         Remove all the CPP guards about getrusage: expect it to be present
14277         (courtesy of gnulib).
14279 2018-10-12  Bruno Haible  <bruno@clisp.org>
14281         mountlist: Improve support for Solaris in 64-bit mode.
14282         Reported by David Wood <David.Wood@deshaw.com> in
14283         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
14284         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
14285         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
14286         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
14288 2018-10-12  Bruno Haible  <bruno@clisp.org>
14290         mountlist: Add support for Minix.
14291         Reported by Assaf Gordon in
14292         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
14293         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
14294         AC_CHECK_FUNCS to check for 'getmntinfo'.
14295         * lib/mountlist.c: Update comments.
14297 2018-10-12  Bruno Haible  <bruno@clisp.org>
14299         Make better use of Autoconf.
14300         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
14301         * m4/manywarnings.m4: Likewise.
14302         * m4/manywarnings-c++.m4: Likewise.
14303         * m4/socklen.m4: Likewise.
14304         * m4/sockpfaf.m4: Likewise.
14305         * m4/stdarg.m4: Likewise.
14306         * m4/visibility.m4: Likewise.
14307         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
14308         indentation.
14309         * m4/ls-mntd-fs.m4: Likewise.
14311 2018-10-11  Bruno Haible  <bruno@clisp.org>
14313         mountlist: Modernize platform lists.
14314         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
14315         platforms, deemphasizing the obsolete ones.
14316         * lib/mountlist.c: Likewise.
14318 2018-10-11  Bruno Haible  <bruno@clisp.org>
14320         getprogname: Add support for 32-bit programs on HP-UX.
14321         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
14322         try the similar functions 32-bit programs on 64-bit HP-UX.
14324 2018-10-11  Bruno Haible  <bruno@clisp.org>
14326         getprogname: Work around program name truncation when possible.
14327         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
14328         possibly use pst_cmd instead.
14330 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14332         fts: cleanup after FTS_NOATIME removal
14333         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
14334         (FTS_STOP): Shrink to minimal values.  We don’t need to
14335         worry about binary compatibility in Gnulib, and the old way
14336         of doing things had a hole in the user options that caused
14337         FTS_OPTIONMASK to not work as desired.
14339 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
14341         fts: remove FTS_NOATIME
14342         This reverts commit da4d6974013c822af1498941e32db774b2031765.
14343         We cannot guarantee that O_NOATIME works: e.g. openat fails
14344         with EPERM if the effective user ID of the caller does not match
14345         the owner of the file and the caller is not privileged.
14346         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
14347         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
14348         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
14349         (FTS_OPTIONMASK): Adjust.
14350         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
14351         (fd_ring_check): Likewise.
14353 2018-10-08  Bruno Haible  <bruno@clisp.org>
14355         csharpcomp*, csharpexec*: Remove support for pnet.
14356         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
14357         HAVE_CSCC.
14358         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
14359         Don't test HAVE_CSCC.
14360         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
14361         (compile_csharp_class): Don't invoke it.
14362         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
14363         HAVE_ILRUN.
14364         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
14365         Don't test HAVE_ILRUN.
14366         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
14367         (execute_csharp_program): Don't invoke it.
14368         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
14369         any more.
14371 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
14373         renameatu: prefer renameat2 to syscall
14374         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
14375         Use renameat2 instead of syscall (Bug#32796).
14376         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
14378 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14380         bootstrap, gnulib-tool: use https instead of insecure rsync
14381         * build-aux/bootstrap (download_po_files, po_download_command_format):
14382         Don't try using rsync; always use wget over https to fetch PO files.
14383         * gnulib-tool (func_import): Likewise.
14384         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14386 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
14388         bootstrap, gnulib-tool: correct the translations wget command
14389         * build-aux/bootstrap (po_download_command_format2): Restrict
14390         recursion to a single level.
14391         * gnulib-tool (func_import): Likewise.
14392         * pygnulib/GLImport.py (GLImport.execute): Likewise.
14394 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14396         doc: the gnulib snapshots are not maintained
14397         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
14399 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
14401         timevar: add to lib_SOURCES
14402         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
14404 2018-10-07  Bruno Haible  <bruno@clisp.org>
14406         dirent: Update documentation.
14407         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
14409 2018-10-05  Bruno Haible  <bruno@clisp.org>
14411         strpbrk: Make it possible to namespace the defined symbol.
14412         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
14414 2018-10-05  Bruno Haible  <bruno@clisp.org>
14416         strcspn: Make it possible to namespace the defined symbol.
14417         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
14419 2018-10-05  Bruno Haible  <bruno@clisp.org>
14421         raise: Make it possible to namespace the defined symbol.
14422         * lib/raise.c (raise): Undefine only after the replacement function has
14423         been defined.
14424         (raise): Renamed from rpl_raise.
14425         (raise_nothrow): Move to the end of the compilation unit.
14427 2018-10-05  Bruno Haible  <bruno@clisp.org>
14429         memcmp: Make it possible to namespace the defined symbol.
14430         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
14432 2018-10-05  Bruno Haible  <bruno@clisp.org>
14434         explicit_bzero: Make it possible to namespace the defined symbol.
14435         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
14436         glibc.
14438 2018-10-05  Bruno Haible  <bruno@clisp.org>
14440         mkdir-p: Depend on 'mkdir'.
14441         * modules/mkdir-p (Depends-on): Add 'mkdir'.
14443 2018-10-05  Bruno Haible  <bruno@clisp.org>
14445         tempname: Depend on 'mkdir'.
14446         Reported by Maarten Bosmans <mkbosmans@gmail.com>
14447         at <https://savannah.gnu.org/bugs/?33379>.
14448         * modules/tempname (Depends-on): Add 'mkdir'.
14450 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
14452         timevar: rely on gnulib modules for time portability.
14453         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
14454         * m4/timevar.m4: Don't check for clock_t and struct tms,
14455         guaranteed by gnulib.
14456         * lib/timevar.h: Use extern "C" protection.
14457         Include <stdio.h> for FILE.
14458         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
14459         they are guaranteed by gnulib.
14460         Remove uses of clock as (now useless) fallback.
14462 2018-10-04  Bruno Haible  <bruno@clisp.org>
14464         sh-filename: New module.
14465         * m4/sh-filename.m4: New file.
14466         * modules/sh-filename: New file.
14467         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
14468         "/bin/sh".
14469         * tests/test-posix_spawn1.c (main): Likewise.
14470         * tests/test-posix_spawn2.c (main): Likewise.
14471         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
14472         is_envjavac_gcj43): Likewise.
14473         * lib/javaexec.c (execute_java_class): Likewise.
14474         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
14475         * modules/posix_spawnp-tests (Depends-on): Likewise.
14476         * modules/javacomp (Depends-on): Likewise.
14477         * modules/javaexec (Depends-on): Likewise.
14479 2018-10-04  Bruno Haible  <bruno@clisp.org>
14481         spawn-pipe tests: Avoid test failure on native Windows.
14482         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
14483         that fd 2 is closed.
14485 2018-10-04  Bruno Haible  <bruno@clisp.org>
14487         fcntl: Make it possible to namespace the defined symbol.
14488         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
14489         been defined.
14490         (fcntl): Renamed from rpl_fcntl.
14491         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
14492         from fcntl.
14493         (klibc_fcntl): Move to the end of the compilation unit.
14495 2018-10-02  Bruno Haible  <bruno@clisp.org>
14497         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
14498         * tests/test-vasnprintf.c (test_function): Change the test added on
14499         2018-09-23 to check only the 18 most significant digits.
14501         vasnprintf tests: Avoid test failure on Cygwin.
14502         * tests/test-vasnprintf.c (test_function): Change the test added on
14503         2018-09-23 to check only the 42 most significant digits.
14505 2018-10-01  Bruno Haible  <bruno@clisp.org>
14507         mkostemp, mkostemps: Update documentation.
14508         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
14509         * doc/glibc-functions/mkostemps.texi: Likewise.
14511 2018-10-01  Tom Tromey  <tom@tromey.com>
14513         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
14514         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
14515         on OS X.
14517 2018-09-30  Pádraig Brady  <P@draigBrady.com>
14519         hmac-*: refactor to remove repetitive code
14520         * lib/hmac.c: A new parameterized single implementation.
14521         * lib/hmac-md5.c: Define parameters and include implementation.
14522         * lib/hmac-sha1.c: Likewise.
14523         * lib/hmac-sha256.c: Likewise.
14524         * lib/hmac-sha512.c: Likewise.
14525         * modules/crypto/hmac-md5: Reference the new implementation file.
14526         * modules/crypto/hmac-sha1: Likewise.
14527         * modules/crypto/hmac-sha256: Likewise.
14528         * modules/crypto/hmac-sha512: Likewise.
14529         * tests/test-hmac-md5.c: Refactor common code to a single function.
14530         * tests/test-hmac-sha1.c: Likewise.
14531         * tests/test-hmac-sha256.c: Likewise.
14532         * tests/test-hmac-sha512.c: Likewise.
14534 2018-09-30  Zhang Qing  <zhangqingl@126.com>
14536         hmac-sha512: fix hash for keys > blocksize (128 bytes)
14537         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
14538         key length to that output by sha512, not the blocksize.
14539         Otherwise uninitialized data from the stack
14540         is used when computing the hash.
14541         * tests/test-hmac-sha512.c: Add a shortened key test case.
14542         Reported at https://github.com/coreutils/gnulib/pull/5
14544 2018-09-30  Bruno Haible  <bruno@clisp.org>
14546         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
14547         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
14548         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
14549         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
14550         'unsigned int' before comparison with an unsigned value.
14552 2018-09-30  Bruno Haible  <bruno@clisp.org>
14554         grantpt: Remove unnecessary dependency.
14555         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
14557 2018-09-30  Bruno Haible  <bruno@clisp.org>
14559         timevar: Small tweaks.
14560         * lib/timevar.h: Fix comments. Add parameter names to function
14561         declarations.
14562         * lib/timevar.c: Include timevar.h immediately after config.h.
14563         * lib/timevar.def: Fix comments.
14564         * modules/timevar (Maintainer): List Akim Demaille.
14566 2018-09-30  Bruno Haible  <bruno@clisp.org>
14568         timevar: Include documentation in gnulib manual.
14569         * doc/timevar.texi: Change node and section name to 'Profiling of
14570         program phases'.
14571         In the code snippets, tweak the #includes and use GNU coding style.
14572         * doc/gnulib.texi: Include timevar.texi.
14574 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
14576         timevar: import from Bison.
14577         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
14578         New files.
14579         * lib/timevar.def: New file.
14580         * doc/timevar.texi: New file.
14582 2018-09-26  Bruno Haible  <bruno@clisp.org>
14584         javacomp-script, javacomp: Add preliminary support for Java 12..17.
14585         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
14586         * lib/javacomp.c (default_target_version): Likewise.
14588 2018-09-26  Bruno Haible  <bruno@clisp.org>
14590         javacomp-script, javacomp: Add support for Java 11.
14591         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
14592         target-version 11.
14593         * lib/javaversion.h: Update comments.
14594         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
14595         source_version_index, get_goodcode_snippet, get_failcode_snippet,
14596         TARGET_VERSION_BOUND, target_version_index,
14597         corresponding_classfile_version): Accept source_version 11 and
14598         target_version 11.
14599         * lib/javacomp.h: Update comments accordingly.
14601 2018-09-23  Bruno Haible  <bruno@clisp.org>
14603         vasnprintf: Fix heap memory overrun bug.
14604         Reported by Ben Pfaff <blp@cs.stanford.edu> in
14605         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
14606         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
14607         memory.
14608         * tests/test-vasnprintf.c (test_function): Add another test.
14610 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14612         maint: mktime.c now shared with glibc
14613         * config/srclist.txt: intprops.h, timegm.c and mktime.c
14614         are now the same in Gnulib and glibc.
14616         mktime: fix _LIBC typo
14617         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
14619 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14621         dfa: optimization for state merge
14622         * lib/dfa.c (merge2): New function.
14623         (merge_nfa_state): Use it.
14625 2018-09-18  Jim Meyering  <meyering@fb.com>
14627         dfa: trivial comment fix: s/is/if/
14628         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
14630 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14632         dfa: use more-informative function name
14633         * lib/dfa.c (maybe_disable_superset_dfa):
14634         Rename from dfautf8noss.  Use change.
14636         dfa: tweak allocation performance
14637         * lib/dfa.c (merge_nfa_state, dfaoptimize):
14638         Prefer ptrdiff_t for indexes some more.
14639         Use char for flags, as it’s wide enough.
14640         Allocate queue and flags together, with one malloc call.
14641         No need to use xnmalloc since the multiplication and
14642         addition cannot overflow (it’s already been checked by
14643         earlier allocation).  Prefer memset to open-coding.
14645         dfa: prune states as we go
14646         * lib/dfa.c (prune): Remove.
14647         dfa: reorder enum for efficiency
14648         (merge_nfa_state): Prune as we go instead of at the end.
14649         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
14651         * lib/dfa.c (END): Now -1 again.  Reorder other elements
14652         of the enumeration to make it easier for GCC to generate
14653         efficient code by using fewer comparisons to check for
14654         ranges of values.
14655         (atom): Take advantage of the reordering.
14657 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
14659         dfa: optimize alternation in NFA
14660         Even when similar states exist in alternation, the DFA treats them
14661         as separate items, which may complicate the transition in NFA and
14662         cause slowdown.  This change assembles the states into one.  For
14663         example, ab|ac is changed into a(b|c).  This change speeds-up
14664         matching for many branched patterns.  For example, grep speeds up
14665         more than 30× in:
14667           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
14668           time -p env LC_ALL=C grep -vf in in
14670         * lib/dfa.c (prune): New function.
14671         (merge_nfa_state): New function.  It merges similar NFA states.
14672         (dfaoptimize): New function.  It seeks merged and removed nodes.
14673         (dfaanalyze): Call new function.
14674         (dfautf8noss): Change name from dfaoptimize because of addition of new
14675         function.
14676         (dfacomp): Update caller.
14678         dfa: simplify initial state
14679         Simplifying the initial state enables easier optimization of the NFA.
14680         * lib/dfa.c (enum token): Add new element BEG.
14681         (prtok): Adjust due to adding element BEG.
14682         (dfaparse): Put BEG at a head of tokens.
14683         (state_index): Adjust due to adding element BEG.
14684         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
14685         build initial state.
14686         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
14688 2018-09-18  Bruno Haible  <bruno@clisp.org>
14690         file-has-acl: Fix test failure on Cygwin 2.9.
14691         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
14692         * lib/acl-internal.h: Likewise.
14693         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
14694         * lib/acl-internal.c: Update comments regarding Cygwin.
14695         * lib/acl_entries.c: Likewise.
14696         * lib/file-has-acl.c: Likewise.
14697         (file_has_acl): For Cygwin, use a different way to determine whether
14698         the "default" ACL of a directory is nontrivial.
14699         * lib/get-permissions.c: Update comments regarding Cygwin.
14700         * lib/set-permissions.c: Likewise.
14702 2018-09-18  Bruno Haible  <bruno@clisp.org>
14704         stat-time tests: Fix test failure on Cygwin.
14705         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
14707 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14709         doc: OS X 10.11 lacked ns time functions
14710         According to <https://github.com/zeromq/libzmq/issues/2175>,
14711         nanosecond-resolution timestamp functions were introduced
14712         in macOS 10.12, so document the last version (OS X 10.11)
14713         where they were absent.
14715         gettime: nanotime never existed
14716         Problem reported by Bruno Haible in:
14717         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
14718         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
14719         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
14721 2018-09-18  Bruno Haible  <bruno@clisp.org>
14723         doc: Update statement about target platforms.
14724         Reported by Simon Sobisch.
14725         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
14726         restrictions on MSVC versions.
14728 2018-09-18  Bruno Haible  <bruno@clisp.org>
14730         posix_spawn tests: Fix link error on 64-bit Cygwin.
14731         * tests/test-posix_spawn1.c (environ): Remove declaration.
14732         * tests/test-posix_spawn2.c (environ): Likewise.
14733         * tests/test-posix_spawn3.c (environ): Likewise.
14734         * tests/test-posix_spawn4.c (environ): Likewise.
14735         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
14736         * modules/posix_spawnp-tests (Depends-on): Likewise.
14738 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14740         timespec: new function current_timespec
14741         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
14742         and don’t worry about it failing on a CLOCK_REALTIME arg.
14743         POSIX requires it to succeed and I don’t know of any
14744         counterexamples where the fallbacks would work.
14745         (current_timespec): New function, taken from Emacs.  It is more
14746         convenient than gettime, and can help register allocation.
14747         * lib/timespec.h: Include arg-nonnull.h.
14748         (current_timespec): New declaration.
14749         (gettime, settime): Declare args to be nonnull.
14750         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
14752 2018-09-16  Bruno Haible  <bruno@clisp.org>
14754         setlocale: Improve locale handling on macOS 10.12 or newer.
14755         * lib/setlocale.c: Include header files for CoreFoundation. Declare
14756         gl_locale_name_canonicalize.
14757         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
14758         and LC_MESSAGES.
14759         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
14761 2018-09-16  Bruno Haible  <bruno@clisp.org>
14763         Update list of locale names with scripts on macOS.
14764         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
14765         match Mac OS X 10.13 and recent glibc.
14767 2018-09-16  Bruno Haible  <bruno@clisp.org>
14769         gettext: Use newer macOS APIs when possible.
14770         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
14771         CFLocaleCopyPreferredLanguages.
14773 2018-09-16  Bruno Haible  <bruno@clisp.org>
14775         localename: Revisit macOS specific code.
14776         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
14777         Fix comments about Mac OS X versions.
14779 2018-09-15  Bruno Haible  <bruno@clisp.org>
14781         setlocale: Improve support for locales not supported by libc.
14782         Reported by Dapeng Gao <peter@dpgao.cc> at
14783         <https://savannah.gnu.org/bugs/?54479>.
14784         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
14785         (libintl_setlocale): Use a more error-tolerant strategy when the locale
14786         to be set is not supported by libc: Emit warnings instead of failing.
14788 2018-09-15  Bruno Haible  <bruno@clisp.org>
14790         strstr, strcasestr: Add workaround against glibc-2.28 bug.
14791         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
14792         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
14793         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
14794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
14795         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
14796         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
14797         * doc/glibc-functions/strcasestr.texi: Likewise.
14799 2018-09-14  Bruno Haible  <bruno@clisp.org>
14801         doc: Fix bottom of top-level page.
14802         Reported by Akim Demaille <akim.demaille@gmail.com> in
14803         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
14804         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
14805         mode.
14806         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
14807         accordingly.
14809 2018-09-12  Bruno Haible  <bruno@clisp.org>
14811         Add test case from a recent glibc bug.
14812         * tests/test-strstr.c (main): Add test of long needle.
14813         * tests/test-strcasestr.c (main): Likewise.
14814         * tests/test-c-strstr.c (main): Likewise.
14815         * tests/test-c-strcasestr.c (main): Likewise.
14816         * tests/test-memmem.c (main): Likewise.
14818 2018-09-12  Bruno Haible  <bruno@clisp.org>
14820         Apply Eric Blake's improvements from 2011-02-25 to more tests.
14821         * tests/test-c-strstr.c (main): Add the same tests here as well.
14823 2018-09-12  Bruno Haible  <bruno@clisp.org>
14825         Apply Jim Meyering's fix from 2015-01-11 to more tests.
14826         * tests/test-memmem.c (main): Free haystack.
14827         * tests/test-strcasestr.c (main): Likewise.
14828         * tests/test-c-strcasestr.c (main): Likewise.
14830 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
14832         xstrtol: fix missing-TYPE_SIGNED typo
14833         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
14835 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
14837         timespec: fix resolution confusion
14838         In normal usage, clock resolution is given in seconds, but the
14839         code was mistakenly using inverse seconds and calling it
14840         “resolution”.  Fix this, partly by renaming two identifiers.
14841         The old names will be kept for a bit, to ease transition.
14842         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
14843         New constants, replacing TIMESPEC_RESOLUTION and
14844         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
14845         All uses changed.
14847 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
14849         mktime: simplify in prep for glibc merge
14850         * lib/mktime.c, lib/timegm.c [_LIBC]:
14851         Include mktime-internal.h (a small file just for glibc)
14852         instead of using a typedef.
14854 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
14856         intprops: minor clarification of code
14857         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
14858         Use _GL_INT_CONVERT rather than reinventing it.
14860 2018-09-07  Bruno Haible  <bruno@clisp.org>
14862         Fix a comment.
14863         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
14865 2018-09-07  Bruno Haible  <bruno@clisp.org>
14867         posix_spawn_file_actions_addchdir: Add tests.
14868         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
14869         * tests/test-posix_spawn4.c: New file.
14870         * modules/posix_spawn_file_actions_addchdir-tests: New file.
14872 2018-09-07  Bruno Haible  <bruno@clisp.org>
14874         posix_spawn_file_actions_addchdir: New module.
14875         Suggested by Eric Blake in
14876         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
14877         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
14878         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
14879         union member 'chdir_action'.
14880         * lib/spawn_faction_addchdir.c: New file.
14881         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
14882         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
14883         HAVE_WORKING_POSIX_SPAWN.
14884         * lib/spawn_faction_adddup2.c: Likewise.
14885         * lib/spawn_faction_addopen.c: Likewise.
14886         * m4/posix_spawn_faction_addchdir.m4: New file.
14887         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14888         'posix_spawn_file_actions_addchdir' is present and whether
14889         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
14890         instead of HAVE_WORKING_POSIX_SPAWN.
14891         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14892         posix_spawn_file_actions_addchdir is declared.
14893         (gl_SPAWN_H_DEFAULTS): Initialize
14894         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14895         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14897         * modules/spawn (Makefile.am): Substitute
14898         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14899         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
14900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
14901         * modules/posix_spawn_file_actions_addchdir: New file.
14902         * modules/posix_spawn_file_actions_addclose (Depends-on,
14903         configure.ac): Test also REPLACE_POSIX_SPAWN.
14904         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
14905         configure.ac): Likewise.
14906         * modules/posix_spawn_file_actions_addopen (Depends-on,
14907         configure.ac): Likewise.
14908         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
14909         signature.
14910         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14911         * doc/posix-functions/posix_spawnp.texi: Likewise.
14913 2018-09-06  Bruno Haible  <bruno@clisp.org>
14915         stddef: Override max_align_t on NetBSD 8.0/x86.
14916         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
14917         the value of __alignof__ (max_align_t).
14918         * doc/posix-headers/stddef.texi: Mention the issue.
14920 2018-09-06  Bruno Haible  <bruno@clisp.org>
14922         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
14923         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
14924         system fcntl.
14925         * doc/posix-functions/fcntl.texi: Document the issue.
14927 2018-09-06  Bruno Haible  <bruno@clisp.org>
14929         count-trailing-zeros tests: Rely on limits-h module.
14930         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
14931         definition.
14932         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
14934 2018-09-06  Bruno Haible  <bruno@clisp.org>
14936         count-leading-zeros tests: Rely on limits-h module.
14937         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
14938         definition.
14939         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
14941 2018-09-06  Bruno Haible  <bruno@clisp.org>
14943         count-one-bits tests: Rely on limits-h module.
14944         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
14945         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
14947 2018-09-06  Bruno Haible  <bruno@clisp.org>
14949         xstrtoll: Rely on limits-h module.
14950         * lib/xstrtol.c: Don't include intprops.h.
14951         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14952         * modules/xstrtol (Depends-on): Remove 'intprops'.
14953         * modules/xstrtoll (Depends-on): Add 'limits-h'.
14955 2018-09-06  Bruno Haible  <bruno@clisp.org>
14957         strtoll, strtoull: Rely on limits-h module.
14958         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
14959         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
14960         * modules/strtoll (Depends-on): Add limits-h.
14961         * modules/strtoull (Depends-on): Likewise.
14963 2018-09-06  Bruno Haible  <bruno@clisp.org>
14965         intprops tests: Fix compilation error with pre-C99 compiler.
14966         * tests/test-intprops.c (verify_stmt): New macro.
14967         (VERIFY, main): Use it.
14969 2018-09-06  Bruno Haible  <bruno@clisp.org>
14971         limits-h: Provide numerical limits macros.
14972         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
14973         IRIX and for GCC.
14974         (WORD_BIT, LONG_BIT): Define.
14975         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
14976         <limits.h> does not define LLONG_MAX or WORD_BIT.
14977         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
14978         TYPE_MAXIMUM): New macros, from intprops.h.
14979         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
14980         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
14981         provides.
14983 2018-09-05  Bruno Haible  <bruno@clisp.org>
14985         fcntl: Don't access nonexistent optional argument.
14986         Reported by Frank Busse <f.busse@imperial.ac.uk> in
14987         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
14988         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
14989         don't consume an argument. For actions that take an 'int' argument,
14990         consume an 'int' argument.
14992 2018-09-05  Eric Blake  <eblake@redhat.com>
14994         doc: mention environ pitfall
14995         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14996         environ is a glibc extension.
14998 2018-09-03  Bruno Haible  <bruno@clisp.org>
15000         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
15001         Reported by Antoine Luong <antoine.luong@c-s.fr> in
15002         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
15003         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
15004         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
15005         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
15007 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15009         mktime: fix unlikely race+overflow bug
15010         Problem reported by Alexandre Oliva in:
15011         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
15012         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
15013         to avoid an unlikely race if the compiler delays a load and
15014         if this cascades into a signed integer overflow.
15016 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15018         mktime, timegm: simplify glibc time64_t
15019         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
15020         Now long int, not time_t, since long int is the longstanding type
15021         for this in glibc and there is no need to change it even if time_t
15022         becomes 64 bits - even int would do, though this would be a change
15023         to the glibc generated code.  When this change is merged into
15024         glibc, it should simplify the time_t vs time64_t situation.
15026         mktime, timegm: simplify merge to glibc
15027         Move code around to make a merge to glibc easier to audit.
15028         This should not change behavior.
15029         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
15030         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
15031         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
15032         simplify later conditionals; default the others to zero.  In uses
15033         of these conditionals, explicitly spell out how _LIBC affects
15034         things, so it’s easier to review from a glibc viewpoint.
15035         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
15036         compartmentalize tzset issues.  Move system-dependent tzsettish
15037         code here from mktime.
15038         (mktime): Move tzsettish code to my_tzset, and move
15039         localtime_offset to within mktime so that it doesn’t
15040         need a separate ifdef.
15042 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
15044         intprops: avoid evaluation of some expressions
15045         This makes EXPR_SIGNED (e) easier to use, as it no longer
15046         evaluates the expression E.  Formerly, E was required to be free
15047         of side effects.
15048         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
15049         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
15050         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
15052 2018-08-23  Bruno Haible  <bruno@clisp.org>
15054         getcwd: Add cross-compilation guesses.
15055         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
15056         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
15057         Based on a patch by Paul Eggert.
15058         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
15059         guesses for all GNU systems.
15061 2018-08-19  Bruno Haible  <bruno@clisp.org>
15063         glob-h: Formalize side effects from other modules.
15064         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
15065         * m4/glob.m4 (gl_GLOB): Invoke it.
15067         fnmatch-h: Formalize side effects from other modules.
15068         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
15069         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
15071         limits-h: Formalize side effects from other modules.
15072         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
15073         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
15075 2018-08-19  Bruno Haible  <bruno@clisp.org>
15077         getpass: Move declaration to <unistd.h>.
15078         * lib/unistd.in.h (getpass): New declaration.
15079         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
15080         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
15081         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
15082         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
15083         On glibc systems, don't set REPLACE_GETPASS to 1.
15084         * modules/getpass (Depends-on): Add 'unistd'.
15085         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
15086         (Include): Specify <unistd.h> instead of "getpass.h".
15087         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
15088         (configure.ac): Sync with the configure.ac section of modules/getpass.
15089         (Include): Specify <unistd.h> instead of "getpass.h".
15090         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
15091         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
15092         REPLACE_GETPASS.
15093         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
15094         REPLACE_GETPASS.
15095         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
15096         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
15097         and musl.
15098         * NEWS: Mention the change.
15100 2018-08-19  Bruno Haible  <bruno@clisp.org>
15102         glob: Fix over-optimization due to attribute __nonnull__.
15103         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
15105 2018-08-19  Bruno Haible  <bruno@clisp.org>
15107         glob: Fix another compilation error when glob.h is not replaced.
15108         Reported by Reuben Thomas <rrt@sc3d.org> in
15109         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
15110         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
15111         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
15113 2018-08-18  Bruno Haible  <bruno@clisp.org>
15115         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
15116         Reported by Reuben Thomas <rrt@sc3d.org> in
15117         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
15118         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
15119         in config.h.
15121 2018-08-18  Bruno Haible  <bruno@clisp.org>
15123         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
15124         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
15125         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
15126         Solution proposed by Eli Zaretskii.
15127         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
15128         * lib/gettimeofday.c (GetProcAddress): Likewise.
15129         * lib/link.c (GetProcAddress): Likewise.
15130         * lib/physmem.c (GetProcAddress): Likewise.
15131         * lib/poll.c (GetProcAddress): Likewise.
15132         * lib/select.c (GetProcAddress): Likewise.
15133         * lib/stat-w32.c (GetProcAddress): Likewise.
15135 2018-08-18  Bruno Haible  <bruno@clisp.org>
15137         glob: Fix another compilation error when glob.h is not replaced.
15138         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
15139         * lib/globfree.c: Include <libc-config.h>.
15141 2018-08-18  Bruno Haible  <bruno@clisp.org>
15143         glob: Fix compilation error when glob.h is not replaced.
15144         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
15145         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
15146         * lib/glob_pattern_p.c: Include <libc-config.h>.
15147         * modules/glob (Depends-on): Add libc-config.
15149 2018-08-18  Bruno Haible  <bruno@clisp.org>
15151         scratch_buffer: Add tests.
15152         * tests/test-scratch-buffer.c: New file.
15153         * modules/scratch_buffer-tests: New file.
15155 2018-08-18  Bruno Haible  <bruno@clisp.org>
15157         scratch_buffer: Fix include file.
15158         Reported by Reuben Thomas <rrt@sc3d.org> in
15159         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
15160         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
15161         double-inclusion guard.
15163 2018-08-18  Bruno Haible  <bruno@clisp.org>
15165         glob-h: Revert Paul Eggert's revert.
15166         * m4/glob_h.m4: Revert to previous state.
15167         * modules/glob-h: Likewise.
15169 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
15171         glob-h: always build glob.h
15172         This works around a problem reported by Reuben Thomas in:
15173         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
15174         This workaround always builds glob.h, even on platforms that
15175         do not need it; perhaps this could be improved someday.
15176         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
15177         is always created now.
15178         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
15180 2018-08-13  Bruno Haible  <bruno@clisp.org>
15182         monetary: Simplify m4 code.
15183         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
15184         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
15186 2018-08-13  Bruno Haible  <bruno@clisp.org>
15188         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
15189         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
15190         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
15191         and by Paul J. Lucas <paul@lucasmail.org> in
15192         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
15193         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
15195 2018-08-11  Bruno Haible  <bruno@clisp.org>
15197         setlocale: Trivial simplification.
15198         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
15200 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15202         verify: port 'assume' to traditional tools
15203         * lib/verify.h (assume): Port better to Oracle Studio 12.6
15204         and other tools that use /*NOTREACHED*/ comments.
15206 2018-08-10  Bruno Haible  <bruno@clisp.org>
15208         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
15209         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
15210         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
15211         'fnmatch-gnu' is in use.
15213 2018-08-07  Bruno Haible  <bruno@clisp.org>
15215         glob-h: Add tests.
15216         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
15217         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
15218         tests/test-glob-h.c.
15219         * modules/glob-h-tests: New file.
15220         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
15221         conditions.
15222         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
15223         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
15225 2018-08-07  Bruno Haible  <bruno@clisp.org>
15227         glob-h: New module.
15228         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
15229         replacements.
15230         * lib/glob.c: Include <config.h>.
15231         * m4/glob_h.m4: New file.
15232         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
15233         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15234         REPLACE_GLOB_PATTERN_P as appropriate.
15235         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
15236         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
15237         * modules/glob-h: New file.
15238         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
15239         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
15240         lstat, sys_stat. Change conditions.
15241         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
15242         REPLACE_GLOB_PATTERN_P. Set module indicator.
15243         (Makefile.am): Remove code that is moved to glob-h.
15244         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
15245         * modules/posixcheck (Depends-on): Add glob-h.
15247 2018-08-06  Bruno Haible  <bruno@clisp.org>
15249         Force generation of substitute .h file when C++ support is enabled.
15250         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
15251         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
15252         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
15253         FNMATCH_H to non-empty.
15254         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
15255         ICONV_H to non-empty.
15256         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
15257         MONETARY_H to non-empty.
15258         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
15259         non-empty.
15261 2018-08-06  Bruno Haible  <bruno@clisp.org>
15263         fnmatch-h: Fix test compilation error on mingw (regression from today).
15264         * lib/fnmatch.in.h: Fix conditions.
15266 2018-08-06  Bruno Haible  <bruno@clisp.org>
15268         sys_resource: Relicense under LGPLv2+.
15269         John Malmberg's approval is in
15270         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
15271         * modules/sys_resource (License): Change to LGPLv2+.
15273 2018-08-06  Bruno Haible  <bruno@clisp.org>
15275         fnmatch-h: Add tests.
15276         * tests/test-fnmatch-h.c: New file.
15277         * modules/fnmatch-h-tests: New file.
15278         * tests/test-fnmatch-h-c++.cc: New file.
15279         * modules/fnmatch-h-c++-tests: New file.
15281 2018-08-06  Bruno Haible  <bruno@clisp.org>
15283         fnmatch-h: New module.
15284         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
15285         replacements.
15286         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
15287         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
15288         'posixcheck' warning.
15289         * m4/fnmatch_h.m4: New file.
15290         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
15291         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
15292         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
15293         as appropriate.
15294         * modules/fnmatch-h: New file.
15295         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
15296         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
15297         conditions.
15298         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
15299         indicator.
15300         (Makefile.am): Remove code that is moved to fnmatch-h.
15301         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
15302         REPLACE_FNMATCH.
15303         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
15304         * modules/posixcheck (Depends-on): Add fnmatch-h.
15306 2018-08-06  Bruno Haible  <bruno@clisp.org>
15308         Enable more C++ tests.
15309         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
15310         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
15311         * modules/strings-tests (Depends-on): Add strings-c++-tests.
15312         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
15313         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
15315 2018-08-06  Bruno Haible  <bruno@clisp.org>
15317         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
15318         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
15319         getopt.h.
15320         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
15322 2018-08-05  Bruno Haible  <bruno@clisp.org>
15324         utime-h: Generate header file when module 'posixcheck' is in use.
15325         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
15326         UTIME_H to non-empty.
15328 2018-08-05  Bruno Haible  <bruno@clisp.org>
15330         monetary: Generate header file when module 'posixcheck' is in use.
15331         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
15332         use, set MONETARY_H to non-empty.
15334 2018-08-05  Bruno Haible  <bruno@clisp.org>
15336         iconv-h: Generate header file when module 'posixcheck' is in use.
15337         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
15338         set ICONV_H to non-empty.
15340 2018-08-05  Bruno Haible  <bruno@clisp.org>
15342         Optimize the "checking whether ... is declared without a macro" checks.
15343         Suggested by Paul Eggert in
15344         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
15345         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
15346         Gnulib module 'posixcheck' is not in use.
15348 2018-08-05  Bruno Haible  <bruno@clisp.org>
15350         iconv-h: Enable 'posixcheck' warnings.
15351         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
15352         iconv_open.
15353         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
15355 2018-08-05  Bruno Haible  <bruno@clisp.org>
15357         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
15358         * m4/extern-inline.m4: Add more comments.
15359         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
15360         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
15361         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
15363 2018-08-04  Bruno Haible  <bruno@clisp.org>
15365         New module 'posixcheck'.
15366         * modules/posixcheck: New file.
15367         * m4/posixcheck.m4: New file.
15368         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
15369         (Which modules?): Reference it.
15371 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
15373         dfa: fix memory leak
15374         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
15376 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
15378         ieee754-h: new module
15379         It looks like Emacs can use this for some NaN processing.
15380         Emacs uses it only on double NaNs so it should be safe.
15381         * MODULES.html.sh (func_all_modules): Add ieee754-h.
15382         * config/srclist.txt: Mention ieee754.h in a comment.
15383         * doc/glibc-headers/ieee754.texi (ieee754.h):
15384         Gnulib now has a substitute that should work
15385         except for long double and for non-IEEE platforms.
15386         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
15387         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
15389 2018-07-27  Bruno Haible  <bruno@clisp.org>
15391         iswcntrl: Mention minor problem on macOS.
15392         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
15394 2018-07-26  Colin Watson  <cjwatson@debian.org>
15396         bootstrap, gnulib-tool: fix translations rsync
15397         Previously, we created files such as $pobase/Makefile.in.in and then the
15398         subsequent rsync would immediately delete them.
15399         * build-aux/bootstrap (po_download_command_format): Avoid deleting
15400         non-.po files in target directory when rsyncing translations.
15401         * gnulib-tool (func_import): Likewise.
15402         * pygnulib/GLImport.py (GLImport.execute): Likewise.
15404 2018-07-25  Jim Meyering  <meyering@fb.com>
15406         bootstrap: reinstate definition fo gnulib_mk.
15407         That variable is used at least by cppi.
15408         * build-aux/bootstrap (gnulib_mk): Restore definition.
15409         This reverts the deletion from v0.1-1844-gc66dba9ba.
15411 2018-07-23  Bruno Haible  <bruno@clisp.org>
15413         doc: For module names, use texinfo markup @code{} or @samp{}.
15414         * doc/alloca.texi: Mark gnulib module names with @code.
15415         * doc/alloca-opt.texi: Likewise.
15416         * doc/quote.texi: Likewise.
15417         * doc/posix-functions/freopen.texi: Likewise.
15418         * doc/posix-functions/open.texi: Likewise.
15419         * doc/posix-functions/readlink.texi: Likewise.
15420         * doc/posix-functions/readlinkat.texi: Likewise.
15421         * doc/posix-functions/stdout.texi: Likewise.
15422         * doc/posix-functions/stderr.texi: Likewise.
15423         * doc/posix-functions/unlink.texi: Likewise.
15424         * doc/posix-functions/unlinkat.texi: Likewise.
15425         * doc/posix-functions/utime.texi: Likewise.
15426         * doc/posix-functions/utimensat.texi: Likewise.
15427         * doc/posix-functions/utimes.texi: Likewise.
15428         * doc/posix-headers/stdint.texi: Likewise.
15429         * doc/glibc-functions/futimesat.texi: Likewise.
15430         * doc/glibc-functions/lutimes.texi: Likewise.
15431         * doc/glibc-functions/memmem.texi: Likewise.
15433 2018-07-23  Werner LEMBERG  <wl@gnu.org>
15435         doc: Avoid some overfull lines in the TeX output.
15436         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
15437         @example.
15438         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
15439         newline before the long URL.
15440         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
15441         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
15442         Add line breaks in code snippets.
15444 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
15446         hard-locale: simplify by removing hard-locale.m4
15447         * m4/hard-locale.m4: Remove.
15448         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
15449         (configure.ac): Do not call gl_HARD_LOCALE.
15451         gnulib-tool: limit line length for git send-email
15452         * gnulib-tool (func_import): Break actioncmd log line
15453         into multiple lines.
15455 2018-07-16  Bruno Haible  <bruno@clisp.org>
15457         ffs: Ensure declaration on mingw.
15458         Reported by Daniel P. Berrangé <berrange@redhat.com>
15459         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
15460         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
15461         also declared.
15463 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
15465         regex-tests: add dependency
15466         * modules/regex-tests (Depends-on): Add gettext-h.
15467         This is needed given the recent changes to regex,
15468         which no longer depends on gettext-h.
15470 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15472         regex: now in sync with glibc
15473         * config/srclist.txt: Gnulib and glibc regex code
15474         are synchronized again.
15476 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15478         renameatu: rename from renameat2
15479         It's looking like Glibc will add a renameat2 function
15480         that is incompatible with Gnulib renameat2; see:
15481         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
15482         To help avoid future confusion, rename renameat2 to something else.
15483         Use the name 'renameatu', as the Gnulib function is close to the
15484         Glibc function.  Perhaps someday there will also be a renameat2
15485         Gnulib module, which mimicks the future glibc renameat2, but that
15486         can wait as nobody seems to need such a module now.
15487         * NEWS: Mention this.
15488         * lib/renameatu.c: Rename from lib/renameat2.c.
15489         * lib/renameatu.h: Rename from lib/renameat2.h.
15490         * modules/renameatu: Rename from modules/renameat2.
15491         * modules/renameatu-tests: Rename from modules/renameat2-tests.
15492         All uses of "renameat2" in identifiers or file name
15493         changed to "renameatu", except for two instances in
15494         lib/renameatu.c that deal with the Linux kernel's
15495         renameat2 syscall.
15497 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
15499         gnulib-tool: minor tweaks for --gnu-make
15500         * gnulib-tool: Do not allow --gnu-make in test modes,
15501         since they all require automake.
15502         (func_emit_lib_Makefile_am): Don’t emit automake comment
15503         if --gnu-make.
15505         regex: work around conditional-dependencies glitch
15506         * modules/regex (Depends-on): Add langinfo.
15507         Without this change, I had problems building an experimental
15508         version of GNU Emacs.  The symptom of the bug was a message
15509         ‘./configure: line 12726: test: =: unary operator expected’.
15510         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
15511         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
15512         was unset.  Although gl_FUNC_NL_LANGINFO has
15513         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
15514         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
15515         --conditional-dependencies sometimes arranges for the
15516         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
15517         code.  Since the regex code includes <langinfo.h> it should be
15518         depending on the langinfo module anyway, and this happens to work
15519         around the bug, so install that as a workaround for now.  To
15520         reproduce the original problem, run the following shell script on
15521         the version of Gnulib just before this patch was installed.
15522                 rm -fr foo
15523                 mkdir foo
15524                 cat >foo/configure.ac <<'EOF'
15525                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
15526                 gl_EARLY
15527                 gl_INIT
15528                 AC_OUTPUT
15529                 EOF
15530                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
15531                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
15532                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
15533                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
15534                 cd foo
15535                 aclocal -I m4
15536                 autoconf
15537                 ./configure --with-included-regex
15539 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15541         wchar: fix bug when checking for ‘inline’
15542         I discovered this when looking into using the regex module
15543         with Emacs.
15544         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
15545         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
15546         conftest1.c and conftest2.c but these files were not created.
15547         As far as I can see, this check never worked and nobody reported
15548         it until now, which is a bit worrisome.
15550 2018-06-30  Jim Meyering  <meyering@fb.com>
15552         bootstrap: s/--option val/--option=val/
15553         * build-aux/bootstrap (gnulib_tool_options): Change the
15554         spelling of "--option val" pairs to "--option=val", for
15555         aesthetics, and also so that this file no longer triggers
15556         a common help2man syntax-check warning when copied into
15557         projects like grep, gzip, etc.
15559 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
15561         manywarnings: omit -Wswitch-default
15562         This should make things more consistent, as we already ignore
15563         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
15564         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
15565         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
15566         Add -Wswitch-default.
15567         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
15568         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
15569         Remove -Wswitch-default.
15571         regex: revert most trimming
15572         Problems reported by Bruno Haible in:
15573         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
15574         * modules/regex (Depends-on): Add lock, memcmp, memmove,
15575         and wctype back in.  lock because regex users shouldn’t
15576         need to know that regex needs locking, and the rest because
15577         gnulib-tool should ordinarily ignore them anyway.
15579 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15581         regex: trim module dependencies
15582         * modules/regex (Depends-on): Remove gettext-h and lock,
15583         since the regex code should work OK without these modules,
15584         and Emacs uses it that way.  Also remove memcmp, memmove,
15585         and wctype, as these modules are obsolete and should not be
15586         needed any more.
15588 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
15590         regex: glibc does not use intprops.h
15591         Maybe we can talk glibc into using intprops.h someday, but
15592         now doesn’t seem to be a good time.
15593         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
15594         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
15595         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
15597 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
15599         regex: port to recently proposed glibc regex merge
15600         This patch is inspired by Adhemerval Zanella's recent proposal
15601         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
15602         to merge glibc and Gnulib regex.  It aims to simplify the merge on
15603         the glibc side, without keeping Gnulib portable.
15604         * lib/regex.h: Fix a problem with glibc installed-header checking,
15605         as follows:
15606         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
15607         (_Restrict_arr_): Prefer __restrict_arr if defined,
15608         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
15609         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
15610         (build_wcs_upper_buffer, build_upper_buffer)
15611         (re_string_translate_buffer, re_string_context_at):
15612         Move decls here from lib/regex_internal.h, for glibc internal tests.
15613         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
15614         glibc BZ #18496.
15615         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
15616         -Wunused-value.
15617         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
15618         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15619         (bitset_mask): Now static inline, and without any __attribute__
15620         ((unused)) decoration, for glibc internal tests.
15622 2018-06-25  Bruno Haible  <bruno@clisp.org>
15624         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
15625         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
15626         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
15627         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
15628         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
15629         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
15630         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
15631         / -lthread / -lpth does not get optimized away by a preceding
15632         --as-needed option.
15634 2018-06-25  Bruno Haible  <bruno@clisp.org>
15636         Continue to use spaces for indentation, not tabs.
15637         * MODULES.html.sh: Untabify.
15638         * doc/regex.texi: Likewise.
15639         * lib/acl-internal.c: Likewise.
15640         * lib/dfa.c: Likewise.
15641         * lib/exclude.c: Likewise.
15642         * lib/exclude.h: Likewise.
15643         * lib/get-permissions.c: Likewise.
15644         * lib/gettimeofday.c: Likewise.
15645         * lib/parse-datetime.y: Likewise.
15646         * lib/pselect.c: Likewise.
15647         * lib/set-permissions.c: Likewise.
15648         * lib/time.in.h: Likewise.
15649         * m4/canonicalize.m4: Likewise.
15650         * m4/gc.m4: Likewise.
15651         * m4/gnulib-common.m4: Likewise.
15652         * m4/pthread_sigmask.m4: Likewise.
15653         * m4/vararrays.m4: Likewise.
15654         * tests/test-digest.h: Likewise.
15655         * tests/test-fcntl-h.c: Likewise.
15656         * tests/test-timespec.c: Likewise.
15657         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
15659 2018-06-25  Bruno Haible  <bruno@clisp.org>
15661         manywarnings: Don't enable -Wjump-misses-init warnings by default.
15662         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
15663         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
15664         -Wjump-misses-init.
15666 2018-06-25  Jim Meyering  <meyering@fb.com>
15668         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
15669         * lib/acl-internal.h (free_permission_context): Remove that
15670         attribute directive.  Otherwise, it would provoke this from GCC 9:
15671         lib/acl-internal.h:300:3: error: 'const' attribute on function \
15672           returning 'void' [-Werror=attributes]
15674 2018-06-24  Jim Meyering  <meyering@fb.com>
15676         parse-datetime: accommodate gcc-4.8.5
15677         Bruno Haible reported the build failure in
15678         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
15679         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
15680         on declaration of new local.
15682 2018-06-24  Bruno Haible  <bruno@clisp.org>
15684         af_alg: Fail in continuable manner on Linux/powerpc64le.
15685         Reported by Assaf Gordon <assafgordon@gmail.com>
15686         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
15687         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
15688         byte send() as the first round.
15690 2018-06-24  Bruno Haible  <bruno@clisp.org>
15692         af_alg: Fix state of stream after sendfile() succeeds.
15693         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
15694         the stream is correctly positioned afterwards.
15695         * modules/crypto/af_alg (Depends-on): Add fflush.
15696         * tests/test-digest.h (test_digest_on_files): Verify that after the
15697         operation the stream is positioned at end of file.
15699 2018-06-24  Jim Meyering  <meyering@fb.com>
15701         canon-host: take GCC9's advice rather than ignoring warning
15702         Pádraig Brady suggested not to ignore this GCC9 advice.
15703         * lib/canon-host.c: Undo preceding change.
15704         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
15706         parse-datetime.y: avoid spurious GCC 9 warning
15707         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
15708         a function local prior to the first "goto fail".  The prior use would
15709         evoke this:
15710         parse-datetime.y: In function 'parse_datetime2':
15711         parse-datetime.y:1791:19: error: jump skips variable initialization \
15712           [-Werror=jump-misses-init]
15713         parse-datetime.y:2385:2: note: label 'fail' defined here
15714         parse-datetime.y:188:43: note: '({anonymous})' declared here
15715         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
15717         canon-host.c: avoid spurious GCC 9 warning
15718         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
15720         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
15721         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
15722         * m4/manywarnings.m4: Remove them.
15723         Otherwise, building coreutils, I would see this:
15724         cc1: error: deprecated command line option '-Wchkp' [-Werror]
15725         cc1: error: -Wabi won't warn about anything [-Werror=abi]
15726         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
15727           which is also used by default
15728         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
15730 2018-06-24  Bruno Haible  <bruno@clisp.org>
15732         af_alg tests: Add another test.
15733         * tests/test-digest.h (test_digest_on_files): Also check a large file
15734         with a skipped header.
15735         * tests/test-md5.c: Include macros.h.
15736         * tests/test-sha1.c: Likewise.
15737         * tests/test-sha256.c: Likewise.
15738         * tests/test-sha512.c: Likewise.
15739         * modules/crypto/md5-tests (Files): Add tests/macros.h.
15740         * modules/crypto/sha1-tests (Files): Likewise.
15741         * modules/crypto/sha256-tests (Files): Likewise.
15742         * modules/crypto/sha512-tests (Files): Likewise.
15744 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15746         maint: clarify comments about sticky EOF
15747         * lib/af_alg.c: Be more direct that we can't
15748         assume stickiness of EOF for portability reasons.
15749         * lib/md5.c: Clarify that this isn't just a glibc issue.
15750         * lib/sha1.c: Likewise.
15751         * lib/sha256.c: Likewise.
15752         * lib/sha512.c: Likewise.
15754 2018-06-24  Bruno Haible  <bruno@clisp.org>
15756         af_alg: Comment and style improvements.
15757         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
15758         (afalg_buffer, afalg_stream): Improve comments.
15760 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15762         af_alg: disable kernel hash functions by default
15763         All the kernel routines were seen to be significantly slower
15764         with these relatively recent components on an i3-2310M system:
15765           kernel-4.10.6-200.fc25.x86_64
15766           openssl-1.0.2m-1.fc25.x86_64
15767         sha1 was nearly twice as slow in the kernel for example.
15768         Further considerations why this should not be the default, at:
15769         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
15771         * m4/af_alg.m4: Require --with-linux-crypto to enable.
15772         * m4/gl-openssl.m4: Tweak accordingly.
15774 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15776         af_alg: avoid hangs when reading from streams
15777         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
15778         and thus avoid doing a fread() when feof() is set.
15779         * lib/md5.c: Ensure feof() is called before fread().
15780         * lib/sha1.c: Likewise.
15781         * lib/sha256.c: Likewise.
15782         * lib/sha512.c: Likewise.
15784 2018-06-24  Pádraig Brady  <P@draigBrady.com>
15786         af_alg: fix error handling when hash not returned
15787         * lib/af_alg.c (afalg_stream): Handle the case where we've
15788         successfully written data to the kernel in the read/write loop,
15789         but the kernel doesn't respond with the hash.
15791 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
15793         libc-config: merge from glibc
15794         * lib/cdefs.h (__inline, __restrict):
15795         Copy from current glibc.  This fixes glibc bug 17721,
15796         which Gnulib had already fixed in a different way.
15797         (__nonnull): Lessen the distance from glibc by using the
15798         glibc definition inside an ‘#ifndef __nonnull’.
15799         (__attribute_nonstring__): New macro, copied from
15800         current glibc.
15801         * lib/libc-config.h (__attribute_nonstring__): New undef.
15802         (__restrict): Remove; workaround no longer needed.
15803         Keep the __inline workaround, though, as it uses HAVE___INLINE to
15804         support more compilers than the glibc __inline can.
15806 2018-06-24  Bruno Haible  <bruno@clisp.org>
15808         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
15809         * lib/mbrtowc.c (enc_t): New enum type.
15810         (locale_enc, locale_enc_cached): New functions.
15811         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
15812         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
15813         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
15814         instead.
15815         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
15816         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
15817         * modules/wcwidth (configure.ac): Invoke it.
15819 2018-06-24  Bruno Haible  <bruno@clisp.org>
15821         wchar-single: Fix test failure in wcwidth tests.
15822         * tests/test-wcwidth.c (main): If the wchar-single module is present,
15823         skip the tests in the C locale.
15825 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15827         crypto: mention --without-linux-crypto in --with-openssl --help
15828         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
15829         routines take precedence in --with-openssl help output.
15831 2018-06-23  Pádraig Brady  <P@draigBrady.com>
15833         wchar-single: a new module to enable optimizations in wchar replacements
15834         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
15835         GNULIB_WCHAR_SINGLE is enabled.
15836         * lib/wcwidth.c (wcwidth): Likewise.
15838 2018-06-23  Bruno Haible  <bruno@clisp.org>
15840         libc-config: Fix conflict with FreeBSD include files.
15841         * lib/cdefs.h (__nonnull): Remove definition.
15842         * lib/libc-config.h (__nonnull): Remove undefinition.
15844 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
15846         random_r: do not crash if state is unaligned
15847         Problem reported by Bruce Korb in:
15848         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
15849         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
15850         with 'cc -O2 -xmemalign=8s'.
15851         * lib/random_r.c: Include string.h, for memcpy.
15852         (get_int32, set_int32): New functions.
15853         (__srandom_r, __initstate_r, __setstate_r, __random_r):
15854         Use them to avoid assumption that state pointer is aligned.
15855         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
15856         * tests/test-random_r.c (test_failed): New function.
15857         (main): Use it, to test for alignment bugs.
15859         random_r: omit unnecessary include
15860         * lib/random_r.c: Do not include limits.h.
15862         random, random_r: merge from glibc
15863         * lib/random.c, lib/random_r.c:
15864         Include libc-config.h if !_LIBC, not config.h unilaterally.
15865         * lib/random.c:
15866         Do not include stdint.h or time.h; not needed.
15867         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
15868         (unsafe_state): Rename from generator.  All uses changed.
15869         Use C99-style initializers.
15870         (__random, __srandom, __initstate, __setstate): Rename from
15871         non-underscored version, but define it to non-underscored version
15872         on Gnulib.  Add a lock.
15873         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
15874         Likewise.
15875         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
15876         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
15877         (__srandom_r): Use int32_t instead of long int where int32_t will do.
15878         (__random_r): Use uint32 to fix glibc bug 17343.
15879         * modules/random, modules/random_r (Depends-on): Add libc-config.
15880         Depend on stdint only if $HAVE_RANDOM = 0.
15882 2018-06-19  Jim Meyering  <meyering@fb.com>
15884         README-release: also run any check-very-expensive tests
15885         * top/README-release: Adjust instructions so they run the
15886         check-very-expensive tests when there is such a target.
15888 2018-06-18  Bruno Haible  <bruno@clisp.org>
15890         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
15891         * m4/pthread_rwlock_rdlock.m4: Add comment.
15892         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
15893         are reader-preferring in glibc.
15894         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
15895         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
15897 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15899         crypto: use byteswap
15900         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
15901         * lib/sm3.c: Include <byteswap.h>.
15902         (SWAP): Use its macros rather than reinventing the wheel.
15903         * modules/crypto/md4, modules/crypto/md5-buffer:
15904         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
15905         * modules/crypto/sha512-buffer, modules/crypto/sm3:
15906         (Depends-on): Add byteswap.
15908 2018-06-17  Pádraig Brady  <P@draigBrady.com>
15910         gendocs.sh: fix support for legacy --texi2html
15911         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
15912         to the default makeinfo invocation.
15913         Reported by Bruce Korb
15915 2018-06-17  Bruno Haible  <bruno@clisp.org>
15917         gettext po infrastructure: Update from current gettext git.
15918         Reported by Akim Demaille <akim@lrde.epita.fr>.
15919         * build-aux/po/Makefile.in.in: Update from current gettext git.
15920         * build-aux/po/remove-potcdate.sin: Likewise.
15921         * config/srclist.txt: Temporarily disable sync for these files.
15923 2018-06-17  Bruno Haible  <bruno@clisp.org>
15925         getloadavg: Return 0 on Windows without Cygwin.
15926         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
15928 2018-06-17  Paul Smith  <psmith@gnu.org>
15930         getloadavg: Allow building on Windows without Cygwin
15931         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
15932         * m4/getloadavg.m4: Check for unistd.h.
15934 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
15936         Port crypto/af_alg to GCC 4.8.4
15937         Problem reported by Peter Simons in:
15938         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
15939         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
15941 2018-05-27  Colin Watson  <cjwatson@debian.org>
15943         bootstrap: document source fetching in --help
15944         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
15946 2018-04-09  Colin Watson  <cjwatson@debian.org>
15948         bootstrap: allow non-submodule control of gnulib
15949         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
15950         bootstrap.conf when fetching gnulib using "git clone" or via
15951         GNULIB_SRCDIR.
15953 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15955         crypto: omit stream ops Emacs doesn’t need
15956         * lib/md5.c (md5_stream):
15957         * lib/sha1.c (sha1_stream):
15958         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
15959         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
15960         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
15961         defined.  Emacs needs this, as it does not use the stream
15962         operations and doesn’t need all the af_alg stuff we’ve recently
15963         added.  Perhaps a similar change is needed to the other crypto
15964         modules, but this patch changes only those needed for Emacs.
15965         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
15966         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
15967         New modules, used by Emacs.
15968         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
15969         * modules/crypto/sha512: Rewrite to depend on the new modules.
15971 2018-05-20  Pádraig Brady  <P@draigBrady.com>
15973         fts: avoid a memory leak edge case
15974         * lib/fts.c (fts_open): Set an appropriate fts_level
15975         so that an immediate fts_close() will free the allocation.
15976         * tests/test-fts.c (fts_dealloc): Add a test case which
15977         will trigger under valgrind or address sanitizer.
15978         Fixes https://bugs.gnu.org/31439
15980 2018-05-20  Bruno Haible  <bruno@clisp.org>
15982         wcwidth tests: Fix link error.
15983         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
15984         $(LIBUNISTRING).
15986 2018-05-20  Bruno Haible  <bruno@clisp.org>
15988         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
15989         * modules/regex (Files): Add m4/glibc21.m4.
15991 2018-05-20  Bruno Haible  <bruno@clisp.org>
15993         localcharset: Optimize.
15994         * lib/localcharset.c (alias_table): Comment out no-op mappings for
15995         platforms where these don't matter. This reduces the table size,
15996         which in turn reduces the lookup time.
15998 2018-05-19  Bruno Haible  <bruno@clisp.org>
16000         localcharset: Map the locale encodings found in newer OSes.
16001         * lib/localcharset.c (alias_table): Add mapping for locale encodings
16002         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
16003         IRIX 6.5, Minix 3.3.
16004         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
16006 2018-05-19  Bruno Haible  <bruno@clisp.org>
16008         localcharset: Move mapping tables into the code. Use a binary search.
16009         * lib/localcharset.h: Document the GNU canonical names for character
16010         encodings here.
16011         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
16012         relocatable.h, configmake.h.
16013         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
16014         macros.
16015         (charset_aliases): Remove variable.
16016         (get_charset_aliases): Remove function.
16017         (struct table_entry): New type.
16018         (alias_table, locale_table): New constants.
16019         (locale_charset): Use the alias_table or locale_table to get the
16020         canonicalized encoding name.
16021         * lib/config.charset: Remove file.
16022         * lib/ref-add.sin: Remove file.
16023         * lib/ref-del.sin: Remove file.
16024         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
16025         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
16026         * modules/localcharset (Notice): Remove.
16027         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
16028         glibc21.m4.
16029         (Depends-on): Remove configmake.
16030         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
16031         (Makefile.am): Simplify.
16032         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
16034 2018-05-19  Bruno Haible  <bruno@clisp.org>
16036         localcharset: Add a manual test.
16037         * tests/test-localcharset.c: New file.
16038         * modules/localcharset-tests: New file.
16040 2018-05-19  Bruno Haible  <bruno@clisp.org>
16042         localcharset: Remove support for obsolete platforms.
16043         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
16044         Mac OS X 10.2. Comment out dubious entry for Solaris.
16046 2018-05-19  Jim Meyering  <meyering@fb.com>
16048         gnupload: adjust comment
16049         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
16050         more likely we'll remove the just-added code in a year or two.
16052 2018-05-19  Bruno Haible  <bruno@clisp.org>
16054         gnupload: Fix "gpg-agent is not available in this session" error.
16055         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
16057 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16059         crypto/af_alg: fix --help
16060         * m4/af_alg.m4: Avoid spurious newline in --help output.
16062 2018-05-13  Bruno Haible  <bruno@clisp.org>
16064         nl_langinfo: Fix compilation error on Android.
16065         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
16066         INT_CURR_SYMBOL, etc. only if these items are defined.
16068 2018-05-13  Bruno Haible  <bruno@clisp.org>
16070         truncate: Fix compilation error on Android.
16071         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
16072         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
16073         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
16074         HAVE_TRUNCATE.
16075         * modules/truncate: Likewise.
16076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
16077         not HAVE_TRUNCATE.
16078         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
16079         HAVE_TRUNCATE.
16080         * doc/posix-functions/truncate.texi: Mention the issue.
16082 2018-05-13  Bruno Haible  <bruno@clisp.org>
16084         pthread: Fix compilation error on Android.
16085         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
16086         recursive inclusion of this file.
16088 2018-05-13  Bruno Haible  <bruno@clisp.org>
16090         posix_spawn: Fix compilation error on Android.
16091         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
16092         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
16093         (posix_spawn_file_actions_t): Consider also the case
16094         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
16096 2018-05-13  Bruno Haible  <bruno@clisp.org>
16098         tsearch: Move from K&R C to ANSI C.
16099         * lib/tsearch.c (tfind): Convert definition to ANSI C.
16101 2018-05-13  Bruno Haible  <bruno@clisp.org>
16103         tsearch: Fix compilation error on Android.
16104         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
16105         is 0.
16106         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
16107         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
16108         GNULIB_defined_tsearch is true.
16109         (twalk): Define only if GNULIB_defined_twalk is true.
16110         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
16111         is 0.
16112         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
16113         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
16114         * modules/search (Makefile.am): Substitute HAVE_TWALK.
16116 2018-05-13  Bruno Haible  <bruno@clisp.org>
16118         imaxdiv: Fix compilation error on Android.
16119         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
16120         is not defined.
16121         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
16122         HAVE_DECL_IMAXDIV, is 0.
16123         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
16124         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
16126 2018-05-13  Bruno Haible  <bruno@clisp.org>
16128         Support selective inclusion mechanism of recent mingw.org header files.
16129         Reported by Eli Zaretskii <eliz@gnu.org>.
16130         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
16131         __need_ssize_t, or __need_time_t is defined, just include the system's
16132         <sys/types.h>.
16133         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
16134         include the system's <locale.h>.
16136 2018-05-13  Bruno Haible  <bruno@clisp.org>
16138         Avoid compilation error due to 'mmap' on Android.
16139         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
16140         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
16141         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
16142         Undefine on Android.
16144 2018-05-13  Bruno Haible  <bruno@clisp.org>
16146         Add cross-compilation guesses for Linux systems without glibc.
16147         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
16148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
16149         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16150         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16151         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
16152         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
16153         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16154         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16155         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
16156         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
16157         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16158         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16159         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16160         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16161         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16162         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16163         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16164         * m4/utimens.m4 (gl_UTIMENS): Likewise.
16166 2018-05-13  Bruno Haible  <bruno@clisp.org>
16168         getpagesize: Fix compilation error on Android.
16169         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
16170         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
16171         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
16172         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
16173         HAVE_GETPAGESIZE accordingly.
16174         * modules/getcwd (Files): Add m4/getpagesize.m4.
16176 2018-05-13  Bruno Haible  <bruno@clisp.org>
16178         tcgetsid: Fix compilation error on Android.
16179         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
16180         AC_CHECK_FUNC.
16182 2018-05-13  Bruno Haible  <bruno@clisp.org>
16184         getpass: Fix configure test for Android.
16185         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
16186         AC_CHECK_FUNC.
16188 2018-05-13  Bruno Haible  <bruno@clisp.org>
16190         ffs: Fix compilation error on Android.
16191         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
16193 2018-05-13  Bruno Haible  <bruno@clisp.org>
16195         mkfifo: Fix compilation error on Android.
16196         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
16197         AC_CHECK_FUNC.
16199 2018-05-13  Bruno Haible  <bruno@clisp.org>
16201         c-strtod: Fix configure test for Android.
16202         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
16203         AC_CHECK_FUNC.
16205 2018-05-13  Bruno Haible  <bruno@clisp.org>
16207         random: Fix compilation error on Android.
16208         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
16209         AC_CHECK_FUNC.
16211 2018-05-13  Bruno Haible  <bruno@clisp.org>
16213         grantpt: Fix compilation error on Android.
16214         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
16215         AC_CHECK_FUNC.
16217 2018-05-13  Bruno Haible  <bruno@clisp.org>
16219         stdioext: Fix compilation errors with newer Android headers.
16220         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
16221         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
16222         fallbacks for Android.
16223         * lib/fpending.c: Update comments.
16224         * lib/fpurge.c: Likewise.
16225         * lib/freadable.h: Likewise.
16226         * lib/freadable.c: Likewise.
16227         * lib/freadahead.c: Likewise.
16228         * lib/freading.h: Likewise.
16229         * lib/freadptr.c: Likewise.
16230         * lib/fseterr.c: Likewise.
16231         * lib/fwritable.h: Likewise.
16232         * lib/fwritable.c: Likewise.
16233         * lib/fwriting.h: Likewise.
16234         * lib/fwriting.c: Likewise.
16236 2018-05-13  Bruno Haible  <bruno@clisp.org>
16238         doc: Add info about Android versions 2.0 to 8.1.
16239         * doc/**/*.texi: Add info about functions in all released versions of
16240         Bionic.
16242 2018-05-12  Bruno Haible  <bruno@clisp.org>
16244         fseeko: On mingw, don't use the hidden function _fseeki64.
16245         Reported by Eli Zaretskii <eliz@gnu.org>.
16246         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
16247         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
16249 2018-05-12  Bruno Haible  <bruno@clisp.org>
16251         glob: Choose 'dirent_type' in a way that works better on mingw.
16252         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
16253         * lib/glob.c (dirent_type): Define as uint_fast32_t.
16255 2018-05-12  Bruno Haible  <bruno@clisp.org>
16257         execute, spawn-pipe: Avoid warning about redefining 'close'.
16258         Reported by Eli Zaretskii <eliz@gnu.org>.
16259         * lib/execute.c: Undefine 'close' before redefining it.
16260         * lib/spawn-pipe.c: Likewise.
16262 2018-05-12  Bruno Haible  <bruno@clisp.org>
16264         nanosleep: Avoid test failure on mingw when it has nanosleep.
16265         Reported by Eli Zaretskii <eliz@gnu.org>.
16266         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
16267         If it does not exist, use a simpler test program that does not call
16268         alarm().
16270 2018-05-10  Bruno Haible  <bruno@clisp.org>
16272         lock, cond, thread, tls: Use a different symbol as libpthread witness.
16273         Reported by Devin Hussey <husseydevin@gmail.com>.
16274         Based on a patch by Paul Eggert.
16275         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
16276         as witness of libpthread.
16277         * lib/glthread/cond.h (pthread_in_use): Likewise.
16278         * lib/glthread/thread.h (pthread_in_use): Likewise.
16279         * lib/glthread/tls.h (pthread_in_use): Likewise.
16281 2018-05-10  Bruno Haible  <bruno@clisp.org>
16283         cond tests: Fix compilation error on Solaris.
16284         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
16285         macro.
16287 2018-05-10  Bruno Haible  <bruno@clisp.org>
16289         doc: Add partial info about Android 4.3.
16290         * doc/*-functions/*.texi: Add info about functions that were added
16291         to Bionic between Android 4.3 and Android 9.0.
16293 2018-05-10  Bruno Haible  <bruno@clisp.org>
16295         doc: Add info about Android 9.0.
16296         * doc/**/*.texi: Add info about functions and headers in Bionic from
16297         Android 9.0.
16299 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
16301         af_alg: fix my typo in afalg_buffer
16302         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
16303         (afalg_stream): Simplify and avoid the need for a runtime test
16304         at the end.
16306         af_alg: recover better from crypto failures
16307         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
16308         input stream is seekable, by repositioning the stream back to
16309         where it was, possibly by just calling sendfile with an offset
16310         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
16311         cases, which lets our callers try again with user-mode code.
16312         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
16313         instead of on fflush and lseek.
16315         af_alg: distiguish I/O errors better
16316         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
16317         not -EIO, if it’s OK for the caller to try again with user-mode code.
16318         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
16319         some other error number) if fflush fails, as the caller should not
16320         try again that case.
16322         af_alg: avoid gotos
16323         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
16324         gotos, as they were a source of unreliability and made the code a
16325         bit harder to follow.
16327         af_alg: don’t leak file descriptors into children
16328         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
16329         This code should be compiled only on recent GNU/Linux platforms
16330         so we shouldn’t have to also depend on the accept4 module.
16332         af_alg: coalesce socket creation
16333         * lib/af_alg.c (alg_socket): New function.
16334         (afalg_buffer, afalg_stream): Use it.  This avoids some
16335         code duplication and gotos.
16337         af_alg: fix file descriptor leak
16338         * lib/af_alg.c (afalg_stream): Close leak.
16340         af_alg: Pacify --enable-gcc-warnings on GCC 8
16341         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
16342         and checking to pacify gcc -Wjump-misses-init on GCC 8.
16344 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16346         af_alg: Pacify --enable-gcc-warnings
16347         Problem reported by Assaf Gordon in:
16348         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
16349         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
16350         gcc -Wjump-misses-init.
16351         * lib/sha512.c (shaxxx_stream): Now static.
16353 2018-05-06  Bruno Haible  <bruno@clisp.org>
16355         af_alg: Add ability to use Linux kernel crypto API on data in memory.
16356         * lib/af_alg.h (afalg_buffer): New declaration.
16357         * lib/af_alg.c (afalg_buffer): New function.
16359 2018-05-06  Bruno Haible  <bruno@clisp.org>
16361         af_alg: Avoid warnings.
16362         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
16363         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
16365 2018-05-06  Bruno Haible  <bruno@clisp.org>
16367         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
16368         * tests/bench-digest.h: New file.
16369         * tests/bench-md5.c: New file.
16370         * tests/bench-sha1.c: New file.
16371         * tests/bench-sha224.c: New file.
16372         * tests/bench-sha256.c: New file.
16373         * tests/bench-sha384.c: New file.
16374         * tests/bench-sha512.c: New file.
16375         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
16376         tests/bench-digest.h.
16377         (Depends-on): Add getrusage, gettimeofday.
16378         (Makefile.am): Add variables to build bench-md5.
16379         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
16380         tests/bench-digest.h.
16381         (Depends-on): Add getrusage, gettimeofday.
16382         (Makefile.am): Add variables to build bench-sha1.
16383         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
16384         tests/bench-sha256.c, tests/bench-digest.h.
16385         (Depends-on): Add getrusage, gettimeofday.
16386         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
16387         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
16388         tests/bench-sha512.c, tests/bench-digest.h.
16389         (Depends-on): Add getrusage, gettimeofday.
16390         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
16392 2018-05-06  Bruno Haible  <bruno@clisp.org>
16394         af_alg: Fix a resource leak.
16395         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
16396         New local variable 'result'.
16398 2018-05-06  Bruno Haible  <bruno@clisp.org>
16400         af_alg: Fix bug with streams that are not at position 0.
16401         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
16402         assume that the stream is positioned at position 0.
16403         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
16404         of the stream.
16405         * lib/md5.h (md5_stream): Likewise.
16406         * lib/sha1.h (sha1_stream): Likewise.
16407         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
16408         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
16409         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
16411         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
16412         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
16413         stream that is not positioned at the beginning.
16415 2018-05-06  Bruno Haible  <bruno@clisp.org>
16417         af_alg: Add configure option to enable/disable use of Linux crypto API.
16418         Suggested by Assaf Gordon <assafgordon@gmail.com>.
16419         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
16420         USE_LINUX_CRYPTO_API.
16421         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
16422         * lib/af_alg.c: Likewise.
16424 2018-05-06  Bruno Haible  <bruno@clisp.org>
16426         Followup to 'af_alg: New module.'.
16427         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
16428         * modules/crypto/sha1 (Depends-on): Likewise.
16429         * modules/crypto/sha256 (Depends-on): Likewise.
16430         * modules/crypto/sha512 (Depends-on): Likewise.
16432 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16434         crypto/{md5,sha1,sha256,sha512}: simplify
16435         * lib/md5.c (md5_stream):
16436         * lib/sha1.c (sha1_stream):
16437         * lib/sha256.c (shaxxx_stream):
16438         Simplify, partly by assuming C99.
16439         * lib/sha256.c (shaxxx_stream):
16440         New function, which implements both sha256 and sha224.
16441         Simplify, partly by assuming C99.
16442         (sha256_stream, sha224_stream):
16443         Use it to avoid code duplication, removing a FIXME.
16444         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
16445         Likewise.
16447         af_alg: Improve comments.
16448         * lib/af_alg.h: Use imperatives and tighten up wording.
16450 2018-05-05  Bruno Haible  <bruno@clisp.org>
16452         af_alg: Improve comments.
16453         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
16455 2018-05-05  Bruno Haible  <bruno@clisp.org>
16457         af_alg: New module.
16458         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
16459         * lib/af_alg.c: Include "af_alg.h" before the other header files.
16460         * lib/md5.c: Include "af_alg.h" unconditionally.
16461         (md5_stream): Invoke afalg_stream unconditionally.
16462         * lib/sha1.c: Include "af_alg.h" unconditionally.
16463         (sha1_stream): Invoke afalg_stream unconditionally.
16464         * lib/sha256.c: Include "af_alg.h" unconditionally.
16465         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
16466         * lib/sha512.c: Include "af_alg.h" unconditionally.
16467         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
16468         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
16469         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
16470         * modules/crypto/af_alg: New file.
16471         * modules/crypto/md5 (Files): Remove files that are now in the
16472         'crypto/af_alg' module.
16473         (Depends-on): Add crypto/af_alg.
16474         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16475         (Makefile.am): Don't mention af_alg.c here.
16476         * modules/crypto/sha1 (Files): Remove files that are now in the
16477         'crypto/af_alg' module.
16478         (Depends-on): Add crypto/af_alg.
16479         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16480         (Makefile.am): Don't mention af_alg.c here.
16481         * modules/crypto/sha256 (Files): Remove files that are now in the
16482         'crypto/af_alg' module.
16483         (Depends-on): Add crypto/af_alg.
16484         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16485         (Makefile.am): Don't mention af_alg.c here.
16486         * modules/crypto/sha512 (Files): Remove files that are now in the
16487         'crypto/af_alg' module.
16488         (Depends-on): Add crypto/af_alg.
16489         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
16490         (Makefile.am): Don't mention af_alg.c here.
16492 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16494         crypto tests: pacify GCC
16495         * tests/test-digest.h (test_digest_on_files):
16496         Don’t assume digest size fits in int (!).
16498         af_alg: minor style improvements
16499         * lib/af_alg.c (afalg_stream): Prefer C99 style
16500         decl-after-statement, since we’re already assuming C99.  Clarify
16501         by strengthening the bind test and omit unnecessary assignment.
16503 2018-05-05  Bruno Haible  <bruno@clisp.org>
16505         af_alg: Fix bug on empty files.
16506         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
16507         stream is empty.
16509 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16511         sys-limits.h: new file for crypto and safe I/O
16512         * lib/af_alg.c: Include sys-limits.h.
16513         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
16514         (afalg_stream): Also reject negative sizes for sendfile; they
16515         should not happen and the code is a bit cleaner and faster this way.
16516         * lib/safe-read.c: Include sys-limits.h.
16517         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
16518         * lib/sys-limits.h: New file, with values and commentary derived
16519         from the old safe-read.c and from GNU Emacs sysdep.c.
16520         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
16521         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
16522         Add lib/sys-limits.h to Files section.
16524 2018-05-05  Bruno Haible  <bruno@clisp.org>
16526         af_alg: Improve function signature.
16527         * lib/af_alg.h (afalg_stream): Swap second and third argument.
16528         * lib/af_alg.c (afalg_stream): Likewise.
16529         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
16531 2018-05-05  Bruno Haible  <bruno@clisp.org>
16533         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
16534         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
16535         * modules/crypto/sha1 (Depends-on): Likewise.
16536         * modules/crypto/sha256 (Depends-on): Likewise.
16537         * modules/crypto/sha512 (Depends-on): Likewise.
16539 2018-05-05  Bruno Haible  <bruno@clisp.org>
16541         crypto/{md5,sha1,sha256,sha512}: Fix module description.
16542         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
16543         * modules/crypto/sha1 (Depends-on): Likewise.
16544         * modules/crypto/sha256 (Depends-on): Likewise.
16545         * modules/crypto/sha512 (Depends-on): Likewise.
16547 2018-05-05  Bruno Haible  <bruno@clisp.org>
16549         af_alg: Add documentation.
16550         * lib/af_alg.h: Add comments.
16552 2018-05-05  Bruno Haible  <bruno@clisp.org>
16554         sha512: Add tests.
16555         * tests/test-sha512.c: New file.
16556         * modules/crypto/sha512-tests: New file.
16558 2018-05-05  Bruno Haible  <bruno@clisp.org>
16560         sha256: Add tests.
16561         * tests/test-sha256.c: New file.
16562         * modules/crypto/sha256-tests: New file.
16564 2018-05-05  Bruno Haible  <bruno@clisp.org>
16566         sha1 tests: Add test for sha1_stream.
16567         * tests/test-sha1.c: Include test-digest.h.
16568         (main): Invoke test_digest_on_files on 'sha1_stream'.
16569         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
16571 2018-05-05  Bruno Haible  <bruno@clisp.org>
16573         md5 tests: Add test for md5_stream.
16574         * tests/test-digest.h: New file.
16575         * tests/test-md5.c: Include test-digest.h.
16576         (main): Invoke test_digest_on_files on 'md5_stream'.
16577         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
16579 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16581         md5sum: Use AF_ALG when available.
16582         * lib/md5.c: Include af_alg.h.
16583         (md5_stream): Use afalg_stream when available.
16584         * modules/crypto/md5 (Files): Add the af_alg files.
16585         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16586         (Makefile.am): Add af_alg.c.
16588 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16590         sha512sum: Use AF_ALG when available.
16591         * lib/sha512.c: Include af_alg.h.
16592         (sha512_stream, sha384_stream): Use afalg_stream when available.
16593         * modules/crypto/sha512 (Files): Add the af_alg files.
16594         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16595         (Makefile.am): Add af_alg.c.
16597 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16599         sha256sum: Use AF_ALG when available.
16600         * lib/sha256.c: Include af_alg.h.
16601         (sha256_stream, sha224_stream): Use afalg_stream when available.
16602         * modules/crypto/sha256 (Files): Add the af_alg files.
16603         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16604         (Makefile.am): Add af_alg.c.
16606 2018-04-28  Matteo Croce  <mcroce@redhat.com>
16608         sha1sum: Use AF_ALG when available.
16609         * lib/af_alg.h: New file.
16610         * lib/af_alg.c: New file.
16611         * lib/sha1.c: Include af_alg.h.
16612         (sha1_stream): Use afalg_stream when available.
16613         * m4/linux-if-alg.m4: New file.
16614         * modules/crypto/sha1 (Files): Add the new files.
16615         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
16616         (Makefile.am): Add af_alg.c.
16618 2018-05-05  Bruno Haible  <bruno@clisp.org>
16620         all: Replace more http URLs by https URLs.
16621         * lib/localename.c: Use https: URL.
16622         * lib/timespec.h: Likewise.
16624 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
16626         maint: port more modules to GCC 8
16627         * lib/dirname.h (base_name):
16628         * lib/exclude.h (new_exclude):
16629         * lib/xstrndup.h (xstrndup):
16630         Add malloc attribute.
16631         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
16632         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
16633         This pacifies GCC 8.
16634         * m4/gnulib-common.m4 (gl_COMMON_BODY):
16635         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
16637 2018-05-03  Bruno Haible  <bruno@clisp.org>
16639         Simplify code. Drop support for Borland C++ on Windows.
16640         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
16641         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
16642         'defined _WIN32'.
16643         * lib/canonicalize-lgpl.c: Likewise.
16644         * lib/classpath.c: Likewise.
16645         * lib/clean-temp.c: Likewise.
16646         * lib/csharpexec.c: Likewise.
16647         * lib/ctime.c: Likewise.
16648         * lib/dosname.h: Likewise.
16649         * lib/dup2.c: Likewise.
16650         * lib/errno.in.h: Likewise.
16651         * lib/error.c: Likewise.
16652         * lib/euidaccess.c: Likewise.
16653         * lib/execute.c: Likewise.
16654         * lib/fcntl.in.h: Likewise.
16655         * lib/fcntl.c: Likewise.
16656         * lib/filename.h: Likewise.
16657         * lib/findprog.c: Likewise.
16658         * lib/flock.c: Likewise.
16659         * lib/fopen.c: Likewise.
16660         * lib/freopen.c: Likewise.
16661         * lib/fstat.c: Likewise.
16662         * lib/fsync.c: Likewise.
16663         * lib/gc-gnulib.c: Likewise.
16664         * lib/get-rusage-data.c: Likewise.
16665         * lib/getaddrinfo.c: Likewise.
16666         * lib/getdelim.c: Likewise.
16667         * lib/getdtablesize.c: Likewise.
16668         * lib/gethostname.c: Likewise.
16669         * lib/getlogin.c: Likewise.
16670         * lib/getlogin_r.c: Likewise.
16671         * lib/getopt.c: Likewise.
16672         * lib/getpagesize.c: Likewise.
16673         * lib/getpass.c: Likewise.
16674         * lib/getrusage.c: Likewise.
16675         * lib/gettimeofday.c: Likewise.
16676         * lib/glob.c: Likewise.
16677         * lib/inttypes.in.h: Likewise.
16678         * lib/isapipe.c: Likewise.
16679         * lib/javaexec.c: Likewise.
16680         * lib/link.c: Likewise.
16681         * lib/localcharset.c: Likewise.
16682         * lib/localename.h: Likewise.
16683         * lib/localename.c: Likewise.
16684         * lib/localtime.c: Likewise.
16685         * lib/lseek.c: Likewise.
16686         * lib/mbsinit.c: Likewise.
16687         * lib/mkdir.c: Likewise.
16688         * lib/msvc-nothrow.h: Likewise.
16689         * lib/nanosleep.c: Likewise.
16690         * lib/nl_langinfo.c: Likewise.
16691         * lib/nonblocking.c: Likewise.
16692         * lib/nproc.c: Likewise.
16693         * lib/open.c: Likewise.
16694         * lib/openpty.c: Likewise.
16695         * lib/pathmax.h: Likewise.
16696         * lib/pipe-filter-aux.c: Likewise.
16697         * lib/pipe-filter-gi.c: Likewise.
16698         * lib/pipe-filter-ii.c: Likewise.
16699         * lib/pipe.c: Likewise.
16700         * lib/pipe2.c: Likewise.
16701         * lib/poll.c: Likewise.
16702         * lib/popen.c: Likewise.
16703         * lib/posix_openpt.c: Likewise.
16704         * lib/printf-parse.c: Likewise.
16705         * lib/progreloc.c: Likewise.
16706         * lib/putenv.c: Likewise.
16707         * lib/read.c: Likewise.
16708         * lib/relocatable.c: Likewise.
16709         * lib/rename.c: Likewise.
16710         * lib/same-inode.h: Likewise.
16711         * lib/secure_getenv.c: Likewise.
16712         * lib/select.c: Likewise.
16713         * lib/sethostname.c: Likewise.
16714         * lib/setlocale.c: Likewise.
16715         * lib/sigaction.c: Likewise.
16716         * lib/sigprocmask.c: Likewise.
16717         * lib/sleep.c: Likewise.
16718         * lib/spawn-pipe.h: Likewise.
16719         * lib/spawn-pipe.c: Likewise.
16720         * lib/spawni.c: Likewise.
16721         * lib/stat-time.h: Likewise.
16722         * lib/stat-w32.c: Likewise.
16723         * lib/stat.c: Likewise.
16724         * lib/stdio.in.h: Likewise.
16725         * lib/stdio-impl.h: Likewise.
16726         * lib/stdio-read.c: Likewise.
16727         * lib/stdio-write.c: Likewise.
16728         * lib/stdlib.in.h: Likewise.
16729         * lib/strerror_r.c: Likewise.
16730         * lib/strftime-fixes.c: Likewise.
16731         * lib/sys_stat.in.h: Likewise.
16732         * lib/sys_types.in.h: Likewise.
16733         * lib/sys_wait.in.h : Likewise.
16734         * lib/system-quote.h: Likewise.
16735         * lib/system-quote.c: Likewise.
16736         * lib/tmpdir.c: Likewise.
16737         * lib/tzset.c: Likewise.
16738         * lib/uname.c: Likewise.
16739         * lib/unistd.in.h: Likewise.
16740         * lib/utime.in.h: Likewise.
16741         * lib/utime.c: Likewise.
16742         * lib/utimecmp.c: Likewise.
16743         * lib/utimens.c: Likewise.
16744         * lib/vasnprintf.c: Likewise.
16745         * lib/vma-iter.h: Likewise.
16746         * lib/vma-iter.c: Likewise.
16747         * lib/wait-process.c: Likewise.
16748         * lib/wcsftime.c: Likewise.
16749         * lib/wctype.in.h: Likewise.
16750         * lib/write.c: Likewise.
16751         * tests/nap.h: Likewise.
16752         * tests/test-cloexec.c: Likewise.
16753         * tests/test-dup-safer.c: Likewise.
16754         * tests/test-dup2.c: Likewise.
16755         * tests/test-dup3.c: Likewise.
16756         * tests/test-fcntl.c: Likewise.
16757         * tests/test-get-rusage-data.c: Likewise.
16758         * tests/test-getaddrinfo.c: Likewise.
16759         * tests/test-getlogin.h: Likewise.
16760         * tests/test-isatty.c: Likewise.
16761         * tests/test-localename.c: Likewise.
16762         * tests/test-mbrtowc-w32.c: Likewise.
16763         * tests/test-nonblocking.c: Likewise.
16764         * tests/test-nonblocking-pipe-main.c: Likewise.
16765         * tests/test-nonblocking-socket-main.c: Likewise.
16766         * tests/test-nonblocking-socket.h: Likewise.
16767         * tests/test-pipe.c: Likewise.
16768         * tests/test-pipe2.c: Likewise.
16769         * tests/test-poll.c: Likewise.
16770         * tests/test-pthread_sigmask1.c: Likewise.
16771         * tests/test-select.h: Likewise.
16772         * tests/test-sethostname2.c: Likewise.
16773         * tests/test-sigprocmask.c: Likewise.
16774         * tests/test-spawn-pipe-child.c: Likewise.
16775         * tests/test-stat-time.c: Likewise.
16776         * tests/test-system-quote-main.c: Likewise.
16777         * tests/test-utimens-common.h: Likewise.
16778         * tests/test-wcrtomb-w32.c: Likewise.
16779         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
16780         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16781         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
16782         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
16783         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
16784         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16785         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16786         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16787         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16788         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16789         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
16790         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
16791         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
16792         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
16793         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
16794         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16796 2018-05-02  Bruno Haible  <bruno@clisp.org>
16798         localename: Fix test failures on mingw.
16799         * lib/localename.c (gl_locale_name_thread): Remove code specific to
16800         native Windows.
16801         (gl_locale_name_posix): Move code specific to native Windows here.
16802         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16803         Accept result without charset suffix, as it appears on mingw.
16805 2018-04-28  Paul Smith  <psmith@gnu.org>
16807         bootstrap: Avoid gnulib operations if not needed
16808         * build-aux/bootstrap: Remove unused variable gnulib_mk.
16809         Set $gnulib_extra_files early so it can be overridden in .conf.
16810         Remove redundant --import flag from $gnulib_tool_options.
16811         Set $use_gnulib to false if no gnulib modules or files are needed.
16812         If $use_gnulib is false, don't do anything related to gnulib.
16813         A lot of this is just whitespace (indentation) changes.
16815 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
16817         manywarnings: port to GCC 8.0
16818         * build-aux/gcc-warning.spec: Add -Wcatch-value,
16819         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
16820         fact that the GCC help message now mentions operands for
16821         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
16822         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
16823         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
16824         and -Wunused-const-variable.
16825         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
16826         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
16827         -Wmissing-attributes, -Wmultistatement-macros,
16828         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
16829         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
16831 2018-04-24  Bruno Haible  <bruno@clisp.org>
16833         sys_socket: Make SO_REUSEPORT available across platforms.
16834         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16835         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
16836         * doc/posix-headers/sys_socket.texi: Mention the issue.
16837         * tests/test-poll.c (SO_REUSEPORT): Remove.
16838         * tests/test-select.h: Include <sys/socket.h>.
16839         (SO_REUSEPORT): Remove.
16840         * modules/select-tests (Depends-on): Add 'sys_socket'.
16842 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
16844         localcharset: short-circuit the search for an alias on a Mac
16845         * lib/localcharset.c (get_charset_aliases): Add a tautological
16846         UTF-8 entry to speed up the search for this case.
16847         Most machines default to a UTF-8 locale nowadays, so begin the
16848         list of aliases with a dummy UTF-8 entry so it will be found
16849         immediately and a time-consuming search through the rest of
16850         the list is avoided.
16852 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
16854         fts: add comment
16855         * lib/fts.c (fts_build): Explain why ==, not >.
16856         See remark by Bernhard Voelker in:
16857         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
16859         fts: fix bug in find across filesystems
16860         This fixes a bug I introduced last summer.
16861         Problem reported by Kamil Dudka in:
16862         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
16863         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
16864         (leaf_optimization):
16865         New arg for file descriptor.  All callers changed.
16866         (fts_build): Check for whether inodes should be sorted
16867         before closing the directory.
16869 2018-04-07  Bruno Haible  <bruno@clisp.org>
16871         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
16872         Reported by Genki Sky <sky@genki.is>.
16873         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
16874         version 0.9.10 or newer.
16875         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
16876         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
16877         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
16878         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
16879         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
16881 2018-04-07  Bruno Haible  <bruno@clisp.org>
16883         execute: Update comment.
16884         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
16886 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16888         fts: treat CIFS like NFS
16889         Problem reported by Kamil Dudka in:
16890         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
16891         * lib/fts.c (S_MAGIC_CIFS): New macro.
16892         (dirent_inode_sort_may_be_useful, leaf_optimization):
16893         Treat CIFS like NFS.
16895 2018-03-28  Bruno Haible  <bruno@clisp.org>
16897         c-stack: Fix possible build failure on some platforms.
16898         * lib/c-stack.c (die): Define whenever this function is referenced.
16900 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
16902         time_rz: fix workaround for Mac OS X 10.6 infloop
16903         Problems reported by Charles A. Roelli (Bug#27736#117).
16904         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
16905         Also, discard output, which clutters the 'configure' log.
16907 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16909         havelib: port to Solaris 10 /bin/sh
16910         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
16911         instead of '! test EXPR'.
16913 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
16915         time_rz: work around Mac OS X 10.6 infloop
16916         * doc/posix-functions/localtime.texi:
16917         * doc/posix-functions/localtime_r.texi: Mention the bug.
16918         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
16919         better to fix localtime and localtime_r instead, but that would be
16920         more work and is not needed to fix the Emacs problem.
16921         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
16923 2018-03-24  Jim Meyering  <meyering@fb.com>
16925         test-version-etc.sh: don't use diff directly: use init.sh's compare
16926         We'd rather not sacrifice readable "diff -u" output even for
16927         "diff -c" output (not supported by busybox) or for even less
16928         readable ed-style "diff" output.  So use init.sh's compare function
16929         * tests/test-version-etc.sh: Source init.sh and add "." to path.
16930         Remove "./" from invocation of test-version-etc, so we use path.
16931         And s/diff/compare/.
16932         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
16933         to get init.sh.
16934         Prompted by Eric Blake's comments in
16935         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
16937 2018-03-24  Bruno Haible  <bruno@clisp.org>
16939         javacomp-script, javacomp: Add support for Java 10.
16940         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
16941         target-version 10.
16942         * lib/javaversion.h: Update comments.
16943         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16944         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16945         TARGET_VERSION_BOUND, target_version_index,
16946         corresponding_classfile_version): Accept source_version 10 and
16947         target_version 10.
16948         * lib/javacomp.h: Update comments accordingly.
16950 2018-03-24  Bruno Haible  <bruno@clisp.org>
16952         javacomp-script, javacomp: Update comments.
16953         * m4/javacomp.m4: Update comments regarding gcj.
16954         * lib/javacomp.h: Likewise.
16956 2018-03-24  Bruno Haible  <bruno@clisp.org>
16958         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
16959         * lib/javaversion.h: Update comments.
16960         * lib/javacomp.h: Likewise.
16961         * lib/javacomp.c (default_target_version, source_version_index,
16962         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
16963         "1.9".
16964         (TARGET_VERSION_BOUND): Bump to 9.
16965         (target_version_index, corresponding_classfile_version): Recognize "9"
16966         instead of "1.9".
16967         (get_source_version_for_javac): New function.
16968         (is_envjavac_nongcj_usable, is_javac_usable): Add
16969         source_version_for_javac argument.
16970         (compile_java_class): Determine and pass source_version_for_javac.
16971         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
16972         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
16973         appropriate.
16975 2018-03-23  Jim Meyering  <meyering@fb.com>
16977         test-version-etc.sh: port to diff without -c
16978         * tests/test-version-etc.sh: Don't use diff's -c option.
16979         This caused spurious test failure on Alpine Linux, which
16980         uses busybox's diff. Reported by Assaf Gordon in
16981         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
16983 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
16985         c-stack: port to recent GCC build
16986         Problem reported by The Fireplace (Bug#30913).
16987         * lib/c-stack.c (die): Define only if used.
16989 2018-03-20  Bruno Haible  <bruno@clisp.org>
16991         euidaccess: Port to native Windows.
16992         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
16993         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
16995 2018-03-19  Bruno Haible  <bruno@clisp.org>
16997         javacomp: Add support for Java 7, 8, 9.
16998         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16999         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17000         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
17001         and target_version 1,7, 1.8, 1.9.
17002         * lib/javacomp.h: Update comments accordingly.
17004 2018-03-19  Bruno Haible  <bruno@clisp.org>
17006         javacomp-script: Add support for Java 9.
17007         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
17008         target-version 1.9.
17010 2018-03-16  Bruno Haible  <bruno@clisp.org>
17012         glob: Don't compile replacements on recent glibc systems.
17013         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
17014         REPLACE_GLOB is 0, include the system's <glob.h> and use
17015         _GL_CXXALIAS_SYS.
17016         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
17017         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
17018         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
17019         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
17020         Remove snippet/warn-on-use.
17021         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
17022         (Makefile.am): Create glob.h always. Update list of substitutions in
17023         glob.h. Don't depend on $(WARN_ON_USE_H).
17025 2018-03-16  Bruno Haible  <bruno@clisp.org>
17027         glob: Fix link error on native Windows.
17028         * modules/glob (Depends-on): Add 'lstat'.
17030 2018-03-15  Bruno Haible  <bruno@clisp.org>
17032         glob: Fix compilation error in C++ mode.
17033         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
17035 2018-03-15  Bruno Haible  <bruno@clisp.org>
17037         host-cpu-c-abi: Support for RISC-V CPU.
17038         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
17039         riscv32 and riscv64 ABIs.
17040         References:
17041         https://github.com/riscv/riscv-toolchain-conventions
17042         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
17043         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
17045 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17047         fflush: be more paranoid about libio.h change
17048         Suggested by Eli Zaretskii in:
17049         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
17050         * lib/fbufmode.c (fbufmode):
17051         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17052         (disable_seek_optimization, rpl_fflush):
17053         * lib/fpending.c (__fpending):
17054         * lib/fpurge.c (fpurge):
17055         * lib/freadable.c (freadable):
17056         * lib/freadahead.c (freadahead):
17057         * lib/freading.c (freading):
17058         * lib/freadptr.c (freadptr):
17059         * lib/freadseek.c (freadptrinc):
17060         * lib/fseeko.c (fseeko):
17061         * lib/fseterr.c (fseterr):
17062         * lib/fwritable.c (fwritable):
17063         * lib/fwriting.c (fwriting):
17064         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
17066 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
17068         maint: write-file-hooks -> before-save-hook
17069         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
17070         it's time to use the recommended replacement.
17071         Problem reported by Glenn Morris in:
17072         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
17073         * build-aux/announce-gen, build-aux/bootstrap:
17074         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
17075         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
17076         * build-aux/gnu-web-doc-update, build-aux/gnupload:
17077         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
17078         * build-aux/update-copyright, build-aux/useless-if-before-free:
17079         * build-aux/vc-list-files:
17080         Update hook usage for files where Gnulib is the canonical source.
17082 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
17084         binary-io: pacify gcc -Wunused-parameter
17085         Problem reported by Reuben Thomas in:
17086         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
17087         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
17088         Use _GL_UNUSED where appropriate.
17090         fflush: adjust to glibc 2.28 libio.h removal
17091         Problem reported by Daniel P. Berrangé in:
17092         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
17093         * lib/fbufmode.c (fbufmode):
17094         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
17095         (disable_seek_optimization, rpl_fflush):
17096         * lib/fpending.c (__fpending):
17097         * lib/fpurge.c (fpurge):
17098         * lib/freadable.c (freadable):
17099         * lib/freadahead.c (freadahead):
17100         * lib/freading.c (freading):
17101         * lib/freadptr.c (freadptr):
17102         * lib/freadseek.c (freadptrinc):
17103         * lib/fseeko.c (fseeko):
17104         * lib/fseterr.c (fseterr):
17105         * lib/fwritable.c (fwritable):
17106         * lib/fwriting.c (fwriting):
17107         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
17108         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
17109         Define if not already defined.
17111 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
17113         environ: fix link error on 32-bit Cygwin
17114         Problem reported for GNU Emacs by Ken Brown in:
17115         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
17116         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
17118 2018-02-24  Bruno Haible  <bruno@clisp.org>
17120         mbrtowc tests: Fix regression on glibc.
17121         Reported by Bernhard Voelker.
17122         * tests/test-mbrtowc.c (main): Fix expected value of wc.
17124 2018-02-24  Bruno Haible  <bruno@clisp.org>
17126         striconveha, uniconv/*: Avoid test failures on musl libc.
17127         * tests/iconvsupport.c: New file.
17128         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
17129         does not support the ISO-2022-JP-2 encoding.
17130         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
17131         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17132         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17133         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17134         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17135         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17136         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
17137         (Makefile.am): Link test-striconveha with iconvsupport.o.
17138         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
17139         tests/iconvsupport.c.
17140         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
17141         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
17142         tests/iconvsupport.c.
17143         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
17144         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
17145         tests/iconvsupport.c.
17146         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
17147         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
17148         tests/iconvsupport.c.
17149         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
17150         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
17151         tests/iconvsupport.c.
17152         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
17153         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
17154         tests/iconvsupport.c.
17155         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
17157 2018-02-24  Bruno Haible  <bruno@clisp.org>
17159         localename: Add support for musl libc.
17160         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
17161         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
17162         on Linux platforms which define NL_LOCALE_NAME.
17164 2018-02-24  Bruno Haible  <bruno@clisp.org>
17166         mbrtowc tests: Don't make assumptions about the charset the C locale.
17167         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
17168         particular mapping in the C locale.
17170 2018-02-24  Bruno Haible  <bruno@clisp.org>
17172         ptsname_r: Don't expect that this function sets errno.
17173         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
17174         from ptsname_r().
17175         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
17177 2018-02-23  Bruno Haible  <bruno@clisp.org>
17179         xmalloca: pacify gcc -Wbad-function-cast
17180         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
17182 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17184         nl_langinfo: pacify gcc -Wunused-function
17185         * lib/nl_langinfo.c (ctype_codeset): Do not define if
17186         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
17187         this case.  Without this change, I got a diagnostic when building
17188         coreutils on Fedora 27 with gcc 7.3.1 20180130.
17190         same: pacify gcc -Wunused-variable
17191         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
17192         Omit unused variable.
17194         malloca: pacify gcc -Wbad-function-cast
17195         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
17196         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
17197         To pacify GCC, I had to cast alloca’s result to some type other
17198         than void * before casting that to uintptr_t.
17200 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17202         utimecmp: new function utimecmpat
17203         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
17204         Do not include utimens.h.
17205         (utimecmpat): New function, generalizing utimecmp.
17206         (utimecmp): Now a thin layer around utimecmpat.
17207         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
17208         utimensat instead of on lstat and utimens.
17210         same: new function same_nameat
17211         * lib/same.c: Include fcntl.h.
17212         * lib/same.c (same_nameat): New function, generalizing same_name.
17213         (same_name): Now a thin layer around same_nameat.
17214         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
17215         * modules/same (Depends-on): Depend on fstatat, openat.
17217 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
17219         warnings: Add support for Objective C.
17220         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
17221         macro.
17223 2018-02-17  Bruno Haible  <bruno@clisp.org>
17225         lock: Fix test-once1 crash on FreeBSD11.
17226         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
17227         'pthread_create', not 'pthread_cancel'.
17229 2018-02-17  Bruno Haible  <bruno@clisp.org>
17231         lock: Add test of gl_once.
17232         * tests/test-once.c: New file.
17233         * modules/lock-tests (Files): Add it.
17234         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
17236 2018-02-17  Bruno Haible  <bruno@clisp.org>
17238         thread: Fix compilation error on IRIX.
17239         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
17240         needed; include it outside the C++ extern "C" {} block.
17241         * doc/posix-headers/pthread.texi: Mention the problem with
17242         pthread_atfork on IRIX.
17244 2018-02-04  Bruno Haible  <bruno@clisp.org>
17246         nl_langinfo: Override the system's nl_langinfo() when needed.
17247         Reported by Jim Meyering.
17248         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
17249         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
17251 2018-02-04  Bruno Haible  <bruno@clisp.org>
17253         signal-h, monetary, strings: Fix build failure in some cases.
17254         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17255         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
17256         as delimiter in sed command, not '|'.
17257         * modules/monetary (Makefile.am): Likewise.
17258         * modules/strings (Makefile.am): Likewise.
17260 2018-02-03  Jim Meyering  <meyering@fb.com>
17262         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
17263         * top/maint.mk (sc_file_system): Don't complain about
17264         "/proc/filesystems".
17266 2018-02-03  Bruno Haible  <bruno@clisp.org>
17268         stdlib: Fix compilation error on OpenIndiana.
17269         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
17270         <sys/time.h>.
17271         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17272         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
17274 2018-02-03  Bruno Haible  <bruno@clisp.org>
17276         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
17277         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
17278         and use $EGREP instead of 'grep -E'.
17279         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
17280         'grep -E'.
17282 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
17284         malloca: Add a compile-time verification.
17285         * lib/malloca.c (small_t): Verify that it is wide enough.
17286         * modules/malloca (Depends-on): Add verify.
17288 2018-02-02  Bruno Haible  <bruno@clisp.org>
17290         malloca: Add an argument check.
17291         Suggested by Paul Eggert.
17292         * lib/malloca.c (freea): Check against an invalid argument.
17294 2018-02-02  Bruno Haible  <bruno@clisp.org>
17296         localename: Add support for OpenIndiana.
17297         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
17298         Solaris 11 variants with uselocale() but without getlocalename_l().
17300 2018-02-02  Bruno Haible  <bruno@clisp.org>
17302         malloca, xmalloca: Make multithread-safe.
17303         Reported by Florian Weimer <fweimer@redhat.com>.
17304         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
17305         * lib/malloca.h (malloca): In the stack allocation case, return a
17306         pointer that is a multiple of 2 * sa_alignment_max.
17307         (sa_increment): Remove enum item.
17308         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
17309         a pointer that is a multiple of 2 * sa_alignment_max.
17310         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
17311         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
17312         HASH_TABLE_SIZE, mmalloca_results): Remove.
17313         (small_t): New type.
17314         (mmalloca, free): Rewritten.
17315         * lib/malloca.valgrind: Remove file.
17316         * modules/malloca (Files): Remove it.
17317         (Depends-on): Remove verify.
17319 2018-01-31  Bruno Haible  <bruno@clisp.org>
17321         environ: Fix link error on 64-bit Cygwin.
17322         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
17323         __declspec(dllimport) attribute.
17324         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
17326 2018-01-30  Bruno Haible  <bruno@clisp.org>
17328         get-rusage-data: Add support for Minix 3.
17329         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
17331 2018-01-30  Bruno Haible  <bruno@clisp.org>
17333         vma-iter: Add support for Minix 3.
17334         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
17335         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
17337 2018-01-27  Bruno Haible  <bruno@clisp.org>
17339         Fix malfunction of socket functions on HP-UX in 64-bit mode.
17340         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
17341         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
17342         _HPUX_ALT_XOPEN_SOCKET_API.
17343         * modules/accept (Depends-on): Add 'extensions'.
17344         * modules/getpeername (Depends-on): Likewise.
17345         * modules/getsockname (Depends-on): Likewise.
17346         * modules/getsockopt (Depends-on): Likewise.
17347         * modules/recvfrom (Depends-on): Likewise.
17348         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
17349         * doc/posix-functions/getpeername.texi: Likewise.
17350         * doc/posix-functions/getsockname.texi: Likewise.
17351         * doc/posix-functions/getsockopt.texi: Likewise.
17352         * doc/posix-functions/recvfrom.texi: Likewise.
17354 2018-01-27  Bruno Haible  <bruno@clisp.org>
17356         getsockname tests: More tests.
17357         * tests/test-getsockname.c (open_server_socket): New function, mostly
17358         copied from test-poll.c.
17359         (main): Check that getsockname fills in addr.
17360         * modules/getsockname-tests (Depends-on): Add the necessary
17361         dependencies.
17362         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
17364 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
17366         manywarnings: fix maintainer comment
17367         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
17368         it does not mistakenly think that ‘-1)’ is an option.
17370 2018-01-26  Bruno Haible  <bruno@clisp.org>
17372         langinfo: Fix last commit.
17373         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17374         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
17376 2018-01-24  Bruno Haible  <bruno@clisp.org>
17378         langinfo, nl_langinfo: Add support for alternative month names.
17379         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
17380         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
17381         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
17382         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
17383         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
17384         * doc/posix-functions/nl_langinfo.texi: Likewise.
17386 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17388         Merge strftime.c changes from glibc
17389         This incorporates:
17390         2017-11-14 [BZ #10871] Implement alternative month names
17391         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
17392         2017-06-20 Use locale_t, not __locale_t, throughout glibc
17393         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
17394         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
17395         Use locale_t, not __locale_t.
17396         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
17397         (__strftime_internal): Add support for alternate months.
17399 2018-01-23  Bruno Haible  <bruno@clisp.org>
17401         doc: Mention another prerequisite for using Gnulib.
17402         Reported at <https://stackoverflow.com/questions/48378214/>.
17403         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
17404         AC_CONFIG_HEADERS.
17406 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
17408         build: GuixSD doesn't have /bin/bash
17409         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
17411 2018-01-21  Bruno Haible  <bruno@clisp.org>
17413         Avoid test failures on Microsoft Windows Subsystem for Linux.
17414         * tests/test-fcntl.c (main): Allow a different errno.
17415         * tests/test-rename.h (test_rename): Likewise.
17416         * tests/test-renameat.c (main): Likewise.
17417         * tests/test-renameat2.c (main): Likewise.
17419 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
17421         filenamecat: make base a suffix of result
17422         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
17423         (mfile_name_concat): Always make BASE a suffix of the result, as
17424         cp expects this.  To implement this, separate with '.' instead of
17425         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
17426         * tests/test-filenamecat.c (main): Adjust tests to match
17427         current behavior.  Check that BASE_IN_RESULT points to
17428         a copy of BASE and is a suffix of the resultk, and that DIR
17429         is a prefix of the result that is no longer than the prefix
17430         indicated by BASE_IN_RESULT.
17432 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
17434         update-copyright: Handle use of ©
17435         * build-aux/update-copyright ($circle_c_re): Update regex to
17436         handle use of © in headers.
17438 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
17440         Fix -Wundef warning in user-included header lib/cdefs.h.
17441         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
17443 2018-01-04  Bruno Haible  <bruno@clisp.org>
17445         pthread_sigmask: Avoid compilation error on mingw.
17446         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17447         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
17448         macro.
17450 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
17452         test-framework-sh: ‘ps -ef’, not ‘ps ef’
17453         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
17454         Suggested by Bob Proulx (Bug#29968).
17455         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
17457 2018-01-02  Eric Blake  <eblake@redhat.com>
17459         stat-time: silence -Wunused-parameter regression
17460         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17461         Prefer attribute over cast-to-void.
17462         (stat_time_normalize): Mark st as potentially unused.
17464 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
17466         test-framework-sh: avoid netstat
17467         Problem reported by Kristýna Streitová (Bug#29947).
17468         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
17469         deprecated on SuSE and it's not that important anyway.
17471 2018-01-01  Jim Meyering  <meyering@fb.com>
17473         update-copyright: add code to handle more special cases
17474         After running "make update-copyright" this year, five files
17475         required additional manual changes.  Automate those adjustments
17476         for next year.
17477         * Makefile (_year_and_prev): Define.
17478         (update-copyright): Add perl commands to induce this year's post-
17479         update-copyright adjustments.
17481 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
17483         version-etc: new year
17484         * build-aux/gendocs.sh (version):
17485         * doc/gendocs_template:
17486         * doc/gendocs_template_min:
17487         * doc/gnulib.texi:
17488         * lib/version-etc.c (COPYRIGHT_YEAR):
17489         Update copyright dates by hand in templates and the like.
17491         maint: fix 'make update-copyright'
17492         * Makefile (update-copyright): Adjust to 2016-11-23 change
17493         to config/srclist-update, which changed the format of srclist.txt.
17495 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
17497         chdir-safer: remove this module
17498         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
17499         * NEWS: Document removal.
17500         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
17501         * modules/chdir-safer: Remove these files.
17503 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
17505         Add cross-compilation results for GNU/Hurd.
17506         * m4/calloc.m4: Add GNU/Hurd guess.
17507         * m4/cbrtl.m4: Likewise.
17508         * m4/ceil.m4: Likewise.
17509         * m4/ceilf.m4: Likewise.
17510         * m4/ceill.m4: Likewise.
17511         * m4/chown.m4: Likewise.
17512         * m4/duplocale.m4: Likewise.
17513         * m4/exp2l.m4: Likewise.
17514         * m4/expm1.m4: Likewise.
17515         * m4/fchdir.m4: Likewise.
17516         * m4/floor.m4: Likewise.
17517         * m4/floorf.m4: Likewise.
17518         * m4/fmod.m4: Likewise.
17519         * m4/fmodf.m4: Likewise.
17520         * m4/fmodl.m4: Likewise.
17521         * m4/getcwd.m4: Likewise.
17522         * m4/getgroups.m4: Likewise.
17523         * m4/gettimeofday.m4: Likewise.
17524         * m4/hypot.m4: Likewise.
17525         * m4/hypotf.m4: Likewise.
17526         * m4/hypotl.m4: Likewise.
17527         * m4/link-follow.m4: Likewise.
17528         * m4/link.m4: Likewise.
17529         * m4/linkat.m4: Likewise.
17530         * m4/log.m4: Likewise.
17531         * m4/log10.m4: Likewise.
17532         * m4/log10f.m4: Likewise.
17533         * m4/log1p.m4: Likewise.
17534         * m4/log1pf.m4: Likewise.
17535         * m4/log1pl.m4: Likewise.
17536         * m4/log2.m4: Likewise.
17537         * m4/log2f.m4: Likewise.
17538         * m4/logf.m4: Likewise.
17539         * m4/lstat.m4: Likewise.
17540         * m4/malloc.m4: Likewise.
17541         * m4/mbrlen.m4: Likewise.
17542         * m4/mbrtowc.m4: Likewise.
17543         * m4/mkdir.m4: Likewise.
17544         * m4/mkfifo.m4: Likewise.
17545         * m4/mknod.m4: Likewise.
17546         * m4/mkstemp.m4: Likewise.
17547         * m4/modf.m4: Likewise.
17548         * m4/modff.m4: Likewise.
17549         * m4/modfl.m4: Likewise.
17550         * m4/printf.m4: Likewise.
17551         * m4/pselect.m4: Likewise.
17552         * m4/ptsname.m4: Likewise.
17553         * m4/putenv.m4: Likewise.
17554         * m4/readlink.m4: Likewise.
17555         * m4/realloc.m4: Likewise.
17556         * m4/remainder.m4: Likewise.
17557         * m4/remainderf.m4: Likewise.
17558         * m4/remainderl.m4: Likewise.
17559         * m4/rmdir.m4: Likewise.
17560         * m4/round.m4: Likewise.
17561         * m4/roundf.m4: Likewise.
17562         * m4/roundl.m4: Likewise.
17563         * m4/select.m4: Likewise.
17564         * m4/setenv.m4: Likewise.
17565         * m4/signbit.m4: Likewise.
17566         * m4/sleep.m4: Likewise.
17567         * m4/stat.m4: Likewise.
17568         * m4/strerror.m4: Likewise.
17569         * m4/strtok_r.m4: Likewise.
17570         * m4/symlink.m4: Likewise.
17571         * m4/symlinkat.m4: Likewise.
17572         * m4/trunc.m4: Likewise.
17573         * m4/truncf.m4: Likewise.
17574         * m4/truncl.m4: Likewise.
17575         * m4/tzset.m4: Likewise.
17576         * m4/ungetc.m4: Likewise.
17577         * m4/usleep.m4: Likewise.
17578         * m4/wcwidth.m4: Likewise.
17580 2017-12-28  Bruno Haible  <bruno@clisp.org>
17582         gnulib-tool: Make --conditional-dependencies work better.
17583         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
17584         * gnulib-tool (Options): Don't reject the combination of
17585         --conditional-dependencies with --with-tests.
17586         (func_emit_autoconf_snippets): Add argument referenceable_modules.
17587         Don't reference $modules.
17588         (func_import, func_create_testdir): Pass it.
17590 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
17592         regex: use re_malloc etc. consistently
17593         Problem and original patch reported by Arnold Robbins in:
17594         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
17595         * lib/regcomp.c (re_comp):
17596         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
17597         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
17599 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
17600             Paul Eggert  <eggert@cs.ucla.edu>
17602         glob: Silence warning about void pointer arithmetic.
17603         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
17604         arithmetic.
17606 2017-12-15  Bruno Haible  <bruno@clisp.org>
17608         spawn-pipe: Silence a clang warning.
17609         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
17610         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
17611         in this file.
17613 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
17615         explicit_bzero: port to macOS + Clang 9.0.0
17616         Problem reported by Marcus Johnson (Bug#29658).
17617         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
17618         Don’t use asm.
17620 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17622         doc: Improve explanation of supporting relocatable libraries.
17623         * doc/relocatable-maint.texi (Supporting Relocation): Explain
17624         properly how to build the relocatable module for
17625         libraries. (Method and example code from Bruno Haible.)
17627 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17629         doc: Use better texinfo tags in a few cases.
17630         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
17631         instead of @samp in a few places.
17633 2017-12-11  Bruno Haible  <bruno@clisp.org>
17635         unistr/base: Update comment.
17636         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
17638 2017-12-10  Pádraig Brady  <P@draigBrady.com>
17640         test-faccessat.c: unlink temp file to avoid subsequent test failure
17641         * tests/test-faccessat.c: Remove the file to avoid failure
17642         to open the file on subsequent runs due to being created
17643         with no permissions.
17645 2017-12-10  Bruno Haible  <bruno@clisp.org>
17647         doc: New sect. "Modifying the build rules of a Gnulib import directory".
17648         * doc/gnulib-tool.texi (Modified build rules): New node.
17650 2017-12-10  Bruno Haible  <bruno@clisp.org>
17652         doc: Tweak wording.
17653         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
17654         "binaries".
17656 2017-12-05  Sam Steingold  <sds@gnu.org>
17657             Bruno Haible  <bruno@clisp.org>
17659         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
17660         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
17661         AC_EGREP_CPP pattern.
17663 2017-12-03  Bruno Haible  <bruno@clisp.org>
17665         all: Replace more http URLs by https URLs.
17666         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
17667         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
17668         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
17669         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
17671 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17673         Port better to CentOS 5
17674         Problems reported by Tom G. Christensen in:
17675         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
17676         * doc/glibc-functions/strverscmp.texi (strverscmp):
17677         Document strverscmp bug with glibc 2.9 and earlier.
17678         * doc/posix-functions/tzset.texi (tzset):
17679         Document that TZ with angle brackets is POSIX-2001 and later.
17680         * tests/test-nstrftime.c: Include unistd.h.
17681         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
17682         (TZ): Use it to skip tests with angle brackets in TZ,
17683         for older systems.
17685         stat: add missing module dependencies
17686         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
17687         Add stat-time.
17689 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
17691         stat: fix compilation failure on macOS Sierra
17692         Reported by Marius Schamschula <mschamschula@gmail.com> in:
17693         https://savannah.gnu.org/bugs/?52546
17694         * lib/stat.c: Add missing include of stat-time.h.
17696 2017-11-28  Jim Meyering  <meyering@fb.com>
17698         test-faccessat.c: correct BASE definition to avoid parallel test failure
17699         * tests/test-faccessat.c (BASE): Define using this file's name, not
17700         that of test-lstat.c.  Using the latter caused this test to fail
17701         sometimes when run concurrently with test-lstat.
17703 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17705         unicase: fix VPATH build
17706         * modules/unicase/special-casing (Makefile.am): Ensure that the
17707         base directory is created when generating
17708         unicase/special-casing.h.
17710 2017-11-27  Daiki Ueno  <ueno@gnu.org>
17712         libunistring: update to Unicode 9.0.0
17713         * lib/gen-uni-tables.c (fill_properties): Recognize
17714         Sentence_Terminal and Prepended_Concatenation_Mark.
17715         (is_property_default_ignorable_code_point): Exclude U+08E2.
17716         (fill_arabicshaping): Allow missing whitespace when parsing;
17717         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
17718         (output_blocks): Increase the element size of the level1 table to
17719         accommodate more blocks.
17720         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
17721         Update each class according to the standard.
17722         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
17723         E_Base_GAZ characters.
17724         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
17725         Glue_After_Zwj, and E_Base_GAZ characters.
17726         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
17727         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
17728         enum value.
17729         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
17730         value.
17731         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
17732         LBP_ZWJ, LBP_EB, and LBP_EM.
17733         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
17734         enum value.
17735         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
17736         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
17737         declaration.
17738         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
17739         (uniwbrk_table): Implement WB14.
17740         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
17741         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
17742         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
17743         uc-is-grapheme-break.
17744         * modules/unigbrk/uc-grapheme-breaks: New module.
17745         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
17746         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
17747         enum value.
17748         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
17749         * lib/unigbrk/u-grapheme-breaks.h: New file.
17750         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
17751         u-grapheme-breaks.h instead of uc_is_grapheme_break.
17752         * lib/unigbrk/uc-grapheme-breaks.c: New file.
17753         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
17754         29.
17755         * tests/unigbrk/test-uc-gbrk-prop.c
17756         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17757         GBP_GAZ, and GBP_EBG.
17758         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
17759         * tests/unigbrk/test-uc-is-grapheme-break.c
17760         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
17761         GBP_GAZ, and GBP_EBG.
17762         (main): Skip unsupported rules involving 3 or more characters,
17763         namely GB10, GB12, and GB13.
17764         * lib/uniwidth/width.c (nonspacing_table_data): Update.
17765         * all generated files under lib/uni* and tests/uni*: Regenerate.
17766         * all the affected modules: Bump version.
17768 2017-11-26  Bruno Haible  <bruno@clisp.org>
17770         strfmon_l: Fix compilation error with glibc 2.5.
17771         Reported by Tom G. Christensen <tgc@jupiterrise.com>
17772         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
17773         * lib/monetary.in.h: Include also <locale.h>.
17775 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
17777         posixtm: remove PDS_LEADING_YEAR
17778         This changes the API slightly, in a hopefully-innocuous way.
17779         Without this change the code had undefined behavior when a
17780         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
17781         Problem reported by Pádraig Brady in:
17782         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
17783         * NEWS: Mention this.
17784         * lib/posixtm.c (posix_time_parse): Treat the absence of
17785         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
17786         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
17787         present, but define it as zero, for compatibility with existing
17788         source code).  All other PDS_* values moved up.
17789         * tests/test-posixtm.c (LY): New macro.
17790         (T): Use it.  Do not expect a particular numeric encoding
17791         for PDS_CENTURY etc.
17793 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
17795         stat: work around Solaris bug with tv_nsec < 0
17796         * doc/posix-functions/fstat.texi (fstat):
17797         * doc/posix-functions/fstatat.texi (fstatat):
17798         * doc/posix-functions/lstat.texi (lstat):
17799         * doc/posix-functions/stat.texi (stat):
17800         Mention Solaris 11 bug.
17801         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
17802         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
17803         * lib/lstat.c (rpl_lstat):
17804         * lib/stat.c (rpl_stat):
17805         Normalize resulting timestamps.
17806         * lib/fstatat.c (normal_fstatat): New function.
17807         (rpl_fstatat): Use it.
17808         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
17809         (stat_time_normalize): New function.
17810         * m4/fstat.m4 (gl_FUNC_FSTAT):
17811         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
17812         * m4/lstat.m4 (gl_FUNC_LSTAT):
17813         * m4/stat.m4 (gl_FUNC_STAT):
17814         Replace on Solaris.
17815         * modules/fstat (Depends-on):
17816         * modules/fstatat (Depends-on):
17817         Add stat-time.
17818         * modules/stat-time (Depends-on): Add errno, intprops.
17820 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
17822         regex: merge from glibc
17823         * lib/regcomp.c (init_word_char): Add comments.
17825 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
17827         regex: merge from glibc
17828         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
17829         * lib/regex_internal.h (internal_function): Remove.
17830         All uses removed.
17832 2017-11-20  Bruno Haible  <bruno@clisp.org>
17834         crypto/gc-sm3: Fix buffer overrun.
17835         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
17836         Reported by Coverity.
17838 2017-11-12  Jim Meyering  <meyering@fb.com>
17840         maint: shorten https://lists.gnu.org/archive/html/... links
17841         Each /archive/html/ part can be replace with /r/.
17842         Run this to induce the change:
17843         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
17844         * ChangeLog: Perform that substitution.
17845         * Makefile: Likewise.
17846         * STATUS-libposix: Likewise.
17847         * build-aux/bootstrap: Likewise.
17848         * doc/maintain.texi: Likewise.
17849         * gnulib-tool: Likewise.
17850         * lib/allocator.h: Likewise.
17851         * lib/argp-ba.c: Likewise.
17852         * lib/argp-pv.c: Likewise.
17853         * lib/canon-host.c: Likewise.
17854         * lib/canonicalize-lgpl.c: Likewise.
17855         * lib/float.in.h: Likewise.
17856         * lib/fstat.c: Likewise.
17857         * lib/getdelim.c: Likewise.
17858         * lib/getprogname.c: Likewise.
17859         * lib/glthread/thread.h: Likewise.
17860         * lib/intprops.h: Likewise.
17861         * lib/mbsrtowcs-state.c: Likewise.
17862         * lib/safe-read.c: Likewise.
17863         * lib/signal.in.h: Likewise.
17864         * lib/stat.c: Likewise.
17865         * lib/stdbool.in.h: Likewise.
17866         * lib/stdio-impl.h: Likewise.
17867         * lib/stdio.in.h: Likewise.
17868         * lib/sysexits.in.h: Likewise.
17869         * lib/timespec.h: Likewise.
17870         * lib/wcsrtombs-state.c: Likewise.
17871         * m4/alloca.m4: Likewise.
17872         * m4/extern-inline.m4: Likewise.
17873         * m4/fstatat.m4: Likewise.
17874         * m4/gnulib-common.m4: Likewise.
17875         * m4/lib-ignore.m4: Likewise.
17876         * m4/printf.m4: Likewise.
17877         * m4/regex.m4: Likewise.
17878         * m4/stat-size.m4: Likewise.
17879         * m4/std-gnu11.m4: Likewise.
17880         * m4/stdbool.m4: Likewise.
17881         * m4/sys_types_h.m4: Likewise.
17882         * m4/threadlib.m4: Likewise.
17883         * m4/vararrays.m4: Likewise.
17884         * pygnulib/GLImport.py: Likewise.
17885         * tests/test-exp.h: Likewise.
17886         * tests/test-exp2.h: Likewise.
17887         * tests/test-expm1.h: Likewise.
17888         * tests/test-fflush2.c: Likewise.
17889         * tests/test-getopt_long.h: Likewise.
17890         * tests/test-intprops.c: Likewise.
17891         * tests/test-log.h: Likewise.
17892         * tests/test-log10.h: Likewise.
17893         * tests/test-log1p.h: Likewise.
17894         * tests/test-log2.h: Likewise.
17895         * tests/test-printf-posix.h: Likewise.
17896         * tests/test-regex.c: Likewise.
17897         * tests/test-snprintf-posix.h: Likewise.
17898         * tests/test-sprintf-posix.h: Likewise.
17899         * tests/test-stdalign.c: Likewise.
17900         * tests/test-stdbool.c: Likewise.
17901         * tests/test-vasnprintf-posix.c: Likewise.
17902         * tests/test-vasprintf-posix.c: Likewise.
17903         * top/maint.mk: Likewise.
17905 2017-11-12  Bruno Haible  <bruno@clisp.org>
17907         faccessat: Make the last change more robust.
17908         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
17909         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
17911 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17913         faccessat: port to macOS (Bug#29231)
17914         macOS faccessat has the same bug that lstat does: if the file
17915         name ends in '/' it ignores the trailing slash.
17916         Problem reported for Emacs by Vincent Zhang.
17917         * doc/posix-functions/faccessat.texi (faccessat): Document this.
17918         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
17919         around the initial includes.  Include errno.h, string.h, sys/stat.h.
17920         (orig_faccessat) [HAVE_FACCESSAT]: New function.
17921         Include "unistd.h" after defining it.
17922         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
17923         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
17924         Handle in the usual way.
17925         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
17926         lstat dereferences symlinks, since faccessat is likely to
17927         have the same problem.
17928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
17929         * modules/faccessat (Depends-on): Add fstatat.
17930         Depend if REPLACE_FACCESSAT is 1, too.
17931         (configure.ac): Link if REPLACE_FACCESSAT is 1.
17932         * modules/faccessat-tests (Depends-on): Add symlink.
17933         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
17934         * tests/test-faccessat.c (main): Test for the bug.
17936 2017-11-11  Bruno Haible  <bruno@clisp.org>
17938         getprogname: Fix compilation error on IRIX.
17939         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
17940         'namesize'.
17942 2017-11-11  Bruno Haible  <bruno@clisp.org>
17944         year2038: Tweak last patch.
17945         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
17947 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
17949         year2038: be more insistent about 64-bit time_t
17950         Applications requiring access to arbitrary files should not be
17951         built with 32-bit time_t on hosts that have 64-bit timestamps,
17952         as this can lead to real trouble at runtime.
17953         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
17954         Check on all systems, not just MinGW.  Use a heuristic involving
17955         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
17956         output a failure or just a warning, to make it more likely that
17957         builders will select 64-bit time_t.
17959 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
17961         havelib: fix typo in previous change
17962         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
17964         Don’t use AC_EGREP_CPP if affected by CFLAGS
17965         * m4/float_h.m4 (gl_FLOAT_H):
17966         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
17967         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
17968         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
17969         * m4/year2038.m4 (gl_YEAR2038):
17970         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
17971         likely to be affected by the choice of CFLAGS, since CFLAGS are
17972         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
17973         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
17975         fstatat: pacify GCC on unusual platform
17976         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
17977         Omit, as it’s unused in this case.
17979 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
17981         timespec: prefer ‘assume’ to ‘assure’
17982         This avoids some runtime tests.  The rest of the module makes
17983         similar assumptions and there is little point to testing here.
17984         * lib/timespec.h: Include verify.h instead of assure.h.
17985         (timespec_cmp): Use ‘assume’, not ‘assure’.
17986         Also, remove an unnecessary cast to ‘int’, as lots of other
17987         code in this module now causes -Wconversion to complain, and
17988         this is a problem with -Wconversion not with the code.
17990         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
17992         Port recent gnulib-tool change to Dash
17993         * gnulib-tool (func_create_testdir): Don't assume that the shell
17994         retokenizes after expanding "$@" inside the call to
17995         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
17997 2017-10-27  Jim Meyering  <meyering@fb.com>
17999         timespec.h: use "assure" to avoid a spurious warning
18000         * lib/timespec.h: Include "assure.h" and use it to help
18001         gcc7's -Wstrict-overflow avoid a false positive warning
18002         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
18003         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
18004         * modules/timespec (Depends-on): Add assure.
18006 2017-10-29  Bruno Haible  <bruno@clisp.org>
18008         Avoid several test failures with traditional locales on Haiku.
18009         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
18010         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
18011         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
18012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
18013         LOCALE_ZH_CN=none.
18015 2017-10-29  Bruno Haible  <bruno@clisp.org>
18017         strerror_r-posix: Fix behaviour and test failure on Haiku.
18018         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
18019         are positive. Work around return value 0 instead of ERANGE on Haiku.
18020         For unknown error numbers, use a format string consistent with perror().
18021         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
18022         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
18023         are positive.
18025 2017-10-29  Bruno Haible  <bruno@clisp.org>
18027         get-rusage-data: Avoid crash on Haiku.
18028         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
18030 2017-10-29  Bruno Haible  <bruno@clisp.org>
18032         get-rusage-as: Avoid crash on Haiku.
18033         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
18035 2017-10-29  Bruno Haible  <bruno@clisp.org>
18037         ilogbl: Ensure replacement on Haiku.
18038         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
18039         REPLACE_ILOGBL if ilogbl does not work.
18040         (gl_FUNC_ILOGBL_WORKS): New macro.
18041         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
18042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
18043         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
18044         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
18045         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
18047 2017-10-29  Bruno Haible  <bruno@clisp.org>
18049         expl: Ensure replacement on Haiku.
18050         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
18051         zero.
18052         * doc/posix-functions/expl.texi: Mention the Haiku problem.
18054 2017-10-29  Bruno Haible  <bruno@clisp.org>
18056         math: Fix test failure on Haiku.
18057         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
18058         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
18059         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
18060         * doc/posix-headers/math.texi: Mention the Haiku problem.
18062 2017-10-29  Bruno Haible  <bruno@clisp.org>
18064         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
18065         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
18066         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
18068 2017-10-29  Bruno Haible  <bruno@clisp.org>
18070         crypto/*: Verify that the header file is self-contained.
18071         * tests/test-gc-*.c: Include the module's header file immediately after
18072         <config.h>.
18073         * tests/test-hmac-*.c: Likewise.
18074         * tests/test-arcfour.c: Likewise.
18075         * tests/test-arctwo.c: Likewise.
18076         * tests/test-des.c: Likewise.
18077         * tests/test-md2.c: Likewise.
18078         * tests/test-md4.c: Likewise.
18079         * tests/test-md5.c: Likewise.
18080         * tests/test-rijndael.c: Likewise.
18081         * tests/test-sha1.c: Likewise.
18082         * tests/test-sm3.c: Likewise.
18084 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18085             Bruno Haible  <bruno@clisp.org>
18087         crypto/gc: fix build failure with -Werror=suggest-attribute=const
18088         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
18090 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18092         New module: crypto/gc-sm3
18093         * lib/gc.h: Declare SM3-related stuffs.
18094         * lib/gc-gnulib.c: Support sm3 in internal functions.
18095         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
18096         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
18097         * modules/crypto/gc-sm3: Define gc-sm3 module.
18098         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
18099         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
18100         * MODULES.html.sh: List gc-sm3 module.
18102 2017-10-29  Bruno Haible  <bruno@clisp.org>
18104         random, random_r: Mention different prototypes on Haiku.
18105         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
18106         * doc/glibc-functions/random_r.texi: Likewise.
18107         * doc/glibc-functions/initstate_r.texi: Likewise.
18108         * doc/glibc-functions/setstate_r.texi: Likewise.
18110 2017-10-28  Bruno Haible  <bruno@clisp.org>
18112         posix_spawn: Avoid spurious message in configure output.
18113         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
18114         'cmp' command.
18116 2017-10-28  Bruno Haible  <bruno@clisp.org>
18118         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
18119         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
18120         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
18122 2017-10-28  Bruno Haible  <bruno@clisp.org>
18124         ioctl: Override non-POSIX declaration on Haiku.
18125         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
18126         * lib/sys_ioctl.in.h: Add comment about Haiku.
18127         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
18128         * doc/glibc-headers/sys_ioctl.texi: Likewise.
18130 2017-10-28  Bruno Haible  <bruno@clisp.org>
18132         crypto/sm3: Add overview documentation to the .h file.
18133         * lib/sm3.h: Add comments.
18135 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18137         New module: crypto/sm3
18138         This new module can be used to compute SM3 message digest of files or
18139         memory blocks according to the specification GM/T 004-2012
18140         Cryptographic Hash Algorithm SM3, published by State Cryptography
18141         Administration, China.
18142         The official SM3 cryptographic hash algorithm specification is
18143         available at
18144         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
18145         * lib/sm3.h: Declare the APIs of sm3 module.
18146         * lib/sm3.c: Implement SM3 hash algorithm.
18147         * m4/sm3.m4: m4 file for sm3 module.
18148         * modules/crypto/sm3: Define sm3 module.
18149         * tests/test-sm3.c: Implement SM3 test case.
18150         * modules/crypto/sm3-tests: Define sm3 test module.
18151         * MODULES.html.sh: List sm3 module.
18153 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18155         gc-libgcrypt: fix undefined enum type in switch statement
18156         Resolve the following build failure:
18157         lib/gc-libgcrypt.c: In function 'gc_hash_open':
18158         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
18159         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
18160              case 0:
18161              ^~~~
18162         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
18163         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
18165 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
18167         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
18168         Resolve the following build failure:
18169         lib/gc-libgcrypt.c: In function 'gc_hash_read':
18170         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
18171         in signedness [-Werror=pointer-sign]
18172             digest = gcry_md_read (ctx->gch, 0);
18173                    ^
18174         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
18176 2017-10-26  Bruno Haible  <bruno@clisp.org>
18178         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
18179         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
18180         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
18182 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
18184         glob: fix another heap buffer overflow
18185         Problem reported by Tim Rühsen in:
18186         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
18187         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
18189 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
18191         quotearg: pacify compiler re unsigned
18192         * lib/quotearg.c (quotearg_n_options):
18193         Rewrite to avoid diagnostic from overly-picky compiler.
18194         Problem reported by Sami Kerola in:
18195         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
18197         glob: fix heap buffer overflow
18198         * lib/glob.c (glob): Fix off-by-one error introduced into
18199         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
18200         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
18201         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
18202         Fix suggested by Bruno Haible.
18204 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
18206         glob: pacify fuzzer for mempcpy
18207         Problem reported by Tim Rühsen in:
18208         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
18209         * lib/glob.c (glob): Do not pass NULL to mempcpy.
18211 2017-10-12  Bruno Haible  <bruno@clisp.org>
18213         doc: Fix syntax error (regression from 2017-10-03).
18214         * doc/posix-functions/strncpy.texi: Fix syntax error.
18216 2017-10-12  Bruno Haible  <bruno@clisp.org>
18218         doc: Update for Solaris 11.3.
18219         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
18220         mention Solaris 11.3.
18221         * m4/log2.m4: Fix comments.
18222         * m4/log2f.m4: Likewise.
18223         * m4/printf.m4: Update comments.
18224         * m4/rename.m4: Likewise.
18225         * m4/strncat.m4: Likewise.
18227         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
18229 2017-10-10  Bruno Haible  <bruno@clisp.org>
18231         doc: Improve doc about ioctl.
18232         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
18233         prototype.
18235 2017-10-09  Bruno Haible  <bruno@clisp.org>
18237         wcwidth: Don't use obsolete syntax of 'test'.
18238         Reported by Eric Blake.
18239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
18240         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
18242 2017-10-09  Bruno Haible  <bruno@clisp.org>
18244         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
18245         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
18246         and Daniel P. Berrange <berrange@redhat.com>.
18247         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
18248         on glibc systems. The getopt-pfx-core.h file declares exactly what
18249         unistd.h needs, nothing more.
18251 2017-10-08  Bruno Haible  <bruno@clisp.org>
18253         vma-iter: Improve support for FreeBSD.
18254         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
18255         vma_iterate.
18256         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
18258 2017-10-08  Bruno Haible  <bruno@clisp.org>
18260         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
18261         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
18263 2017-10-07  KO Myung-Hun  <komh@chollian.net>
18265         test-framework-sh: Fix 'invalid path dir' error.
18266         On OS/2, a path separator is ';' not ':'. And ':' is used as a
18267         separator between a drive letter and directory parts.
18268         As a result, an absolute path such as x:/path/to/dir on OS/2 is
18269         treated as an invalid path dir.
18270         * tests/init.sh (PATH_SEPARATOR): Set at startup.
18271         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
18272         instead of hard coded ':'.
18274 2017-10-07  Bruno Haible  <bruno@clisp.org>
18276         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
18277         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
18278         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
18279         (rof_open): On Linux, do multiple read() calls and make sure
18280         MIN_LEFTOVER bytes are left when read() returns.
18282 2017-10-07  Bruno Haible  <bruno@clisp.org>
18284         vma-iter: Improve support for GNU/Hurd.
18285         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
18286         API, not the /proc file system.
18288 2017-10-07  Bruno Haible  <bruno@clisp.org>
18290         test-framework-sh: Don't require bash on Windows and OS/2.
18291         Reported by KO Myung-Hun.
18292         * tests/test-init.sh: Use 'shopt' only when running in bash.
18294 2017-10-06  KO Myung-Hun  <komh@chollian.net>
18296         wcwidth: check a macro version of wcwidth () as well
18297         * lib/wchar.in.h: Revert commit from 2016-01-14.
18298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
18300 2017-10-06  Bruno Haible  <bruno@clisp.org>
18302         getopt-posix: Clarify copyright header.
18303         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
18304         * lib/getopt-pfx-core.h: Likewise.
18305         * lib/getopt-pfx-ext.h: Likewise.
18306         * lib/getopt-cdefs.in.h: Likewise.
18308 2017-10-03  Bruno Haible  <bruno@clisp.org>
18310         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
18311         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
18312         gl_HOST_CPU_C_ABI.
18314 2017-10-03  Bruno Haible  <bruno@clisp.org>
18316         doc: warn about misuse of strncpy and wcsncpy.
18317         * doc/posix-functions/strcpy.texi: Describe requirements on prior
18318         memory allocation.
18319         * doc/posix-functions/wcscpy.texi: Likewise.
18320         * doc/posix-functions/strncpy.texi: Describe what this function is not
18321         useful for.
18322         * doc/posix-functions/wcsncpy.texi: Likewise.
18324 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18326         fsuage: fix typo in previous change
18327         * lib/fsusage.c: Remove stray include of full-read.h.
18328         Problem reported by Sam Steingold for macOS (Bug#28669).
18330 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
18332         fsusage: remove SVR2 support
18333         SVR2 was obsolete by 1986 and is no longer supported by anybody,
18334         and its code was getting in the way of use of this module by
18335         Emacs, which has its own ‘read’ function anyway.
18336         * lib/fsusage.c: Do not include sys/filsys.h.
18337         (get_fs_usage): Remove SVR2-specific code.
18338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
18339         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
18340         * modules/fsusage (Depends-on): Do not depend on full-read.
18342         Simplify autoupdate of licenses
18343         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
18344         place.
18346 2017-10-01  Bruno Haible  <bruno@clisp.org>
18348         vma-iter: Add support for GNU/Hurd.
18349         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
18350         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18352 2017-09-30  Bruno Haible  <bruno@clisp.org>
18354         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
18355         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
18356         fail when module 'largefile' is in use.
18357         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
18358         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
18359         Don't test HAVE_SYS_PROCFS_H.
18361 2017-09-30  Bruno Haible  <bruno@clisp.org>
18363         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
18364         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
18365         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
18366         * modules/havelib (Depends-on): Add host-cpu-c-abi.
18368 2017-09-30  Bruno Haible  <bruno@clisp.org>
18370         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
18371         * lib/uniname/uniname.c (unicode_name_character): Add braces around
18372         scope of local variables.
18374 2017-09-28  Bruno Haible  <bruno@clisp.org>
18376         string: code style
18377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
18378         substitutable variables.
18379         * modules/string (Makefile.am): Likewise.
18381 2017-09-26  Bruno Haible  <bruno@clisp.org>
18383         uniname/uniname-tests: Tighten code.
18384         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
18385         local variables into one.
18387 2017-09-26  Bruno Haible  <bruno@clisp.org>
18389         vma-iter: Improvements for Linux and BSD platforms.
18390         - Add support for DragonFly BSD.
18391         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
18392         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
18393         Read the entire file into memory in a single system call.
18394         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
18395         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
18397 2017-09-26  Bruno Haible  <bruno@clisp.org>
18399         vma-iter: Provide the protection flags on FreeBSD.
18400         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
18401         skip three fields between the addresses and the protection flags.
18403 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
18405         glob: remove bogus extern decl
18406         * lib/glob.c (__glob_pattern_type): Remove now-spurious
18407         extern declaration.  Problem reported by Adhemerval Zanella in:
18408         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
18410 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
18412         uniname/uniname-tests: integer overflow fix
18413         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
18414         Check for integer overflow.
18416         duplocale-tests: fix unlikely crash
18417         * tests/test-duplocale.c (get_locale_dependent_values):
18418         Don’t crash with absurdly long month names.
18420         maint: fix overflow checking in nap.h
18421         * modules/chown-tests:
18422         * modules/fchownat-tests, modules/fdutimensat-tests:
18423         * modules/futimens-tests, modules/lchown-tests:
18424         * modules/stat-time-tests, modules/utime-tests:
18425         * modules/utimens-tests, modules/utimensat-tests:
18426         Depend on intprops.
18427         * tests/nap.h: Include intprops.h.
18428         (diff_timespec): Handle overflow properly.
18430         sys_types: update URL
18431         * m4/sys_types_h.m4: Use https: URL.
18433         parse-datetime: fix dependency
18434         * modules/parse-datetime (Depends-on): Depend
18435         on nstrftime, not strftime.
18437         parse-datetime, posixtm: avoid uninit access
18438         * lib/parse-datetime.y (parse_datetime2):
18439         * lib/posixtm.c (posixtime):
18440         Do not access uninitialized storage, even though the resulting
18441         value is never used.
18443 2017-09-25  Bruno Haible  <bruno@clisp.org>
18445         vma-iter: Improvements for BSD platforms.
18446         - Add support for GNU/kFreeBSD.
18447         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
18448         - Speed up on OpenBSD.
18449         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
18450         (vma_iterate_bsd): New function.
18451         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
18452         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
18453         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
18454         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
18456 2017-09-23  Bruno Haible  <bruno@clisp.org>
18458         strfmon_l: New module.
18459         * modules/strfmon_l: New file.
18460         * lib/strfmon_l.c: New file.
18461         * m4/strfmon_l.m4: New file.
18462         * doc/posix-functions/strfmon_l.texi: Mention the new module.
18463         * modules/strfmon_l-tests: New file.
18464         * tests/test-strfmon_l.c: New file.
18466         monetary: New module.
18467         * modules/monetary: New file.
18468         * lib/monetary.in.h: New file.
18469         * m4/monetary_h.m4: New file.
18470         * doc/posix-headers/monetary.texi: Mention the new module.
18471         * modules/monetary-tests: New file.
18472         * tests/test-monetary.c: New file.
18473         * modules/monetary-c++-tests: New file.
18474         * tests/test-monetary-c++.cc: New file.
18475         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
18477 2017-09-23  Bruno Haible  <bruno@clisp.org>
18479         duplocale tests: Fix test crash on Linux/x86.
18480         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
18481         locale from the current thread before freeing it.
18483 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
18485         mktime: port to OpenVMS
18486         Problem reported by John E. Malmberg in:
18487         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
18488         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
18490 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18492         manywarnings: port to GCC on 64-bit MS-Windows
18493         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
18494         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
18495         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
18497 2017-09-13  Bruno Haible  <bruno@clisp.org>
18499         all: Replace many more http URLs by https URLs. Update stale URLs.
18500         * users.txt: Remove mention of 'newts'.
18501         * lib/localename.c: Update comment about LANG_SOTHO.
18503 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18505         all: Replace many http URLs by https URLs.
18507 2017-09-12  Bruno Haible  <bruno@clisp.org>
18509         doc: Prefer https URLs where possible.
18510         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
18511         * doc/ld-output-def.texi: Remove unavailable URL.
18513 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18515         maintainer-makefile: FTP -> HTTPS
18516         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
18517         of FTP, which is planned to be decommissioned on 2017-11-01.
18519 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
18521         libc-config: Fix __GNUC_PREREQ macro.
18522         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
18523         __GNUC_MINOR.
18525 2017-09-09  Bruno Haible  <bruno@clisp.org>
18527         gnulib-tool: Simplify commit from 2015-08-20.
18528         * gnulib-tool (func_add_or_update): Remove local variable
18529         is_binary_file.
18531 2017-09-08  Bruno Haible  <bruno@clisp.org>
18533         stddef: Avoid conflict with system-defined max_align_t.
18534         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
18535         Reported by Werner Lemberg <wl@gnu.org> in
18536         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
18537         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
18538         (max_align_t): Define as a macro.
18539         (GNULIB_defined_max_align_t): New macro. Guards against multiple
18540         definitions of rpl_max_align_t in different copies of gnulib-generated
18541         <stddef.h>.
18543 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
18545         libc-config: port to MSVC
18546         Problems reported by Gisle Vanem in:
18547         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
18548         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
18549         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
18550         * m4/__inline.m4: New file.
18551         * modules/libc-config (Files): Add it.
18552         (Depends-on): Use it.
18554         glob: Use enum for __glob_pattern_type result
18555         From a patch proposed by Adhemerval Zanella in:
18556         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
18557         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
18558         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
18559         * lib/glob_internal.h (__glob_pattern_type):
18560         * lib/glob.c (glob):
18561         * lib/glob_pattern_p.c (__glob_pattern_p):
18562         Use them.
18564         glob: fix for use in glibc
18565         Problem reported by Adhemerval Zanella in:
18566         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
18567         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
18568         Do not redefine if _LIBC.
18570 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18572         glob: fix bugs with long login names
18573         Problem reported by Adhemerval Zanella in:
18574         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
18575         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
18576         (glob): Use the same scratch buffer for both getlogin_r and
18577         getpwnam_r.  Don’t require preallocation of the login name.  This
18578         simplifies storage allocation, and corrects the handling of
18579         long login names.
18581 2017-09-02  Bruno Haible  <bruno@clisp.org>
18583         dirent: Update doc.
18584         * doc/posix-headers/dirent.texi: More concrete list of platforms.
18586 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18588         glob: fix getpwnam_r errno typo
18589         * lib/glob.c (glob): Fix longstanding misuse of errno after
18590         getpwnam_r, which returns an error number rather than setting
18591         errno.
18593         glob: fix typo in recent change
18594         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
18595         Fix recently-introduced typo.
18597 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18599         glob: don't save and restore errno unnecessarily
18600         * lib/glob.c (glob): Don't save and restore errno
18601         merely because we have getpwnam_r.
18603         glob: don't assume getpwnam_r
18604         * lib/glob.c (glob): Port recent patches to platforms
18605         lacking getpwnam_r.
18607         scratch_buffer: don’t use private glibc API
18608         Suggested by Florian Weimer in:
18609         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
18610         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
18611         * lib/scratch_buffer_grow.c: Rename to
18612         lib/malloc/scratch_buffer_grow.c.
18613         * lib/scratch_buffer_grow_preserve.c: Rename to
18614         lib/malloc/scratch_buffer_grow_preserve.c.
18615         * lib/scratch_buffer_set_array_size.c: Rename to
18616         lib/malloc/scratch_buffer_set_array_size.c.
18617         * lib/scratch_buffer.h: New file.
18618         * modules/scratch_buffer (Files, Makefile.am):
18619         Adjust to source-file renaming.
18621 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18623         glob: use scratch_buffer instead of extend_alloca
18624         Much of the lib/glob.c part of this patch comes from a glibc patch
18625         proposed by Adhemerval Zanella in:
18626         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
18627         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
18628         included via glob.h, does this for us now.
18629         (__set_errno): Remove, as libc-config does this for us now.
18630         Include <scratch_buffer.h>.
18631         (GETPW_R_SIZE_MAX): Remove.
18632         (glob): Use struct scratch_buffer instead of extend_alloca.
18633         * lib/glob.in.h: Include libc-config.h rather than
18634         including <sys/cdefs.h> conditionally.
18635         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
18636         (__glibc_unlikely, __restrict, weak_alias):
18637         Remove, as libc-config does this for us now.
18638         * m4/glob.m4 (gl_PREREQ_GLOB):
18639         Remove sys/cdefs.h tests; no longer needed.
18640         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
18641         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
18643         scratch_buffer: new module
18644         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
18645         * lib/scratch_buffer_grow_preserve.c:
18646         * lib/scratch_buffer_set_array_size.c:
18647         New files, copied from glibc with very minor changes that can be
18648         copied back.
18649         * modules/scratch_buffer: New file.
18651         libc-config: new module
18652         * MODULES.html.sh: Add libc-config.
18653         * lib/cdefs.h: New file, copied from the GNU C Library with very
18654         minor changes that can be copied back.
18655         * lib/libc-config.h, modules/libc-config: New files.
18657 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18659         glob: match dangling symlinks
18660         This fixes a bug I inadvertently introduced to Gnulib when I
18661         merged glibc glob back into gnulib on 2007-10-16.  This fix is
18662         inspired by a patch proposed for glibc by Adhemerval Zanella in:
18663         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
18664         * doc/posix-functions/glob.texi: Update list of affected platforms.
18665         * lib/glob.c (__lstat64): New macro.
18666         (is_dir): New function.
18667         (glob, glob_in_dir): Match symlinks even if they are dangling.
18668         (link_stat, link_exists_p): Remove.  All uses removed.
18669         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
18670         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
18671         * modules/glob-tests (Depends-on): Add symlink.
18672         * tests/test-glob.c: Include errno.h, unistd.h.
18673         (BASE): New macro.
18674         (main): Test dangling symlinks, if symlinks are supported.
18676         glob, backupfile: inode 0 is a valid inode number
18677         * doc/posix-functions/readdir.texi (readdir):
18678         * doc/posix-headers/dirent.texi (dirent.h):
18679         Document more readdir portability issues.
18680         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
18681         (numbered_backup): Don’t treat inode 0 any differently from
18682         other inode values.
18683         * lib/glob.c (struct readdir_result): Remove skip_entry member.
18684         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
18685         All uses removed.
18686         * modules/glob (Depends-on): Remove d-ino.
18688         glob: simplify symlink detection
18689         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
18690         uint8_t, as C99 does not require uint8_t.
18691         (struct readdir_result): Use it.  Do not define skip_entry unless
18692         it is needed; this saves a byte on platforms lacking d_ino.
18693         (readdir_result_type, readdir_result_skip_entry):
18694         New functions, replacing ...
18695         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
18696         ... these functions, which were removed.  This makes the callers
18697         easier to read.  All callers changed.
18698         (D_INO_TO_RESULT): Now empty if there is no d_ino.
18700 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18702         fts-tests: tag as a longrunning-test so not included by default
18703         * modules/fts-tests: This test takes about 20s on current systems,
18704         and uses about 285M of space on ext4.
18706 2017-08-30  Pádraig Brady  <P@draigBrady.com>
18708         renameat2: fix compilation on alpine linux
18709         * m4/renameat.m4: Check for <linux/fs.h> presence.
18710         * lib/renameat2.h: Only include <linux/fs.h> if present.
18711         Reported by Assaf Gordon on Alpine Linux.
18713 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18715         glob: try to port recent changes to MS-Windows
18716         Problem reported by Bruno Haible in:
18717         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
18718         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
18719         * lib/glob.in.h (__glob_pattern_p): ... to here.
18721 2017-08-24  Eric Blake  <eblake@redhat.com>
18723         warnings: fix compilation with old autoconf
18724         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
18725         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
18726         AC_DEFUN.
18727         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
18728         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
18730 2017-08-24  Bruno Haible  <bruno@clisp.org>
18732         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
18733         * modules/glob (Depends-on): Add c99.
18735 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18737         glob: fix typo that broke platforms lacking d_ino
18738         This typo also hurt performance on GNU/Linux and similar hosts.
18739         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
18740         in previous change.
18742 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18744         glob: merge from glibc with Zanella glob changes
18745         Merge glob from glibc, with changes for glob proposed
18746         by Adhemerval Zanella in the thread starting here:
18747         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
18748         plus some fixes for this merge.
18749         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
18750         New files, ported from glibc.
18751         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
18752         with __restrict.
18753         (__size_t): Remove.  All uses replaced by size_t.
18754         (size_t): Define by defining __need_size_t and including <stddef.h>.
18755         This should work even in non-glibc platforms, where any name
18756         pollution is OK.
18757         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
18758         (struct stat64): Don’t worry about __GLOB_GNULIB.
18759         (glob, globfree, glob_pattern_p): Remove macros for
18760         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
18761         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
18762         but set errno.
18763         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
18764         removed since the glibc behavior works on null pointers.
18765         Do not include stdio.h; old SunOS is irrelevant now.
18766         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
18767         Include glob_internal.h.
18768         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
18769         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
18770         worked only coincidentally.
18771         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
18772         Remove macros; now done in glob.in.h.
18773         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
18774         (glob): Properly initialize glob structure with
18775         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
18776         Remove old code using SHELL since Bash no longer
18777         uses this.
18778         (glob, prefix_array): Separate MS code better.
18779         (glob, glob_in_dir): Use C99 decls before statements when glibc
18780         does.
18781         (glob_in_dir): Remove old Amiga and VMS code.
18782         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
18783         separate files.
18784         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
18785         (__glibc_unlikely):
18786         Move here from glob.c.
18787         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
18788         (weak_alias): New macro.
18789         (__size_t): Remove.  All uses replaced by size_t.
18790         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
18791         * modules/glob (Files): Add +lib/glob_internal.h,
18792         lib/glob_pattern_p.c, lib/globfree.c.
18793         (Depends-on): Remove snippet/arg-nonnull.
18795 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18797         glob: port to clang's Undefined Sanitizer
18798         Problem reported by Tim Rühsen in:
18799         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
18800         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
18801         (glob_in_dir): Do not rely on undefined behavior in accessing
18802         struct members beyond their bounds.  Use a flexible array member
18803         instead.
18805 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18807         vc-list-files: port to Solaris 10
18808         * build-aux/vc-list-files: Don't assume test -e works.
18810 2017-08-21  Karl Berry  <karl@freefriends.org>
18812         * doc/posix-functions/srandom.texi (srandom): typo }.
18814 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
18816         git-version-gen: port to Solaris 10
18817         Problem reported by Dagobert Michelsen in:
18818         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
18819         * build-aux/git-version-gen (v_from_git):
18820         Use expr instead of shell substitution.
18822 2017-08-19  Bruno Haible  <bruno@clisp.org>
18824         host-cpu-c-abi: Improve detection of MIPS ABI.
18825         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
18826         _MIPS_SIM.
18828 2017-08-17  Bruno Haible  <bruno@clisp.org>
18830         hypot tests: Fix test failure on FreeBSD 11.0/x86.
18831         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
18833 2017-08-17  Bruno Haible  <bruno@clisp.org>
18835         float: Fix LDBL_MIN value on FreeBSD/x86.
18836         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
18838 2017-08-17  Bruno Haible  <bruno@clisp.org>
18840         random: Fix test compilation failure on Cygwin 1.5.25.
18841         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
18842         HAVE_DECL_SETSTATE.
18843         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
18844         declared.
18845         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
18846         HAVE_DECL_SETSTATE.
18847         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
18848         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
18849         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
18850         * doc/posix-functions/random.texi: Likewise.
18851         * doc/posix-functions/setstate.texi: Likewise.
18852         * doc/posix-functions/srandom.texi: Likewise.
18854 2017-08-16  Bruno Haible  <bruno@clisp.org>
18856         stdnoreturn: Fix test compilation failure on Cygwin.
18857         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
18858         <stdnoreturn.h> replacement.
18859         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
18860         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
18862 2017-08-16  Bruno Haible  <bruno@clisp.org>
18864         thread: Fix conflict with pthread_sigmask module.
18865         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
18866         it's defined as a macro.
18867         * modules/thread (Depends-on): Add pthread_sigmask.
18869 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18871         rename: port better to NetBSD
18872         * doc/posix-functions/rename.texi (rename): NetBSD 7
18873         does not have the link-count bug.
18874         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
18875         broken merely because rename ("a", "b") removes "a" when the two
18876         names are hard links to the same file.
18878 2017-08-16  Bruno Haible  <bruno@clisp.org>
18880         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
18881         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
18882         the target file names with '$(srcdir)/'.
18883         * modules/unicase/locale-language (Makefile.am): Likewise.
18884         * modules/unicase/special-casing (Makefile.am): Likewise.
18885         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
18886         * modules/unictype/category-byname (Makefile.am): Likewise.
18887         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
18888         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
18889         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
18890         * modules/unictype/property-byname (Makefile.am): Likewise.
18891         * modules/unictype/scripts (Makefile.am): Likewise.
18892         * modules/uninorm/composition (Makefile.am): Likewise.
18894 2017-08-16  Bruno Haible  <bruno@clisp.org>
18896         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
18897         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
18898         value for OpenBSD.
18900 2017-08-16  Bruno Haible  <bruno@clisp.org>
18902         rename, renameat: Update doc regarding NetBSD.
18903         * doc/posix-functions/rename.texi: Clarify that when using
18904         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
18905         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
18906         version.
18908 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18910         renameat2: port better to macOS
18911         * lib/renameat2.c (renameat2): Use renameatx_np if available.
18913         futimens: don’t assume struct timespec layout
18914         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
18915         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
18916         * tests/test-fdutimensat.c (main):
18917         * tests/test-futimens.h (test_futimens):
18918         * tests/test-lutimens.h (test_lutimens):
18919         * tests/test-utimens.h (test_utimens):
18920         * tests/test-utimensat.c (main):
18921         Don’t assume that struct timespec is a two-member structure in
18922         tv_sec, tv_nsec order.  Although this is true on all platforms we
18923         know about, POSIX does not guarantee it.
18925         rename: document+test NetBSD rename
18926         Test failure reported by Bruno Haible in:
18927         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
18928         This is an area where NetBSD is better-behaved than POSIX,
18929         so allow the NetBSD behavior in tests.
18930         * doc/posix-functions/rename.texi:
18931         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
18932         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
18934 2017-08-15  Bruno Haible  <bruno@clisp.org>
18936         renameat: Ensure declaration in <stdio.h> on NetBSD.
18937         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
18938         * doc/posix-functions/renameat.texi: Mention this problem.
18940 2017-08-15  Bruno Haible  <bruno@clisp.org>
18942         duplocale: Work around NetBSD 7.0 bug.
18943         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
18944         * lib/duplocale.c: Add comment about NetBSD problem.
18945         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
18947 2017-08-15  Bruno Haible  <bruno@clisp.org>
18949         duplocale tests: Verify use with *_l functions.
18950         * modules/duplocale-tests (configure.ac): Test for uselocale and
18951         some *_l functions.
18952         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
18953         from main.
18954         (get_locale_dependent_values_from, test_with_locale_parameter): New
18955         functions.
18956         (main): Test both test_with_uselocale and test_with_locale_parameter.
18958 2017-08-15  Bruno Haible  <bruno@clisp.org>
18960         extensions: Enable NetBSD specific extensions.
18961         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
18963 2017-08-14  Bruno Haible  <bruno@clisp.org>
18965         open, openat: Update doc about O_CLOEXEC.
18966         * doc/posix-functions/open.texi: More concrete list of platforms.
18967         * doc/posix-functions/openat.texi: Likewise.
18969 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
18971         open: support O_CLOEXEC
18972         * NEWS, doc/posix-functions/open.texi:
18973         * doc/posix-functions/openat.texi: Document this.
18974         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
18975         (GNULIB_defined_O_CLOEXEC): New symbol.
18976         * lib/open.c: Include cloexec.h.
18977         (open): Support O_CLOEXEC.
18978         * lib/openat.c: Include cloexec.h.
18979         (rpl_openat): Support O_CLOEXEC.
18980         * lib/popen-safer.c: Do not include cloexec.h.
18981         (open_noinherit): Remove.
18982         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
18983         * lib/save-cwd.c: Do not include cloexec.h.
18984         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
18985         * m4/open-cloexec.m4: New file.
18986         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
18987         Replace 'open' if O_CLOEXEC is not present.
18988         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
18989         Replace 'openat' if O_CLOEXEC is not present.
18990         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
18991         * modules/open (Files): Add m4/open-cloexec.m4.
18992         (Depends-on): Depend on cloexec if replacing 'open'.
18993         * modules/openat (Files): Add m4/open-cloexec.m4.
18994         (Depends-on): Depend on cloexec if replacing openat.
18995         * modules/popen-safer (Depends-on): Remove cloexec.
18996         * modules/save-cwd (Depends-on): Remove cloexec, and add
18997         fd-safer-flag and 'open'.
18999 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
19001         reallocarray: minor fixes
19002         * doc/glibc-functions/reallocarray.texi: Update version numbers.
19003         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
19004         * modules/reallocarray (License): Change from GPL to LGPL.
19005         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
19006         Indent properly and don't use tabs.
19008 2017-08-13  Darshit Shah  <darnir@gnu.org>
19010         reallocarray: New module
19011         reallocarray is a new function in glibc 2.26 to safely allocate an array
19012         of memory locations with integer overflow protection.
19013         * MODULES.html.sh: Add reallocarray.
19014         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
19015         * lib/reallocarray.c: New file to implement module reallocarray.
19016         * lib/stdlib.in.h: Add function declarations for reallocarray.
19017         * m4/reallocarray.m4: New file.
19018         * m4/stdlib_h.m4: Declare reallocarray.
19019         * modules/reallocarray: New file.
19020         * modules/reallocarray-test: New file.
19021         * modules/stdlib: Coerce stdlib.h to export reallocarray.
19022         * tests/test-reallocarray.c: New test.
19024 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
19026         dirent-safer: fix cloexec race
19027         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
19028         (opendir_safer): Use F_DUPFD_CLOEXEC.
19029         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
19030         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
19031         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
19032         instead of dup_safer.
19034         fts: fix cloexec races
19035         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
19036         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
19037         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
19038         (fd_ring_check): Set cloexec flag on new file descriptors.
19039         (fts_build, fd_ring_check): While we’re at it, make sure the
19040         resulting file descriptor is not 0, 1, or 2, since that is easy.
19042 2017-08-11  Bruno Haible  <bruno@clisp.org>
19044         fts tests: Fix link error.
19045         Reported by Tom G. Christensen in
19046         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
19047         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
19049 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19051         fts: port recent changes to CentOS 6
19052         Problem reported by Tom G. Christensen in:
19053         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
19054         * lib/fts.c (fsword): New type.
19055         (struct dev_type, filesystem_type): Use it.
19056         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
19057         Also, check for f_type only if fstatfs and sys/vfs.h work.
19059 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19061         tempname: do not depend on secure_getenv
19062         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
19063         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
19064         * modules/tempname (Depends-on): Remove secure_getenv.
19066 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
19068         extensions: add _OPENBSD_SOURCE
19069         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
19071 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
19072             Bruno Haible  <bruno@clisp.org>
19074         manywarnings: Add support for C++.
19075         * build-aux/g++-warning.spec: New file.
19076         * m4/manywarnings-c++.m4: New file.
19077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
19078         redirects to manywarnings-c++.m4.
19079         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
19081 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
19083         git-version-gen: another fix for tags with "-"
19084         * build-aux/git-version-gen: Improve fix for tags containing "-".
19085         Suggested by Markus Armbruster in:
19086         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
19088 2017-08-06  Bruno Haible  <bruno@clisp.org>
19090         warnings, manywarnings: Add support for multiple languages, not just C.
19091         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
19092         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
19093         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
19094         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
19095         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
19096         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
19097         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
19098         of the current language. If C++ is the current language, modify
19099         WARN_CXXFLAGS instead of WARN_CFLAGS.
19100         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
19101         gl_MANYWARN_ALL_GCC.
19102         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
19104 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
19106         git-version-gen: Fix for tags containing '-'
19108         Really old versions of git-describe (before v1.5.0, Feb 2007)
19109         don't have the number of commits in their long format output,
19110         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
19111         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
19112         recognizes both patterns, and normalizes the old format to the new one.
19114         Unfortunately, this normalization code gets confused when the tag
19115         contains '-'.  Reproducer:
19117             $ git-tag -m test v0.2-rc1
19118             $ build-aux/git-version-gen .tarball-version; echo
19119             build-aux/git-version-gen: WARNING: git rev-list failed
19120             UNKNOWN
19122         We take exact tag "v0.2-rc1" for the old format, extract the presumed
19123         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
19124         commits since tha tag.  Fails, because tag "v0.2" does not exist.
19126         * git-version-gen: We could perhaps drop support for versions from
19127         more than a decade ago.  But tightening the pattern match is easy
19128         enough, so do that.  Still breaks when you use version tags ending in
19129         something matching -g????, but you arguably get what you deserve then.
19131 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
19133         valgrind-tests: use ls, and cache
19134         * m4/valgrind-tests.m4: Test ls, not bash.
19135         Problem reported by Reuben Thomas.
19136         Also, cache the result so that it can be overridden.
19138 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
19140         manywarnings: port to 64-bit GCC builds of Emacs
19141         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
19142         object size rather than hardwiring 2147483647.  This is needed to
19143         build GNU Emacs, which has one conditional (and used
19144         only-in-theory) call to malloc with a literal greater than
19145         2147483647.
19147 2017-08-04  Bruno Haible  <bruno@clisp.org>
19149         Relax the license of some modules with no runtime code.
19150         * modules/std-gnu11 (License): Set to 'unlimited'.
19151         * modules/c99 (License): Likewise.
19152         Reported by Reuben Thomas <rrt@sc3d.org>.
19153         * modules/d-ino (License): Set to 'LGPL'.
19154         * modules/host-os (License): Likewise.
19155         * modules/longlong (License): Likewise.
19157 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19159         renameat2: port to RHEL 7 + NFS
19160         * lib/renameat2.c (renameat2) [SYS_renameat2]:
19161         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
19162         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
19164 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19166         renameat2: port to non-renameat platforms
19167         Problem reported for MSVC-2015 by Gisle Vanem in:
19168         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
19169         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
19170         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
19172 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19174         manywarnings: port to 32-bit GCC bug
19175         Problem reported by Pino Toscano in:
19176         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
19177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
19178         not 2**63 - 1, to work around the following GCC bug:
19179         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
19181 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
19183         backupfile: new function to validate backup suffix
19184         * lib/backupfile.c (set_simple_backup_suffix): New function.
19185         (backupfile_internal): Use it.
19187         canonicalize: fix EOVERFLOW commentary
19188         Problem reported by Bruno Haible in:
19189         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
19190         * lib/canonicalize.c (canonicalize_filename_mode):
19191         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
19193         Don't interpret EOVERFLOW to mean nonexistence
19194         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
19195         may be EOVERFLOW; this is likely more useful than reporting the
19196         stat errno.
19197         * lib/glob.c (link_stat): Rename from link_exists2_p and
19198         return -1/0 instead of 0/1.  Caller changed.
19199         * lib/glob.c (link_exists_p):
19200         * lib/renameat2.c (rename_noreplace, renameat2):
19201         * lib/tempname.c (try_nocreate):
19202         If errno == EOVERFLOW then the directory entry exists, so do not
19203         act as if it does not exist.
19205         backup-rename: new module
19206         It is like backupfile, except it avoids some race conditions,
19207         and it does not output to stderr or exit.
19208         * MODULES.html.sh: Add backup-rename.
19209         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
19210         * modules/backup-rename: New files.
19211         * lib/backupfile.c: Turn this into an internals file, which
19212         contains code common to backupfile and backup_rename.  Include
19213         backupfile-internal.h instead of backupfile.h.  Do not include
19214         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
19215         renameat2.h and fcntl.h.
19216         (BACKUP_NOMEM): New constant.
19217         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
19218         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
19219         (backupfile_internal): Rename from find_backup_file_name.
19220         Support new arg RENAME.
19221         (backup_args, backup_types, get_version, xget_version):
19222         Move to lib/backup-find.c.
19223         * lib/backupfile.h (backup_file_rename): New decl.
19224         * modules/backupfile (Files): Add lib/backup-internal.h,
19225         lib/backup-find.c.
19226         (Depends-on): Add dirfd, fcntl, renameat2.
19227         (lib_SOURCES): Add backup-find.c.
19229         renameat2: port better to older Solaris
19230         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
19231         Add goto to use a label, to silence picky compilers.
19233         fts-tests: port to gcc -Wwrite-strings
19234         * tests/test-fts.c (base, base_d): New static vars.
19235         (argv, remove_tree, main): Use them.
19237 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19239         relocatable-lib{,-lgpl}: improve documentation
19240         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
19241         Various other updates.
19243 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
19244             Bruno Haible  <bruno@clisp.org>
19246         relocatable-lib{,-lgpl}: add Valgrind suppressions
19247         * lib/relocatable.valgrind: New file.
19248         * modules/relocatable-lib (Files): Add relocatable.valgrind.
19249         * modules/relocatable-lib-lgpl: Likewise.
19251 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
19253         relocatable: Make the license on the sources the GPL.
19254         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
19255         LGPL, which was a special case so that the relocatable source files
19256         could be used without gnulib-tool, to GPL. They can still be used under
19257         the LGPL, using the --lgpl option to gnulib-tool.
19259 2017-07-30  Bruno Haible  <bruno@clisp.org>
19261         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
19262         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
19263         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
19264         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
19265         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
19267 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19269         faccessat: document AT_SYMLINK_NOFOLLOW issue
19270         * doc/posix-functions/faccessat.texi: Modernize platform list.
19271         Document AT_SYMLINK_NOFOLLOW limitation.
19273         renameat2: port to Solaris 10
19274         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
19275         with AT_SYMLINK_NOFOLLOW (which is not portable).
19276         (renameat): Undef before using, to avoid endless recursion when
19277         the replacement renameat calls renameat2 which calls the
19278         replacement renameat.
19279         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
19280         * modules/renameat2 (Depends-on): Remove faccessat.
19281         * modules/renameat-tests (test_renameat_LDADD):
19282         * modules/renameat2-tests (test_renameat2_LDADD):
19283         Remove $(LIB_EACCESS).
19285         renameat2: new module
19286         Although the Linux syscall renameat2 is not in glibc (yet?), it is
19287         useful to have access to its RENAME_NOREPLACE flag.
19288         * MODULES.html.sh (func_all_modules): Add renameat2.
19289         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
19290         * modules/renameat2-tests, tests/test-renameat2.c: New files.
19291         * lib/renameat.c (renameat): Move most of the implementation
19292         to renameat2, and just call renameat2.
19293         * modules/renameat (Files): Remove lib/at-func2.c.
19294         (Depends-on): Depend only on renameat2.
19295         (Include): Remove <fcntl.h>.
19296         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
19297         since renameat (via renameat2) might use faccessat.
19299 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
19301         vc-list-files: Adjust the script to support git worktrees
19302         * build-aux/vc-list-files: Require existence, not directory.
19304 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19306         doc: bring MODULES.html.sh up to date
19307         Somehow a few months ago we stopped updating MODULES.html.sh.
19308         I don’t recall explicitly deciding this, so I updated it now.
19309         Alternatively I suppose we could remove it.
19310         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
19311         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
19312         truncate, utime, utime-h, windows-stat-inodes,
19313         windows-stat-override, windows-stat-timespec, year2038.  Sort.
19315 2017-07-26  Jim Meyering  <meyering@fb.com>
19317         fprintftime: fix build-break caused by recent renaming
19318         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
19319         "strftime.c".
19320         * modules/fprintftime: Depend directly on nstrftime.
19322 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
19324         regex: work with GCC7's -Werror=implicit-fallthrough=
19325         * lib/regex_internal.h (FALLTHROUGH): New macro.
19326         * lib/regcomp.c (peek_token_bracket, parse_expression):
19327         * lib/regexec.c (check_node_accept): Use it.
19329 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
19331         fts: simplify fts_build
19332         * lib/fts.c (fts_build): Simplify, and be lazier about
19333         calling leaf_optimization.
19335         fts: three levels of leaf optimization
19336         * lib/fts.c (enum leaf_optimization): New type with three values.
19337         (S_MAGIC_AFS): New macro.  Sort them.
19338         (leaf_optimization): Rename from leaf_optimization_applies, and
19339         return enum leaf_optimization instead of bool.  All uses changed.
19340         Add cases for unknown type and for AFS.
19341         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
19343         fts: cache dirent_inode_sort_may_be_useful too
19344         * lib/fts.c (struct dev_type): New struct.
19345         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
19346         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
19347         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
19348         Now takes FTSENT const *, not int.  All uses changed.  Use
19349         filesystem_type to cache.
19350         (link_count_optimize_ok): Remove.  Caller changed to use
19351         leaf_optimization_applies, which now uses shared cache.
19353         fts: introduce MIN_DIR_NLINK
19354         * lib/fts.c (MIN_DIR_NLINK): New constant.
19355         Use it instead of 2, whenever we are talking about link counts.
19357         fts: nlink_t signedness fixups
19358         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
19359         so that root need not be a special case later.
19360         (fts_read): Remove now-redundant test for fts_level.
19361         Do not assume that nlink_t is signed.
19362         (fts_build): Remove useless decrement of nlinks.
19363         (fts_stat): Avoid unlikely signed integer overflow later, if
19364         nlink_t is signed.
19366         fts-tests: new module
19367         * modules/fts-tests, tests/test-fts.c: New files.
19369 2017-07-23  Bruno Haible  <bruno@clisp.org>
19371         Rename module 'strftime' to 'nstrftime'.
19372         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
19373         * lib/nstrftime.c: Renamed from lib/strftime.c.
19374         * modules/nstrftime: Renamed from modules/strftime.
19375         (Files, Makefile.am): Update.
19376         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
19377         Fix comment.
19378         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
19379         (Files, Makefile.am): Update.
19380         * modules/strftime: New file, an obsolete indirection.
19381         * doc/posix-functions/strftime.texi: Update reference.
19382         * config/srclist.txt: Update info.
19383         * NEWS: Mention the change.
19385 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
19387         malloca: Silence a warning from clang's memory sanitizer.
19388         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
19389         (freea): Use it.
19391 2017-07-18  Bruno Haible  <bruno@clisp.org>
19393         host-cpu-c-abi: Fix detection of MIPS ABI.
19394         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
19395         ABI, not the CPU instruction set.
19397 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
19399         explicit_bzero: new module
19400         The explicit_bzero function has been added to glibc.
19401         This module is intended to supports its use in GNU programs.
19402         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
19403         * m4/explicit_bzero.m4, modules/explicit_bzero:
19404         New files.
19405         * doc/gnulib.texi (Glibc string.h): Link to new doc.
19406         * lib/string.in.h (explicit_bzero): Declare.
19407         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
19408         * modules/string (string.h): Substitute its vars.
19410 2017-07-16  Bruno Haible  <bruno@clisp.org>
19412         threadlib: Support static linking.
19413         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
19414         set gl_cv_have_weak to 'no'.
19416 2017-07-16  Bruno Haible  <bruno@clisp.org>
19418         unicase/locale-language: Fix link dependencies.
19419         * modules/unicase/locale-language (Link): New section.
19420         * modules/unicase/locale-language-tests (Makefile.am): Link
19421         test-locale-language program with $(LIBTHREAD).
19423 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19425         sys_socket: Add support for OpenVMS.
19426         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
19427         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
19429 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19431         sys_resource: Add support for OpenVMS.
19432         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
19433         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
19435 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
19436             Bruno Haible  <bruno@clisp.org>
19438         math: Add support for OpenVMS.
19439         * lib/math.in.h [__VMS]: Include <fp.h>.
19440         * doc/posix-headers/math.texi: Mention OpenVMS issues.
19442 2017-07-15  Bruno Haible  <bruno@clisp.org>
19444         getdtablesize: Add minimal support for OpenVMS.
19445         Reported by John E. Malmberg <wb8tyw@qsl.net>.
19446         * modules/getdtablesize (Description): Fix.
19447         * lib/getdtablesize.c: Fix comment.
19448         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
19449         getdtablesize() function, even though the test fails.
19450         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
19451         limitation on OpenVMS.
19453 2017-07-13  Bruno Haible  <bruno@clisp.org>
19455         Revisit cross-compilation guesses.
19456         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
19458 2017-07-13  Bruno Haible  <bruno@clisp.org>
19460         Improve cross-compilation guesses for native Windows.
19461         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
19462         Windows.
19463         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
19464         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
19465         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19466         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
19467         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
19468         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
19469         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19470         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
19471         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19472         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
19473         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19474         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
19475         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
19476         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
19477         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
19478         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19479         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
19480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19481         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19482         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
19483         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
19484         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
19485         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
19486         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
19487         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
19488         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
19489         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
19490         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
19491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19492         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
19493         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
19495         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
19496         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
19497         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
19498         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
19499         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
19500         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19501         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
19502         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19503         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19504         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19505         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
19506         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
19507         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
19508         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
19509         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
19510         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
19511         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
19512         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
19513         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
19514         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
19515         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
19516         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
19517         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
19518         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
19519         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
19520         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19521         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
19522         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19523         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19524         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
19525         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
19526         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
19527         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
19528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19529         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
19530         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19531         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
19532         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
19533         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
19534         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
19535         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19536         * m4/regex.m4 (gl_REGEX): Likewise.
19537         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
19538         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
19539         gl_FUNC_REMAINDERF_WORKS): Likewise.
19540         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
19541         gl_FUNC_REMAINDERL_WORKS): Likewise.
19542         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19543         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19545         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
19546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19547         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
19548         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19549         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19550         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
19551         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19552         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
19553         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
19554         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19556         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19557         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19558         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19559         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19560         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19561         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19562         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
19563         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19564         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19565         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
19566         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19567         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19568         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19569         Likewise.
19570         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19571         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
19572         Windows. Enable also on Autoconf 2.70.
19573         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19574         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19575         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19576         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
19577         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19578         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
19579         for native Windows.
19580         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19581         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
19583 2017-07-13  Bruno Haible  <bruno@clisp.org>
19585         Improve cross-compilation guesses for native Windows.
19586         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
19587         Windows.
19588         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
19589         memchr.m4.
19590         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19592 2017-07-13  Bruno Haible  <bruno@clisp.org>
19594         Improve cross-compilation guesses for native Windows.
19595         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
19596         native Windows.
19597         (gl_FUNC_FFLUSH): Update accordingly.
19598         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
19599         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19601 2017-07-11  Bruno Haible  <bruno@clisp.org>
19603         More systematic m4 quoting and indentation.
19604         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
19605         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19606         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
19607         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19608         * m4/host-os.m4 (gl_HOST_OS): Likewise.
19609         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
19610         gl_WINSIZE_IN_PTEM): Likewise.
19611         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
19612         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19613         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19614         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
19615         Correct indentation.
19616         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
19617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19618         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
19619         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19620         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
19621         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19623 2017-07-10  Bruno Haible  <bruno@clisp.org>
19625         round, roundf: Avoid compiler warning in configure test.
19626         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
19627         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
19629 2017-07-10  Bruno Haible  <bruno@clisp.org>
19631         getlogin tests: Avoid #ifdefs when sharing code between modules.
19632         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
19633         * modules/getlogin-tests (Files): Likewise. Remove
19634         tests/test-getlogin_r.c.
19635         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
19636         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
19637         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
19638         getlogin().
19640 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
19642         getlogin: don’t assume one name per uid
19643         Problem reported by Wolfgang F. Muthmann (Bug#27640).
19644         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
19645         (ttyname): Remove test.
19646         * modules/getlogin_r-tests (ttyname): Remove test.
19647         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
19648         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
19649         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
19650         getlogin rather than getlogin_r.  This avoids code duplication.
19651         (main): Use isatty and fstat rather than ttyname and stat.
19652         Use getpwnam instead of getpwuid, to be portable to test platforms
19653         that have multiple login names for the same uid.
19655 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
19656             Bruno Haible  <bruno@clisp.org>
19658         glob: Fix more memory leaks.
19659         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
19660         returning.
19661         Reported by Tim Rühsen.
19663 2017-07-10  Bruno Haible  <bruno@clisp.org>
19665         Make sure $host and $host_os are defined when used.
19666         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
19667         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
19668         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
19669         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19670         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19671         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
19672         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19673         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
19674         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19675         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19676         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
19677         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
19678         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19679         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
19680         m4_ifdef block.
19682 2017-07-09  Bruno Haible  <bruno@clisp.org>
19684         *printf: Fix cross-compilation guess for Solaris.
19685         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
19686         2010-12-21.
19688 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19689             Bruno Haible  <bruno@clisp.org>
19691         vasnprintf: port to macOS 10.13
19692         Problem reported by comex in:
19693         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
19694         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
19696 2017-07-06  Bruno Haible  <bruno@clisp.org>
19698         imaxdiv tests: Fix logic.
19699         * tests/test-imaxdiv.c (main): Use == instead of =.
19700         Reported by Coverity.
19702 2017-07-06  Bruno Haible  <bruno@clisp.org>
19704         uninorm/filter: Fix use-after-free bug.
19705         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
19706         sortbuf == filter->sortbuf invariant.
19707         Reported by Coverity.
19709 2017-07-06  Bruno Haible  <bruno@clisp.org>
19711         glob: Fix more memory leaks.
19712         * lib/glob.c (glob): Free dirname before returning.
19713         Reported by Coverity and Tim Rühsen.
19715 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19717         parse-datetime: fix uninit var bug
19718         Reported by Bruno Haible in:
19719         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
19720         * lib/parse-datetime.y (parse_datetime2): Do not use
19721         uninitialized.
19723 2017-07-05  Bruno Haible  <bruno@clisp.org>
19725         doc: Update for MSVC 14.
19726         * doc/posix-headers/*.texi: Add info about MSVC 14.
19727         * doc/posix-functions/*.texi: Likewise.
19728         * doc/pastposix-functions/*.texi: Likewise.
19729         * doc/glibc-headers/*.texi: Likewise.
19730         * doc/glibc-functions/*.texi: Likewise.
19732 2017-07-05  Bruno Haible  <bruno@clisp.org>
19734         sched: Fix build failure on native Windows (regression from 2017-06-19).
19735         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
19737 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
19739         stdioext: Port to OpenVMS.
19740         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
19741         * lib/fpending.c (fpending): Remove non-working VMS specific code.
19742         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
19743         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
19744         * lib/fpurge.c (fpurge): Likewise.
19745         * lib/freadable.c (freadable): Likewise.
19746         * lib/freadahead.c (freadahead): Likewise.
19747         * lib/freading.c (freading): Likewise.
19748         * lib/freadptr.c (freadptr): Likewise.
19749         * lib/freadseek.c (freadseek): Likewise.
19750         * lib/fseeko.c (fseeko): Likewise.
19751         * lib/fseterr.c (fseterr): Likewise.
19752         * lib/fwritable.c (fwriteable): Likewise.
19753         * lib/fwriting.c (fwriting): Likewise.
19755 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
19757         glob: Declare variables at the very start of their scope.
19758         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
19759         its separate scope, so the functions will compile on Haiku.
19761 2017-07-01  Bruno Haible  <bruno@clisp.org>
19763         logbl: Work around a glibc bug on PowerPC64LE.
19764         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
19765         numbers.
19766         * doc/posix-functions/logbl.texi: Update.
19768 2017-06-29  Bruno Haible  <bruno@clisp.org>
19770         stat, fstat: Compile stat-w32.c only on platforms that need it.
19771         Suggested by Paul Eggert.
19772         * modules/stat (configure.ac): Request stat-w32.o only on native
19773         Windows.
19774         * modules/fstat (configure.ac): Likewise.
19776 2017-06-25  Bruno Haible  <bruno@clisp.org>
19778         stat: Improve last change.
19779         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
19781 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
19783         stat: port to xlc 12.01
19784         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
19785         12.01 complains "Compilation unit is empty."
19787 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19789         xalloc-oversized: port to icc
19790         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
19791         __builtin_mul_overflow if ICC is defined, as this results in
19792         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
19793         20170213.
19795 2017-06-19  Bruno Haible  <bruno@clisp.org>
19797         classpath: Avoid including config.h twice, as it produces warnings.
19798         Reported by John E. Malmberg <wb8tyw@gmail.com>.
19799         * lib/classpath.h: Conditionalize the include of config.h.
19801 2017-06-19  Bruno Haible  <bruno@clisp.org>
19802             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
19804         sched: Fix compilation failure on OpenVMS.
19805         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
19806         test whether <pthread.h> exists and defines struct sched_param.
19807         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
19809 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19811         diffseq: port to GCC 7 with --enable-gcc-warnings
19812         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
19813         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
19814         not complain about big_snake being defined but not used.
19816 2017-06-15  Bruno Haible  <bruno@clisp.org>
19818         gettext-h: Update theoretical condition for use of variable size arrays.
19819         Reported by Paul Eggert.
19820         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
19821         to include the theoretical condition for availability of variable size
19822         arrays, if we could trust the value of __STDC_VERSION__.
19824 2017-06-12  Bruno Haible  <bruno@clisp.org>
19826         Relicense some modules under LGPLv2+.
19827         Daiki Ueno's approval is in
19828         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
19829         * modules/uniwidth/base (License): Change to LGPLv2+.
19830         * modules/uniwidth/width (License): Likewise.
19832 2017-06-11  Bruno Haible  <bruno@clisp.org>
19834         localename: Fix test failure on DragonFly BSD.
19835         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
19836         like FreeBSD.
19838 2017-06-11  Bruno Haible  <bruno@clisp.org>
19840         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
19841         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
19842         * lib/float.in.h: Likewise.
19843         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
19845 2017-06-11  Bruno Haible  <bruno@clisp.org>
19847         gnulib-tool: Clean up after autotools.
19848         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
19849         useless directory left over by the Autotools.
19851 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19853         getopt-posix: port to glibc 2.25.90
19854         Problem reported by Daniel P. Berrange in:
19855         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
19856         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
19857         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
19858         #undef if __GETOPT_PREFIX is defined.
19860 2017-06-11  Bruno Haible  <bruno@clisp.org>
19862         strtod-obsolete: Fix license.
19863         * modules/strtod-obsolete (License): Change to LGPL.
19865 2017-06-10  Jim Meyering  <meyering@fb.com>
19867         maint: update to work with GCC7's -Werror=implicit-fallthrough=
19868         * lib/savewd.c (FALLTHROUGH): Define.
19869         (savewd_save, savewd_restore): Use this, rather than a comment,
19870         whenever one switch case falls through into the next.
19872 2017-06-08  Bruno Haible  <bruno@clisp.org>
19874         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
19875         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
19876         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
19877         case.
19879 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
19881         doc: remove robots, add prereqs
19882         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
19883         builds.  Simon's robot site does not seem to be up, so remove
19884         mentions of it for now.
19886 2017-06-08  Bruno Haible  <bruno@clisp.org>
19888         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
19889         * gnulib-tool (func_symlink_target): New function, extracted from
19890         func_symlink.
19891         (func_symlink, func_symlink_if_changed): Use it.
19893 2017-06-08  Bruno Haible  <bruno@clisp.org>
19895         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
19896         * gnulib-tool (func_ln_s): Determine cp_src correctly.
19898 2017-06-07  Bruno Haible  <bruno@clisp.org>
19900         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
19901         Reported by John E. Malmberg <wb8tyw@gmail.com> in
19902         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
19903         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
19904         override, pass 2 arguments to getcwd, not 3.
19906 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
19908         same-inode: port better to VMS 8.2 and later
19909         Problem reported by John E. Malmberg in:
19910         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
19911         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
19912         Use the usual POSIX definition.
19913         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
19915 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
19917         error: fix POSIX violation for va_end
19918         Problem reported by Bruno Haible in:
19919         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
19920         * lib/error.c (error_tail): Do not call va_end here.
19921         (error, error_at_line): Call it here instead.
19923 2017-05-28  Bruno Haible  <bruno@clisp.org>
19925         c-strtod: Make it usable in C++ mode.
19926         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
19928 2017-05-25  Jim Meyering  <meyering@fb.com>
19930         quotearg: fix compilation failure due to FALLTHROUGH misuse
19931         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
19932         macro back to /* fall through */ comment.  The macro can apply only
19933         to a following case statement.  Reported by Assaf Gordon.
19935 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
19937         intprops: port to recent icc
19938         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
19939         but does not support __builtin_add_overflow etc.
19940         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
19941         Define to 0.
19943 2017-05-23  Karl Berry  <karl@freefriends.org>
19945         * config/srclist.txt (iconv.m4): sync broken, comment out
19946         until (hopefully) the next gettext release.
19948 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
19950         Remove repeated words in comments.
19952 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19954         fallthrough: reinstate a FALLTHROUGH instance in quotearg
19955         quotearg.c: Reinstate this instance which is significant
19956         when the if branch is not taken.
19958 2017-05-21  Bruno Haible  <bruno@clisp.org>
19960         gnulib-tool: Add options to create hard links.
19961         * gnulib-tool (func_usage): Document options --hardlink,
19962         --local-hardlink, --more-hardlinks.
19963         (func_symlink): Renamed from func_ln.
19964         (func_symlink_if_changed): Renamed from func_ln_if_changed.
19965         (func_hardlink): New function.
19966         (copymode, lcopymode): New variables.
19967         (symbolic, lsymbolic): Remove variables.
19968         (Options): Implement options --hardlink, --local-hardlink,
19969         --more-hardlinks.
19970         (func_should_link): Renamed from func_should_symlink. Set copyaction.
19971         (func_add_file, func_update_file): Update invocation of
19972         func_should_link. Invoke func_hardlink when appropriate.
19973         (func_import): Update comments.
19974         (func_create_testdir): Update invocation of func_should_link. Invoke
19975         func_hardlink when appropriate.
19976         Finally, invoke 'git update-index --refresh' to mitigate the effects of
19977         the hard links on git.
19979 2017-05-20  Bruno Haible  <bruno@clisp.org>
19981         argp: Simplify bit manipulation.
19982         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
19983         on a signed integer type.
19985 2017-05-20  Bruno Haible  <bruno@clisp.org>
19987         Avoid wrong configure results with gcc -fsanitize=address.
19988         This completes the work done on 2016-02-06 on this topic.
19989         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
19990         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19991         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19992         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19993         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
19994         returning.
19995         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
19996         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
19997         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19998         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
19999         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
20000         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
20001         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
20002         free allocated memory before returning.
20003         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20004         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
20005         objects before returning.
20006         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
20007         returning.
20009 2017-05-20  Bruno Haible  <bruno@clisp.org>
20011         gnulib-tool: Don't create hard links between gnulib and its testdirs.
20012         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
20014 2017-05-20  Bruno Haible  <bruno@clisp.org>
20016         argp, tsearch tests: Fix file list.
20017         * modules/argp-tests (Files): Add tests/macros.h.
20018         * modules/tsearch-tests (Files): Likewise.
20020 2017-05-20  Bruno Haible  <bruno@clisp.org>
20022         getopt-posix tests: Remove redundant include.
20023         * tests/test-getopt.h: Don't include "macros.h". It's already included
20024         by tests/test-getopt-main.h.
20026 2017-05-19  Jim Meyering  <meyering@fb.com>
20028         dfa: two small simplifications
20029         * lib/dfa.c (build_state): Avoid repeating longer expressions.
20031 2017-05-18  Jim Meyering  <meyering@fb.com>
20033         fallthrough: update for GCC 7/8
20034         * lib/quotearg.c (FALLTHROUGH): New macro.
20035         Use it whenever one switch case falls through into the next,
20036         replacing "/* Fall through */" comments.  This exposed one
20037         instance of an unwarranted "fall through" comment: unwarranted
20038         because it preceded a "goto" label not a case statement.
20039         * lib/freopen-safer.c (freopen_safer): Likewise.
20040         * lib/fts.c (leaf_optimization_applies): Likewise.
20041         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
20042         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
20043         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
20044         tests/macros.h for the definition.
20045         * tests/test-argp.c (group1_parser): Likewise.
20046         * tests/test-getopt.h (getopt_loop): Likewise.
20048 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20050         argp: fix shift bug
20051         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
20052         behavior on shift overflow, caught by gcc -fsanitize=undefined.
20054         argp: fix pointer-subtraction bug
20055         * lib/argp-help.c (hol_append): Don’t subtract pointers to
20056         different arrays, as this can run afoul of -fcheck-pointer-bounds.
20057         See the thread containing Bruno Haible’s report in:
20058         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
20060 2017-05-19  Bruno Haible  <bruno@clisp.org>
20062         printf-posix tests: Avoid test failure with "gcc --coverage".
20063         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20064         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
20065         than 5000000.
20066         * tests/test-fprintf-posix2.c (main): Likewise.
20068 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20070         closeout: don’t close stderr when sanitizing
20071         * NEWS: Document this.
20072         * lib/closeout.c (__has_feature): New macro, if not already defined.
20073         (SANITIZE_ADDRESS): New constant.
20074         (close_stdout): Don’t close stderr if sanitizing addresses.
20076 2017-05-19  Bruno Haible  <bruno@clisp.org>
20078         get-rusage-data tests: Avoid failure on Linux/glibc.
20079         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
20080         on glibc systems.
20082 2017-05-18  Bruno Haible  <bruno@clisp.org>
20084         localename: Include necessary header files on Cygwin.
20085         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
20086         where NL_LOCALE_NAME is defined.
20088 2017-05-18  Bruno Haible  <bruno@clisp.org>
20090         gettext: Update macros from gettext git.
20091         * m4/intldir.m4: Require Autoconf >= 2.60.
20092         * m4/progtest.m4: Fix typos in copyright notice.
20094 2017-05-18  Bruno Haible  <bruno@clisp.org>
20096         copy-file tests: Fix link error (regression from 2017-05-01).
20097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20098         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
20099         $(LIB_CLOCK_GETTIME).
20101 2017-05-18  Bruno Haible  <bruno@clisp.org>
20103         unicase/special-casing: Fix incompatibility with gperf-3.0.4
20104         (regression from 2017-02-13).
20105         * lib/unicase/special-casing.in.h: Renamed from
20106         lib/unicase/special-casing.h.
20107         * modules/unicase/special-casing (Files): Add
20108         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
20109         (Makefile.am): Add rule for generating unicase/special-casing.h.
20110         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
20111         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
20112         not "special-casing.h".
20113         * lib/unicase/u*.c: Likewise.
20115 2017-05-17  Bruno Haible  <bruno@clisp.org>
20117         README: Don't ask people to read a TeXinfo file.
20118         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20119         * README: Tell people how to read the HTML formatted manual.
20121 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
20123         parse-datetime: Fix memleak
20124         * lib/parse-datetime.y (parse_datetime2): Cleanup on
20125         localtime_rz() failure.
20127 2017-05-16  Bruno Haible  <bruno@clisp.org>
20129         javacomp: Fix handle leak.
20130         Found by Coverity.
20131         * lib/javacomp.c (get_classfile_version): Close fd before returning.
20133 2017-05-16  Bruno Haible  <bruno@clisp.org>
20135         relocate: Make it easier to reclaim allocated memory.
20136         * lib/relocatable.h (relocate2): New declaration/macro.
20137         * lib/relocatable.c (relocate2): New function.
20138         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
20139         relocate2 function.
20140         * lib/localcharset.c (relocate2): Define fallback.
20141         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
20142         allocated memory.
20143         * lib/javaversion.c (relocate2): Define fallback.
20144         (javaexec_version): Invoke relocate2 instead of relocate. Free the
20145         allocated memory.
20147 2017-05-16  Bruno Haible  <bruno@clisp.org>
20149         relocate: Simplify EMX specific code.
20150         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
20151         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
20153 2017-05-16  Bruno Haible  <bruno@clisp.org>
20155         sigpipe tests: Fix file list.
20156         * modules/sigpipe-tests (Files): Add tests/macros.h.
20158 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20160         manywarnings: update for GCC 7
20161         * build-aux/gcc-warning.spec:
20162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
20163         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
20164         requires a non-comment fallthrough attribute.  This is a bit
20165         cleaner than the comment versions.
20166         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
20167         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
20168         Use it whenever one switch case falls through into the next.
20169         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
20170         Use FALLTHROUGH macro.
20172 2017-05-15  Bruno Haible  <bruno@clisp.org>
20174         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
20175         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
20176         @ALLOCA@, not @LTALLOCA@.
20178 2017-05-15  Bruno Haible  <bruno@clisp.org>
20180         sys_select: Avoid "was expanded before it was required" warning.
20181         * modules/sys_select (configure.ac): Require, not invoke,
20182         gl_HEADER_SYS_SELECT.
20184 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20186         gnulib-tool: improve GNU Make debugging
20187         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
20188         Report autoconf diagnostics when it fails, in the output makefile.
20190 2017-05-14  Bruno Haible  <bruno@clisp.org>
20192         stat-time tests: Improve comment.
20193         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
20195 2017-05-14  Bruno Haible  <bruno@clisp.org>
20197         same-inode: Adapt for windows-stat-inodes.
20198         * lib/same-inode.h: Include <sys/types.h>.
20199         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
20200         * modules/same-inode (Depends-on): Add sys_types.
20202 2017-05-14  Bruno Haible  <bruno@clisp.org>
20204         windows-stat-inodes: New module.
20205         * m4/windows-stat-inodes.m4: New file.
20206         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
20207         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
20208         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
20209         (_GL_WINDOWS_STAT_INODES): New macro.
20210         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
20211         (GetFileInformationByHandleExFunc): New variable.
20212         (initialize): Initialize it.
20213         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
20214         st_ino appropriately.
20215         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
20216         a fallback, because it does not provide st_dev and st_ino values.
20217         * modules/fstat (Depends-on): Add 'verify'.
20218         * modules/windows-stat-inodes: New file.
20219         * doc/windows-stat-inodes.texi: New file.
20220         * doc/gnulib.texi: Include it.
20221         * doc/posix-headers/sys_stat.texi: Mention the new module.
20223 2017-05-14  Bruno Haible  <bruno@clisp.org>
20225         stat-time tests: Workaround for native Windows.
20226         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
20227         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
20228         New variables.
20229         (initialize_filenames): New function.
20230         (main): Invoke it.
20231         (cleanup, prepare_test): Update.
20233 2017-05-14  Bruno Haible  <bruno@clisp.org>
20235         stat-time: Adapt for windows-stat-timespec.
20236         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
20237         entire st_ctim field.
20239 2017-05-13  Jim Meyering  <meyering@fb.com>
20241         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
20242         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
20243         file that uses the assume macro, claiming that verify.h is unused.
20245 2017-05-13  Bruno Haible  <bruno@clisp.org>
20247         Use symbolic values for _WIN32_WINNT.
20248         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
20249         * lib/sethostname.c (_WIN32_WINNT): Likewise.
20251 2017-05-13  Bruno Haible  <bruno@clisp.org>
20253         year2038: New module.
20254         * m4/year2038.m4: New file.
20255         * modules/year2038: New file.
20256         * doc/year2038.texi: New file.
20257         * doc/gnulib.texi: Include it.
20259 2017-05-13  Bruno Haible  <bruno@clisp.org>
20261         largefile: Simplify.
20262         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
20263         of _GL_WINDOWS_64_BIT_ST_SIZE.
20265 2017-05-13  Bruno Haible  <bruno@clisp.org>
20267         largefile: Improve and document.
20268         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
20269         the mingw headers already define 'stat' appropriately.
20270         * modules/largefile (Description): Clarify.
20271         * doc/largefile.texi: New file.
20272         * doc/gnulib.texi: Include it.
20273         * doc/posix-headers/sys_types.texi: Update.
20275 2017-05-13  Bruno Haible  <bruno@clisp.org>
20277         truncate: New module.
20278         * lib/unistd.in.h (truncate): New declaration.
20279         * lib/truncate.c: New file.
20280         * m4/truncate.m4: New file.
20281         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
20282         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
20283         REPLACE_TRUNCATE.
20284         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
20285         HAVE_TRUNCATE, REPLACE_TRUNCATE.
20286         * modules/truncate: New file.
20287         * tests/test-unistd-c++.cc (truncate): Test signature.
20288         * doc/posix-functions/truncate.texi: Mention the new module.
20290         * tests/test-truncate.c: New file.
20291         * modules/truncate-tests: New file.
20293 2017-05-13  Bruno Haible  <bruno@clisp.org>
20295         windows-stat-timespec: New module.
20296         * modules/windows-stat-timespec: New file.
20297         * m4/windows-stat-timespec.m4: New file.
20298         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
20299         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
20300         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
20301         fields st_atim, st_mtim, st_ctim.
20302         (st_atime, st_mtime, st_ctime): Define as macros.
20303         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
20304         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
20305         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
20306         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
20307         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
20308         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
20309         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20310         FILETIME to 'struct timespec', not 'time_t'.
20311         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
20312         FILETIME to 'struct timespec', not 'time_t'.
20313         * lib/stat-time.h (STAT_TIMESPEC): Define also if
20314         _GL_WINDOWS_STAT_TIMESPEC.
20315         * doc/windows-stat-timespec.texi: New file.
20316         * doc/gnulib.texi: Include it.
20318 2017-05-13  Bruno Haible  <bruno@clisp.org>
20320         windows-stat-override: New module.
20321         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
20322         definition. Define GNULIB_defined_struct_stat.
20323         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
20324         link error if this symbol is used and the corresponding module is not
20325         in use.
20326         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
20327         GNULIB_OVERRIDES_STRUCT_STAT.
20328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
20329         GNULIB_OVERRIDES_STRUCT_STAT.
20330         * modules/sys_stat (Makefile.am): Substitute
20331         GNULIB_OVERRIDES_STRUCT_STAT.
20332         * modules/windows-stat-override: New file.
20334 2017-05-13  Bruno Haible  <bruno@clisp.org>
20336         fstat: Fix module dependency conditions.
20337         * modules/fstat (Depends-on): Fix typo.
20339 2017-05-13  Bruno Haible  <bruno@clisp.org>
20341         stat, fstat: Complete removal of old native Windows code.
20342         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
20343         * lib/fstat.c: Likewise.
20344         * lib/stat-w32.c: Likewise.
20346 2017-05-13  Bruno Haible  <bruno@clisp.org>
20348         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
20349         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
20351 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
20353         getopt-posix: port to mingw
20354         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
20355         Problem reported by Daniel P. Berrage in:
20356         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
20358 2017-05-11  Bruno Haible  <bruno@clisp.org>
20360         gettimeofday: Increase precision on mingw.
20361         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
20362         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
20363         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
20364         GetSystemTimePreciseAsFileTime based implementation always.
20365         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
20366         mingw.
20368 2017-05-11  Bruno Haible  <bruno@clisp.org>
20370         poll: Fix confusion between SOCKETs and FDs on native Windows.
20371         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
20372         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
20374 2017-05-11  Bruno Haible  <bruno@clisp.org>
20376         doc: Clarify doc about socket functions on native Windows.
20377         This reworks doc that was added on 2008-09-29.
20378         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
20379         clearer wording.
20380         * doc/posix-functions/accept.texi: Use clearer wording.
20381         * doc/posix-functions/bind.texi: Likewise.
20382         * doc/posix-functions/connect.texi: Likewise.
20383         * doc/posix-functions/getpeername.texi: Likewise.
20384         * doc/posix-functions/getsockname.texi: Likewise.
20385         * doc/posix-functions/getsockopt.texi: Likewise.
20386         * doc/posix-functions/ioctl.texi: Likewise.
20387         * doc/posix-functions/listen.texi: Likewise.
20388         * doc/posix-functions/recv.texi: Likewise.
20389         * doc/posix-functions/recvfrom.texi: Likewise.
20390         * doc/posix-functions/send.texi: Likewise.
20391         * doc/posix-functions/sendto.texi: Likewise.
20392         * doc/posix-functions/setsockopt.texi: Likewise.
20393         * doc/posix-functions/shutdown.texi: Likewise.
20394         * doc/posix-functions/socket.texi: Likewise.
20396 2017-05-10  Bruno Haible  <bruno@clisp.org>
20398         poll: Fix link error on native Windows.
20399         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
20401 2017-05-10  Bruno Haible  <bruno@clisp.org>
20403         time: Fix missing initialization of HAVE_TIMEZONE_T.
20404         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
20405         here...
20406         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
20407         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
20408         gl_HEADER_SYS_TIME_H_DEFAULTS.
20409         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
20410         (configure.ac): Remove useless quoting.
20412 2017-05-10  Bruno Haible  <bruno@clisp.org>
20414         Implement a way to opt out from MSVC support, part 2.
20415         * modules/msvc-inval (Include): Document recommended idiom.
20416         * modules/msvc-nothrow (Include): Likewise.
20418         Implement a way to opt out from MSVC support.
20419         This is useful for Emacs.
20420         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
20421         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
20422         * lib/error.c: Likewise.
20423         * lib/fcntl.c: Likewise.
20424         * lib/flock.c: Likewise.
20425         * lib/fstat.c: Likewise.
20426         * lib/fsync.c: Likewise.
20427         * lib/ioctl.c: Likewise.
20428         * lib/isapipe.c: Likewise.
20429         * lib/lseek.c: Likewise.
20430         * lib/nonblocking.c: Likewise.
20431         * lib/poll.c: Likewise.
20432         * lib/select.c: Likewise.
20433         * lib/sockets.h: Likewise.
20434         * lib/sockets.c: Likewise.
20435         * lib/stdio-read.c: Likewise.
20436         * lib/stdio-write.c: Likewise.
20437         * lib/utimens.c: Likewise.
20438         * lib/w32sock.h: Likewise.
20439         * lib/w32spawn.h: Likewise.
20440         * tests/test-cloexec.c: Likewise.
20441         * tests/test-dup-safer.c: Likewise.
20442         * tests/test-dup2.c: Likewise.
20443         * tests/test-dup3.c: Likewise.
20444         * tests/test-fcntl.c: Likewise.
20445         * tests/test-pipe.c: Likewise.
20446         * tests/test-pipe2.c: Likewise.
20447         * lib/ftruncate.c: Likewise.
20448         (chsize_nothrow): Renamed from chsize.
20449         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
20450         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20451         * lib/close.c: Likewise.
20452         * lib/dup.c: Likewise.
20453         * lib/fclose.c: Likewise.
20454         * lib/raise.c: Likewise.
20455         * tests/test-fgetc.c: Likewise.
20456         * tests/test-fputc.c: Likewise.
20457         * tests/test-fread.c: Likewise.
20458         * tests/test-fwrite.c: Likewise.
20459         * lib/getdtablesize.c: Likewise.
20460         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
20461         * lib/isatty.c: Don't include msvc-inval.h if
20462         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
20463         Include <io.h> as an alternative to msvc-nothrow.h.
20464         * lib/read.c: Likewise.
20465         * lib/write.c: Likewise.
20466         * lib/dup2.c: Likewise.
20467         (dup2_nothrow): New function.
20468         (ms_windows_dup2): Use it.
20469         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
20470         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
20471         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
20472         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
20473         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
20474         * m4/read.m4 (gl_FUNC_READ): Likewise.
20475         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
20476         * doc/windows-without-msvc.texi: New file.
20477         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
20478         section.
20480 2017-05-10  Bruno Haible  <bruno@clisp.org>
20482         wait-process: Adjust native Windows support.
20483         * lib/wait-process.c: Use the usual condition for recognizing a native
20484         Windows platform.
20486 2017-05-10  Bruno Haible  <bruno@clisp.org>
20488         doc: New chapter "Native Windows Support".
20489         * doc/gnulib.texi (Native Windows Support): New chapter.
20490         * doc/windows-libtool.texi: Small wording changes.
20491         * doc/windows-sockets.texi: Small wording and formatting changes.
20493 2017-05-10  Bruno Haible  <bruno@clisp.org>
20495         doc: Move section "Library version handling".
20496         * doc/gnulib.texi: Move section "Library version handling"
20497         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
20499 2017-05-10  Bruno Haible  <bruno@clisp.org>
20501         doc: Move section "Running self-tests under valgrind".
20502         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
20503         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
20505 2017-05-10  Bruno Haible  <bruno@clisp.org>
20507         doc: New chapter "Build Infrastructure Modules".
20508         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
20510 2017-05-10  Bruno Haible  <bruno@clisp.org>
20512         Prepare for reordering sections in the manual.
20513         * doc/gnulib.texi: Move several sections to separate files. Include
20514         these files.
20515         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
20516         * doc/obsolete.texi: Likewise.
20517         * doc/extra-tests.texi: Likewise.
20518         * doc/transversal.texi: Likewise.
20519         * doc/namespace.texi: Likewise.
20520         * doc/check-version.texi: Likewise.
20521         * doc/windows-sockets.texi: Likewise.
20522         * doc/windows-libtool.texi: Likewise.
20523         * doc/licenses-texi.texi: Likewise.
20524         * doc/build-automation.texi: Likewise.
20525         * doc/c-locale.texi: Likewise.
20527 2017-05-10  Bruno Haible  <bruno@clisp.org>
20529         Fix instructions how to update manual on www.gnu.org.
20530         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
20532 2017-05-09  Bruno Haible  <bruno@clisp.org>
20534         tzset: Expand comment about TZ problem on native Windows.
20535         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
20536         Paul Eggert.
20537         * lib/ctime.c (rpl_ctime): Likewise.
20538         * lib/localtime.c (rpl_localtime): Likewise.
20539         * lib/mktime.c (mktime): Likewise.
20540         * lib/strftime-fixes.c (rpl_strftime): Likewise.
20541         * lib/wcsftime.c (rpl_wcsftime): Likewise.
20543 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20545         intprops: don’t depend on ‘verify’
20546         Problem reported by Ævar Arnfjörð Bjarmason in:
20547         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
20548         * lib/intprops.h: Do not include verify.h, and move compile-time
20549         checks from here ...
20550         * tests/test-intprops.c (main): ... to here, if they’re not here
20551         already.  Check widths of other standard integer types.
20552         * modules/intprops (Depends-on): Remove ‘verify’.
20554 2017-05-07  Bruno Haible  <bruno@clisp.org>
20556         utimens: On native Windows, support 100ns resolution also if fd < 0.
20557         * lib/utime.in.h: Include <time.h>.
20558         (_gl_utimens_windows): New declaration.
20559         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
20560         (utime): Invoke it.
20561         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
20562         instead of utime.
20563         * modules/utime (Depends-on): Add 'time'.
20565 2017-05-07  Bruno Haible  <bruno@clisp.org>
20567         utimens: Improve error code on native Windows.
20568         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
20569         error code EACCES, not EINVAL.
20571 2017-05-07  Bruno Haible  <bruno@clisp.org>
20573         utime: Handle more Windows error codes.
20574         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
20575         Based on explanations by Billy O'Neal.
20577 2017-05-05  Bruno Haible  <bruno@clisp.org>
20579         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
20580         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
20581         union.
20582         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
20583         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
20584         value of cipher->IV.
20586 2017-05-05  Bruno Haible  <bruno@clisp.org>
20588         wctype-h-c++-tests: Update.
20589         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
20591 2017-05-05  Bruno Haible  <bruno@clisp.org>
20593         wchar-c++-tests: Update.
20594         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
20596 2017-05-05  Bruno Haible  <bruno@clisp.org>
20598         utime-h-c++-tests: New module.
20599         * tests/test-utime-h-c++.cc: New file.
20600         (utime): Declare, missing since 2017-04-30.
20601         * modules/utime-h-c++-tests: New file.
20603 2017-05-05  Bruno Haible  <bruno@clisp.org>
20605         unistd-c++-tests: Update.
20606         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
20607         (read): Declare, missing since 2011-04-15.
20608         (sethostname): Declare, missing since 2011-12-03.
20610 2017-05-05  Bruno Haible  <bruno@clisp.org>
20612         time-c++-tests: Update.
20613         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
20614         (localtime, gmtime): Declare, missing since 2017-04-30.
20615         (ctime): Declare, missing since 2017-04-30.
20616         (strftime): Declare, missing since 2017-04-30.
20617         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
20618         2015-07-24.
20620 2017-05-05  Bruno Haible  <bruno@clisp.org>
20622         sys_resource-c++-tests: New module.
20623         * tests/test-sys_resource-c++.cc: New file.
20624         (getrusage): Declare, missing since 2012-04-13.
20625         * modules/sys_resource-c++-tests: New file.
20627 2017-05-05  Bruno Haible  <bruno@clisp.org>
20629         strings-c++-tests: New module.
20630         * tests/test-strings-c++.cc: New file.
20631         (ffs): Declare, missing since 2011-07-12.
20632         * modules/strings-c++-tests: New file.
20634 2017-05-05  Bruno Haible  <bruno@clisp.org>
20636         string-c++-tests: Update.
20637         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
20638         (ffsll): Declare, missing since 2011-07-15.
20640 2017-05-05  Bruno Haible  <bruno@clisp.org>
20642         stdlib-c++-tests: Update.
20643         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
20644         2011-10-18.
20645         (ptsname_r): Declare, missing since 2011-11-07.
20646         (qsort_r): Declare, missing since 2014-08-29.
20647         (random, srandom, initstate, setstate): Declare, missing since
20648         2012-01-14.
20649         (secure_getenv): Declare, missing since 2013-02-05.
20651 2017-05-05  Bruno Haible  <bruno@clisp.org>
20653         stdio-c++-tests: Update.
20654         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
20656 2017-05-05  Bruno Haible  <bruno@clisp.org>
20658         signal-h-c++-tests: Update.
20659         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
20661 2017-05-05  Bruno Haible  <bruno@clisp.org>
20663         math-c++-tests: Update.
20664         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
20665         (fma): Declare, missing since 2011-10-17.
20666         (fmal): Declare, missing since 2011-10-17.
20668 2017-05-05  Bruno Haible  <bruno@clisp.org>
20670         locale-c++-tests: Update.
20671         * tests/test-locale-c++.cc (localeconv): Declare, missing since
20672         2012-03-25.
20674 2017-05-05  Bruno Haible  <bruno@clisp.org>
20676         inttypes-c++-tests: New module.
20677         * tests/test-inttypes-c++.cc: New file.
20678         (strtoimax): Declare, missing since 2012-01-05.
20679         (strtoumax): Declare, missing since 2012-01-05.
20680         * modules/inttypes-c++-tests: New file.
20682 2017-05-05  Bruno Haible  <bruno@clisp.org>
20684         dirent-c++-tests: Update.
20685         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
20686         (rewinddir): Declare, missing since 2011-09-13.
20687         (dirfd): Declare, missing since 2010-03-08.
20689 2017-05-04  Bruno Haible  <bruno@clisp.org>
20691         argp: Fix mistake in 2017-04-23 commit.
20692         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
20693         assume that strerror_r returns 'int', not 'char *'.
20695 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
20697         argp: Fix typo.
20698         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
20700 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
20702         utimens: port to Emacs + MS-Windows
20703         Skip the new MS-Windows-specific code if Emacs.
20704         * lib/utimens.c [EMACS_CONFIGUATION]:
20705         Avoid new MS-Windows-specific code.
20706         (USE_SETFILETIME): New macro.
20707         (fdutimens): Use it.
20709 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
20711         tzset: update doc for TZ problems on MS-Windows
20712         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
20713         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
20714         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
20715         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
20716         * doc/posix-functions/wcsftime.texi:
20717         Mention some issues with TZ under MS-Windows.
20719 2017-05-01  Bruno Haible  <bruno@clisp.org>
20721         copy-file: Fix build error on mingw.
20722         * modules/copy-file (Depends-on): Add 'close'.
20724 2017-05-01  Bruno Haible  <bruno@clisp.org>
20726         tzset: Work around TZ problem on native Windows.
20727         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
20728         Windows, set REPLACE_TZSET to 1.
20729         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
20730         invoke '_tzset' instead of 'tzset'.
20731         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
20733         * modules/time_rz (Depends-on): Add tzset.
20734         * lib/time_rz.c (tzset): Remove fallback definition.
20735         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
20737 2017-05-01  Bruno Haible  <bruno@clisp.org>
20739         mktime: Fix dependencies.
20740         * modules/mktime (Depends-on): Add 'time'.
20742 2017-05-01  Bruno Haible  <bruno@clisp.org>
20744         New module 'localtime-buffer', split off from module 'gettimeofday'.
20745         * lib/localtime-buffer.h: New file.
20746         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
20747         * lib/time.in.h (tzset): New declaration.
20748         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
20749         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
20750         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
20751         moved to lib/localtime-buffer.c or lib/tzset.c.
20752         * m4/localtime-buffer.m4: New file.
20753         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
20754         HAVE_TZSET, REPLACE_TZSET.
20755         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
20756         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
20757         gl_LOCALTIME_BUFFER_NEEDED.
20758         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
20759         since 2007-01-18.
20760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
20761         tzset.
20762         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
20763         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
20764         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
20765         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
20766         * modules/localtime-buffer: New file.
20767         * modules/time (Depends-on): Remove 'gettimeofday'.
20768         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
20769         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
20770         * modules/tzset (Description): Enable hyperlink to POSIX spec.
20771         (Files): Add lib/tzset.c.
20772         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
20773         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
20774         gl_TIME_MODULE_INDICATOR.
20775         * modules/gettimeofday (Depends-on): Add localtime-buffer.
20777 2017-05-01  Bruno Haible  <bruno@clisp.org>
20779         copy-file: Preserve sub-second time stamps.
20780         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
20781         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
20782         transport the time stamps from the original file to the destination
20783         file.
20784         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
20785         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
20786         utime-h.
20788 2017-05-01  Bruno Haible  <bruno@clisp.org>
20790         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
20791         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
20792         also on MSVC.
20793         Reported by Eli Zaretskii <eliz@gnu.org>.
20795 2017-05-01  Bruno Haible  <bruno@clisp.org>
20797         wchar: Fix compilation error with the original mingw.org mingw.
20798         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
20799         <stddef.h> instead.
20800         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
20801         gl_WCTYPE_H.
20802         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
20803         gl_TYPE_WINT_T_PREREQ instead.
20804         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
20805         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
20806         Reported by Eli Zaretskii <eliz@gnu.org>.
20808 2017-04-30  Bruno Haible  <bruno@clisp.org>
20810         utimecmp: Add support for native Windows.
20811         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
20813 2017-04-30  Bruno Haible  <bruno@clisp.org>
20815         utimens: Add support for native Windows.
20816         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
20817         (fdutimens): Provide a native Windows implementation, like utime.c with
20818         added tv_nsec support.
20819         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
20820         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
20822 2017-04-30  Bruno Haible  <bruno@clisp.org>
20824         wcsftime: New module.
20825         * lib/wchar.in.h (wcsftime): New declaration.
20826         * lib/wcsftime.c: New file.
20827         * m4/wcsftime.m4: New file.
20828         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
20829         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
20830         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
20832         HAVE_WCSFTIME, REPLACE_WCSFTIME.
20833         * modules/wcsftime: New file.
20834         * doc/posix-functions/wcsftime.texi: Mention the new module.
20836 2017-04-30  Bruno Haible  <bruno@clisp.org>
20838         strftime-fixes: New module.
20839         * lib/time.in.h (strftime): New declaration.
20840         * lib/strftime-fixes.c: New file.
20841         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
20842         (gl_FUNC_STRFTIME): Remove macro.
20843         * m4/strftime-fixes.m4: New file.
20844         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
20845         REPLACE_STRFTIME.
20846         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
20847         REPLACE_STRFTIME.
20848         * modules/strftime-fixes: New file.
20849         * doc/posix-functions/strftime.texi: Mention the new module.
20851 2017-04-30  Bruno Haible  <bruno@clisp.org>
20853         mktime: Work around TZ problem on native Windows.
20854         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
20855         from the native Windows workaround.
20856         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
20857         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
20858         'guessing no'.
20859         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
20860         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
20861         NEED_MKTIME_WINDOWS.
20862         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
20863         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
20864         NEED_MKTIME_INTERNAL.
20865         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
20866         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
20867         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
20868         not REPLACE_MKTIME.
20869         * doc/posix-functions/mktime.texi: Mention the native Windows
20870         workaround.
20872 2017-04-30  Bruno Haible  <bruno@clisp.org>
20874         localtime: New module.
20875         * lib/time.in.h (localtime): Declare also if requested by module
20876         'localtime'.
20877         * lib/localtime.c: New file.
20878         * m4/localtime.m4: New file.
20879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
20880         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
20881         * modules/localtime: New file.
20882         * doc/posix-functions/localtime.texi: Mention the new module.
20884 2017-04-30  Bruno Haible  <bruno@clisp.org>
20886         ctime: New module.
20887         * lib/time.in.h (ctime): New declaration.
20888         * lib/ctime.c: New file.
20889         * m4/ctime.m4: New file.
20890         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
20891         REPLACE_CTIME.
20892         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
20893         * modules/ctime: New file.
20894         * doc/posix-functions/ctime.texi: Mention the new module.
20896 2017-04-30  Bruno Haible  <bruno@clisp.org>
20898         gettimeofday: Provide higher resolution on native Windows.
20899         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
20900         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
20901         (initialize): Initialize it.
20902         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
20903         'struct timeval'. Don't use _ftime().
20904         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
20905         <sys/timeb.h> and _ftime.
20907 2017-04-30  Bruno Haible  <bruno@clisp.org>
20909         Document the problem with the Cygwin environment variable TZ.
20910         * doc/posix-functions/tzset.texi: Add note about TZ.
20911         * doc/posix-functions/ctime.texi: Likewise.
20912         * doc/posix-functions/localtime.texi: Likewise.
20913         * doc/posix-functions/mktime.texi: Likewise.
20914         * doc/posix-functions/strftime.texi: Likewise.
20915         * doc/posix-functions/wcsftime.texi: Likewise.
20916         * doc/pastposix-functions/ftime.texi: Likewise.
20918 2017-04-30  Bruno Haible  <bruno@clisp.org>
20920         utime-tests: New module.
20921         * tests/test-utime.c: New file, based on tests/test-utimens.h.
20922         * tests/test-utimens-common.h: Include <sys/stat.h>.
20923         * modules/utime-tests: New file.
20925 2017-04-29  Bruno Haible  <bruno@clisp.org>
20927         utime: New module.
20928         * lib/utime.in.h: Add comment for snippets.
20929         (utime): New declaration.
20930         * lib/utime.c: New file.
20931         * m4/utime.m4: New file.
20932         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
20933         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
20934         REPLACE_UTIME.
20935         * modules/utime-h (Depends-on): Add snippets.
20936         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
20937         Insert snippets.
20938         * modules/utime: New file.
20939         * doc/posix-functions/utime.texi: Mention the new module.
20941 2017-04-29  Bruno Haible  <bruno@clisp.org>
20943         utime-h: Modernize handling of 'struct utimbuf'.
20944         * lib/utime.in.h: Include next <utime.h> if it exists.
20945         (utimbuf): Define to _utimbuf on native Windows.
20946         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
20947         Set UTIME_H on native Windows.
20948         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
20949         * modules/utime-h (Depends-on): Add include_next.
20950         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
20951         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
20953         * lib/utimens.c (utimbuf): Remove fallback definition.
20954         * m4/utimens.m4 (gl_UTIMENS): Don't require
20955         gl_CHECK_TYPE_STRUCT_UTIMBUF.
20956         * m4/utimbuf.m4: Remove file.
20957         * modules/utimens (Files): Remove m4/utimbuf.m4.
20959 2017-04-29  Bruno Haible  <bruno@clisp.org>
20961         Make use of module 'utime-h'.
20962         * modules/copy-file (Depends-on): Add utime-h.
20963         * lib/copy-file.c: Assume that <utime.h> exists.
20964         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
20966         * modules/utimens (Depends-on): Add utime-h.
20967         * lib/utimens.c: Assume that <utime.h> exists.
20969 2017-04-29  Bruno Haible  <bruno@clisp.org>
20971         utime-h: New module.
20972         * m4/utime_h.m4: New file.
20973         * lib/utime.in.h: New file.
20974         * modules/utime-h: New file.
20975         * doc/posix-headers/utime.texi: Mention the new module.
20977         * tests/test-utime-h.c: New file.
20978         * modules/utime-h-tests: New file.
20980 2017-04-30  Bruno Haible  <bruno@clisp.org>
20982         Fix a few typos.
20983         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
20984         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
20985         * doc/posix-functions/fstat.texi: Fix a plural typo.
20986         * doc/posix-functions/stat.texi: Likewise.
20987         * m4/include_next.m4: Update comments.
20989 2017-04-29  Bruno Haible  <bruno@clisp.org>
20991         error: Fix mistake in 2017-04-23 commit.
20992         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
20993         assume that strerror_r returns 'int', not 'char *'.
20995 2017-04-29  Bruno Haible  <bruno@clisp.org>
20997         stat: Fix time_t values and other problems on native Windows platforms.
20998         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
20999         implementations of stat().
21000         * lib/stat.c: Include filename.h instead of dosname.h. Include
21001         malloca.h, stat-w32.h.
21002         (is_unc_root): New function.
21003         (rpl_stat): New implementation for native Windows. Remove
21004         REPLACE_FUNC_STAT_DIR code.
21005         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
21006         Don't define REPLACE_FUNC_STAT_DIR.
21007         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
21008         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21009         (Depends-on): Remove dosname. Add filename, malloca.
21010         (configure.ac): Also compile lib/stat-w32.c.
21012 2017-04-29  Bruno Haible  <bruno@clisp.org>
21014         fstat: Fix time_t values on native Windows platforms.
21015         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
21016         * lib/stat-w32.h: New file.
21017         * lib/stat-w32.c: New file.
21018         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
21019         stat-w32.h instead.
21020         (fstat_nothrow): Remove function.
21021         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
21022         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
21023         always.
21024         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
21025         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
21026         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
21027         (configure.ac): Also compile lib/stat-w32.c.
21029 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21031         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
21032         Problem reported by Assaf Gordon and Gavin Smith in:
21033         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
21034         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
21035         #define this, too.
21037 2017-04-29  Bruno Haible  <bruno@clisp.org>
21039         strerror_r-posix: Fixes for MSVC 14.
21040         * lib/strerror_r.c: Include <stdarg.h>.
21041         (strerror_r): Provide error messages for errno values 100...140.
21042         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
21044 2017-04-28  Bruno Haible  <bruno@clisp.org>
21046         noreturn: New module.
21047         * lib/noreturn.h: New file.
21048         * modules/noreturn: New file.
21049         * tests/test-noreturn.c: New file.
21050         * modules/noreturn-tests: New file.
21051         * tests/test-noreturn-c++.cc: New file.
21052         * modules/noreturn-c++-tests: New file.
21054 2017-04-27  Bruno Haible  <bruno@clisp.org>
21056         wctype-h: Fix compilation error with the original mingw.org mingw.
21057         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
21058         HAVE_CRTDEFS_H.
21059         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
21060         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
21061         <stddef.h> instead.
21062         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
21064 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21066         nap.h: Fix compilation on non windows platforms
21067         * tests/nap.h: Move misplaced endif.
21069 2017-04-26  Pádraig Brady  <P@draigBrady.com>
21070         and Paul Eggert  <eggert@cs.ucla.edu>
21072         time_rz: fix heap buffer overflow vulnerability
21073         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
21074         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
21075         whether there is enough buffer space available, thus avoiding
21076         the problematic promotion of signed to unsigned causing an invalid
21077         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
21078         the start of the buffer.
21079         * tests/test-parse-datetime.c (main): Add a test case written by
21080         Paul Eggert, which overwrites enough of the heap so that
21081         standard glibc will fail with "free(): invalid pointer"
21082         without the patch applied.
21084 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21086         xalloc: add missing integer overflow check
21087         * lib/xalloc.h (x2nrealloc): Also check for multiplication
21088         overflow when P is null.
21090 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21092         parse-datetime: make it standalone
21093         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
21094         (_GL_ATTRIBUTE_FORMAT): New macro.
21095         These are needed to get './gnulib-tool --test parse-datetime' to work.
21097 2017-04-23  Bruno Haible  <bruno@clisp.org>
21099         nap.h: Port to native Windows.
21100         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
21101         use nap_fd instead. On native Windows, close and reopen nap_fd.
21102         (nap_works): Don't compare the ctimes, because on native Windows, these
21103         are the creation times.
21104         (nap): Update.
21106 2017-04-23  Bruno Haible  <bruno@clisp.org>
21108         nap.h: Fix logic.
21109         * tests/nap.h (nap): Avoid signed integer overflow in loop.
21111 2017-04-23  Bruno Haible  <bruno@clisp.org>
21113         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
21114         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
21115         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
21116         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
21117         * lib/argp-help.c (__argp_failure): Likewise.
21119 2017-04-23  Bruno Haible  <bruno@clisp.org>
21121         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
21122         * m4/strerror_r.m4: Revert changes since 2016-10-16.
21123         * lib/strerror_r.c: Likewise.
21125 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21127         Target a C99 subset, not a C89 subset
21128         For many years Gnulib has targeted C89 and has resisted using C99
21129         features, as some Gnulib-using programs still wanted to target
21130         C89.  As this no longer seems to be the case, relax the porting
21131         requirements to allow some C99 features.  This is merely a change
21132         to the documentation, to give other Gnulib developers a chance to
21133         weigh in on the topic.
21134         * doc/extern-inline.texi (extern inline):
21135         * doc/gnulib-readme.texi (Portability guidelines):
21136         * doc/gnulib-tool.texi (Initial import):
21137         * doc/gnulib.texi (Header files):
21138         Modernize to talk about C99 and C11 instead of C89 and C99.
21139         * doc/gnulib-readme.texi (Portability guidelines):
21140         Now a section, not merely a subsection, so that it
21141         can be split up.  Modernize a bit.
21142         (C language versions, C99 features assumed)
21143         (C99 features avoided):
21144         New sections.
21146 2017-04-23  Bruno Haible  <bruno@clisp.org>
21148         doc: New section "Modules that modify the way other modules work".
21149         * doc/gnulib.texi (Modules that modify the way other modules work): New
21150         section.
21152 2017-04-23  Bruno Haible  <bruno@clisp.org>
21154         stat-time: Update comments.
21155         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
21156         * tests/test-utimens-common.h: Add reference regarding st_ctime on
21157         Windows.
21159 2017-04-01  Bruno Haible  <bruno@clisp.org>
21161         glob: Fix more memory leaks.
21162         * lib/glob.c (glob): Free allocated memory before returning.
21163         Reported by Coverity via Tim Rühsen.
21165 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21167         poll: improve fast check for out-of-range NFD
21168         * lib/poll.c: Do not include intprops.h.
21169         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
21170         * modules/poll (Depends-on): Remove intprops.
21172         ftoastr: cite a newer paper
21173         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
21174         instead of Loitsch 2010.
21176 2017-04-22  Bruno Haible  <bruno@clisp.org>
21178         poll: Enable argument check also in the Windows implementation.
21179         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
21180         Reported by Paul Eggert.
21182 2017-04-22  Bruno Haible  <bruno@clisp.org>
21184         getlogin_r: Work around bug in Mac OS X 10.12.
21185         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
21186         bug.
21187         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
21188         given size minus 1, call getlogin_r a second time, on a larger buffer.
21189         * modules/getlogin_r (Depends-on): Add malloca.
21190         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
21192 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21194         parse-datetime: fix %z and prefer signed int
21195         %z problem reported by Pádraig Brady in:
21196         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
21197         While fixing it, I decided to prefer signed ints to size_t, as
21198         they are less error-prone (e.g., ubsan catches overflow).
21199         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
21200         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
21201         counts, since signed integers make for better debugging.
21202         (date): Don’t assume %z works in printf formats.
21203         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
21204         sizes of buffers known to be small, e.g., because we’re using snprintf.
21205         (parse_datetime2): Simplify call to debug_mktime_not_ok.
21207 2017-04-22  Bruno Haible  <bruno@clisp.org>
21209         *printf: Work around rounding bug on Mac OS X.
21210         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
21211         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
21212         Mac OS X and FreeBSD.
21213         * doc/glibc-functions/*printf.texi: Likewise.
21215 2017-04-22  Bruno Haible  <bruno@clisp.org>
21217         vasnprintf tests: Avoid warnings.
21218         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
21219         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
21220         test.
21222 2017-04-22  Bruno Haible  <bruno@clisp.org>
21224         sys_file tests: Avoid warning.
21225         * tests/test-sys_file.c (main): Add a default clause to the switch
21226         statement.
21228 2017-04-22  Bruno Haible  <bruno@clisp.org>
21230         sethostname: Update doc.
21231         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
21232         Mac OS X.
21234 2017-04-22  Bruno Haible  <bruno@clisp.org>
21236         quotearg tests: Avoid warnings.
21237         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
21238         false.
21240 2017-04-22  Bruno Haible  <bruno@clisp.org>
21242         poll: Enable argument check.
21243         * lib/poll.c: Include intprops.h.
21244         (poll): Check value of nfd correctly.
21245         * modules/poll (Depends-on): Add intprops.
21247 2017-04-22  Bruno Haible  <bruno@clisp.org>
21249         get-rusage-data: Avoid warnings on Mac OS X.
21250         * lib/get-rusage-data.c: On Mac OS X, don't define
21251         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
21252         (get_rusage_data) [Mac OS X]: Just return 0.
21254 2017-04-22  Bruno Haible  <bruno@clisp.org>
21256         xbinary-io: Fix build error.
21257         * modules/xbinary-io (Depends-on): Add gettext-h.
21258         * lib/xbinary-io.c: Include gettext.h and define _().
21259         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
21260         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
21262 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21264         parse-datetime: overflow and debug cleanups
21265         This long patch was triggered by this bug report from Ruediger Meier:
21266         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
21267         I fixed the bug he noted, then found some others nearby, and then
21268         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
21269         up some of the code to follow GNU standards while I was at it.
21270         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
21271         use c_isdigit.
21272         (EPOCH_YEAR): Remove; unused.
21273         (TM_YEAR_BASE): Now an enum rather than a macro.
21274         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
21275         time zone offset, since timezones now are in terms of seconds and
21276         not minutes.
21277         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
21278         appropriate.  Verify that intmax_t is wide enough.
21279         (time_overflow, time_zone_str): New functions, used to deal
21280         more reliably with overflow.
21281         (dbg_printf): Add printf attribute, to help catch integer width errors.
21282         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
21283         (%union, to_hour, yylex, parse_datetime2):
21284         Use intmax_t instead of long int and/or long_time_t.
21285         All uses changed.
21286         (DBGBUFSIZE): Move earlier.
21287         (relative_time, set_hhmmss, parser_control):
21288         Just use int for nanoseconds and for time zones; that’s wide enough.
21289         (parser_control): Use bool for members like year_seen that can
21290         be booleans instead of counters.  All uses changed.
21291         Remove debug_default_input_timezone; no longer needed.
21292         All uses removed.
21293         (apply_relative_time): Return a bool overflow flag.
21294         All uses changed to check for overflow.
21295         (apply_relative_time, zone, date, relunit, relunit_snumber)
21296         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
21297         Check for integer overflow portably.
21298         (str_days): Use just int for N, as it’s wide enough.
21299         Prefer 2D char arrays to arrays of char * when it looks like
21300         2D is a win on typical platforms.
21301         Prefer snprintf to strncpy/strncat, for simplicity;
21302         all buffers are smaller than INT_MAX so this is safe.
21303         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
21304         (debug_print_current_time): Don’t assume tv_nsec is of type long,
21305         as this is not true on x32.  Output "." before any nanoseconds.
21306         (debug_print_current_time, parse_datetime2):
21307         Output local zones using a more-consistent format.
21308         (debug_print_current_time, date, parse_datetime2):
21309         (main) [TEST]:
21310         Don’t assume time_t is the same width as long.
21311         (print_rel_part): New function, replacing ...
21312         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
21313         (debug_print_relative_time): Use bool for boolean.
21314         (local_zone): dsts_seen now counts only tDST instances.
21315         (date): Fix printf of size_t to use %z.  Do not assume numeric
21316         tokens have negative values merely because the context suggests
21317         a syntax with "-" separating tokens.
21318         (time_zone_hhmm): Return bool success indicator, which checks for
21319         overflow.  Store result into PC->time_zone instead.  All callers
21320         changed.
21321         (tm_year_str): New function.  Return a bool success indicator and
21322         store the result into a buffer.  All callers changed.  Output the
21323         numerically correct string even if adding 1900 to the year would
21324         overflow.
21325         (to_tm_year): New function, replacing the old to_year.  All
21326         callers changed.
21327         (tm_diff): Sync with glibc.
21328         (lookup_word): Use to_uchar instead of doing it by hand.
21329         (TZBUFSIZE): Now local to the only function that needs it.
21330         (debug_strfdatetime): Simplify now that time zones are int seconds.
21331         (debug_strfdate): Work even if tm_year + 1900 would overflow.
21332         (get_effective_timezone): Remove.  All uses removed.
21333         (parse_datetime2): Use fprintf in pieces instead of snprintfing
21334         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
21335         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
21336         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
21337         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
21338         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
21339         * modules/parse-datetime (Depends-on): Add inttypes.
21341 2017-04-21  Bruno Haible  <bruno@clisp.org>
21343         gettext-h: Avoid -Wundef warning.
21344         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
21345         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
21346         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
21348 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
21350         error: Avoid "function declaration isn't a prototype" warning.
21351         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
21353 2017-04-21  Bruno Haible  <bruno@clisp.org>
21355         vasnprintf: Fix for MSVC 14.
21356         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
21357         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
21358         of !HAVE_SNPRINTF_RETVAL_C99.
21360 2017-04-21  Bruno Haible  <bruno@clisp.org>
21362         mbrtowc tests: Fix test failures on MSVC 14.
21363         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
21364         behaviour for invalid input.
21366 2017-04-21  Bruno Haible  <bruno@clisp.org>
21368         mbsinit: Fix for MSVC 14.
21369         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
21370         implementation that is in sync with mbrtowc.c. On other platforms, use
21371         an adequate ad-hoc implementation.
21373 2017-04-21  Bruno Haible  <bruno@clisp.org>
21375         Fix test-mbrtowc5.sh failure on native Windows.
21376         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
21377         "C".
21379 2017-04-21  Bruno Haible  <bruno@clisp.org>
21381         Avoid accidental use of native Windows APIs on Cygwin.
21382         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
21383         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
21384         * lib/localename.c (WINDOWS_NATIVE): Likewise.
21386 2017-04-20  Bruno Haible  <bruno@clisp.org>
21388         Remove red warnings from the generated MODULES.html.
21389         * modules/fcntl (Description): Disambiguate function references.
21390         * modules/getcwd-lgpl (Description): Likewise.
21391         * modules/hostent (Description): Likewise.
21392         * modules/servent (Description): Likewise.
21393         * modules/tempname (Description): Likewise.
21395 2017-04-20  Bruno Haible  <bruno@clisp.org>
21397         verify tests: Fix spurious failure with parallel make.
21398         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
21399         EXTRA_PROGRAMS.
21400         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
21401         * tests/test-verify-try.c: New file.
21402         * modules/verify-tests (Files): Add it.
21403         (EXTRA_PROGRAMS): Add test-verify-try.
21404         (MOSTLYCLEANFILES): Update accordingly.
21405         Reported by Adam James Stewart <ajstewart@anl.gov>.
21407 2017-04-18  Bruno Haible  <bruno@clisp.org>
21409         vma-iter: Fix compilation error on Solaris 7.
21410         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
21411         like on IRIX, OSF/1.
21412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21414 2017-04-18  Bruno Haible  <bruno@clisp.org>
21416         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
21417         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
21418         included.
21419         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
21420         <sys/procfs.h>.
21421         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
21422         <sys/procfs.h> cannot be included.
21423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21425 2017-04-18  Bruno Haible  <bruno@clisp.org>
21427         getopt-gnu: Add comments.
21428         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
21429         * modules/getopt-gnu (configure.ac): Likewise.
21431 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
21433         regex: port better to Solaris 10
21434         Solaris 10 <locale.h> includes <libintl.h>, which #defines
21435         gettext, and this causes a double #define.
21436         Problem reported by Gavin Smith in:
21437         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
21438         * lib/regex_internal.h (gettext): #undef before #defining.
21440 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21442         intprops: improve comments
21443         * lib/intprops.h: Improve and shorten commentary.
21444         For the record, if we ever run into a pedantic compiler that
21445         behaves differently from GCC when converting an out-of-range value
21446         to a signed integer, we can work around the problem with something
21447         like the following code, where UCT is the signed counterpart of T
21448         (UCT is sometimes narrower than UT) and all callers are changed
21449         accordingly:
21450         #if __SUNPRO_C <= 0x5120
21451         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21452            ((t) ((ut) (a) op (ut) (b)))
21453         #else
21454         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
21455            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
21456             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
21457                + TYPE_MINIMUM (t)) \
21458             : (t) (uct) ((ut) (a) op (ut) (b)))
21459         #endif
21461 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
21463         intprops: try to avoid tickling similar bugs
21464         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
21465         needs to be the same width as T; it can be wider.
21466         Change callers so that UT is at least as wide as unsigned int,
21467         as I suspect that this is less likely to run into compiler bugs.
21469         intprops: port to Oracle Studio 12.3 x86
21470         Problem reported by Gavin Smith in:
21471         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
21472         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
21473         Convert unsigned to signed via the usual rather than the standard way,
21474         to avoid a compiler bug in Oracle Studio 12.3 x86.
21476 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21478         getopt: prefer - to _ in new file names
21479         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
21480         * lib/getopt-core.h: Rename from lib/getopt_core.h.
21481         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
21482         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
21483         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
21484         All uses changed.
21486         getopt: port recent getopt changes to macOS
21487         Problem reported by Harald Maier (Bug#26398).
21488         The macOS C compiler uses __nonnull for its own purposes and that
21489         clashes with glibc's __nonnull.
21490         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
21491         * lib/getopt_cdefs.in.h (__nonnull): Remove.
21492         * lib/getopt_core.h (getopt):
21493         * lib/getopt_ext.h (getopt_long, getopt_long_only):
21494         Use _GL_ARG_NONNULL, not __nonnull.
21495         * lib/unistd.in.h: Move snippet hooks to before where the getopt
21496         .h files are included, so that _GL_ARG_NONNULL is defined in time.
21497         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
21498         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
21500 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21502         getopt-gnu: omit some duplicate code
21503         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
21504         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
21505         gnulib-tool already does this.
21506         * modules/getopt-gnu (configure.ac): Omit code duplicated from
21507         getopt-posix, which we depend on.
21509         getopt-posix: use angle-bracket include
21510         * lib/getopt1.c: Include <config.h>, not "config.h".
21512 2017-04-06  Zack Weinberg  <zackw@panix.com>
21514         getopt: annotate files with relationship to glibc
21516         As the final act in this patchset, adjust the message at the top of
21517         each file to indicate which files are synced with glibc.  (This has
21518         already been done for most of the headers.)
21520         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
21521         Mention in top-of-file boilerplate that these files are shared
21522         between glibc and gnulib.
21525         getopt: split up getopt.in.h and eliminate __need_getopt
21527         Over in glibc, all of the __need macros are being phased out in favor
21528         of small headers that declare only the necessary components, as this
21529         is much simpler and less prone to bugs.  As getopt is shared with
21530         glibc, gnulib needs to do the same for __need_getopt.
21532         __need_getopt is misnamed; what it really means is "we want only the
21533         getopt features specified in POSIX, not the GNU extensions".  glibc
21534         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
21535         these files can be shared verbatim with gnulib.  The portability
21536         wrapper, on the other hand, they have renounced altogether; glibc's
21537         getopt.h will no longer be shared with gnulib at all.  In exchange,
21538         certain glibc-specific quirks (having to do with __posix_getopt) no
21539         longer need appear in gnulib's headers at all.
21541         This patch merges getopt_core.h and getopt_ext.h from glibc, and
21542         splits up the current gnulib-side portability wrapper into three
21543         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
21544         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
21545         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
21546         unistd.in.h just use them.  All new files are clearly marked with
21547         whether they are shared with glibc.
21549         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
21550         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
21551         with glibc, and ...
21552         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
21553         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
21554         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
21555         instead of defining __need_getopt and including the full getopt.h.
21557         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
21558         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
21559         * modules/getopt-posix (Files): Add new headers and sort list.
21560         (Depends-on): No longer need snippet/arg-nonnull.
21561         (Makefile.am): Generate getopt_cdefs.h.
21564         getopt: better handling of ambiguous options
21566         glibc's getopt uses alloca to construct a linked list of possibilities
21567         for an "ambiguous" long option.  In gnulib, malloc should be used
21568         instead.  Providing for both cases complicates things a fair bit.
21570         This patch rewrites ambiguous-option handling to use a boolean vector
21571         instead of a linked list.  There is then only one allocation that
21572         might need freeing; in glibc it can honor __libc_use_alloca as usual,
21573         and in gnulib we define __libc_use_alloca to always be false, so we
21574         don't need ifdefs in the middle of the function.  This should also be
21575         slightly more efficient in the normal case of long options being fully
21576         spelled out -- I think most people aren't even aware they _can_
21577         sometimes abbreviate long options.
21579         One interesting consequence is that the list of possibilities is now
21580         printed in exactly the order they appear in the list of long options,
21581         instead of the first possibility being shuffled to the end.
21583         (The patch looks bigger than it really is because there's a fair bit
21584         of reindentation and code rearrangement.)
21586         * lib/getopt.c: When used standalone, define __libc_use_alloca
21587         as always false and alloca to abort if called.
21588         (process_long_option): Rewrite handling of ambiguous long options
21589         to use a single boolean vector, not a linked list; use
21590         __libc_use_alloca to decide whether to allocate this using alloca.
21593         getopt: refactor long-option handling
21595         There were two copies of the bulk of the code to handle long options.
21596         Now there is only one.
21598         This change temporarily removes the logic to avoid using alloca when
21599         standalone; the next patch in the series will restore it.
21601         * lib/getopt.c (process_long_option): New function split out
21602         from _getopt_internal_r.
21603         (_getopt_internal_r): Replace both copies of the long-option
21604         processing code with calls to process_long_option.
21607         getopt: tidy up _getopt_initialize a bit
21609         _getopt_data.__posixly_correct is completely redundant to
21610         _getopt_data.__ordering, and some work that logically belongs in
21611         _getopt_initialize was being done by _getopt_internal_r, making the
21612         code harder to understand.
21614         As a side effect, getenv will no longer be called if the first
21615         character of the options string is '+' or '-', which is probably a
21616         Good Thing.  (Perhaps we should have a flag character that
21617         specifically asks for the permutation behavior?)
21619         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
21620         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
21621         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
21624         getopt: merge from glibc: repetition reduction
21626         The definitions of the entry point functions 'getopt' and
21627         '__posix_getopt' can be made substantially less repetitive with a
21628         helper macro.
21630         While I was merging the const-correctness changes from gnulib into
21631         glibc I noticed there are still some unnecessary casts in
21632         _getopt_internal_r.
21634         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
21635         a macro.  Consistently cast 'argv' to 'char **' when calling
21636         _getopt_internal.
21637         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
21640         getopt: clean up error reporting
21642         getopt can print a whole bunch of error messages, and when used
21643         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
21644         cancellation point and getopt isn't, and also applying fprintf to a
21645         stream in wide-character mode is not allowed.  So every single error
21646         reporting case has an #ifdef _LIBC block in which it calls internal
21647         libc functions instead.  The counterpart patch series in glibc makes
21648         it possible to simplify all of that down to a set of #defines at the
21649         top of the file; core code is written as if it is safe to just call
21650         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
21651         call any *other* stdio functions.)
21653         * lib/getopt.c: When _LIBC is defined, define fprintf to
21654         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
21655         to _IO_funlockfile.  When neither _LIBC nor
21656         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
21657         funlockfile as no-ops.
21658         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
21659         standalone error-printing code can now be used for libc as well.
21660         Add an flockfile/funlockfile pair around one case where the error
21661         message is printed in several chunks.  Don't use fputc.
21664         getopt: fix fencepost error in ambiguous-W-option handling
21666         getopt_long contains an undocumented (AFAICT) feature in which, if you
21667         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
21668         treated as equivalent to '--foo'.  This is implemented with a partial
21669         second copy of the code for handling long options, and that code
21670         increments optind one too many times when recovering from an ambiguous
21671         abbreviated option, which can cause the main loop to walk past the end
21672         of argv and crash.
21674         I discovered this while writing a test case that tries to exercise all
21675         of getopt's error reporting paths; I wouldn't be surprised to learn
21676         that this feature is never used by real applications.
21678         * lib/getopt.c (_getopt_internal_r): Don't increment
21679         d->optind a second time when reporting ambiguous -W options.
21682         getopt: clean up getopt.c and getopt1.c file headers
21684         In getopt.c, there is no need to include wchar.h at all, and it is
21685         safe nowadays to assume that stdlib.h does declare getenv (several
21686         other gnulib modules make this assumption).
21688         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
21689         by using "" inclusions consistently, and there is no actual need to
21690         include stdlib.h (except in the #ifdef TEST block, where it should be
21691         unconditional), nor to provide a backup definition of NULL at all.
21693         * lib/getopt1.c: Simplify #ifdeffage at top of file.
21694         Move inclusion of stdlib.h to #ifdef TEST block and make
21695         unconditional.  Do not define NULL.
21696         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
21697         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
21698         * modules/getopt-gnu, modules/getopt-posix: Don't call
21699         gl_PREREQ_GETENV.
21702         getopt: harmonize comments with glibc
21704         The comments explaining how the behavior of 'getopt' varies depending
21705         on whether it's the standalone version and whether there are special
21706         characters at the beginning of the options string were inconsistent
21707         between gnulib and glibc, and also out of sync with the code.
21709         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
21712         getopt: remove USE_NONOPTION_FLAGS
21714         getopt includes code to parse an environment variable named
21715         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
21716         in decimal); but all of it has been #ifdefed out since 2001, with no
21717         official way to turn it back on.
21719         According to commentary in glibc's config.h.in, bash version 2.0
21720         set this environment variable to indicate argv elements that were
21721         the result of glob expansion and therefore should not be treated
21722         as options, but the feature was "disabled later" because "it
21723         caused problems".  According to bash's CHANGES file, "later" was
21724         release 2.01; it gives no more detail about what the problems
21725         were.
21727         Version 2.0 of bash was released on the last day of 1996, and version
21728         2.01 in June of 1997.  Twenty years later, I think it is safe to
21729         assume that this environment variable isn't coming back.
21731         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
21732         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
21733         __libc_argc and __libc_argv externs, which were only used by
21734         #ifdef USE_NONOPTION_FLAGS blocks.
21737         getopt: tabify, in preparation for merge with glibc
21739         glibc sticks to the GNU default of indenting with a mix of
21740         8-column tabs and spaces; make the gnulib copy match.
21742         getopt.h is not included because it is *not* going to be merged in its
21743         present form.
21745         * getopt.c, getopt1.c, getopt_int.h: Tabify.
21747 2017-04-02  Bruno Haible  <bruno@clisp.org>
21749         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
21750         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
21751         like it was done in modules/relocatable-lib on 2011-05-21 and in
21752         modules/relocatable-prog on 2011-08-15.
21753         Reported by Reuben Thomas <rrt@sc3d.org>.
21755 2017-03-31  Bruno Haible  <bruno@clisp.org>
21757         glob: Fix invalid free() call.
21758         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
21759         static storage to home_dir.
21760         Reported by Coverity via Tim Rühsen.
21762 2017-03-31  Bruno Haible  <bruno@clisp.org>
21764         glob: Fix memory leaks.
21765         * lib/glob.c (glob): Free allocated memory before returning.
21766         Reported by Coverity via Tim Rühsen.
21768 2017-03-31  Bruno Haible  <bruno@clisp.org>
21770         md5, sha1, sha256, sha512: Add comments regarding correctness.
21771         * lib/md5.h (buflen): Add comments regarding range.
21772         * lib/sha1.h (buflen): Likewise.
21773         * lib/sha256.h (buflen): Likewise.
21774         * lib/sha512.h (buflen): Likewise.
21775         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
21776         * lib/sha1.c (sha1_process_bytes): Likewise.
21777         * lib/sha256.c (sha256_process_bytes): Likewise.
21778         * lib/sha512.c (sha512_process_bytes): Likewise.
21779         Reported by Coverity via Tim Rühsen.
21781 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
21783         getopt: merge from glibc
21784         This does not change anything substantial; it merely simplifies
21785         hypothetical merges back to glibc.
21786         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
21787         Change copyright notice to match what is in glibc.
21788         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
21789         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
21790         __open_memstream rather than open_memstream and __glibc_likely
21791         instead of __builtin_expect.
21792         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
21794 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
21796         dfa: make [0-9] faster in non-C locales
21797         Problem reported by John P. Linderman (Bug#26193).
21798         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
21799         If both ends of the range are ASCII digits, do not worry about
21800         multi-character collating sequences and the like.  Be consistent
21801         about using isalpha as a precondition for setbit_case_fold_c.
21803 2017-03-19  Bruno Haible  <bruno@clisp.org>
21805         lock: Fix compilation error with HP-UX IA64 cc.
21806         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
21807         weak on non-glibc platforms.
21809 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21811         stdalign: tweak version# and test for HP-UX IA64
21812         Problems reported by Bruno Haible in:
21813         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
21814         * lib/stdalign.in.h (_Alignas):
21815         * m4/stdalign.m4 (gl_STDALIGN_H):
21816         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
21817         used octal (as that is how they document it), but it is decimal in
21818         practice now and the ancient implementations no longer matter.
21819         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
21821 2017-03-19  Bruno Haible  <bruno@clisp.org>
21823         vma-iter: Add support for Solaris.
21824         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
21825         approach.
21826         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
21827         * lib/get-rusage-as.c: Update comment about Solaris.
21828         * lib/get-rusage-data.c: Likewise.
21830 2017-03-19  Bruno Haible  <bruno@clisp.org>
21832         vma-iter: Prefer HP-UX specific API on HP-UX.
21833         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
21834         * lib/vma-iter.h: Update.
21835         Just in case HP-UX ever implements mquery().
21837 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
21839         stdalign: restore previous behavior for HP-UX IA64
21840         See Bruno Haible's email in:
21841         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21842         which cites p 150 of a manual saying that 'aligned' works on Itanium.
21843         * lib/stdalign.in.h (_Alignas):
21844         Assume the '061200' applies to Itanium, not to PA-RISC.
21845         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
21847 2017-03-17  Bruno Haible  <bruno@clisp.org>
21849         stat-time, timespec: Support use of the header files in C++ mode.
21850         * lib/stat-time.h: Add "C" linkage declaration.
21851         * lib/timespec.h: Likewise.
21853 2017-03-17  Bruno Haible  <bruno@clisp.org>
21855         stdalign: Make it work with HP-UX cc.
21856         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
21857         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
21858         for HP-UX cc.
21860 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
21862         flexmember: try to detect HP-UX 11.31 cc bug
21863         Problem reported by Bruno Haible in:
21864         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
21865         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21866         Attempt to detect bug in HP-UX 11.31 cc.
21868 2017-03-16  Bruno Haible  <bruno@clisp.org>
21870         stdint: Fix test compilation failure with HP-UX 11 cc.
21871         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
21872         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
21873         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
21874         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
21876 2017-03-14  Bruno Haible  <bruno@clisp.org>
21878         gnulib-tool: Don't produce a tests directory with only snippet .h files.
21879         * gnulib-tool (func_modules_transitive_closure_separately): If
21880         testsrelated_modules ends up with no "real" modules, aside from
21881         modules with applicability 'all', set it to empty.
21883 2017-03-14  Bruno Haible  <bruno@clisp.org>
21885         vma-iter: Add support for HP-UX.
21886         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
21887         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
21888         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
21889         * lib/get-rusage-as.c: Update comment about HP-UX.
21890         * lib/get-rusage-data.c: Likewise.
21891         (get_rusage_data): Use get_rusage_data_via_setrlimit.
21893 2017-03-14  Bruno Haible  <bruno@clisp.org>
21895         limits-h: Make it work with HP-UX cc.
21896         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
21897         defined.
21899 2017-03-14  Bruno Haible  <bruno@clisp.org>
21901         Fix test failures on DragonFlyBSD.
21902         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
21903         * tests/test-select.h (test_bad_fd): Likewise.
21904         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
21906 2017-03-14  Bruno Haible  <bruno@clisp.org>
21908         freadahead: Silence warning on DragonFlyBSD.
21909         * lib/freadahead.c (__sreadahead): Declare ourselves.
21911 2017-03-14  Bruno Haible  <bruno@clisp.org>
21913         vma-iter: Add comment about AIX.
21914         * lib/vma-iter.c: Add comment about why this module is not implemented
21915         on AIX.
21917 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21919         snippets: move unadjusted snippet sources to lib
21920         Problem reported by Michal Privoznik in:
21921         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
21922         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
21923         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
21924         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
21925         * lib/unused-parameter.h: Rename from
21926         build-aux/snippet/unused-parameter.h.
21927         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
21928         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
21929         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
21930         * modules/snippet/c++defs (Files:, CXXDEFS_H):
21931         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
21932         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
21933         Adjust to file renamings.
21935 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
21937         gnulib-tool: don't automatically distribute files from top/
21938         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
21939         not distribute top/README-release by default, don't distribute files
21940         from top/ unconditionally.
21941         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
21942         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
21944 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
21946         gnulib-tool: fix typo in comment output
21947         * gnulib-tool (func_import): Fix typo with previous change.
21949         snippets: work around GNU Make 3.82 VPATH
21950         When using 'gnulib-tool --gnu-make' on Emacs, and building
21951         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
21952         an out-of-source (VPATH) build failed because the sans-copyright
21953         snippet file was not built before the file that used it.
21954         Presumably this is some sort of VPATH thing.  Work around the
21955         problem by using the original snippet, i.e., don’t bother to
21956         remove its copyright notice.
21957         * modules/snippet/_Noreturn, modules/snippet/link-warning:
21958         Don’t assume Automake in comments.  Omit long-incorrect comment.
21959         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
21960         (MOSTLYCLEANFILES):
21961         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
21962         (MOSTLYCLEANFILES):
21963         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
21964         (MOSTLYCLEANFILES):
21965         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
21966         (MOSTLYCLEANFILES):
21967         Remove.
21968         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
21969         * modules/snippet/c++defs (CXXDEFS_H):
21970         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
21971         * modules/snippet/warn-on-use (WARN_ON_USE_H):
21972         Don’t bother to remove the copyright notice; just use the
21973         original snippet as-is.
21975 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
21977         gnulib-tool: minor --gnu-make fixups
21978         * gnulib-tool (func_emit_lib_Makefile_am):
21979         Remove useless code that was a blind alley during implementation.
21980         Problem reported by Thien-Thi Nguyen in:
21981         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
21982         (func_import): Note the "--gnu-make" option in the output comment.
21984 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
21986         gnulib-tool: new option --gnu-make
21987         This is for applications like GNU Emacs that use GNU Make
21988         features instead of Automake.
21989         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
21990         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
21991         Do not assume Automake.
21992         * gnulib-tool (func_determine_path_separator)
21993         (func_modules_transitive_closure, func_update_file)
21994         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
21995         (func_import): Add support for --gnu-make.
21997 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
21999         gnulib-common.m4: avoid aclocal.m4 bloat
22000         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
22001         Hide AM_PROG_AR from aclocal, so that aclocal does not
22002         install irrelevant macro definitions into aclocal.m4.
22004 2017-03-10  Bruno Haible  <bruno@clisp.org>
22006         vma-iter: Let callers know about error.
22007         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
22008         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
22010 2017-03-05  Bruno Haible  <bruno@clisp.org>
22012         Fix value of LD for 64-bit compilers on AIX.
22013         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
22014         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
22016 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
22018         dtotimespec: simplify
22019         * lib/dtotimespec.c (dtotimespec): Simplify.
22021 2017-03-04  Bruno Haible  <bruno@clisp.org>
22023         test-calloc-gnu: Reenable test also for GCC 7.
22024         * tests/test-calloc-gnu.c (eight): New function.
22025         (main): Don't skip test; use eight() instead.
22027 2017-03-04  Jim Meyering  <meyering@fb.com>
22029         test-calloc-gnu: port to GCC7
22030         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
22031         that attempts to calloc more than SIZE_MAX bytes, because GCC7
22032         and newer would detect that at compilation time.
22034 2017-03-04  Bruno Haible  <bruno@clisp.org>
22036         tests: Avoid compiler warning about uses of null_ptr.
22037         * tests/null-ptr.h: New file.
22038         * tests/test-canonicalize.c: Include null-ptr.h.
22039         (null_ptr): Remove function.
22040         * tests/test-canonicalize-lgpl.c: Likewise.
22041         * tests/test-memmem.c: Likewise.
22042         * tests/test-ptsname_r.c: Likewise.
22043         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
22044         * modules/canonicalize-lgpl-tests: Likewise.
22045         * modules/memmem-tests: Likewise.
22046         * modules/ptsname_r-tests: Likewise.
22047         Reported by Jim Meyering.
22049 2017-03-03  Bruno Haible  <bruno@clisp.org>
22051         doc: Mention Mac OS X deficiencies regarding semaphores.
22052         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
22053         * doc/posix-functions/sem_destroy.texi: Likewise.
22054         * doc/posix-functions/sem_getvalue.texi: Likewise.
22056 2017-03-03  Bruno Haible  <bruno@clisp.org>
22058         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
22059         Reported by Assaf Gordon <assafgordon@gmail.com> via
22060         Pádraig Brady <P@draigBrady.com>.
22061         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
22062         semaphores.
22063         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
22064         (atomic_int_semaphore): New macro.
22066 2017-02-28  Bruno Haible  <bruno@clisp.org>
22068         perror tests: Tweak for z/OS.
22069         Reported by Daniel Richard G. <skunk@iskunk.org>.
22070         * tests/test-perror.sh: Don't fail z/OS style perror output.
22072 2017-02-26  Bruno Haible  <bruno@clisp.org>
22074         nproc: Refactor large function.
22075         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
22076         from num_processors.
22077         (num_processors): In this function, only deal with OMP.
22079 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22081         nproc: adjust handling of OpenMP environment variables
22082         to match the return value from omp_get_num_threads(), i.e.:
22083          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
22084          - Treat 0 as an invalid value and ignore
22085         Also remove the call to omp_get_num_threads() because
22086         it's ineffective without the omp pragmas in place.
22087         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
22088         so that it can be ignored.
22089         (num_processors): Honor OMP_THREAD_LIMIT even without
22090         OMP_NUM_THREADS being set.  Also fix a typo in the environment
22091         variable being checked, from the previous recent commit.
22093 2017-02-26  Pádraig Brady  <P@draigBrady.com>
22095         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
22096         * lib/nproc.c (parse_omp_threads): A new function refactored
22097         from num_processors() to support parsing both of the
22098         above environment variables.
22099         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
22100         to accurately reflect the current OpenMP nesting level.
22101         Also support the OMP_THREAD_LIMIT environment variable
22102         to limit the max value determined from OMP_NUM_THREADS.
22103         * modules/nproc: Depend on minmax header.
22104         Suggested by Oliver Heimlich.
22106 2017-02-25  Bruno Haible  <bruno@clisp.org>
22108         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
22109         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
22111 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22113         ftoastr: port to -Wdouble-promotion
22114         Work around -Wdouble-promotion false alarm in recent GCCs.
22115         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
22116         (ftoastr_snprintf, FTOASTR): Use it.
22118 2017-02-21  Bruno Haible  <bruno@clisp.org>
22120         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
22121         Reported by Rene Saavedra <rennes@openmailbox.org> in
22122         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
22123         * lib/glthread/lock.h: On glibc systems without
22124         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
22125         implementation of rwlocks.
22126         * lib/glthread/lock.c: Likewise.
22128 2017-02-20  Bruno Haible  <bruno@clisp.org>
22130         lock tests: Fix build failure on z/OS.
22131         Reported by Daniel Richard G. <skunk@iskunk.org>.
22132         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
22133         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
22134         exist.
22136 2017-02-19  Bruno Haible  <bruno@clisp.org>
22138         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
22139         This helps when CC=clang.
22140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
22141         of /usr/bin/gcc.
22143         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
22144         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
22146 2017-02-19  Bruno Haible  <bruno@clisp.org>
22148         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
22149         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
22150         --with-tests --single-configure is specified.
22152 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22154         users.txt: Update links, use HTTPS where possible
22155         * users.txt: Updated to HTTPS where possible,
22156         fixed some links to new locations.
22158 2017-02-16  Bruno Haible  <bruno@clisp.org>
22160         xbinary-io: Fix inlining.
22161         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
22163 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22165         xbinary-io: rename from xsetmode
22166         This patch is taken from suggestions by Bruno Haible in:
22167         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
22168         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
22169         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
22170         not ENOTTY, when it is an inappropriate device.
22171         * lib/binary-io.h (SET_BINARY): Resurrect.
22172         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
22173         (xset_binary_mode_error): Rename from xsetmode_error.
22174         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
22175         (xset_binary_mode): Rename from xsetmode.
22176         All uses changed.
22177         * modules/xbinary-io: Rename from modules/xsetmode.
22178         Update file names.
22179         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
22180         * NEWS: Update to match revised behavior.
22182 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22184         tests: Adjust to recent SET_BINARY change
22185         * tests/test-binary-io.c (main):
22186         * tests/test-binary-io.sh: Remove test for SET_BINARY.
22187         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
22188         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
22189         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
22191         xsetmode: new module
22192         This is to fix a problem noted by Eric Blake.
22193         Code was using xfreopen to change files to binary mode, but this
22194         fails for stdout when in append mode.  Such code should use
22195         xsetmode instead.
22196         * NEWS: Document incompatible changes to binary-io module.
22197         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
22198         New function.
22199         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
22200         (set_binary_mode): New function, which also checks for tty.
22201         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
22203 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22205         headers: fix begin-end typos
22206         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
22207         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
22209         selinux-h: port to PGI 16.10
22210         * lib/se-selinux.in.h: Don't assume that include_next skips over
22211         duplicate -I DIR options.
22213         argp: port to PGI 16.10
22214         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
22216 2017-02-13  Darshit Shah  <darnir@gnu.org>
22218         unicase: Update function protoype to match definition.
22219         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
22220         uses 'size_t' as the datatype for the 'len' parameter in the functions
22221         it generates. Update the prototype specified here to match the newly
22222         generated function.
22224 2017-02-12  Bruno Haible  <bruno@clisp.org>
22226         times test: Avoid gcc warnings on Linux/x32.
22227         * tests/test-times.c (main): Really cast printf arguments from clock_t
22228         to 'long int'.
22230 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22232         glob: port better to emscripten
22233         Problem reported by Bruno Haible in:
22234         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
22235         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
22237 2017-02-11  Bruno Haible  <bruno@clisp.org>
22239         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
22240         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
22241         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
22242         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
22243         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
22244         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
22245         Distinguish hppa64 from hppa.
22247 2017-02-10  Bruno Haible  <bruno@clisp.org>
22249         search: Don't assume that tsearch() exists if 'VISIT' is defined.
22250         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
22251         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
22252         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
22254 2017-02-09  Bruno Haible  <bruno@clisp.org>
22256         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
22257         * doc/gnulib.texi (Libtool and Windows): Recommend
22258         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
22259         Reported by Reuben Thomas <rrt@sc3d.org>.
22261 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22263         stddef-tests: port to SIZE_MAX <= INT_MAX
22264         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
22265         Do not assume that INT_MAX < SIZE_MAX.
22267 2017-02-01  Bruno Haible  <bruno@clisp.org>
22269         lock tests: Fix link error.
22270         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
22271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22273 2017-01-31  Bruno Haible  <bruno@clisp.org>
22275         lock: Fix link error (regression from 2017-01-05).
22276         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
22277         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
22278         pthread_rwlockattr_destroy weak.
22279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22281 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22283         Port to PGI 16.10 x86-64
22284         This patch fixes one real bug in gl_anylinked_list2.h, along with
22285         some minor glitches that are not bugs.  It does not silence PGI’s
22286         thousands of bogus warnings when compiling test-intprops.c.
22287         Fortunately, the warnings do not cause a failure.
22288         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
22289         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
22290         My goodness, PGI goes back a long ways - this predates C89!
22291         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
22292         For example, ASYNCSAFE (const void *) should expand to
22293         ‘const void *volatile’, not to ‘volatile const void *’.
22294         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
22295         * lib/verify.h (verify) [!__GNUC__]:
22296         Use shorter albeit meaningless string to bypass silly compiler limits.
22297         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
22298         * tests/nan.h (NaNf, NaNd, NaNl):
22299         Use static functions to avoid misguided compiler diagnostics.
22300         Is there some reason we don’t use static functions on all platforms?
22302 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22304         parse-datetime: handle timezones reentrantly
22305         This API change was prompted by a report by Pádraig Brady in:
22306         https://bug.debian.org/851934#10
22307         To help fix the bug, make parse_datetime2 more reentrant.
22308         * NEWS: Document this incompatible change.
22309         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
22310         Add two arguments, the timezone and the timezone name.
22311         All callers changed.  If TZ="..." is specified, use it for
22312         calculating defaults.
22313         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
22314         this code should be usable in a library.
22315         (mktime_ok, get_effective_timezone):
22316         Accept timezone arg too.  All callers changed.
22317         (get_tz): Remove.
22318         (get_effective_timezone): Check for failures.
22320 2017-01-20  Eric Blake  <eblake@redhat.com>
22322         localename: port to cygwin 2.6
22323         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
22324         Cygwin.
22325         * modules/localename (Depends-on): Add extensions, since
22326         NL_LOCALE_NAME() is not visible without it.
22328 2017-01-17  Pádraig Brady  <P@draigBrady.com>
22330         parse-datetime: fix dependence on AC_PROG_SED
22331         * modules/parse-datetime: Use `sed` directly like all other modules.
22332         Reported by J William Piggott
22334 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22336         intprops: update doc URLs
22337         * doc/intprops.texi (Integer Range Overflow): Update URLs.
22339 2017-01-16  Bruno Haible  <bruno@clisp.org>
22341         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
22342         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
22343         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
22344         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
22345         distinguish s390 and s390x.
22346         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
22347         * NEWS: Mention the change regarding 'armel'.
22349 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
22351         localeinfo: case_folded_counterparts and WEOF
22352         * NEWS: Document this.
22353         * lib/localeinfo.c (case_folded_counterparts):
22354         First arg is now wint_t, not wchar_t.  This generalizes the
22355         function to also work on WEOF, where it returns 0.
22357         dfa: port to gcc -fsanitize=undefined
22358         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
22359         as this runs afoul of gcc -fsanitize=undefined.
22361 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
22363         strftime: %z is -00 if unknown
22364         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
22365         the caller's responsibility to set 'negative_number'.  All uses changed.
22366         (__strftime_internal): Put '-' before a zero UTC offset if the time
22367         zone abbreviation starts with "-", which is the recently-introduced
22368         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
22369         * tests/test-strftime.c: Test for this.
22371 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22373         dfa: port to older GCC
22374         Problem reported by Assaf Gordon in:
22375         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
22376         * modules/c99: New module.  This merely attempts to use the latest
22377         C version, which should be enough to solve this particular problem.
22378         The idea is to document which Gnulib modules assume C99 or later.
22379         * modules/dfa (Depends-on): Add it.
22381 2017-01-10  Bruno Haible  <bruno@clisp.org>
22383         Update DEPENDENCIES.
22384         * DEPENDENCIES: List only https URLs. Update recommended version for
22385         autoconf, automake, gperf.
22387 2017-01-10  Jim Meyering  <meyering@fb.com>
22389         maint.mk: enforce spelling of "timestamp" (i.e., no space)
22390         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
22391         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
22393 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22395         dfa: minor simplification with emptyset
22396         * lib/dfa.c (build_state): Simplify by using emptyset.
22398 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
22400         dfa: shrink constraints from 4 bits to 3
22401         * lib/dfa.c (newline_constraint, letter_constraint)
22402         (other_constraint, prev_newline_dependent)
22403         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
22404         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
22405         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
22406         Constraints need only 3 bits, not 4.  Using smaller integers
22407         shrinks the code a bit and makes grep a tad faster on x86-64.
22409         dfa: omit unnecessary ptrdiff_t check
22410         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
22411         overflow, since xnmalloc does that now.
22413         dfa: omit unnecessary allocation
22414         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
22415         an all-zero follow set works just fine.
22417         dfa: omit unused local
22418         * lib/dfa.c (build_state): Fix up recent change.
22420         maint: remove stray .texi files
22421         Although these were superseded by other files like
22422         doc/posix-functions/ctime.texi, the old files were not removed.
22423         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
22425 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
22427         getprogname: fix port to IRIX
22428         * lib/getprogname.c (getprogname) [__sgi]:
22429         Don't dump core if malloc returns NULL.
22431         dfa: fix reallocation bug when matching newlines
22432         Problem reported for sed by S. Gilles (Bug#25390).
22433         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
22434         (dfastate): Reallocate before moving any newline transition ...
22435         (build_state): ... instead of reallocating here, where it is too late.
22437 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22439         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
22440         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
22442 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
22444         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
22445         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
22447 2017-01-07  Bruno Haible  <bruno@clisp.org>
22449         stdioext: Port to Minix 3.2 and newer.
22450         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
22451         * lib/fseeko.c (fseeko): Likewise.
22452         Reported by Nelson Beebe via Paul Eggert.
22454 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
22456         getprogname: port to IRIX
22457         * lib/getprogname.c (getprogname): Port to IRIX.
22458         Based on an idea by Bastien Roucariès at:
22459         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
22460         via code from Bruno Haible at:
22461         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
22463         localename-tests: port to NetBSD 7
22464         Problem reported by Nelson H. F. Beebe.
22465         * tests/test-localename.c:
22466         Test newlocale and uselocale only if both exist.
22468         glob, intprops, xalloc: work around Clang bug
22469         Work around LLVM bug 16404, which is still not fixed.
22470         https://llvm.org/bugs/show_bug.cgi?id=16404
22471         Problem reported by Nelson H. F. Beebe.
22472         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
22473         Remove.
22474         * lib/glob.c (size_add_wrapv):
22475         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
22476         * lib/xalloc-oversized.h (xalloc_oversized):
22477         Do not use overflow builtins if Clang.
22479         dfa: fix 'return' typo
22480         Problem reported by Nelson H. F. Beebe.
22481         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
22483 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22485         parse-datetime: fix generated paths for coverage files
22486         * modules/parse-datetime: Adjust the paths for parse-datetime.y
22487         within parse-datetime.c, so that gcc generates appropriate .gcno
22488         files, allowing lcov to proceed without error.  Previously it
22489         would error trying to find "lib/lib/parse-datetime.y".
22491 2017-01-05  Pádraig Brady  <P@draigBrady.com>
22493         maint.mk: support parallel execution of coverage
22494         * top/maint.mk (coverage): Run dependencies serially,
22495         thus supporting parallel processing of each one,
22496         particularly build-coverage, which builds and runs tests.
22498 2017-01-05  Bruno Haible  <bruno@clisp.org>
22500         lock tests: Prefer semaphore over mutex.
22501         * tests/test-lock.c (USE_SEMAPHORE): New constant.
22502         (struct atomic_int, init_atomic_int, get_atomic_int_value,
22503         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
22504         Suggested by Torvald Riegel <triegel@redhat.com>.
22506 2017-01-05  Bruno Haible  <bruno@clisp.org>
22508         lock: Provide guarantee to avoid writer starvation for rwlocks.
22509         The rationale is: 1) Read-preferring read-write locks are prone to
22510         writer starvation if the number of reader threads multiplied by the
22511         percentage of time they have the lock held is too high. 2) Write-
22512         preferring read-write locks are the only reliable way to avoid this.
22513         3) There have been reports of 'test-lock' hanging on glibc systems
22514         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
22515         and glibc indeed implements read-preferring rwlocks by default, see
22516         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
22517         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
22518         * m4/pthread_rwlock_rdlock.m4: New file.
22519         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22520         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
22521         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22522         of rwlock initialization on glibc systems without
22523         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
22524         of rwlocks altogether on non-glibc systems without
22525         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
22526         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
22527         * lib/glthread/lock.c [USE_POSIX_THREADS]
22528         (glthread_rwlock_init_for_glibc): New function.
22529         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
22530         comment.
22531         [USE_PTH_THREADS]: New implementation of rwlocks.
22532         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
22533         readers.
22534         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
22535         (Depends-on): Add 'extensions'.
22536         * tests/test-rwlock1.c: New file.
22537         * lock-tests (Files): Add it.
22538         (Depends-on): Add usleep.
22539         (Makefile.am): Add test-rwlock1 to the tests.
22541 2017-01-05  Bruno Haible  <bruno@clisp.org>
22543         thread: Fix pth port.
22544         * lib/glthread/thread.h (pth_init): Declare weak.
22545         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
22546         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
22547         function.
22549 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
22551         parse-datetime: fix debug message on lone year number
22552         Input dates such as
22553           date -d "Apr 11 22:59:00 2011"
22554         are parsed as date (Apr 11, with default year 2016), then time, then a
22555         number (2011). Based on the combination of previously seen tokens,
22556         'digits_to_date_time' determines 2011 to be a year value.
22557         This fixes the debug messages to correctly show the updated year.
22558         Before:
22559             $ date --debug -d 'Apr 11 22:59:00 2011'
22560             date: parsed date part: (Y-M-D) 2016-04-11
22561             date: parsed time part: 22:59:00
22562             date: parsed number part: today/this/now
22563         After:
22564             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
22565             date: parsed date part: (Y-M-D) 2016-04-11
22566             date: parsed time part: 22:59:00
22567             date: parsed number part: year: 2011
22568         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
22569         'debug_year_seen' member fields.
22570         (digits_to_date_time): Update 'year_seen' as needed.
22571         (debug_print_current_time): Inform about year updates.
22572         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
22574         parse-datetime: fix local timezone debug messages
22575         "Local timezones" are strings that affect only DST relative to the
22576         default timezone. The debug messages in parse-datetime.y printed
22577         wrong information when encountering local timezones.
22578         Examples:
22579         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
22580              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
22581              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
22582         When the default timezone relates to the zone strings, EET/EEST are
22583         parsed as local timezones (tLOCAL_ZONE), and only change the DST
22584         value (0/1, respectively):
22585              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
22586              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
22587         * lib/parse-datetime.y (debug_print_current_time): If local timezone
22588         was seen, inform about DST change, don't print actual timezone.
22589         (debug_strfdatetime): If local timezone was seen, use default timezone
22590         (and adjust as needed) instead of using incorrect timezone.
22591         (parse_datetime2): Use correct time-zone source string, and adjust
22592         default timezone as needed.
22594         parse-datetime: add debug warning about DST changes
22595         Incorrect date arithmetic due to daylight saving time (DST) are a
22596         common (false) bug report in coreutils.
22597         Detect two such cases and print a warning:
22598         1. year/month/day adjustments (performed on 'struct tm'),
22599            where 'mktime' returns a different isdst value.
22600         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
22601            where the result of 'localtime(3)' on the value will return a
22602            different isdst value.
22603         Note: DST changes could be harmless or unnoticeable.
22604         Examples (with 'TZ=America/New_York'):
22605         Unnoticeable: result is 2016-Dec-14
22606            $ date -d '2016-06-15 EDT + 6 months' +%b
22607            Dec
22608         Unnoticeable: result is 2016-Dec-15 11:00:00
22609            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
22610            2016-12-15
22611         This is unexpected:
22612            $ date -d '2016-06-01 EDT + 6 months' +%F
22613            2016-11-30
22614         The new debug warnings will show:
22615            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
22616            ...
22617            date: warning: daylight saving time changed after date adjustment
22618            ...
22619         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
22620         print an appropriate warning message.
22622         parse-datetime: add debug warning about date arithmetic
22623         Date arithmetic are done directly on the fields of 'struct tm',
22624         which can result in invalid dates. Normalization with 'mktime(3)'
22625         will then produce a different date - which might cause unexpected
22626         results.
22627         Examples:
22628           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
22629           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
22630         Note that date normalization is not inherently wrong and not rejected,
22631         as it has legitimate uses:
22632           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
22633         If the user asked to adjust months but 'mday' changed,
22634         or user asked to adjust years but 'month' changed - warn about it.
22635             $ ./src/date --debug -d '2016-10-31 - 1 month'
22636             ...
22637             date: warning: when adding relative months/years, \
22638                            it is recommended to specify the 15th of the month
22639             ...
22640             date: warning: month/year adjustment resulted in shifted dates:
22641             date:      adjusted Y M D: 2016 09 31
22642             date:    normalized Y M D: 2010 10 01
22643             ...
22644         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
22645         a warning message. Improve recommendation of when to use 15 of the
22646         month or noon for date arithmetic.
22648         parse-datetime: fix debug message of relative part after timezone
22649         Relative part (e.g '+8 days') after a timezone string was not
22650         reported (was only reported after a timezone number). Due to the
22651         parser's structure, timezone strings with numbers were handled
22652         separately.
22653         before:
22654              # Timezone number + relative part: OK
22655              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
22656              ...
22657              date: parsed relative part: -8 day(s)
22658              # Timezone string + relative part: missing
22659              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
22660              [ missing message ]
22661         After: messages are printed in both cases.
22662         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
22664         parse-datetime: fix incorrect debug message on lone number
22665         A lone number is an absolute value, not a relative time part.
22666         before:
22667            $ date --debug -d '20130101'
22668            date: parsed number part: today/this/now
22669         After:
22670            $ ./src/date --debug -d '20130101'
22671            date: parsed number part: (Y-M-D) 2013-01-01
22672         * lib/parse-datetime.y ('item'/'number' tokens): Call
22673         'debug_print_current_time' instead of 'debug_print_relative_time'.
22675 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
22677         doc: modernize for C11 etc.
22678         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
22679         for C11, MinGW, etc.  This responds to Paul Smith's question in:
22680         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
22682         dfa: prefer functions to FETCH_WC macro
22683         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
22684         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
22685         wint_t result into DFA->lex.wctok instead of to a separate arg.
22686         All callers changed.  Move more local decls closer to where
22687         they're used.
22689         dfa: narrow more local var scopes
22690         * lib/dfa.c: Move more local decls to be more local.
22692         dfa: remove duplicate assignment
22693         Problem reported by Bruno Haible in:
22694         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
22695         * lib/dfa.c (parse_bracket_exp): Simplify.
22697 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22699         dfa: simplify constraint-dependency checking
22700         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
22701         (prev_other_constraint): Remove.
22702         (prev_newline_dependent, prev_letter_dependent):
22703         Simplify, to avoid an unnecessary bitwise AND operation.
22705         dfa: prefer functions and constants to macros
22706         * lib/dfa.c: Prefer constants to macros where either will do.
22707         (streq, isasciidigit, newline_constraint)
22708         (letter_constraint, other_constraint, succeeds_in_context)
22709         (prev_newline_constraint, prev_letter_constraint)
22710         (prev_other_constraint, prev_newline_dependent)
22711         (prev_letter_dependent, accepting, accepts_in_context):
22712         Now static functions instead of function-like macros.
22713         Use lower-case names accordingly.  All uses changed.
22715         dfa: narrow more local var scopes
22716         * lib/dfa.c: Move some more local decls down to nearer where
22717         they're needed.
22719 2016-12-31  Jim Meyering  <meyering@fb.com>
22721         dfa: narrow the scope of many local variables
22722         * lib/dfa.c: Now that we are no longer constrained to c89, move
22723         declarations of many variables (often indices) "down" into the
22724         scope(s) where used or to the point of definition.  This is a
22725         no-semantic-change diff.
22727 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
22729         version-etc: new year
22730         * build-aux/gendocs.sh (version):
22731         * doc/gendocs_template:
22732         * doc/gendocs_template_min:
22733         * doc/gnulib.texi:
22734         * lib/version-etc.c (COPYRIGHT_YEAR):
22735         Update copyright dates by hand in templates and the like.
22736         * all files: Run 'make update-copyright'.
22738 2016-12-31  Eric Blake  <eblake@redhat.com>
22740         do-release-commit-and-tag: avoid shell syntax error
22741         * build-aux/do-release-commit-and-tag (curr_br): $branch can
22742         contain spaces when rebasing.
22744         maint.mk: hoist gnulib_dir definition earlier
22745         * top/maint.mk (gnulib_dir): Move near top of file.
22747 2016-12-31  Jim Meyering  <meyering@fb.com>
22749         maint.mk: do not always evaluate intprops-related shell
22750         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
22751         using gnulib_dir undefined (gnulib_dir is defined later in the
22752         file, which will be fixed separately), and besides, there is no
22753         need to incur the cost of this shell invocation for every single
22754         use of this .mk file.  Reported by Eric Blake in
22755         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
22757 2016-12-30  Jim Meyering  <meyering@fb.com>
22759         maint.mk: improve sc_prohibit_intprops_without_use
22760         * top/maint.mk (_intprops_names): Don't hard-code the list of
22761         symbol names.  Instead, derive it on the fly.
22763 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
22765         dfa: shorten sbit, success
22766         * lib/dfa.c (struct regex_syntax.sbit):
22767         (struct dfa.success): Use char, not int, for array elements, since
22768         they are all in the range 0..7.
22770         dfa: simplify multibyte_prop etc.
22771         This follows up on a change made when dfa.c was in grep, namely grep
22772         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
22773         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
22774         That earlier simplification allows for some more simplification
22775         and trimming down here.
22776         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
22777         (struct lexer_state): New mamber brack.
22778         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
22779         since they must be in the range 0..3 now.
22780         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
22781         the brack member now supersedes them.
22782         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
22783         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
22784         (dfaparse): Remove unnecessary initializations of already-0 storage.
22785         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
22786         (dfassbuild): No need to clear sup->mbcsets.
22788         dfa: minor performance tweak
22789         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
22791         dfa: wrap charclass inside a struct
22792         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
22793         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
22794         about 5% faster, where list.txt is generated by 'aspell dump
22795         master | head -n 100000 >list.txt'.  See Bug#22239.
22796         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
22797         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
22798         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
22799         Adjust to this, e.g., by using charclass * rather than charclass.
22800         All callers changed as needed.
22801         (copyset): Remove.  All uses changed to simple assignment.
22802         (parse_bracket_exp): Use zeroset instead of memset.
22804 2016-12-30  Jim Meyering  <meyering@fb.com>
22806         maint.mk: update list of intprops.h symbol names
22807         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
22808         This avoids a false failure of the sc_prohibit_intprops_without_use
22809         rule in grep.
22811 2016-12-29  Eric Blake  <eblake@redhat.com>
22813         getopt: fix parallel test failure
22814         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
22815         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
22816         * tests/test-getopt-main.h (main): Use different file names
22817         in case test-getopt-gnu and test-getopt-posix run in parallel.
22819 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22821         xalloc: x2nrealloc check for ptrdiff_t overflow
22822         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
22823         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
22825 2016-12-24  Bruno Haible  <bruno@clisp.org>
22827         lock test: Fix performance problem on multi-core machines.
22828         * tests/test-lock.c (USE_VOLATILE): New macro.
22829         (struct atomic_int): New type.
22830         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
22831         functions.
22832         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
22833         as 'struct atomic_int'.
22834         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
22835         reclock_checker_thread, test_recursive_lock): Use the new functions.
22836         Reported by Eric Blake in
22837         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
22838         and by Pádraig Brady in
22839         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
22841 2016-12-19  Bruno Haible  <bruno@clisp.org>
22843         vma-iter: Fix endless loop on 64-bit Windows.
22844         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
22845         'unsigned long'.
22847 2016-12-19  Bruno Haible  <bruno@clisp.org>
22849         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
22850         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
22851         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
22852         Invoke gt_TYPE_WINT_T instead.
22853         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
22854         * modules/stdint (Files): Add m4/wint_t.m4.
22855         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
22856         * modules/wctype-h (Makefile.am): Likewise.
22857         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
22858         not only on MSVC.
22859         * lib/wctype.in.h (wint_t): Likewise.
22861 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22863         getopt-posix-tests: fix Makefile typo
22864         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
22865         Fix typo: the last ‘_’ was missing in the name.
22866         I suspect that the typo explains this build failure:
22867         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
22868         although I can’t reproduce the problem on Solaris 10 sparc.
22870 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22872         dfa: improve worst-case 'replace' performance
22873         See my note in Bug#22357#71.
22874         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
22875         (merge_constrained): New function, which is like
22876         the old 'merge' function, except with a new argument C2.
22877         Simplify the body by avoiding the need for different sections
22878         of code depending on whether one input is exhausted.
22879         (merge): Use the new function.
22880         (delete): Return the constraint of the deleted position,
22881         not the entire position.  Caller changed.
22882         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
22884 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
22886         dfa: performance improvement for removal of epsilon closure
22887         See Bug#22357#32.
22888         * lib/dfa.c (delete): Use binary search to find deleted index.
22889         (replace): New function.  It replaces a position with the followed set.
22890         (epsclosure): Replace it with a new algorithm.  Update caller.
22892 2016-12-18  Bruno Haible  <bruno@clisp.org>
22894         Split tests for getopt-posix and getopt-gnu.
22895         * tests/test-getopt-posix.c: New file.
22896         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
22897         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
22898         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
22899         GNULIB_TEST_GETOPT_GNU.
22900         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
22901         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
22902         (Makefile.am): Test test-getopt-posix instead of test-getopt.
22903         * modules/getopt-gnu-tests: New file.
22904         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
22906 2016-12-18  Bruno Haible  <bruno@clisp.org>
22908         posix-modules: Add options for specific platforms.
22909         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
22910         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
22911         Invoke func_tmpdir. Filter out the excludes.
22913 2016-12-18  Bruno Haible  <bruno@clisp.org>
22915         getopt: Fix link error for users of getopt() in <unistd.h>.
22916         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
22917         __need_getopt is defined. Undefine all macros before defining them.
22918         * modules/getopt (Include): Clarify that including <unistd.h> is also
22919         OK.
22920         * tests/test-getopt.c: Add comment.
22922 2016-12-17  Bruno Haible  <bruno@clisp.org>
22924         getaddrinfo tests: Avoid compilation error on MSVC.
22925         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
22926         getaddrinfo on native Windows.
22928 2016-12-17  Bruno Haible  <bruno@clisp.org>
22930         getlogin, getlogin_r: Fix link errors on MSVC.
22931         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
22932         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
22933         (Link): New section.
22934         * modules/getlogin_r (Files): Add m4/getlogin.m4.
22935         (configure.ac): Require gl_LIB_GETLOGIN.
22936         (Link): New section.
22937         * NEWS: Mention the new link requirements.
22938         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
22939         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
22941 2016-12-17  Bruno Haible  <bruno@clisp.org>
22943         Un-deprecate the 'progname' module.
22944         * NEWS: Describe the appropriate use-cases of 'progname' versus
22945         'getprogname'. Based on discussion summary at
22946         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
22948 2016-12-17  Bruno Haible  <bruno@clisp.org>
22950         Reorganize NEWS a bit.
22951         * NEWS: Move some not so important changes away from section
22952         "Important Notes".
22954 2016-12-17  Bruno Haible  <bruno@clisp.org>
22956         tanhf: Avoid redefinition error on MSVC.
22957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
22958         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
22959         may be defined as an inline function.
22960         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
22961         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
22963 2016-12-17  Bruno Haible  <bruno@clisp.org>
22965         tanf: Avoid redefinition error on MSVC.
22966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
22967         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
22968         may be defined as an inline function.
22969         * modules/math (Makefile.am): Substitute REPLACE_TANF.
22970         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
22972 2016-12-17  Bruno Haible  <bruno@clisp.org>
22974         sqrtf: Avoid redefinition error on MSVC.
22975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
22976         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
22977         may be defined as an inline function.
22978         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
22979         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
22981 2016-12-17  Bruno Haible  <bruno@clisp.org>
22983         sinhf: Avoid redefinition error on MSVC.
22984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
22985         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
22986         may be defined as an inline function.
22987         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
22988         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
22990 2016-12-17  Bruno Haible  <bruno@clisp.org>
22992         sinf: Avoid redefinition error on MSVC.
22993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
22994         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
22995         may be defined as an inline function.
22996         * modules/math (Makefile.am): Substitute REPLACE_SINF.
22997         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
22999 2016-12-17  Bruno Haible  <bruno@clisp.org>
23001         logf: Avoid redefinition error on MSVC.
23002         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
23003         may be defined as an inline function.
23005 2016-12-17  Bruno Haible  <bruno@clisp.org>
23007         log10l: Avoid redefinition error on MSVC.
23008         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
23009         may be defined as an inline function.
23011 2016-12-17  Bruno Haible  <bruno@clisp.org>
23013         log10f: Avoid redefinition error on MSVC.
23014         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
23015         may be defined as an inline function.
23017 2016-12-17  Bruno Haible  <bruno@clisp.org>
23019         hypotl: Avoid redefinition error on MSVC.
23020         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
23021         may be defined as an inline function.
23023 2016-12-17  Bruno Haible  <bruno@clisp.org>
23025         hypotf: Avoid redefinition error on MSVC.
23026         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
23027         may be defined as an inline function.
23029 2016-12-17  Bruno Haible  <bruno@clisp.org>
23031         fmodl: Avoid redefinition error on MSVC.
23032         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
23033         may be defined as an inline function.
23035 2016-12-17  Bruno Haible  <bruno@clisp.org>
23037         fmodf: Avoid redefinition error on MSVC.
23038         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
23039         may be defined as an inline function.
23041 2016-12-17  Bruno Haible  <bruno@clisp.org>
23043         expf: Avoid redefinition error on MSVC.
23044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
23045         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
23046         may be defined as an inline function.
23047         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
23048         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
23050 2016-12-17  Bruno Haible  <bruno@clisp.org>
23052         coshf: Avoid redefinition error on MSVC.
23053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
23054         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
23055         may be defined as an inline function.
23056         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
23057         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
23059 2016-12-17  Bruno Haible  <bruno@clisp.org>
23061         cosf: Avoid redefinition error on MSVC.
23062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
23063         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
23064         may be defined as an inline function.
23065         * modules/math (Makefile.am): Substitute REPLACE_COSF.
23066         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
23068 2016-12-17  Bruno Haible  <bruno@clisp.org>
23070         atan2f: Avoid redefinition error on MSVC.
23071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
23072         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
23073         may be defined as an inline function.
23074         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
23075         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
23077 2016-12-17  Bruno Haible  <bruno@clisp.org>
23079         atanf: Avoid redefinition error on MSVC.
23080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
23081         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
23082         may be defined as an inline function.
23083         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
23084         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
23086 2016-12-17  Bruno Haible  <bruno@clisp.org>
23088         asinf: Avoid redefinition error on MSVC.
23089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
23090         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
23091         may be defined as an inline function.
23092         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
23093         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
23095 2016-12-17  Bruno Haible  <bruno@clisp.org>
23097         acosf: Avoid redefinition error on MSVC.
23098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
23099         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
23100         may be defined as an inline function.
23101         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
23102         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
23104 2016-12-17  Bruno Haible  <bruno@clisp.org>
23106         Avoid redefinition errors on MSVC.
23107         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
23108         the function may be defined as an inline function.
23109         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
23110         the function may be defined as an inline function.
23112 2016-12-17  Bruno Haible  <bruno@clisp.org>
23114         Avoid redefinition errors on MSVC.
23115         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
23116         * lib/unistd.in.h: Include <stdio.h> when necessary.
23118 2016-12-17  Bruno Haible  <bruno@clisp.org>
23120         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
23121         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
23122         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
23123         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
23124         WINT_MAX.
23126 2016-12-17  Bruno Haible  <bruno@clisp.org>
23128         Avoid autoconf warning.
23129         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
23130         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
23132 2016-12-17  Bruno Haible  <bruno@clisp.org>
23134         fpending: Revert workaround against Emacs bug.
23135         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
23136         The Emacs bug is fixed by Eli Zaretskii in
23137         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
23139 2016-12-17  Bruno Haible  <bruno@clisp.org>
23141         getlogin_r tests: Port to mingw.
23142         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
23143         regression introduced on 2014-05-19.
23145 2016-12-17  Bruno Haible  <bruno@clisp.org>
23147         getlogin: Port to newer mingw.
23148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
23149         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
23150         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
23151         HAVE_GETLOGIN.
23152         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
23153         HAVE_GETLOGIN.
23154         * doc/posix-functions/getlogin.texi: Mention the issue.
23155         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
23156         regression introduced on 2014-05-14.
23158 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23160         builtin-expect: improve port to IBM XL C
23161         Problem reported for z/OS by Daniel Richard G. in:
23162         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
23163         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23164         Test for <builtins.h> directly.
23166         builtin-expect: port to IBM XL C
23167         Problem reported for z/OS by Daniel Richard G. in:
23168         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
23169         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
23170         Also allow __builtin_expect defined via a standard include file.
23172         regex: fix dependency
23173         Problem reported by Bruno Haible in:
23174         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
23175         * modules/regex: Depend on builtin-expect.
23177         builtin-expect: new module
23178         Fix fnmatch to use it.
23179         Problem reported for z/OS by Daniel Richard G.
23180         * lib/fnmatch.c (__builtin_expect):
23181         * lib/glob.c (__builtin_expect):
23182         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
23183         * lib/memmem.c (__builtin_expect) [!_LIBC]:
23184         * lib/scandir.c (__builtin_expect):
23185         * lib/strstr.c (__builtin_expect) [!_LIBC]:
23186         Remove macro; config.h now does this.
23187         * lib/gl_anytreehash_list1.h (add_to_bucket):
23188         * lib/regex_internal.h (BE):
23189         Assume __builtin_expect.
23190         * m4/builtin-expect.m4, modules/builtin-expect: New files.
23191         * modules/avltreehash-list, modules/fnmatch, modules/glob:
23192         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
23193         * modules/scandir, modules/strstr-simple:
23194         Depend on builtin-expect.
23196 2016-12-15  Bruno Haible  <bruno@clisp.org>
23198         init.sh: Add possibility to not delete temporary files.
23199         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
23200         to yes, don't erase the temporary directory.
23202 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
23204         regex: fix integer-overflow bug in never-used code
23205         Problem reported by Clément Pit–Claudel in:
23206         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
23207         * lib/regex_internal.h: Include intprops.h.
23208         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
23209         behavior on integer overflow.
23210         * modules/regex (Depends-on): Add intprops.
23212         fpending: fix port to MinGW on Emacs
23213         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
23214         Problem reported by Eli Zaretskii in:
23215         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
23216         Is Plan 9 still a valid porting target, anyway?
23218 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23220         safe-alloc: use xalloc-oversized
23221         * lib/safe-alloc.c: Include xalloc-oversized.h.
23222         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
23223         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
23225         xalloc: do not exceed PTRDIFF_MAX
23226         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
23227         xalloc_oversized check, since objects larger than PTRDIFF_MAX
23228         bytes have pointer-subtraction problems.
23230         malloca: do not exceed PTRDIFF_MAX
23231         * lib/malloca.h: Include xalloc-oversized.
23232         (nmalloca): Use xalloc_oversized instead of rolling our own.
23233         * modules/malloca (Depends-on):
23234         * modules/relocatable-prog-wrapper (Depends-on):
23235         Add xalloc-oversized.
23237         quotearg: pacify GCC better
23238         * modules/quotearg (Depends-on): Add minmax, stdint.
23239         * lib/quotearg.c: Include minmax.h, stdint.h.
23240         (nslots): Now int, as there seems little point to going to extra
23241         work merely to support the INT_MAX slot, which nobody ever uses.
23242         (quotearg_n_options): Redo size-overflow checks to pacify GCC
23243         and to catch (mostly-theoretical) ptrdiff_t problems too.
23244         This can be done via one comparison.
23246 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
23248         xalloc-oversized: check for PTRDIFF_MAX too
23249         This avoids undefined behavior when subtracting pointers to
23250         objects containing more than PTRDIFF_MAX bytes.
23251         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
23252         Also return 1 if the result would exceed PTRDIFF_MAX>
23253         * modules/xalloc-oversized (Depends-on):
23254         Add stdint.
23256         dfa: fix glitches in previous commit
23257         Sorry, I don't know how I managed to commit the wrong version.
23258         * lib/dfa.c (MIN): Move up.
23259         (xpalloc): Now static.
23261         dfa: fix some unlikely integer overflows
23262         I found these while reviewing the recent Coverity-related fix.
23263         This patch changes part of dfa.c to prefer ptrdiff_t instead of
23264         size_t for object counts.  Using ptrdiff_t is the style typically
23265         used in Emacs; although it wastes a sign bit as sizes can never be
23266         negative, it makes -fsanitize=undefined more likely to catch
23267         integer overflows in index calculation, and nowadays the upside is
23268         typically more important than the downside.  Although perhaps the
23269         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
23270         of dfa.c already does, since it uses state_num which is signed),
23271         that is a bigger change and is not needed to fix the bugs I found.
23272         * lib/dfa.c: Include stdint.h and intprops.h.
23273         (TOKEN_MAX): New macro.
23274         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
23275         (charclass_index, parse_bracket_exp, addtok, insert, merge)
23276         (realloc_trans_if_necessary, free_mbdata):
23277         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
23278         This is safe because xpalloc checks that the sizes do not exceed
23279         either SIZE_MAX or PTRDIFF_MAX.
23280         (xpalloc): New function, mostly taken from Emacs.
23281         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
23282         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
23283         (charclass_index): Check for integer overflow in computing
23284         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
23285         added to it later.
23286         (alloc_position_set): Check for integer overflow.  On typical
23287         platforms this check has zero overhead, since the constant
23288         expression is false.
23289         (realloc_trans_if_necessary):
23290         Remove assertion, which I hope Coverity no longer needs.
23292         * modules/dfa (Depends-on): Add intprops, stdint.
23294 2016-12-12  Jim Meyering  <meyering@fb.com>
23296         dfa: add an assertion to avoid coverity false positive
23297         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
23298         warned that "newalloc1 - 2" could overflow.
23300 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
23302         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
23303         * dfa.h (DFA_CASE_FOLD): Remove.
23304         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
23306 2016-12-13  John W. Eaton  <gnu@jweaton.org>
23308         link: fix test to declare use of rename()
23309         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
23310         -Werror=implicit-function-declaration
23312 2016-12-12  Bruno Haible  <bruno@clisp.org>
23314         fpending: Port to native Windows with MSVC.
23315         * lib/fpending.c: Include stdio-impl.h.
23316         (__fpending): Include all known implementations. Err out if it's not
23317         ported.
23318         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
23319         * modules/fpending (Files): Add lib/stdio-impl.h.
23320         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
23322 2016-12-12  Bruno Haible  <bruno@clisp.org>
23324         stdioext: Port to native Windows with MSVC.
23325         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
23326         (struct _gl_real_FILE): New type.
23327         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
23328         Windows.
23329         * lib/fbufmode.c (fbufmode): Add code for native Windows.
23330         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
23331         other SystemV derived implementations.
23332         * lib/fpurge.c (fpurge): Likewise.
23333         * lib/freadable.c (freadable): Likewise.
23334         * lib/freadahead.c (freadahead): Likewise.
23335         * lib/freading.c (freading): Likewise.
23336         * lib/freadptr.c (freadptr): Likewise.
23337         * lib/freadseek.c (freadptrinc): Likewise.
23338         * lib/fseeko.c (fseeko): Likewise.
23339         * lib/fseterr.c (fseterr): Likewise.
23340         * lib/fwritable.c (fwritable): Likewise.
23341         * lib/fwriting.c (fwriting): Likewise.
23342         Reported by Gisle Vanem <gvanem@yahoo.no>.
23344 2016-12-11  Jim Meyering  <meyering@fb.com>
23346         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
23347         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
23348         to work with most shells, but not with the one provided by many
23349         Solaris 10 systems, so running configure with such a /bin/sh evokes
23350         e.g., "./configure: syntax error at line 33602: `(' unexpected".
23351         Reported by Assaf Gordon in
23352         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
23354 2016-12-10  Bruno Haible  <bruno@clisp.org>
23356         threadlib: Optimize out runtime test on Solaris >= 10.
23357         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
23358         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
23359         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
23361 2016-12-10  Bruno Haible  <bruno@clisp.org>
23363         stdint: Update doc about Solaris 9.
23364         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
23366 2016-12-09  Bruno Haible  <bruno@clisp.org>
23368         c-ctype tests: Fix link error on Solaris 9.
23369         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
23370         Reported at <https://savannah.gnu.org/bugs/?46827>.
23372 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
23374         dfa: fix performance bug that recomputes trans
23375         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
23376         25 on-demand changes.  The bug caused build_state to reset all
23377         d->trans elements to -2 even when d->trans was already non-null.
23378         Use C99 style decls after statements in this function.
23380         same-inode: port to MinGW
23381         Here st_ino is always 0, so change the definition of SAME_INODE so
23382         that 1 means the two files are the same, 0 with st_ino != 0 means
23383         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
23384         reported by Bruno Haible (Bug#25146).
23385         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
23386         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
23388 2016-12-04  Bruno Haible  <bruno@clisp.org>
23390         javacomp-script: Support Java 7 and 8.
23391         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
23392         target-version 1.7, 1.8.
23394 2016-12-02  Daiki Ueno  <ueno@gnu.org>
23396         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
23397         GPLv2" rewriting.
23399 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
23401         * gnulib-tool (func_import): Adhere to the license guideline when
23402         rewriting the license text to "LGPLv3+ or GPLv2":
23403         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
23405 2016-12-02  Bruno Haible  <bruno@clisp.org>
23407         localcharset: Avoid theoretical buffer overrun.
23408         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
23409         return value from setlocale if it would lead to a buffer overrun.
23411 2016-12-01  Bruno Haible  <bruno@clisp.org>
23413         Relicense some modules under LGPLv2+.
23414         Kevin Cernekee's approval is in
23415         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
23416         * modules/fseterr (License): Change to LGPLv2+.
23417         * modules/mbchar (License): Likewise.
23418         * modules/mbiter (License): Likewise.
23419         * modules/mbsnlen (License): Likewise.
23420         * modules/wcwidth (License): Likewise.
23422 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23424         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
23425         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
23426         OS/2 kLIBC.
23428 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23430         alphasort, scandir: Port to OS/2 kLIBC
23431         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
23432         declaration.
23433         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
23435 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23437         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
23438         * lib/relocatable.c (relocate): Do not touch pathname if it is started
23439         with '/@unixroot'.
23441 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
23443         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
23444         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
23445         OS/2 kLIBC unless TCPV40HDRS is defined.
23447 2016-11-29  Jim Meyering  <meyering@fb.com>
23449         dfa: avoid new infinite loop
23450         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
23451         * lib/dfa.c (dfastate): When constructing a new state table, we could
23452         initially declare that we had found a match, and later find that
23453         constraints eliminate that possibility, yet continue to use the
23454         now stale "matched" indicator.  That would lead to an infinite loop.
23455         The solution is to update "matched" when necessary.
23456         Introduced by commit v0.1-983-g403adf1.
23458 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23460         dfa: avoid match middle in multibyte character
23461         * lib/dfa.c (transit_state): If fails in matching single byte characters
23462         on a state including period expression in non-UTF8 multibyte locales,
23463         skip trailing bytes.
23464         (dfa_supported): Revert previous change.
23466 2016-11-27  Jim Meyering  <meyering@fb.com>
23468         dfa: avoid false match in non-UTF8 multibyte locales
23469         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
23470         as "not supported" so that callers will resort to using regex-based
23471         matcher.  This will surely hurt performance, but correctness trumps
23472         performance here, and the affected locales are less and less relevant,
23473         these days.  See grep's bug report https://bugs.gnu.org/24975.
23475 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
23477         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
23478         * lib/ptsname_r.c: Include the appropriate headers.
23479         [__sun]: Delete sys/sysmacros.h include.
23480         [_AIX || __osf__]: Likewise.
23481         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
23483 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23485         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
23486         * lib/md4.c (md4_process_bytes): The existing define is made internal
23487         in recent versions of glibc, so also use this new public define.
23488         * lib/md5.c (md5_process_bytes): Likewise.
23489         * lib/sha1.c (sha1_process_bytes): Likewise.
23490         * lib/sha256.c (sha256_process_bytes): Likewise.
23491         * lib/sha512.c (sha512_process_bytes): Likewise.
23493 2016-11-27  Pádraig Brady  <P@draigBrady.com>
23495         maint: use a more standard return from mbrtowc test
23496         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
23497         from the test program as this often indicates an
23498         unhandled case in the test program.
23499         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
23500         (gl_MBRTOWC_SANITYCHECK): Likewise.
23501         (gl_MBRTOWC_NULL_ARG2): Likewise.
23502         (gl_MBRTOWC_NUL_RETVAL): Likewise.
23504 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
23506         freopen: work around glibc bug with closed fd
23507         Work around glibc bug#15589, where freopen mishandles the case
23508         where stdin etc. are already closed.
23509         * doc/posix-functions/freopen.texi (freopen): Document the bug.
23510         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
23511         instead of __need_FILE, as the latter does not work with glibc.
23512         Include <fcntl.h>, for open flags.
23513         (rpl_freopen): Work around glibc bug.
23514         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
23515         * modules/freopen (Depends-on): Add fcntl-h.
23516         * tests/test-freopen.c (main): Test for bug.
23518 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23520         fnmatch: fix typo introduced on 2016-08-17
23521         This fixes the port to non-GCC compilers that lack __builtin_expect.
23522         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
23524         dfa: simplify with new function fillset
23525         * lib/dfa.c (fillset): New function.
23526         Use it for clarity when applicable.
23528         dfa: fix glitches with on-demand states
23529         Also, adjust commentary to better match new code.
23530         Some of these glitches predate the recent change.
23531         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
23532         only non-initial states.
23533         (dfastate): Rename locals to better match new roles.
23534         Move them into nested scopes if this is easy.
23535         Omit unnecessary calls to zeroset.
23536         Simplify test for whether to throw in the positions of state 0.
23537         Omit C99-ism (decl after statement) since Gawk still wants C89.
23538         (build_state): Omit unnecessary test and assignment.
23539         Fix some confusion that counted transition tables inaccurately
23540         and could cause a memory leak.
23541         (dfaexec_main): Redo to make it clearer to the compiler that
23542         -1 and -2 are the only negative state numbers here.
23544 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
23546         dfa: addition of new state on demand
23547         * src/dfa.c (dfastate): Add argument UC, the current input character.
23548         Fill only a group including the character in transition table.
23549         (realloc_trans_if_necessary): Add the dummy state which means that a
23550         transition table is assigned but the next state is not assigned.
23551         (build_state): Return the next state.  All callers updated.
23552         (transit_state_singlebyte): If we get the dummy state,
23553         fill the transition table.
23554         (dfaexec_main): Handle the dummy state.
23555         (free_mbdata, dfafree): Consider the dummy state.
23557 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23559         srclist: sync with released gettext
23560         * config/srclist.txt: Set "release" option to the files under
23561         $GETTEXT.
23563 2016-11-24  Daiki Ueno  <ueno@gnu.org>
23565         srclist: add "release" option
23566         * config/srclist.txt: Change the format so that the first column
23567         of each line points to the top-level directory of the source
23568         archive.
23569         * config/srclist-update: Accept "release" option that checks files
23570         from the most recently tagged revision in the source archive.
23572 2016-11-21  Bruno Haible  <bruno@clisp.org>
23574         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
23575         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23576         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
23577         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
23578         Inline and remove member function 'rpl ()' of the wrapper struct.
23580 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
23582         dfa: fix logic typo
23583         Problem reported by Stephane Chazelas (Bug#24973).
23584         * lib/dfa.c (using_simple_locale): Fix typo that caused some
23585         non-simple locales like fr_FR to be treated as simple.
23587 2016-11-20  Jim Meyering  <meyering@fb.com>
23589         fix test driver leaks: exclude, malloc, realloc
23590         * tests/test-exclude.c (main): Fix trivial leak.
23591         * tests/test-malloc-gnu.c (main): Likewise.
23592         * tests/test-realloc-gnu.c (main): Likewise.
23593         With these changes, grep's tests are now leak free.
23594         I.e., running them with ASAN elicits no failure:
23595           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
23596             AM_LDFLAGS='-fsanitize=address -static-libasan' check
23598 2016-11-11  Bruno Haible  <bruno@clisp.org>
23600         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
23601         * modules/libunistring: (License): Change from LGPL to
23602         "LGPLv3+ or GPLv2".
23603         * modules/libunistring-optional: Likewise.
23604         * modules/unicase/*: Likewise.
23605         * modules/uniconv/*: Likewise.
23606         * modules/unictype/*: Likewise.
23607         * modules/unigbrk/*: Likewise.
23608         * modules/unilbrk/*: Likewise.
23609         * modules/uniname/*: Likewise.
23610         * modules/uninorm/*: Likewise.
23611         * modules/unistdio/*: Likewise.
23612         * modules/unistr/*: Likewise.
23613         * modules/uniwbrk/*: Likewise.
23614         * modules/uniwidth/*: Likewise.
23616 2016-11-12  Bruno Haible  <bruno@clisp.org>
23618         Relicense some modules under LGPLv2+.
23619         Paul Eggert's approval is in
23620         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
23621         Eric Blake's approval is in
23622         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
23623         Ludovic Courtès's approval is in
23624         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
23625         * modules/isnand-nolibm (License): Change to LGPLv2+.
23626         * modules/isnanf-nolibm (License): Likewise.
23627         * modules/isnanl-nolibm (License): Likewise.
23629 2016-11-19  Bruno Haible  <bruno@clisp.org>
23631         Relicense some modules under LGPLv2+.
23632         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
23633         modules/vasnprintf.
23634         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
23635         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
23636         All other significant changes to the files in lib/ of these modules
23637         are from me.
23638         * modules/memcmp2 (License): Change to LGPLv2+.
23639         * modules/amemxfrm (License): Likewise.
23640         * modules/fpieee (License): Likewise.
23641         * modules/fpucw (License): Likewise.
23642         * modules/frexp-nolibm (License): Likewise.
23643         * modules/frexpl-nolibm (License): Likewise.
23644         * modules/printf-frexp (License): Likewise.
23645         * modules/printf-frexpl (License): Likewise.
23646         * modules/printf-safe (License): Likewise.
23647         * modules/signbit (License): Likewise.
23649 2016-11-17  Bruno Haible  <bruno@clisp.org>
23651         Enable Unicode decoder safety unconditionally.
23652         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
23653         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
23654         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23655         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23656         * lib/unistr/u8-prev.c (u8_prev): Likewise.
23657         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
23658         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
23659         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
23660         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
23661         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
23662         * lib/unistr/u16-prev.c (u16_prev): Likewise.
23663         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
23664         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
23665         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
23666         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
23667         * lib/unistr/u32-prev.c (u32_prev): Likewise.
23668         * lib/unistr/u32-next.c (u32_next): Likewise.
23669         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
23670         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
23671         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
23672         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
23673         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
23674         CONFIG_UNICODE_SAFETY tests unconditionally.
23675         * tests/unistr/test-u32-mblen.c (main): Likewise.
23676         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
23677         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
23678         * tests/unistr/test-u32-next.c (main): Likewise.
23679         * tests/unistr/test-u32-strmblen.c (main): Likewise.
23680         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
23681         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
23682         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
23683         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
23684         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23685         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
23686         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
23687         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23688         * lib/unistr/u16-check.c (u16_check): Update comment.
23689         * NEWS: Mention the changes that callers should be aware of.
23691 2016-11-19  Bruno Haible  <bruno@clisp.org>
23693         relocatable-prog-wrapper: Fix breakage on Cygwin.
23694         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
23695         (Depends-on): Remove intprops.
23696         * lib/relocwrapper.c: Update dependency tree.
23697         (strerror): Undefine.
23698         * build-aux/install-reloc (func_create_wrapper): Do not compile
23699         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
23701 2016-11-19  Bruno Haible  <bruno@clisp.org>
23703         strerror: Make it compile in C++ mode.
23704         * lib/strerror.c (strerror): Ignore the return value of memcpy().
23706 2016-11-15  Pedro Alves  <palves@redhat.com>
23708         sys_time: add gnulib::timeval for C++
23709         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
23710         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
23711         timeval macro.
23713 2016-11-14  Pedro Alves  <palves@redhat.com>
23715         snippet/c++defs: fix real-floating arg functions in C++ mode
23716         Also, define isfinite, isinf, isnan, signbit in the gnulib
23717         namespace instead of in the global namespace.
23718         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
23719         (_GL_END_NAMESPACE): New.
23720         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
23721         (isfinite, isinf, isnan, signbit) [__cplusplus &&
23722         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
23723         instead of in the global namespace.
23724         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
23725         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
23726         of in the global namespace.
23728 2016-11-13  Jim Meyering  <meyering@fb.com>
23730         strftime: don't use __THROW
23731         Each use of __THROW would provoke this from gcc-7-to-be:
23733           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
23734             on unit local functions [-Wattributes]
23735           static int iso_week_days (int, int) __THROW;
23736           ^~~~~~
23737         * lib/strftime.c (__THROW): Don't define.
23738         Remove each use of __THROW.
23739         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
23740         (tm_diff, iso_week_days, __strftime_internal): Likewise.
23742 2016-11-14  Paul Eggert  <eggert@union>
23744         obstack: port to gcc -fcheck-pointer-bounds
23745         Problem found by 'make check' failure on bleeding-edge coreutils
23746         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
23747         6.2.0-5ubuntu12), configured via "./configure
23748         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
23749         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
23750         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
23751         New macro, copied from fts_.h.
23752         (struct _obstack_chunk.contents): Use it.
23754 2016-11-14  Eric Blake  <eblake@redhat.com>
23756         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
23757         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
23758         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
23760 2016-11-14  Pádraig Brady  <P@draigBrady.com>
23762         strptime: fix compile error in recent change
23763         * lib/strptime.c (__strptime_internal): Fix ported code.
23765 2016-11-11  Bruno Haible  <bruno@clisp.org>
23767         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
23768         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
23769         (func_import): Extend determination of license_incompatibilities.
23770         (func_create_testdir): Extend table of license compatibility. Handle
23771         also the licenses GPLv3+, GPL, LGPLv3+.
23773 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
23775         strftime: tune %q
23776         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
23778         Merge strftime.c changes from glibc
23779         This incorporates:
23780         2007-10-16 [BZ #5184] Add tzset_called argument
23781         2008-06-13 [BZ #6612] pass reference to tzset_called around
23782         2009-10-30 Implement Burmese language locale for Myanmar
23783         2010-01-09 Add support for XPG7 testing
23784         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
23785         2015-10-20 Convert miscellaneous function definitions to prototype style
23786         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
23787         it anyway and this lessens the difference between gnulib and glibc.
23788         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
23789         (__THROW): Define if standard headers do not.
23790         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
23791         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
23792         Declare with __THROW.
23793         (__strftime_internal): Rename from strftime_case_. Add arg for
23794         whether tzset is called.  All uses changed.  Call tzset at most
23795         once.  Allow %OC, for Burmese.
23796         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
23797         Don't assume values are in range.
23799 2016-11-12  Eric Blake  <eblake@redhat.com>
23801         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
23802         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
23803         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
23804         different value.
23806 2006-11-12  Pedro Alves  <palves@redhat.com>
23808         Fix gnulib C++ namespace support and std::frexp
23809         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
23810         _GL_CXXALIASWARN.
23812 2006-11-12  Pedro Alves  <palves@redhat.com>
23814         GNULIB_NAMESPACE::func need not pull in rpl_func
23815         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
23816         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
23817         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
23818         struct instead of a function pointer.
23820 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
23822         manywarnings: fix -Wno-missing-field-initializers detection
23823         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
23824         to be independent of -Wunused-variable.  I.E. ensure the latter
23825         warning doesn't occur so that detection of the former is accurate.
23827 2016-11-05  Pádraig Brady  <pbrady@fb.com>
23829         strftime,strptime: support %q to represent the quarter
23830         * lib/strftime.c (strftime_case_): Add %q case.
23831         * lib/strptime.c (__strptime_internal): Likewise.
23832         * tests/test-strftime.c (quarter_test): A new test case.
23834 2016-11-03  Eric Blake  <eblake@redhat.com>
23836         bootstrap: Fix get_version() for AIX 5.3
23837         * build-aux/bootstrap (get_version): Factor out sed script, since
23838         indented comments choke AIX 5.3 sed.
23839         Reported-by: Michael Felt <aixtools@gmail.com>
23841 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
23843         intprops: port to older XL C
23844         Problem reported by Alexander Samoilov in:
23845         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
23846         http://savannah.nongnu.org/bugs/?49448
23847         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
23848         Define to 1 only for XL C 12.1 or later, since this bug
23849         occurs in XL C for AIX 6.0 but not in 12.1.
23851 2016-11-02  Pádraig Brady  <P@draigBrady.com>
23853         backupfile: initialize default suffix within the implementation
23854         * lib/backupfile.c (find_backup_file_name): Initialize the
23855         global variable here, to simplify usage, and to only call
23856         getenv() when needed.
23858 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
23860         futimens: remove FIXME for old Linux kernels
23861         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
23862         this in 2012" FIXME, like that for utimensat.
23864         utimensat: remove FIXME for old Linux kernels
23865         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
23866         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
23867         this in 2012" FIXME, by assuming the file system bug is absent
23868         unless demonstrated to be present.  We no longer need to worry
23869         about Linux kernel 2.6.32 when building with newer kernels.
23871 2016-10-16  Bruno Haible  <bruno@clisp.org>
23873         qsort_r: Fix macrology for platforms that lack the function.
23874         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
23875         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
23876         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
23877         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
23878         not exist.
23879         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
23880         the function exists.
23881         * modules/qsort_r: Add comments.
23883 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23885         sys_types: fix Texinfo typos
23886         * doc/glibc-functions/gnu_dev_major.texi:
23887         * doc/glibc-functions/gnu_dev_makedev.texi:
23888         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
23890 2016-10-26  John David Anglin  <dave.anglin@bell.net>
23892         getprogname: port to HP-UX
23893         See Bug#24805.
23894         * lib/getprogname.c (getprogname) [__hpux]: Port.
23895         * tests/test-getprogname.c (STREQ) [__hpux]:
23896         Special-case for HP-UX limitations on program name length.
23898 2016-10-20  Bruno Haible  <bruno@clisp.org>
23900         Update doc about target platforms.
23901         * doc/gnulib-intro.texi (Target Platforms): Update list.
23903 2016-10-15  Bruno Haible  <bruno@clisp.org>
23905         opendir, readdir, closedir: Relicense under LGPLv2+.
23906         * modules/opendir (License): Change to LGPLv2+.
23907         * modules/readdir (License): Likewise.
23908         * modules/closedir (License): Likewise.
23910 2016-10-16  Bruno Haible  <bruno@clisp.org>
23912         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23913         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
23914         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
23915         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
23916         HAVE_DECL_STRERROR_R.
23918 2016-10-16  Bruno Haible  <bruno@clisp.org>
23920         Make the 'argp' module work without the 'error' module.
23921         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
23923 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
23925         diffseq: restore TOO_EXPENSIVE heuristic
23926         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
23927         (Bug#24715).  The simplest solution is to restore the
23928         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
23929         using a higher threshold to avoid Bug#16848 on smaller files.
23930         * lib/diffseq.h (struct context): Restore member too_expensive.
23931         (struct partition): Restore members lo_minimal, hi_minimal.
23932         (diag, compareseq): Restore arg find_minimal.  All uses changed.
23933         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
23934         1993 to make 'diff' run faster (but not as well) on large inputs,
23935         but use a threshold of 4096 instead of the old 256.
23936         * lib/fstrcmp.c (strcmp_bounded):
23937         * lib/git-merge-changelog.c (compute_differences):
23938         Adjust to diffseq.h changes.
23940 2016-10-22  Bruno Haible  <bruno@clisp.org>
23942         iconv: Avoid compilation error when bootstrapping GNU libiconv.
23943         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
23944         declaration yet, define ICONV_CONST to empty.
23946 2016-10-15  Bruno Haible  <bruno@clisp.org>
23948         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
23949         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
23950         module.
23952 2016-10-16  Bruno Haible  <bruno@clisp.org>
23954         system-quote tests: Avoid compiler warning on AIX.
23955         * tests/test-system-quote-child.c (fopen): Redefine like the system's
23956         <stdio.h> does.
23958 2016-10-16  Bruno Haible  <bruno@clisp.org>
23960         Fix some "gcc -Wall" warnings.
23961         * tests/test-ffsl.c (main): Use variable x, not i.
23962         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
23963         freopen.
23964         * tests/test-sethostname1.c (main): Explicitly ignore the return value
23965         of sethostname.
23967 2016-10-16  Bruno Haible  <bruno@clisp.org>
23969         gnulib-tool: Make --create-testdir on all modules work again.
23970         * gnulib-tool (func_create_testdir): Don't include the
23971         non-recursive-gnulib-prefix-hack module.
23973 2016-10-21  Daiki Ueno  <ueno@gnu.org>
23975         libunistring: change the maintainer to 'all'
23976         * modules/gen-uni-tables, modules/libunistring:
23977         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
23978         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
23979         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
23980         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
23981         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
23982         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
23983         * modules/uniwidth/*: Change the maintainer to 'all'.
23985 2016-10-16  Bruno Haible  <bruno@clisp.org>
23987         Simplify "configure: checking ..." messages.
23988         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
23989         AC_MSG_NOTICE.
23990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
23992 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
23994         quotearg-tests: pacify gcc -Wall
23995         Problem reported by Bruno Haible in:
23996         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
23997         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
23998         * tests/test-quotearg.h: ... from here.
24000 2016-10-20  Pádraig Brady  <P@draigBrady.com>
24002         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
24003         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
24004         Needed on Centos <= 4.
24006 2016-10-20  Jim Meyering  <meyering@fb.com>
24008         printf.m4: fix a bug in detecting printf %j support
24009         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
24010         uintmax_t is defined in neither stdint.h nor inttypes.h.
24011         Before, this macro might have mistakenly set
24012         gl_cv_func_printf_sizes_c99=yes on such a system.
24013         Spotted by Zev Weiss.
24015 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
24017         sched: substitute HAVE_SYS_CDEFS_H too
24018         Problem reported by Tom G. Christensen in:
24019         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
24020         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
24021         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
24023 2016-10-19  Pádraig Brady  <P@draigBrady.com>
24025         quotearg: never write beyond the returned length
24026         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
24027         scan of the string when we initially encounter a single quote when
24028         shell quoting, so that if we then switch to a more concise quoting method
24029         we will not have written beyond that returned length.
24030         This is significant for sh-quote, which has separate routines
24031         to determine the length and do the actual quoting.
24032         * tests/test-quotearg.h: Reinstate the buffer bounds checking
24033         now that we never write more than the returned length.
24035 2016-10-18  Bruno Haible  <bruno@clisp.org>
24037         getprogname tests: Avoid failure in packages that use libtool.
24038         * tests/test-getprogname.c (main): Strip "lt-" prefix.
24039         Based on a patch by Jim Meyering.
24041 2016-10-16  Bruno Haible  <bruno@clisp.org>
24043         getprogname: Fix test failure on Cygwin. Comments.
24044         * lib/getprogname.h: Add comments.
24045         * lib/getprogname.c: Add comments. Fix #elif indentation.
24046         * tests/test-getprogname.c (main): On Cygwin, expect a result without
24047         ".exe" suffix.
24049 2016-10-16  Bruno Haible  <bruno@clisp.org>
24051         Make sure the libunistring detection rejects older versions with a
24052         known bug.
24053         * modules/unistr/u8-strtok (configure.ac): Bump required version.
24054         * modules/unistr/u16-strtok (configure.ac): Likewise.
24055         * modules/unistr/u32-strtok (configure.ac): Likewise.
24057 2016-10-18  Bruno Haible  <bruno@clisp.org>
24059         sh-quote, system-quote: revert regression of unit test.
24060         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
24061         * tests/test-system-quote-main.c (check_one): Likewise.
24063 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24065         quotearg: fix stale tests
24066         * tests/test-quotearg.c [locale_results]: Add the missing str7
24067         entries to the expected results.
24068         * tests/test-system-quote-main.c (check_one): Don't enforce that we
24069         don't write beyond the returned length, since that's no longer the
24070         case if we switch to a more concise quoting style.
24071         * tests/test-sh-quote.c (check_one): Likewise.
24072         (main): Adjust for the new more concise quoting style.
24073         Reported by Bruno Haible.
24075 2016-10-16  Jim Meyering  <meyering@fb.com>
24077         non-recursive-gnulib-prefix-hack: fix inconsequential typo
24078         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
24079         to "$1".  This macro is always invoked with $1 == lib.
24080         Spotted by Bruno Haible
24082 2016-10-16  Bruno Haible  <bruno@clisp.org>
24084         Fix a test crash.
24085         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
24086         fails.
24088 2016-10-16  Pádraig Brady  <P@draigBrady.com>
24090         test-limits-h: suppress -Woverlength-strings
24091         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
24093 2016-10-15  Bruno Haible  <bruno@clisp.org>
24095         gettime, timespec, utimens: Relicense under LGPL.
24096         * modules/gettime (License): Change to LGPL.
24097         * modules/timespec (License): Likewise.
24098         * modules/utimens (License): Likewise.
24100 2016-10-14  Bruno Haible  <bruno@clisp.org>
24101             Pádraig Brady  <P@draigBrady.com>
24103         canonicalize-lgpl: Support the case path_max > INT_MAX.
24104         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
24105         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
24107 2016-10-13  Jim Meyering  <meyering@fb.com>
24109         getprogname: IBM z/OS: avoid NULL-dereference
24110         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
24111         upon strdup failure.
24113 2016-10-12  Jim Meyering  <meyering@fb.com>
24115         test-stdint: use _GL_VERIFY rather than "verify" for some tests
24116         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
24117         and an abbreviated diagnostic rather than verify with the full one,
24118         because the full-length strings would evoke warnings from gcc with
24119         -Woverlength-strings.
24121 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24123         stdint: port SIZE_MAX to glibc s390
24124         Problem reported by Eric Blake in:
24125         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
24126         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
24127         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
24128         correct type, if possible.
24130 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
24132         getprogname: port to IBM z/OS
24133         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
24135 2016-10-11  Jim Meyering  <meyering@fb.com>
24137         maint: remove stray space after "." in AC_DEFINE comment.
24138         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
24139         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24141 2016-10-05  Jim Meyering  <meyering@fb.com>
24143         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24144         * lib/long-options.c (parse_long_options): Add a break statement
24145         to avoid this new warning/failure:
24146         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24147           --create-testdir --dir=/t/x --with-tests --test long-options
24148         ../../gllib/long-options.c: In function 'parse_long_options':
24149         ../../gllib/long-options.c:66:12: error: this statement may \
24150           fall through [-Werror=implicit-fallthrough]
24151                    (*usage_func) (EXIT_SUCCESS);
24152                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24154 2016-10-05  Jim Meyering  <meyering@fb.com>
24156         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24157         Testing this module would fail when using GCC 7 like this:
24158         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24159           --dir=/tmp/x --with-tests --test utimecmp
24160         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24161         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24162           [-Werror=bool-operation]
24163                          time_t s = src_s & ~ (res == 2 * BILLION);
24164                                             ^
24165         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24166           [-Werror=bool-operation]
24167                src_s &= ~ (res == 2 * BILLION);
24168                         ^
24169         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24170         Instead, make it explicit that we intend to apply it to 0 or 1.
24172 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24174         dfa: save memory for states
24175         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
24176         states if dfa has a lot of caches.
24178 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
24180         wchar, wctype-h: fix for MinGW 3.22.2
24181         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
24182         special invocation, to fix issues with MinGW 3.22.2 wchar.h
24183         when included from <string.h>.
24184         * lib/wctype.in.h [__MINGW32__]: Add special invocation
24185         convention for MinGW 3.22.2, to solve issues with their
24186         wctype.h when included from <ctype.h>.
24188 2016-10-05  Jim Meyering  <meyering@fb.com>
24190         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
24191         * lib/long-options.c (parse_long_options): Add a break statement
24192         to avoid this new warning/failure:
24193         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
24194           --create-testdir --dir=/t/x --with-tests --test long-options
24195         ../../gllib/long-options.c: In function ‘parse_long_options’:
24196         ../../gllib/long-options.c:66:12: error: this statement may \
24197           fall through [-Werror=implicit-fallthrough]
24198                    (*usage_func) (EXIT_SUCCESS);
24199                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
24201         utimecmp: avoid new GCC 7 warning from -Wbool-operation
24202         Testing this module would fail when using GCC 7 like this:
24203         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
24204           --dir=/tmp/x --with-tests --test utimecmp
24205         ../../gllib/utimecmp.c: In function ‘utimecmp’:
24206         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
24207           [-Werror=bool-operation]
24208                          time_t s = src_s & ~ (res == 2 * BILLION);
24209                                             ^
24210         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
24211           [-Werror=bool-operation]
24212                src_s &= ~ (res == 2 * BILLION);
24213                         ^
24214         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
24215         Instead, make it explicit that we intend to apply it to 0 or 1.
24217 2016-10-03  Pádraig Brady  <P@draigBrady.com>
24219         quotearg: minimize shell quoting using double quotes
24220         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
24221         quote in encountered then use double quotes (c style quoting)
24222         when possible, as it simplifies the quoting.
24223         * tests/test-quotearg-simple.c: Add test cases.
24224         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
24225         for the fact we now may write beyond the returned length.
24227 2016-10-02  Jim Meyering  <meyering@fb.com>
24229         vasnprintf.c: avoid spurious warning from GCC 7
24230         The presence of cpp directives renders this "FALLTHROUGH" comment
24231         ineffective, so does not suppress the -Wimplicit-fallthrough warning
24232         from GCC 7 built from git on 2016-10-02.
24233         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
24234         directives, so that it takes effect once again.  This is clearly
24235         not a proper change, and I will revert it once this bug is fixed:
24236         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
24238 2016-10-01  Jim Meyering  <meyering@fb.com>
24240         getprogname: correct the test for a __progname variable
24241         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
24242         and AC_LINK_IFELSE to check for a global __progname.  If found,
24243         define HAVE_VAR___PROGNAME.
24244         * lib/getprogname.c (getprogname): Reflect the new name of the
24245         feature- checked preprocessor symbol:
24246         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
24248 2016-09-28  Jim Meyering  <meyering@fb.com>
24250         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
24251         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
24252         fall-through case with a /* fallthrough */ comment.
24254         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
24255         * lib/dfa.c (dfassbuild): Mark the end of this case with a
24256         /* fallthrough */ comment.
24258         getprogname: avoid __progname vs program_invocation_short_name pitfall
24259         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
24260         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
24261         not with Fedora 24's glibc-2.23.1-10.
24262         * lib/getprogname.c (__progname): Move this declaration down...
24263         (getprogname): ... into the #elif block where used, and make it
24264         explicitly "extern".
24266         getprogname: port to OpenBSD 5.1
24267         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
24268         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
24269         * modules/getprogname (configure.ac): Move most of this code...
24270         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
24271         increment serial number, and add a test for __progname.
24272         https://bugs.gnu.org/24562
24273         Reported by Nelson H. F. Beebe.
24275 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24277         sched: port to GCC 6.2.1 on macOS Sierra
24278         Problem reported by Denis Davydov in:
24279         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
24280         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
24281         Include <sys/cdefs.h> before <sched.h>.
24282         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
24283         so that we needn’t worry about the sched.h include bug here.
24284         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
24285         and include it before <sched.h> if it exists, when
24286         checking for <sched.h>.
24288         tests/init.sh: port Alpine fix to AIX 7.1
24289         * tests/init.sh (compare_): When attempting to use diff -U3,
24290         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
24291         diff -u not outputting a space after leading '+', as the users
24292         of 'compare' should not be that picky about its output format.
24293         In the AIX 7.1 case, return with diff exit status (or with 2 if
24294         trouble), instead of some random nonzero exit status.
24295         * tests/test-init.sh (test_compare): Remove space after leading
24296         '+', so that AIX 7.1 'diff' passes the test.
24298 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24300         nl_langinfo: pacify GCC
24301         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
24302         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
24304         stdint: also set GL_GENERATE_LIMITS_H
24305         Problem reported by Jim Meyering in:
24306         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
24307         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
24309         limits-h, stdint: Don't assume extensions, fix typo
24310         * m4/limits-h.m4 (gl_LIMITS_H):
24311         * m4/stdint.m4 (gl_STDINT_H):
24312         Don't assume AC_USE_SYSTEM_EXTENSIONS.
24313         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
24314         reported by Jim Meyering in:
24315         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
24317 2016-09-21  Jim Meyering  <meyering@fb.com>
24319         getprogname: port to AIX
24320         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
24321         and strdup to obtain a short program name string.  Using code from
24322         Bruno Haible and an idea from Bastien ROUCARIÈS, in
24323         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24324         Assaf Gordon reported that this new file would fail to compile on
24325         AIX-7.1 32bit.
24327 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24329         extensions: fix typo in comment
24330         * m4/extensions.m4: Sync from Autoconf master.
24332         stdint: support new _WIDTH macros
24333         * doc/posix-headers/stdint.texi: Document this.
24334         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
24335         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
24336         support for INTMAX_WIDTH, etc. as well as for support for just C99.
24337         * modules/stdint (Depends-on): Add limits-h.
24338         (Makefile.am): Substitute HAVE_C99_STDINT_H.
24339         * modules/stdint-tests (Depends-on): Add extensions, so that
24340         INTMAX_MAX etc. are defined.
24341         * tests/test-stdint.c: Verify the new macros.
24343         limits-h: new module
24344         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
24345         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
24346         * doc/posix-headers/limits.texi: Document new module.
24347         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
24348         * modules/limit-h-tests, tests/test-limits-h.c: New files.
24350         stdio: don't redefine __USE_MINGW_ANSI_STDIO
24351         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
24352         if it is already defined.  Apparently GNU Emacs relies on this.  See:
24353         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
24355 2016-09-15  Eric Blake  <eblake@redhat.com>
24357         sys_types: avoid glibc 2.25 warnings about major()
24358         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
24359         older autoconf.
24360         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
24361         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
24362         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
24363         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
24365         mountlist: include sysmacros.h for glibc
24366         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
24367         AC_HEADER_MAJOR.
24368         * lib/mountlist.c (includes): Use correct headers.
24370 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24372         extensions: port to more ISO C TSes
24373         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
24374         master, to add support for more recent ISO C TRs and TSes.
24376 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24378         intprops: new macro TYPE_WIDTH
24379         * lib/intprops.h (TYPE_WIDTH): New macro.
24380         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
24381         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
24382         * lib/parse-datetime.y (parse_datetime2):
24383         Use it.
24385         extensions: port to recent ISO C TRs
24386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
24387         Sync from Autoconf master, to add support for recent ISO C TRs.
24388         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
24389         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
24390         the MinGW option is not an extension.
24392 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
24394         dfa: port to Solaris 9
24395         Problems reported by Tom G. Christensen in:
24396         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
24397         * modules/dfa (Depends-on): Add isblank.
24398         * modules/dfa-tests (dfa_match_aux_LDADD):
24399         Rename from test_stat_LDADD, to fix typo.
24400         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
24402 2016-09-10  Jim Meyering  <meyering@fb.com>
24404         strverscmp: avoid link failure on OS X
24405         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
24406         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
24408 2016-08-16  Jim Meyering  <meyering@fb.com>
24410         dfa: new module, importing grep's DFA matcher
24411         Since grep's DFA matcher is now being used by two gnulib-enabled
24412         projects, grep and sed, it makes sense to version-control its
24413         sources and unit tests in one place: here.
24414         * modules/dfa: New module.
24415         * modules/dfa-tests: New file.
24416         * lib/dfa.c: New file, from grep.
24417         * lib/dfa.h: Likewise.
24418         * lib/localeinfo.c: Likewise.
24419         * lib/localeinfo.h: Likewise.
24420         * tests/dfa-match-aux.c: Likewise.
24421         * tests/dfa-invalid-char-class.sh: Likewise.
24422         * tests/dfa-match.sh: Likewise, with minor changes.
24423         * MODULES.html.sh (Misc): Add "dfa" to this list.
24425 2016-09-09  Jim Meyering  <meyering@fb.com>
24427         getprogname-tests: don't depend on assert-h
24428         * modules/getprogname-tests (Depends-on): Remove assert-h.
24429         It was not needed, and in fact would cause build failure for
24430         coreutils on some systems.  Reported by Assaf Gordon in https:
24431         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
24433 2016-09-07  Jim Meyering  <meyering@fb.com>
24435         getprogname-tests: work also when EXEEXT is nonempty
24436         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
24437         * tests/test-getprogname.c (main): Use it.
24438         Suggested by Gisle Vanem.
24440 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
24442         getprogname: fix errors in previous change
24443         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
24444         s/program_invocation_name/base/
24445         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
24447 2016-09-08  Pádraig Brady  <P@draigBrady.com>
24449         parse-datetime: restrict debug output to input string
24450         * lib/parse-datetime.y (parse_datetime2): If we parse
24451         all of the input but determine it's invalid, ensure
24452         we don't output the now invalid input pointer.
24453         This issue was seen with `date -d 'now +1'`.
24455 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24457         flexmember: new macro FLEXALIGNOF
24458         * lib/flexmember.h: Include <stddef.h>, for offsetof.
24459         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
24460         this macro.  Update comments.
24462 2016-09-07  Jim Meyering  <meyering@fb.com>
24464         getprogname: port to systems with __argv (mingw, msvc)
24465         * lib/getprogname.c (getprogname): Include "dirname.h" and use
24466         last_component: more general than open coding it with hard-coded "/".
24467         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
24468         * modules/getprogname (Depends-on): Add dirname-lgpl.
24469         (configure.ac): Check for __argv in <stdlib.h>.
24470         * modules/getprogname-tests: New file.
24471         * tests/test-getprogname.c: New file.
24472         Suggested by Gisle Vanem in
24473         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
24475 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
24477         flexmember: port better to GCC + valgrind
24478         With a char[] flexible array member in a struct with nontrivial
24479         alignment, GCC-generated code can access past the end of the
24480         array, because GCC assumes there are padding bytes to get the
24481         struct aligned.  So the common idiom of malloc (offsetof (struct
24482         s, m), n) does not properly allocate an n-byte trailing member, as
24483         malloc’s argument should be the next multiple of alignof (struct s).
24484         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
24485         Although C11 apparently permits this GCC optimization (i.e., there
24486         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
24487         See the thread containing:
24488         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
24489         * lib/flexmember.h: New file.
24490         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
24491         * lib/localename.c, lib/time_rz.c:
24492         Include flexmember.h.
24493         * lib/fnmatch_loop.c (struct patternlist):
24494         * lib/localename.c (struct hash_node):
24495         Use FLEXIBLE_ARRAY_MEMBER.
24496         * lib/fnmatch_loop.c (EXT):
24497         * lib/fts.c (fts_alloc):
24498         * lib/glob.c (glob_in_dir):
24499         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
24500         * lib/localename.c (gl_lock_define_initialized):
24501         * lib/time_rz.c (tzalloc):
24502         Use FLEXSIZEOF instead of offsetof.
24503         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
24504         Check that the size of the struct can be taken.
24505         * modules/flexmember (Files): Add lib/flexmember.h.
24506         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
24507         Add flexmember.
24509 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24511         getprogname: port to Solaris 10
24512         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
24513         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
24514         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
24516         stdalign: correct mistake in alignof doc
24517         Problem reported by Joseph Myers in:
24518         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
24519         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
24520         alignof(S) where S is a structure containing a flexible array
24521         member.  The Gnulib substitute does not support this, but C11 does.
24523 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24525         main.mk: remove sc_program_name, since there is no more need to
24526         use set_program_name in tools (getprogname is enough for most
24527         of the cases).
24528         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
24529         * top/maint.mk (sc_program_name): Remove.
24531 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24533         Port tests away from progname, since modules that need the
24534         program name already depend on getprogname.
24535         * modules/acl-tests (Depends-on): Remove progname.
24536         * modules/argmatch (Depends-on): Likewise.
24537         * modules/argmatch-tests (Depends-on): Likewise.
24538         * modules/argp-tests (Depends-on): Likewise.
24539         * modules/argp-version-etc-tests (Depends-on): Likewise.
24540         * modules/array-list-tests (Depends-on): Likewise.
24541         * modules/array-oset-tests (Depends-on): Likewise.
24542         * modules/avltree-list-tests (Depends-on): Likewise.
24543         * modules/avltree-oset-tests (Depends-on): Likewise.
24544         * modules/avltreehash-list-tests (Depends-on): Likewise.
24545         * modules/carray-list-tests (Depends-on): Likewise.
24546         * modules/copy-file-tests (Depends-on): Likewise.
24547         * modules/exclude-tests (Depends-on): Likewise.
24548         * modules/fchownat-tests (Depends-on): Likewise.
24549         * modules/fdopendir-tests (Depends-on): Likewise.
24550         * modules/filenamecat-tests (Depends-on): Likewise.
24551         * modules/fstatat-tests (Depends-on): Likewise.
24552         * modules/fstrcmp-tests (Depends-on): Likewise.
24553         * modules/linked-list-tests (Depends-on): Likewise.
24554         * modules/linkedhash-list-tests (Depends-on): Likewise.
24555         * modules/mkdirat-tests (Depends-on): Likewise.
24556         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
24557         * modules/nonblocking-socket-tests (Depends-on): Likewise.
24558         * modules/obstack-printf-tests (Depends-on): Likewise.
24559         * modules/openat-tests (Depends-on): Likewise.
24560         * modules/parse-datetime-tests (Depends-on): Likewise.
24561         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
24562         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
24563         * modules/quotearg-simple-tests (Depends-on): Likewise.
24564         * modules/quotearg-tests (Depends-on): Likewise.
24565         * modules/rbtree-list-tests (Depends-on): Likewise.
24566         * modules/rbtree-oset-tests (Depends-on): Likewise.
24567         * modules/rbtreehash-list-tests (Depends-on): Likewise.
24568         * modules/spawn-pipe-tests (Depends-on): Likewise.
24569         * modules/system-quote-tests (Depends-on): Likewise.
24570         * modules/uniname/uniname-tests (Depends-on): Likewise.
24571         * modules/uninorm/nfc-tests (Depends-on): Likewise.
24572         * modules/uninorm/nfd-tests (Depends-on): Likewise.
24573         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
24574         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
24575         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
24576         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
24577         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
24578         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
24579         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
24580         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
24581         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
24582         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
24583         * modules/unlinkat-tests (Depends-on): Likewise.
24584         * modules/version-etc-tests (Depends-on): Likewise.
24585         * modules/xalloc-die-tests (Depends-on): Likewise.
24586         * modules/xmemdup0-tests (Depends-on): Likewise.
24587         * modules/xprintf-posix-tests (Depends-on): Likewise.
24588         * modules/xvasprintf-tests (Depends-on): Likewise.
24589         * tests/test-argmatch.c: Do not include progname.h.
24590         (main) Stop calling set_program_name.
24591         * tests/test-argp-version-etc.c: Likewise.
24592         * tests/test-argp.c: Likewise.
24593         * tests/test-argv-iter.c: Likewise.
24594         * tests/test-array_list.c: Likewise.
24595         * tests/test-array_oset.c: Likewise.
24596         * tests/test-avltree_list.c: Likewise.
24597         * tests/test-avltree_oset.c: Likewise.
24598         * tests/test-avltreehash_list.c: Likewise.
24599         * tests/test-carray_list.c: Likewise.
24600         * tests/test-copy-acl.c: Likewise.
24601         * tests/test-copy-file.c: Likewise.
24602         * tests/test-exclude.c: Likewise.
24603         * tests/test-fchownat.c: Likewise.
24604         * tests/test-fdopendir.c: Likewise.
24605         * tests/test-filenamecat.c: Likewise.
24606         * tests/test-fstatat.c: Likewise.
24607         * tests/test-fstrcmp.c: Likewise.
24608         * tests/test-linked_list.c: Likewise.
24609         * tests/test-linkedhash_list.c: Likewise.
24610         * tests/test-mkdirat.c: Likewise.
24611         * tests/test-nonblocking-pipe-main.c: Likewise.
24612         * tests/test-nonblocking-socket-main.c: Likewise.
24613         * tests/test-obstack-printf.c: Likewise.
24614         * tests/test-openat.c: Likewise.
24615         * tests/test-parse-datetime.c: Likewise.
24616         * tests/test-pipe-filter-gi1.c: Likewise.
24617         * tests/test-pipe-filter-gi2-main.c: Likewise.
24618         * tests/test-pipe-filter-ii1.c: Likewise.
24619         * tests/test-pipe-filter-ii2-main.c: Likewise.
24620         * tests/test-quotearg-simple.c: Likewise.
24621         * tests/test-quotearg.c: Likewise.
24622         * tests/test-rbtree_list.c: Likewise.
24623         * tests/test-rbtree_oset.c: Likewise.
24624         * tests/test-rbtreehash_list.c: Likewise.
24625         * tests/test-sameacls.c: Likewise.
24626         * tests/test-set-mode-acl.c: Likewise.
24627         * tests/test-spawn-pipe-main.c: Likewise.
24628         * tests/test-system-quote-main.c: Likewise.
24629         * tests/test-unlinkat.c: Likewise.
24630         * tests/test-version-etc.c: Likewise.
24631         * tests/test-xalloc-die.c: Likewise.
24632         * tests/test-xfprintf-posix.c: Likewise.
24633         * tests/test-xmemdup0.c: Likewise.
24634         * tests/test-xprintf-posix.c: Likewise.
24635         * tests/test-xvasprintf.c: Likewise.
24636         * tests/uniname/test-uninames.c: Likewise.
24637         * tests/uninorm/test-u32-nfc-big.c: Likewise.
24638         * tests/uninorm/test-u32-nfd-big.c: Likewise.
24639         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
24640         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
24641         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
24642         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
24643         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
24644         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
24645         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
24646         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
24647         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
24648         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
24649         * tests/test-c-stack.c: (program_name): Do not define.
24650         (main): Do not set program_name.
24651         * tests/test-closein.c: Likewise.
24652         * tests/test-xstrtol.c: Likewise.
24653         * tests/test-yesno.c: Likewise.
24655 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24657         Port modules to use getprogname explicitly, instead of requiring
24658         progname to be used (or program_name to be provided).
24659         * lib/argmatch.c: Do not include progname.h.
24660         [TEST] (program_name): Do not define.
24661         [TEST] (main): Call getprogname instead of using program_name.
24662         * lib/c-stack.c: Do not include progname.h.
24663         (program_name): Do not define.
24664         (die): Call getprogname instead of using program_name.
24665         * lib/chdir-long.c: Do not include progname.h.
24666         [TEST_CHDIR] (main): Do not set program_name.
24667         * lib/error.c [!_LIBC]: Include progname.h.
24668         [!_LIBC] (program_name): Define using getprogname.
24669         * lib/euidaccess.c: Do not include progname.h.
24670         [TEST] (main): Do not set program_name.
24671         * lib/git-merge-changelog.c: Include getprogname.h instead of
24672         progname.h.
24673         (usage): Call getprogname instead of using program_name.
24674         (main): Likewise.  Stop calling set_program_name.
24675         * lib/group-member.c: Do not include progname.h.
24676         [TEST] (main): Do not set program_name.
24677         * modules/argmatch (Depends-on): Add getprogname.
24678         * modules/c-stack (Depends-on): Likewise.
24679         * modules/error (Depends-on): Likewise.
24680         * modules/git-merge-changelog (Depends-on): Likewise.
24681         Also remove progname.
24683 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
24685         * NEWS: Document the deprecation of the 'progname' module.
24687 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
24689         getprogname: new module
24690         This provides a LGPL module for getting the name of the current
24691         program, using the same API found on *BSD systems.
24692         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
24693         * modules/getprogname: New files.
24694         * MODULES.html.sh (Misc): Add getprogname.
24696 2016-09-02  Jim Meyering  <meyering@fb.com>
24698         manywarnings: add -fno-common
24699         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
24700         to the list.  Quoting the manual, "Compiling with -fno-common is
24701         useful on targets for which it provides better performance, or if
24702         you wish to verify that the program will work on other systems that
24703         always treat uninitialized variable declarations this way [putting
24704         it in the data section]."  If diffutils had been using this sooner,
24705         it would have prevented this duplicate declaration issue:
24706         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
24708 2016-08-31  Simon Josefsson  <simon@josefsson.org>
24710         parse-datetime: Fix typo.
24711         * lib/parse-datetime.y (parse_datetime2): Fix typo.
24713 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24715         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
24716         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
24717         GCC 5 and 6 that have __builtin_sub_overflow but not
24718         __builtin_sub_overflow_p.  With the recent changes, these
24719         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
24720         implementation than with INT_SUBTRACT_OVERFLOW implementation,
24721         since the former needs just one runtime comparison whereas the
24722         latter needs two.
24724         strverscmp: sync with glibc
24725         Although this doesn't exactly synchronize with glibc
24726         byte-for-byte, it makes the code behave the same as glibc.
24727         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
24728         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
24729         difference shouldn't matter in practical use.  All uses changed
24730         back to isdigit.
24731         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
24732         (next_state): Now unsigned char array; redo elements.
24733         (result_type): Now signed char array; redo elements.
24734         (__strverscmp): Fix glibc bug 9913 by using new states.
24735         * tests/test-strverscmp.c (main): Test glibc bug 9913.
24737 2016-08-29  Jim Meyering  <meyering@fb.com>
24739         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
24740         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
24741         similarly to how it was done to intprops.h.
24743 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24745         intprops.h: port recent changes to GCC 6.2.0
24746         * lib/intprops.h (__has_builtin): Move earlier.
24747         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
24748         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
24749         the last argument can be null.  All uses changed.
24750         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
24751         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24752         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
24753         and it's not clear which GCC versions it works for.
24754         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
24755         its definiens.
24757         intprops.h: use __typeof__ with GCC 7
24758         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
24759         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
24760         This avoids computing the expression's value (which might overflow!).
24762 2016-08-29  Jim Meyering  <meyering@fb.com>
24764         intprops.h, xalloc-oversized.h: work with gcc 7
24765         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
24766         __builtin_mul_overflow each accept a NULL pointer as the third
24767         argument.  However in gcc 7, that is no longer accepted.
24768         Instead, one must use the "_p"-suffixed names, with which, the
24769         third parameter is no longer a pointer.
24770         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
24771         the definition: not true for gcc 7 and subsequent.
24772         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
24773         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
24774         Provide new definitions for gcc 7 and subsequent.
24775         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
24776         that works with gcc-7.
24778         intprops.h: fix missing-backslash problems
24779         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
24780         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
24782 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24784         intprops: fix paren typo on old platforms
24785         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
24786         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
24787         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
24788         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
24789         && !defined LLONG_MAX]:
24790         Remove stray paren.
24792         intprops: port to OpenVMS
24793         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
24794         * doc/posix-headers/limits.texi: Document the problem.
24795         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
24796         Define if not already defined.
24798 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
24800         parse-datetime: improve debug implementation
24801         Follow-up to commit 12ad79069 ("add optional debug printing").
24802         Improve parse-datetime's debug implementation: remove macros,
24803         replace global debug flag variable with a function parameter,
24804         use nstrftime for formatting.
24805         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
24806         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
24807         (parse_datetime2): New function, accepts 'flags' parameter, supporting
24808         debug flag. Existing interface 'parse_datetime' left unmodified.
24809         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
24810         (struct parser_control): add 'parse_datetime_debug' member variable.
24811         (parse_datetime): Call new function 'parse_datetime2' without debug.
24812         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
24813         pc.parse_datetime_debug variable as needed.
24814         (to_year): Accept new flags parameter, instead of using global variable.
24815         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
24816         use struct 'debug' variable instead of global variable.
24817         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
24818         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
24819         correspnding functions directly instead of using macros.
24820         * modules/parse-datetime: Add gnulib's strftime module.
24822 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
24824         c-strcase-tests: port to EBCDIC
24825         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
24826         which assume ASCII encoding semantics to run only in ASCII
24827         mode, as they fail in EBCDIC.
24829         sigpipe-tests: fix typo
24830         * tests/test-sigpipe.sh: C, not B.
24832 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
24834         canonicalize-lgpl: fix errno after malloca fails
24835         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
24836         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
24837         * lib/canonicalize-lgpl.c (__realpath):
24838         Don't assume malloca sets errno on failure.
24840 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24842         strtod: port errno handling to z/OS
24843         * lib/strtod.c (strtod): Save and restore errno more reliably.
24845 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24847         strtod: port to z/OS
24848         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24849         implementation.
24851 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24853         strtod: port to z/OS
24854         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
24855         implementation.
24857         regex, string: rename to avoid '__string'
24858         * lib/regex.h, lib/string.in.h: Do not use the identifier
24859         '__string', as it is effectively reserved by string.h on z/OS.
24861         c-strcase-tests, wcwidth-tests: depend on c-ctype
24862         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
24863         Add c-ctype.
24865 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
24867         thread: port to z/OS
24868         * lib/glthread/thread.c, lib/glthread/thread.h:
24869         Rudimentary gl_thread support for z/OS.
24871         maint: port tests to z/OS errno behavior
24872         * tests/test-nonblocking-reader.h:
24873         * tests/test-nonblocking-writer.h:
24874         Accommodate z/OS errno code preferences. (I believe this should
24875         still be within spec; IBM is good at following the letter if not
24876         the spirit of such things.)
24878         maint: preprocessor changes to support z/OS
24879         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
24880         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
24881         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
24882         * tests/test-nonblocking-pipe.h:
24884         fclose, strstr-simple, wchar: port to z/OS
24885         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
24886         Changes to the Autoconf M4 code to support z/OS.  Note that
24887         fclose() is broken in a different way on z/OS than it is on other
24888         systems, thus the special-case in fclose.m4.
24890         iconv_open-utf-tests, iconv-tests: port to EBCDIC
24891         * tests/test-iconv-utf.c, tests/test-iconv.c:
24892         Added appropriately conditional #pragmas so that the test strings
24893         in test-iconv-utf.c are correctly interpreted in ASCII instead of
24894         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
24895         addressed in a more portable way by simply rewriting all the ASCII
24896         literal characters as octal escapes, but then you would lose the
24897         partial readability that the strings have now. Also, iconv_open()
24898         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
24900         c-strcase-tests, wcwidth-tests: port to EBCDIC
24901         * tests/test-c-strcasecmp.c: Include c-ctype.h.
24902         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
24903         * tests/test-wcwidth.c: Likewise.
24905 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
24907         stdbool: don't require _Bool for C++
24908         Problem reported by David Seifert in:
24909         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
24910         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
24911         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
24912         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
24913         stricter about checking that bool and _Bool are compatible in C.
24915 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
24917         getdelim: remove dependency on realloc-posix
24918         * lib/canonicalize-lgpl.c (alloc_failed)
24919         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
24920         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
24921         Use __set_errno where needed, for consistency.
24922         * lib/getdelim.c (alloc_failed): New function.
24923         (getdelim): Use it.
24925 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
24927         parse-datetime: add optional debug printing
24928         Print parsing information, warnings, and errors to stderr.
24929         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
24930         * lib/parse-datetime.y:
24931         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
24932         (PROGRESS*): Same as DEBUG, for progress reporting.
24933         (dbg_printf): Print message to stderr, with 'date' prefix.
24934         (struct parser_control): Add 'debug_*_seen' variables.
24935         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
24936         (debug_print_current_time, debug_print_relateive_time): Prints the
24937         current/relative date/time value of parser_control.
24938         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
24939         (to_year): Warn about 2-digit year parsing.
24940         (yylex):   Warn about unrecognized words.
24941         (get_effective_timezone): Returns current timezone in minutes.
24942         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
24943         clearly and unambigiously as possible.
24944         (debug_mktime_not_ok): Print detailed information about failed
24945         date/time values.
24946         (parse_datetime): Add DEBUG messages for failures, warnings. Add
24947         PROGRESS messages for status messages.
24948         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
24950 2016-08-06  Jim Meyering  <meyering@fb.com>
24952         tests/init.sh: exclude dash with bad "local" semantics
24953         * tests/init.sh (gl_shell_test_script_): Add a function to
24954         eliminate a shell like "dash" (unlike bash, zsh) that has
24955         surprising/risky "local var='...'" semantics.  Inspired by
24956         the problem and discussion in https://bugs.gnu.org/24116#11.
24958 2016-08-02  Ján Tomko  <jtomko@redhat.com>
24960         maint.mk: expand the prohibit_doubled_word regex
24961         This check has a static list of words that are checked for
24962         repetitions.  Expand it before running the perl script to
24963         avoid using expensive captures.  This decreases the cost
24964         for libvirt from 1.66s to 0.66s.
24965         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
24966         (sc_prohibit_doubled_word): Use it.
24968 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24970         useless-if-before-free: skip non-matching lines early
24971         * build-aux/useless-if-before-free: First match each line with the
24972         simple/quick /\bif\b/ and reject if there is no match. This often
24973         saves the cost of the much more involved regular expression.
24974         For libvirt, this decreases the cost from 1.44s to 1.02s.
24976 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24978         maint.mk: speed up sc_po_check
24979         sc_po_check would skip files based on their names, or on the
24980         existence of files with derived names. Rewrite it to use perl
24981         instead of shell to make the check faster.
24982         * top/maint.mk (perl_translatable_files_list_): Define.
24983         (sc_po_check): Use it.
24985 2016-07-30  Ján Tomko  <jtomko@redhat.com>
24987         maint.mk: speed up require_config_h_first
24988         Instead of spawning three processes per file,
24989         rewrite the check in perl and run it once for all the files.
24990         * top/maint.mk (perl_config_h_first_): Define.
24991         (sc_require_config_h_first): Use it in place of shell code.
24993 2016-07-26  Ján Tomko  <jtomko@redhat.com>
24995         maint.mk: speed up sc_po_check
24996         sc_po_check would skip files based on their names, or on the
24997         existence of files with derived names. Rewrite it to use perl
24998         instead of shell to make the check faster.
24999         * top/maint.mk (perl_translatable_files_list_): Define.
25000         (sc_po_check): Use it.
25002 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
25004         obstack: pacify GCC 6 with -Wnull-dereference
25005         Problem reported by Assaf Gordon in:
25006         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
25007         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
25008         Declare with __attribute_noreturn__.
25009         * lib/obstack.h (__attribute_noreturn__): New macro.
25011 2016-07-13  Eric Blake  <eblake@redhat.com>
25013         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
25014         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
25015         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
25017 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
25019         doc: mention glibc SSIZE_MAX buglet
25020         * doc/posix-headers/limits.texi (limits.h): Document the bug.
25022 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
25024         printf-posix: Fix mingw build
25025         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
25026         expression for detecting C symbol prefixes but forgot to qoute square
25027         brackets in the command line arguments for grep.  That way when
25028         building with mingw the condition was false although it ought to be
25029         true instead.  In particular scenarios this led to the following
25030         compile error:
25032             Cannot export rpl_printf: symbol not found
25033             Cannot export rpl_scanf: symbol not found
25034             collect2: error: ld returned 1 exit status
25036         Fix this by properly quoting square brackets.
25038 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
25040         mktime: call tzset as per POSIX
25041         Problem reported by Ludovic Courtès in:
25042         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
25043         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
25044         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
25046 2016-06-26  Pádraig Brady  <P@draigBrady.com>
25048         fts: handle readdir() errors
25049         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
25050         but also upon error when it will also set errno.  Therefore
25051         flag the error case from readdir().  We treat the case where
25052         no items are read the same as if the dir can't be accessed,
25053         i.e. by setting fts_errno to FTS_DNR.
25055 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
25057         intprops: port better to GCC 7
25058         GCC 7 __builtin_add_overflow supports a new usage form, where the
25059         last argument is a null pointer, and which merely returns 1 if an
25060         overflow would occur.  This is a constant expression if all
25061         arguments are constants, and should generate faster code when code
25062         needs to be generated.
25063         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
25064         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
25065         Use builtin operations if available.
25066         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
25067         operations are available, as it's almost surely faster.
25069 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
25071         intprops-test: port to GCC 6
25072         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
25073         since the bug is not fixed in GCC 6.1.
25075 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
25077         xalloc-oversized: port to GCC 7; fewer warnings
25078         GCC 7 will have a better way to deal with integer overflow.
25079         Plus, fix a warnings problem reported by Tim Ruehsen in:
25080         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
25081         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
25082         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
25083         For GCC 5, use __xalloc_oversized if both args are constants,
25084         or if pedantic.
25086 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
25088         regex: port to Sun C
25089         Reported by Daiki Ueno.
25090         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
25091         __restrict, in prototype.  This fixes a problem I introduced in
25092         the 2016-02-19 merge from glibc.
25094 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
25096         stdbool: Restore __bool_true_false_are_defined check
25097         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
25098         __bool_true_false_are_defined is still defined, even with C++11.
25100 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
25102         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
25103         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
25105 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
25107         Use GCC_LINT, not lint
25108         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
25109         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
25110         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
25111         Document problem with lint and _Noreturn.
25112         * lib/diffseq.h (IF_LINT, IF_LINT2):
25113         * lib/fts.c (sccsid):
25114         * lib/getndelim2.c (IF_LINT):
25115         * lib/gl_anylinked_list2.h (gl_linked_iterator)
25116         (gl_linked_iterator_from_to):
25117         * lib/gl_anytree_list2.h (gl_tree_iterator)
25118         (gl_tree_iterator_from_to):
25119         * lib/gl_anytree_oset.h (gl_tree_iterator):
25120         * lib/gl_array_list.c (gl_array_iterator)
25121         (gl_array_iterator_from_to):
25122         * lib/gl_array_oset.c (gl_array_iterator):
25123         * lib/gl_carray_list.c (gl_carray_iterator)
25124         (gl_carray_iterator_from_to):
25125         * lib/idcache.c:
25126         * lib/inet_ntop.c (IF_LINT):
25127         * lib/regcomp.c (build_charclass_op, create_tree):
25128         * lib/regex_internal.c (re_acquire_state)
25129         (re_acquire_state_context):
25130         * lib/trigl.c (rcsid):
25131         * lib/trim.c (IF_LINT):
25132         * lib/vasnprintf.c (IF_LINT):
25133         * lib/verify.h (assume):
25134         Treat GCC_LINT like lint.
25136 2016-05-29  Bruno Haible  <bruno@clisp.org>
25138         secure_getenv: Port to many more platforms.
25139         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
25140         functions.
25141         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
25142         for non-BSD Unix platforms and for native Windows.
25143         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
25144         Prompted by a request from Nikos Mavrogiannopoulos.
25146 2016-05-27  Eric Blake  <eblake@redhat.com>
25148         canonicalize: Fix broken probe for realpath.
25149         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
25150         in logic introduced in 54615b95.
25152 2016-05-26  Eric Blake  <eblake@redhat.com>
25154         unsetenv: relax to LGPLv2+
25155         * modules/unsetenv (License): Match setenv license.
25157 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
25159         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
25160         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
25161         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
25162         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
25163         (commonarg, dirargs, dirs, infoarg, generate_ascii)
25164         (generate_html, generate_info, generate_tex, outdir)
25165         (source_extra, split, srcfile, texarg): Move above 'version'.
25166         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
25168 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25170         manywarnings: update for GCC 6.1
25171         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
25172         Add GCC 6.1 options that apply to C.
25173         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
25174         do not apply to C, are obsolescent, etc.
25176 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
25178         glob: size_t overflow checks
25179         * lib/glob.c (__has_builtin): New macro.
25180         (size_add_wrapv, glob_use_alloca): New static functions.
25181         (glob, glob_in_dir): Check for size_t overflow in several places,
25182         and fix some size_t checks that were not quite right.
25184         glob: don't assume INT_MAX < SIZE_MAX
25185         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
25186         latter is not portable to (probably theoretical) hosts where
25187         SIZE_MAX <= INT_MAX.
25189 2016-05-09  Bruno Haible  <bruno@clisp.org>
25191         Fix undefined behaviour in gettext.h.
25192         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
25193         pointer's value after the storage it points to has been freed.
25194         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
25195         Spotted by Coverity.
25197 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
25199         git-version-gen: avoid undefined shift
25200         Problem reported by Mosè Giordano in:
25201         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
25202         * build-aux/git-version-gen: Avoid undefined behavior if invoked
25203         with --prefix or --fallback but without a later argument.  While
25204         we're at it, omit unnecessary quotes.
25206 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
25208         glob: merge glibc changes into lib/glob.c
25209         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
25210         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
25211         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
25212           struct dirent [BZ #19779]
25213         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
25214           callback gl_readdir
25215         2015-10-20 Convert miscellaneous function definitions to prototype style
25216         2015-10-20 Convert 113 more function definitions to prototype style
25217           (files with assertions)
25218         2015-06-12 Fix getlogin_r namespace (bug 18527).
25219         2014-02-10 Use glibc_likely instead __builtin_expect.
25220         2013-10-20 When glob pattern contains a trailing slash match only
25221           directories. Fixes bug 10278.
25222         2013-09-04 glob: silence -Wattribute warnings
25223         2013-06-07 Avoid use of "register" as optimization hint.
25224         2012-09-25 Use size_t instead of int for internal variables in glob
25225           (bug 14621)
25226         2011-07-20 Check for overflows in expressions
25227         2011-05-28 Remove unused variable
25228         2011-05-22 Add a few more alloca size checks
25229         2010-03-27 Whitespace fixes
25230         2010-03-27 Fix one more issue with the glob patch
25231         2010-03-24 Fix glob with empty pattern
25232         2008-05-27 Remove useless more "if" tests before "free"
25233         * modules/glob (Depends-on): Add stdint.
25235 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
25237         mktime: port to stricter signed overflow checking
25238         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
25239         (long_int): Require width for INT_MAX * 3 * (seconds per year),
25240         instead of merely for INT_MAX * 2.  In practice platforms that
25241         do the latter also do the former.
25242         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
25243         (shr): New static function, replacing SHR.  All uses changed.
25244         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
25245         and TIME_T_MAX.  All uses changed.
25246         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
25247         Use long_int, not time_t.
25248         (long_int_avg): New static function, replacing time_t_avg.
25249         All uses changed.  Round toward positive infinity, as that
25250         generates slightly better code.
25251         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
25252         by INT_ADD_WRAPV.
25253         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
25254         (convert_time): New static function.
25255         (ranged_convert): Use it
25256         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
25257         Use simpler test for loop exit.
25258         (__mktime_internal): Store negative of guessed offset, to simplify
25259         overflow checking.  Remove no-longer-needed test for small time_t
25260         overflows.
25262         mktime: speed up DEBUG_MKTIME benchmarks
25263         Call tzset just once, at the start, rather than for every test
25264         case.  This lets us measure the CPU cost of mktime as opposed to
25265         that of tzset.  This is relevant when TZ is not set and glibc is
25266         being used.  This speeds up tests by a factor of 40 on my Fedora
25267         23 x86-64 platform.
25268         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
25269         to call tzset and as a sanity check.  Later on, use localtime_r
25270         instead of localtime.
25272         mktime: resurrect DEBUG_MKTIME testing
25273         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
25274         Include <string.h>, for strcmp.
25276         mktime: simplify DEBUG_MKTIME
25277         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
25278         Simplify later usage accordingly.
25280         Port mktime_internal offset to unsigned time_t
25281         This avoids some assumptions about wraparound arithmetic on
25282         signed integer overflow.
25283         * lib/mktime-internal.h (mktime_offset_t): New type.
25284         (mktime_internal): Use it in decl.
25285         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
25287         * lib/mktime.c (__mktime_internal, localtime_offset):
25288         * lib/timegm.c (timegm): Use it.
25289         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
25290         (gl_FUNC_MKTIME): Require it.
25292 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25294         xstrtol: prohibit monstrosities like "1bB"
25295         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
25296         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
25297         "B" only if the first suffix needs a base.
25298         * tests/test-xstrtol.sh: Test this.
25300 2016-04-21  Pádraig Brady  <P@draigBrady.com>
25302         xstrtod: reinstate setting of *result upon ERANGE
25303         * lib/xstrtod.c (XSTRTOD): The user may decide to use
25304         the returned limits upon ERANGE, so allow and document that.
25306 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
25308         xstrtod: modify *result only if no errors
25309         * lib/xstrtod.c (XSTRTOD).
25311 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
25313         btowc: document problems in C locale
25314         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
25315         with mbrtowc.  See: http://bugs.gnu.org/23269#32
25317 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
25319         mktime: improve integer overflow checking
25320         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
25321         (WRAPV): Remove; no longer needed.
25322         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
25323         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25324         Remove.  Use intprops.h defns instead.
25325         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
25326         Use bool for Boolean, for clarity.
25327         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
25328         detect integer overflow.
25329         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
25331         intprops: check two's complement assumption
25332         Suggested by Eric Blake in:
25333         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
25334         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
25335         short, int, long, and (if available) long long are two's complement.
25336         * modules/intprops (Depends-on): Add 'verify'.
25338         intprops, mktime, strtol: assume two's complement
25339         These macros were not portable to every conforming C11 ones'
25340         complement platform.  It's not worth the hassle of porting to some
25341         platforms that use ones' complement or signed magnitude, as such
25342         platforms are almost purely theoretical nowadays and porting even
25343         to some of them makes the code harder to review for little
25344         practical benefit.  Problem reported by Florian Weimer in:
25345         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
25346         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25347         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
25348         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
25349         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
25350         (TYPE_SIGNED_MAGNITUDE):
25351         Remove.  All uses rewritten to assume two's complement, which is
25352         all we can reasonably test nowadays anyway.
25353         * top/maint.mk (_intprops_names): Remove the removed macros.
25355 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
25357         stdint: port to strict C11 left shift
25358         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
25359         Pacify clang -Wshift-negative-value, which should be an issue only
25360         on clang setups where stdint.h does not conform to C11 or to C++11.
25361         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
25363 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
25365         mbrtowc: work around glibc bug#19932
25366         Fix mbrtowc so that it never returns -1 in the C locale,
25367         as this conflicts with a future version of POSIX
25368         http://austingroupbugs.net/view.php?id=663#c2738
25369         and causes problems with GNU grep: http://bugs.gnu.org/23234
25370         See glibc bug 19932:
25371         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
25372         * doc/posix-functions/mbrlen.texi (mbrlen):
25373         * doc/posix-functions/mbrtowc.texi (mbrtowc):
25374         Document the glibc bug.
25375         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
25376         Include hard-locale.h, locale.h.
25377         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
25378         if the bug is possible.
25379         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
25380         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
25381         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
25382         * modules/mbrtowc (Depends-on): Add hard-locale.
25383         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
25384         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
25385         * tests/test-mbrtowc5.sh: New file.
25387 2016-04-03  Pedro Alves  <palves@redhat.com>
25389         stdint: detect good enough pre-C++11 stdint.h in C++ mode
25390         When gnulib is configured in C++ mode for a system with a working C99
25391         implementation of stdint.h that predates C++11, gnulib ends up
25392         substituting stdint.h anyway.  This works on most targets, but on e.g.,
25393         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
25394         MinGW is LLP64.  Instead of trying to detect the right types, detect
25395         good-enough-pre-C++11 stdint.h and in such case define
25396         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
25397         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
25398         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
25399         conforms to C99.  If it does, check whether it hides symbols
25400         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
25401         does, define those macros in config.h.
25403 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
25405         argp: merge changes from glibc
25406         Among other things, this should fix problems found by a Coverity
25407         scan and reported by Andrei Borzenkov:
25408         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
25409         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
25410         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
25411         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
25412         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
25413         * lib/argp.h:
25414         Merge changes from glibc.
25415         * tests/test-argp-2.sh: Adjust to match new behavior.
25417 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
25419         stddef: support configuring with g++
25420         Problem reported by Ángel González in:
25421         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
25422         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
25423         Do not define if _GCC_MAX_ALIGN_T is defined.
25425 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
25427         test-framework-sh: minor cleanups
25428         * tests/init.sh (testdir_prefix_): Output a trailing newline,
25429         since strictly speaking POSIX requires this.
25430         (setup_): Do not use the variable 'fail', as that makes the
25431         trace output harder to read ('fail' is typically used by
25432         tests to mean the test failed).  Treat // portably.
25433         Check that new directory is not merely a sibling of the tmp dir.
25434         Avoid unnecessary invocation of tr.
25436         test-framework-sh: revert port to NetBSD 7.0
25437         It was a false alarm; I misinterpreted Assaf Gordon's report.
25438         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25439         Restore.
25440         (test_dir_): Adjust to mktempd_ change.
25441         (mktempd_): Restore 2nd arg.  Use -t again.
25442         (base_template_, template_, nx_): Resurrect old code.
25444         Port better to Alpine Linux
25445         Its diff implementation does not support -c, but does support -U3.
25446         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25447         * tests/init.sh (diff_opt_): New var.
25448         (compare_): Prefer diff -U3 to diff -c to plain diff.
25450 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
25452         test-framework-sh: port to NetBSD 7.0
25453         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
25454         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
25455         Remove.  All uses removed.
25456         (test_dir_): Adjust to mktempd_ change.
25457         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
25458         (base_template_, template_, nx_): Simplify by hardcoding.
25460 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25462         gitlog-to-changelog: suppress ignored chatter
25463         * build-aux/gitlog-to-changelog: Do not warn about skipping
25464         an SHA if it would have been ignored anyway.
25466 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
25468         setlocale: add "sv" to Windows language table
25469         * lib/setlocale.c (language_table) [W32]: Add "sv".
25470         Reported in <https://savannah.gnu.org/bugs/?44588>.
25472 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25474         sys_select: port to new Cygwin
25475         Problem reported by Ken Brown in:
25476         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
25477         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
25478         diagnostics.
25480 2016-03-17  Jim Meyering  <meyering@fb.com>
25482         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
25483         * tests/test-userspec.c (main): Remove unnecessary braces and fix
25484         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
25485           test-userspec.c:176:9: error: statement is indented as if it were \
25486             guarded by... [-Werror=misleading-indentation]
25487                    {
25488                    ^
25489           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
25490                  if (!diag && !T[i].result)
25491                  ^~
25493 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
25495         time_rz: port to clang -Wunused-const-variable
25496         * lib/time_rz.c (TZ): Remove.  All uses removed.
25498         std-gnu11: improve clang support
25499         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
25500         2016-03-15 Also try clang
25501         2016-03-15 Port C11 and C++11 testing to clang
25503         select: port more to Intel 2016.1.150 compiler
25504         Problem reported by Balázs Hajgató in:
25505         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
25506         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
25508 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25510         select: try to port to 2016.1.150 compiler
25511         Problem reported by Balázs Hajgató in:
25512         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
25513         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
25514         POSIX specifies 'restrict'.
25516 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25518         localename-tests: memory allocation fixes
25519         * tests/test-localename.c (test_locale_name)
25520         (test_locale_name_thread): Don't call freelocale on a locale
25521         that was the base of a successful newlocale, as that
25522         results in a double free.  Problem reported by Assaf Gordon.
25523         (test_locale_name_thread): Free saved names after use, to pacify
25524         gcc -fsanitize=address.
25526 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25528         intprops: make .h file license match module
25529         * lib/intprops.h: Change the license wording to match glibc format.
25530         This is what is in modules/intprops anyway.  See:
25531         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
25533 2016-03-08  Eric Blake  <eblake@redhat.com>
25535         acl: fix missing return on Cygwin
25536         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
25537         fall off end of function. Fixes http://bugs.gnu.org/22949
25539 2016-03-05  Bruno Haible  <bruno@clisp.org>
25541         extern-inline: port to PGI CC
25542         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
25543         keyword 'inline'.
25544         Reported by Adam James Stewart in:
25545         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
25547 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25549         signbit: port back to pre-C++11 GCC
25550         * lib/math.in.h (signbit): Do previous change only if
25551         __cplusplus < 201103.  See Jonathan Wakely in:
25552         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
25554 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
25556         mountlist: recognize autofs-mounted remote file systems, too
25557         Originally reported at: https://bugzilla.redhat.com/1309247
25558         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
25559         "-hosts" because it is used by autofs to mount remote file systems.
25561 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25563         signbit: port to C++ with GCC 6
25564         * lib/math.in.h (signbit) [__cplusplus]:
25565         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
25566         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
25568         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
25570         regex: make it closer to libc
25571         Make Idx a signed type, rather than possibly unsigned.
25572         The unsignedness was not really buying us anything, since the code
25573         overflows for other reasons before getting to PTRDIFF_MAX.  Making
25574         it signed allows us to use -1 and -2 with abandon, like libc does,
25575         thus lessening the number of differences between gnulib and libc.
25576         Also, it should help avoid gratuitous warnings like the one
25577         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
25578         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
25581         regex: merge patches from libc
25583         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
25584         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
25585         Convert miscellaneous function definitions to prototype style.
25586         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
25587         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
25588         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
25589         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
25590         (re_search_internal):
25591         Convert to prototype-style function definition.
25592         Use internal_function for internal functions.
25594 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
25596         stdalign: port to older HP and IBM cc
25597         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
25598         C compilers, by checking their version numbers.  These version
25599         numbers appear in MariaDB and in Qt code that dates way back and
25600         that conditiionally uses the 'aligned' attribute.
25602 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25604         stdalign: port to clang 3.7.0
25605         Problem reported by Herbert J. Skuhra in:
25606         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
25607         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
25608         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
25609         https://llvm.org/bugs/show_bug.cgi?id=26547
25611 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25613         readdir_r: now obsolescent
25614         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
25615         * lib/mountlist.c (read_file_system_list): Add a FIXME.
25617 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25619         misc: port better to gcc -fsanitize=address
25620         Without these patches, ./configure CFLAGS='-fsanitize=address'
25621         would compute incorrect values.  This patch fixes some (but not all)
25622         test failures with recent glibc, with this configuration.
25623         * m4/acl.m4 (gl_ACL_GET_FILE):
25624         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
25625         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
25626         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
25627         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
25628         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25629         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
25630         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
25631         * m4/getline.m4 (gl_FUNC_GETLINE):
25632         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
25633         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
25634         * m4/regex.m4 (gl_REGEX):
25635         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25636         * tests/test-calloc-gnu.c (main):
25637         * tests/test-duplocale.c (main):
25638         * tests/test-getgroups.c (main):
25639         * tests/test-getline.c (main):
25640         * tests/test-inttostr.c (main):
25641         * tests/test-localename.c (test_locale_name)
25642         (test_locale_name_thread, test_locale_name_environ)
25643         (test_locale_name_default):
25644         * tests/test-regex.c (main):
25645         * tests/test-setlocale1.c (main):
25646         * tests/test-stat.h (test_stat_func):
25647         Free heap-allocated storage before exiting.
25648         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
25649         Don't match *_foo symbols inserted by AddressSanitizer.
25650         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
25652 2016-02-02  Jim Meyering  <meyering@fb.com>
25654         verify-tests: also remove stray test-verify.Tpo
25655         * modules/verify-tests (Makefile.am): Arrange for "make clean"
25656         to remove the test-verify.Tpo file that is left behind by
25657         the automake-generated rule upon compilation failure.
25658         Otherwise, that .Tpo file would cause a failed "make distcheck"
25659         at least for grep.
25661 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
25663         std-gnu11: new module
25664         This makes it easier for applications to prefer C11 and C++11
25665         to older variants, when compiling C and C++ code.
25666         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
25667         a nontrivial chunk of GPLed Autoconf source code.
25668         * COPYING: Mention the m4/*.m4 copyright situation.
25669         * MODULES.html.sh (std-gnu11): New module.
25670         * m4/std-gnu11.m4, modules/std-gnu11: New files.
25672 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25674         get-permissions, strftime: fix grammar in comments
25675         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
25676         some grammar fixes Alan Mackenzie made to GNU Emacs.
25678 2016-01-25  Daiki Ueno  <ueno@gnu.org>
25680         gettext: mark as obsolete
25681         Suggested by Paul Eggert in:
25682         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
25683         * modules/gettext (Status): Mark as obsolete.
25684         (Notice): Suggest to use 'gettext-h' instead.
25685         * modules/gettext-h (Description): Suggest GNU gettext, instead of
25686         the 'gettext' module.
25688 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25690         gnulib-tool: don't give up on ln -s so easily
25691         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
25692         because an earlier one failed.  The targets could be on different
25693         file systems.  Problem reported by KO Myung-Hun in:
25694         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
25696         closedir: fix OS/2-related typos
25697         Problem reported by KO Myung-Hun in:
25698         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
25699         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
25700         in the last couple of changes.
25702 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
25704         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
25705         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
25706         copying a directory.
25708 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
25710         regex: treat [x] as x if x is a unibyte encoding error
25711         Problem reported by Aharon Robbins in:
25712         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
25713         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
25714         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
25716         closedir, dirfd, opendir: port to OpenSolaris 5.10
25717         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
25718         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25719         * m4/opendir.m4 (gl_FUNC_OPENDIR):
25720         Don't use ${word##pat} substitution, as it doesn't work in
25721         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
25722         http://bugs.gnu.org/22443#11
25724 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25726         bootstrap: use American spelling
25727         * build-aux/bootstrap: Honor American spelling.
25729 2016-01-22  Karl Berry  <karl@freefriends.org>
25731         * doc/posix-functions/localtime.texi,
25732         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
25734 2016-01-21  Bruno Haible  <bruno@clisp.org>
25736         hash-pjw-bare: fix comment
25737         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
25739         wcwidth: Replace also on OpenBSD 5.8
25740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
25741         * doc/posix-functions/wcwidth.texi: Update.
25743 2016-01-20  Pádraig Brady  <P@draigBrady.com>
25745         gnu-web-doc-update: fix addition of new files
25746         If there were already added (emnpty) dirs,
25747         then cvs aborts the add with the message:
25748           cvs [add aborted]: there is a version in <./dirname> already
25749         * build-aux/gnu-web-doc-update: Add directories separately
25750         to the addition of files, to avoid the above issue
25751         impacting the addition of files.
25753 2016-01-19  Daiki Ueno  <ueno@gnu.org>
25755         utimens-tests: avoid pulling gettext .m4 files
25756         Although this is not the right fix to the original problem:
25757         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
25758         it makes it possible again for consumer projects to use arbitrary
25759         version of gettext, through the steps described at:
25760         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
25761         See here for details:
25762         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
25763         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
25764         'gettext'.
25765         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
25766         'gettext'.
25768 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25770         regex: pacify static checkers
25771         Problem and draft fix reported by Aharon Robbins in:
25772         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25773         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
25774         Clear memory to pacify static checkers.
25776         regex: fix [ diagnostic
25777         Problem and fix reported by Aharon Robbins in:
25778         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25779         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
25781         regex: fix memory leaks
25782         Problem and draft fix reported by Aharon Robbins in:
25783         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
25784         * lib/regcomp.c (build_range_exp, build_charclass_op)
25785         * lib/regex_internal.c (re_dfa_add_node):
25786         Fix memory leak on failure.
25788 2016-01-18  Pádraig Brady  <P@draigBrady.com>
25790         fts: don't unconditionally use leaf optimization for NFS
25791         NFS st_nlink are not accurate on all implementations,
25792         leading to aborts() if that assumption is made.
25793         See <https://bugzilla.redhat.com/1299169>
25794         * lib/fts.c (leaf_optimization_applies): Remove NFS from
25795         the white list, and document the issue.
25797 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25798             KO Myung-Hun  <komh@chollian.net>
25800         gnulib-tool: don't assume ln -s works
25801         * gnulib-tool (func_ln_s): New function.
25802         (func_ln): Use it.
25804 2016-01-15  KO Myung-Hun  <komh@chollian.net>
25806         utimes: detect utimes() correctly on OS/2 kLIBC
25807         utimes() of OS/2 kLIBC has some limitations.
25808         1. OS/2 itself supports a file date since 1980 year in local time.
25809         2. OS/2 itself supports only even seconds for a file time.
25810         3. utimes() of OS/2 kLIBC does not work on an opened file.
25811         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
25812         * doc/posix-functions/utimes.texi: Document the above limitations of
25813         utimes() on OS/2 kLIBC.
25815 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25816             KO Myung-Hun  <komh@chollian.net>
25818         openat_proc_name: port to OS/2 kLIBC
25819         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
25820         instead of /proc/self/fd.
25821         * lib/openat-proc.c (openat_proc_name):
25822         Don't assume file name length is less than INT_MAX.
25823         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
25825 2016-01-14  KO Myung-Hun  <komh@chollian.net>
25827         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
25828         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
25829         definitions of intptr_t and uintptr_t (which use int and unsigned)
25830         to avoid clashes with declarations of system functions like sbrk.
25831         * lib/stdint.in.h (intptr_t, uintptr_t): Check
25832         _INTPTR_T_DECLARED before defining them.
25834         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
25835         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
25836         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
25837         Declare on kLIBC.
25838         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
25839         fd associated with dirp.
25840         (_gl_register_dirp_fd): New. Register fd associated with dirp to
25841         dirp_fd_list.
25842         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
25843         (dirfd): Implemented for kLIBC.
25844         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
25845         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
25846         succeeds.
25847         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
25848         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25849         (REPLACE_DIRFD): Define to 1 if replaced.
25850         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
25851         * modules/closedir (Depends-on): Add dirfd.
25852         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
25853         condition.
25854         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
25855         * modules/opendir (Depends-on): Add dirfd.
25857         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
25858         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
25859         * lib/dup.c (dup_nothrow): New.
25860         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
25861         (klibc_dup2): New.
25862         * lib/fcntl.c (klibc_fcntl): New.
25863         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
25864         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
25865         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
25866         fd.
25868         pipe_filter_ii_execute: port to OS/2 kLIBC
25869         Pipes on kLIBC do not support O_NONBLOCK like Win32.
25870         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
25871         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
25872         Reuse Win32 code on OS/2 kLIBC.
25873         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
25874         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
25876         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
25877         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
25878         static inline function.  The implementation of wcwidth in wcwidth.c
25879         causes a "conflicting types" error.
25880         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
25882         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
25883         spawn() on OS/2 kLIBC is not silly like one on Windows
25884         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
25885         empty string on OS/2 kLIBC.
25887         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
25888         On OS/2 kLIBC, select() works only on sockets.
25889         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
25891         binary-io: don't put fd in binary mode if it is a console on EMX
25892         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
25893         a console on EMX.
25895 2016-01-15  Pádraig Brady  <P@draigBrady.com>
25897         doc: mention unfixed issues with unsupported localtime() values
25898         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
25899         returns nonsense for localtime(2^56).
25900         * doc/posix-functions/localtime_r.texi: Likewise.
25902 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25904         doc: mention setlocale() issues on OpenBSD
25905         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
25906         never fails, and the need to check categories individually.
25908 2016-01-14  Pádraig Brady  <P@draigBrady.com>
25910         sig2str: list all signals on FreeBSD >= 7
25911         FreeBSD >= 7 is contravening POSIX by not defining NSIG
25912         to the maximal statically defined signal value.
25913         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
25914         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
25915         where available, even when NSIG is defined.
25917 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25919         acl-permissions: port to USE_ACL==0 platforms
25920         I ran into this problem when building bleeding-edge GNU Emacs
25921         with gcc -fsanitize=address on Fedora 23.  On this platform
25922         the ACL library does not pass the 'configure' test and Emacs
25923         then does not build due in part to what appear to be typos in the
25924         ACL part of Gnulib.
25925         * lib/acl-internal.c (free_permission_context):
25926         * lib/acl-internal.h (struct permission_context):
25927         Test whether USE_ACL is nonzero, not whether it is defined.
25929 2016-01-12  Martin Sebor  <msebor@redhat.com>
25931         mktime: rename macro to avoid glibc clash
25932         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
25933         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
25935 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
25937         Port "$@" to OpenIndiana ksh93
25938         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
25939         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
25940         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
25941         bug long-dead shells, so remove the workaround.
25942         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
25943         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25944         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
25945         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
25946         Use "$@" instead of ${1+"$@"}.
25948         Port Universal Time settings to strict POSIX
25949         * build-aux/announce-gen, build-aux/bootstrap:
25950         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
25951         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
25952         * build-aux/gnupload, build-aux/mkinstalldirs:
25953         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
25954         * build-aux/update-copyright, build-aux/useless-if-before-free:
25955         * build-aux/vc-list-files, tests/test-strftime.c:
25956         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
25957         but POSIX says the behavior of TZ="UTC" is undefined.
25959 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
25961         msvc-inval: fix problem with unset shell var
25962         Problem reported by Karl Berry in:
25963         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
25964         * modules/msvc-inval (Depends-on):
25965         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
25966         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
25968 2016-01-01  Pádraig Brady  <P@draigBrady.com>
25970         tests: for compare_(), use cmp -s where available
25971         * tests/init.sh (compare_): Only fall back to cmp without
25972         the POSIX defined -s option, where this is not available.
25974 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
25976         version-etc: new year
25977         * build-aux/gendocs.sh (version):
25978         * doc/gendocs_template:
25979         * doc/gendocs_template_min:
25980         * doc/gnulib.texi:
25981         * lib/version-etc.c (COPYRIGHT_YEAR):
25982         Update copyright dates by hand in templates and the like.
25983         * all files: Run 'make update-copyright'.
25985 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
25987         human: fix output buffer overrun by 1
25988         * lib/human.c (human_readable): Fix off-by-one typo in buffer
25989         calculation that could lead to a one-byte buffer overrun.
25991 2015-12-28  Daiki Ueno  <ueno@gnu.org>
25993         maint: fix operator precedence in mbrtowc test
25994         This is a fix for test breakage introduced by commit 45228d96; the
25995         equality expression must be parenthesized when negated with '!',
25996         otherwise we always get:
25998           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
26000         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
26001         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26003 2015-12-23  James Youngman  <jay@gnu.org>
26005         regexprops-generic: update from regex.h
26006         * doc/regexprops-generic.texi: update by running the regexprops binary
26007         from findutils (the command line is 'regexprops "Regular Expressions"
26008         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
26009         gnulib with GNU grep had made this document out-of-date.
26011 2015-12-23  Pádraig Brady  <P@draigBrady.com>
26013         strftime-tests: avoid false failure on OS X
26014         * tests/test-strftime.c (struct localtime_rz_test): Add an
26015         ahistorical member which is used to warn rather than fail
26016         when tm_isdst isn't set for such entries.  This is the case for
26017         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
26019 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
26021         fts: ensure leaf optimization is used for NFS
26022         NFS provides usable dirent.d_type but not necessarily for all entries
26023         of large directories.  See <https://bugzilla.redhat.com/1252549>
26024         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
26026 2015-12-20  Pádraig Brady  <P@draigBrady.com>
26028         fts: enable leaf optimization for XFS
26029         XFS provides usable dirent.d_type only for DT_DIR,
26030         but the noleaf optimization still applies.
26031         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
26033 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
26035         intprops: comment fix
26036         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
26037         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
26039         intprops-test: work around GCC bug 68971
26040         Problem reported by Pádraig Brady in:
26041         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
26042         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
26043         (main): Add a case that better tests 64-bit long in this area.
26045 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
26047         gnulib-tool: allow multiple --local-dir usage
26048         * gnulib-tool: Use --local-dir to construct compound
26049         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
26050         PATH_SEPARATOR early.
26051         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
26052         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
26053         func_determine_path_separator because that needs to be detected
26054         earlier now.
26055         (func_determine_path_separator): New function.
26056         (func_path_foreach, func_path_foreach_inner): New functions.
26057         (func_path_prepend, func_path_append): Likewise.
26058         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
26059         (func_lookup_file, func_all_modules): Use new functions to work
26060         with local_gnulib_path.
26061         (func_modules_in_dir, func_exists_module): New callbacks for
26062         func_path_foreach.
26063         (func_exists_module, func_get_tests_module): Likewise.
26064         (func_is_local_file, func_should_symlink): New helper methods.
26065         (func_add_file, func_update_file): Use new func_should_symlink
26066         instead, DRY.
26067         (func_reconstruct_cached_local_gnulib_path): New helper.
26068         (func_reconstruct_cached_dir): New callback.
26069         (func_import): The cached_local_gnulib_dir renamed to
26070         cached_local_gnulib_path similarly to local_gnulib_dir.
26071         Use new func_reconstruct_cached_local_gnulib_path.
26072         (func_count_relative_local_gnulib_path): New sub-method.
26073         (func_create_testdir): Use func_should_symlink, DRY.
26074         (func_create_megatestdir): Use new functions to work with
26075         local_gnulib_path correctly.
26076         (func_append_local_dir): New helper.
26078 2015-12-08  Pádraig Brady  <P@draigBrady.com>
26080         fix freadptr to work with ungetc on all uClibc configs
26081         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
26082         where GNU coreutils cut(1) generates invalid output on uClibc
26083         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
26084         * lib/freadptr.c (freadptr): Return NULL if there are
26085         ungotten chars.  In this case freadseek() will iterate
26086         again to process the ungotten character.
26088 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
26090         xalloc-oversized: improve performance with GCC 5
26091         * lib/xalloc-oversized.h (xalloc_oversized):
26092         Improve performance with GCC 5 by using __builtin_mul_overflow.
26094 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
26096         intprops: new public macro EXPR_SIGNED
26097         Emacs can use this macro, so make it public.
26098         * doc/intprops.texi (Arithmetic Type Properties): Rename from
26099         'Integer Type Determination', since some of these macros apply
26100         to non-integer types.  Clarify what kinds of constant expressions
26101         these macros return.  Say when the arguments can be non-integers.
26102         Mention newly published macro EXPR_SIGNED.
26103         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
26104         make it public.  All uses changed.
26106         intprops: fix typo in clang port
26107         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
26108         '__builtin_add_overflow' that is not caught by compiler.
26110 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
26112         test-timespec: fix typo in previous change
26113         * tests/test-timespec.c (main): Fix typo that reduced test quality.
26115         timespec-sub: fix overflow bug; add tests
26116         * lib/timespec-add.c (timespec_add):
26117         * lib/timespec-sub.c (timespec_sub):
26118         Work even if time_t is narrower than int (a theoretical
26119         possibility).  Redo code for a bit more clarity.
26120         * lib/timespec-sub.c (timespec_sub):
26121         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
26122         * modules/timespec-tests, tests/test-timespec.c: New files.
26124         intprops-test: suppress -Woverlength-strings
26125         Problem reported by Pádraig Brady in:
26126         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
26127         It is not worth the hassle to port this test to compilers that
26128         cannot handle long strings in diagnostics.
26129         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
26131 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26133         quotearg: add quotearg_n_style_colon()
26134         This quotes with default options of the specified style,
26135         but with quoting enabled for instances of ':'.
26136         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
26137         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
26139 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
26141         intprops: revise _WRAPV macros, revert _OVERFLOW
26142         The incompatible changes to the _OVERFLOW macros were too much of
26143         a hassle in practice, so revert them.  Instead, change the new
26144         _WRAPV macros to make them closer in behavior to GCC 5's new
26145         builtin_add_overflow etc. functions.  No other software was using
26146         these newly-added macros yet, so this should be OK.
26147         * NEWS: Revert previous change, since the incompatible change
26148         has been reverted, and nobody used the incompatible version.
26149         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
26150         Document revised behavior.
26151         (Integer Range Overflow): Adjust example to match above revisions.
26152         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
26153         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
26154         these can be used in integer constant expressions again.
26155         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
26156         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
26157         needed.
26158         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26159         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26160         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
26161         Remove, as they did not seem that useful.
26162         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
26163         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
26164         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
26165         Support new semantics.
26166         (__has_builtin): New macro, if not alreay defined.
26167         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
26168         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26169         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26170         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26171         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
26172         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
26173         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
26174         New macros.
26175         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
26177 2015-11-03  Jim Meyering  <meyering@fb.com>
26179         intprops: add parentheses for when OP has precedence lower than "-"
26180         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
26181         "a OP b" must be parenthesized for when OP is like "<<", which has
26182         lower precedence than the following "-". Reported by Pádraig Brady.
26184 2015-11-03  Pádraig Brady  <P@draigBrady.com>
26186         quotearg: constify get_quoting_style parameters
26187         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
26188         * lib/quotearg.c (get_quoting_style): Likewise.
26190 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26192         quotearg: add support for $'' shell escaping
26193         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
26194         items and descriptions.
26195         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
26196         above types by quoting like "shell", but using $'...' syntax
26197         for non printable characters, which should provide unambiguous
26198         printable output for any input.
26199         * tests/test-quotearg-simple.c: Update accordingly.
26201 2015-11-02  Pádraig Brady  <P@draigBrady.com>
26203         maint: use a more standard return from mbrtowc test
26204         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
26205         from the test program as this is non standard and often
26206         indicates an unhandled case in the test program.
26207         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
26209 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
26211         intprops: add WRAPV and const flavors for GCC 5
26212         If available, use GCC 5's builtin functions for efficient integer
26213         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
26214         and safely compute the low-order bits of the correct answer.
26215         A downside of these efficient functions is that they cannot be
26216         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
26217         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
26218         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
26219         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
26220         Document the changes.
26221         (Wraparound Arithmetic): New section.
26222         (Integer Range Overflow):
26223         Put this subsection last, since it's least useful.
26224         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
26225         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
26226         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
26227         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
26228         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
26229         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
26230         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
26231         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
26232         New macros.
26233         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
26234         Generate calls to GCC builtins if available, for speed.
26235         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
26236         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
26237         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
26238         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
26239         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
26240         (CHECK_QUOTIENT, CHECK_REMAINDER):
26241         Test WRAPV and CONST flavors (when available) too.
26243 2015-10-30  Pádraig Brady  <P@draigBrady.com>
26245         doc: use extended timezone format in iso-8601 example
26246         * doc/parse-datetime.texi: The standard states that extended format
26247         is to be used consistently throughout.
26248         Note that lib/parse-datetime.y can handle either tz format.
26250 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
26252         stdalign: port to Sun C 5.9
26253         * doc/posix-headers/stdalign.texi: Document this.
26254         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
26255         __attribute__ ((__aligned__ (...))).
26257 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26259         time_rz: fix comment about tzalloc
26260         * lib/time_rz.c (tzalloc): Fix comment.
26262 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26264         stdalign: work around pre-4.9 GCC x86 bug
26265         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
26266         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
26267         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
26269 2015-10-18  Pádraig Brady  <P@draigBrady.com>
26271         maint.mk: sc_tight_scope: remove extraneous expressions
26272         * top/maint.mk (tight_scope): This is not really required since
26273         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
26274         that matches all nm entries.  But it does remove extraneous entries
26275         that may be confusing or cause issue in future maintenance.
26277 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
26279         time_rz: return NULL if localtime_r fails
26280         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
26281         while still attempting to pacify bleeding-edge GCC.
26283         fts: port to C11 alignof
26284         * doc/posix-headers/stdalign.texi (stdalign.h):
26285         Document the C11 restriction.
26286         * lib/fts.c: Include stddef.h, for max_align_t.
26287         (fts_alloc): Align using max_align_t, not FTSENT.
26288         * modules/fts (Depends-on): Add stddef.
26290 2015-10-18  Jim Meyering  <meyering@fb.com>
26292         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
26293         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
26294         would see this:
26296         lib/time_rz.c: In function 'localtime_rz':
26297         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
26298           [-Werror=nonnull]
26299                    if (tm && !save_abbr (tz, tm))
26300                        ^
26302         That was complaining about "tm" because it is a parameter that was
26303         declared with the __nonnull__ attribute.
26304         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
26305         result of localtime_r.
26307 2015-10-17  Jim Meyering  <meyering@fb.com>
26309         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
26310         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
26311         name-extraction regexp mistakenly used \S+, and would mistakenly
26312         extract "*F" from "extern int *F()" rather than the desired "F".
26313         Use \w+ instead.
26315 2015-10-17  Jim Meyering  <meyering@fb.com>
26317         maint.mk: sc_tight_scope: factor and support OS X
26318         * top/maint.mk (_gl_tight_scope): Address three issues:
26319         - factor out four instances of code that wraps a string in "^...$"
26320         - allow nm-reported symbol names to have an optional leading "_"
26321         - add "main" to the list of ignored variable names, because on os x,
26322         "main" has nm-reported type "S" in the variable-checking section.
26324 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
26326         safe-alloc-tests: fix typo in license header
26327         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
26329 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
26331         copy-file: fix mem leak in error case
26332         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
26333         upon error opening or performing I/O to the src and dest files.
26335 2015-10-15  Mike Frysinger  <vapier@chromium.org>
26337         localename: control langinfo.h inclusion
26338         This header is only used to work around buggy behavior in old
26339         versions of glibc, so do not include it all the time.  Otherwise
26340         we get build failures on systems that do not provide langinfo.h.
26341         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
26342         in the source later on.
26343         The patch was originally submitted to gettext as:
26344         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
26346 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26348         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
26349         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
26350         * lib/u64.c, lib/unistd.c:
26351         Append 'typedef int dummy;', to pacify compilers that are picky
26352         about empty translation units.
26354 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
26356         accept4-tests: fix to avoid non portable flags
26357         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
26358         as they are the only documented ones, and passing others may trigger
26359         EINVAL (seen on FreeBSD 10.1-RELEASE).
26360         * doc/glibc-functions/accept4.texi: Mention that we don't provide
26361         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
26363 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
26365         gnulib-tool: fix tests of 'extensions' module
26366         This complements f8fe25fab60e3c687a124 commit.
26367         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
26368         emitting of initial gl_EARLY macros.
26369         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
26370         replaced with func_emit_pre_early_macros call.
26372 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
26374         unicase/locale-language: fix typo in utf-8 cookie
26375         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
26376         Problem reported by Zbigniew Jędrzejewski-Szmek.
26378 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
26380         xalloc: do not worry about GCC 5 warning on 32 bit
26381         * lib/xalloc.h: Revert previous change.
26382         I found a better way to fix this in coreutils.
26384 2015-10-02  Pádraig Brady  <P@draigBrady.com>
26386         xalloc: avoid GCC 5.1 warning on 32 bit
26387         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
26388         xalloc_oversized(), which was seen to give this warning
26389         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
26390         when simplifying conditional".
26392 2015-10-02  Daiki Ueno  <ueno@gnu.org>
26394         uniname/uniname-tests: avoid compiler warnings
26395         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
26396         unused local variables.
26397         (test_alias_lookup): Fix alias name display in failure cases.
26399 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26401         c-ctype: do not worry about EBCDIC + char signed
26402         Drop support for EBCDIC with char being signed, as this breaks too
26403         many programs.  Problem reported by Ben Pfaff in:
26404         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
26405         * lib/c-ctype.h: Verify that we are not using EBCDIC with
26406         char being signed.
26407         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
26408         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
26409         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
26410         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
26411         * tests/test-c-ctype.c (test_all):
26412         Simplify by assuming standard char values cannot be negative.
26413         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
26415 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26417         c-ctype: port better to z/OS EBCDIC
26418         Problems reported by Daniel Richard G. in:
26419         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
26420         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
26421         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
26422         (_C_CTYPE_OTHER_CNTRL): New macro.
26423         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
26424         from SCHAR_MIN, as the functions are defined only from values
26425         promoted from char or from unsigned char, not necessarily from
26426         signed char.
26428 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
26430         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
26432         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
26433         and ARFLAGS variables.  Doing this unconditionally could break
26434         later Automake's AM_PROG_AR invocation (at least it's
26435         AC_CHECK_TOOLS call to detect correct 'ar' binary).
26437         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
26438         Amsterdam Compiler Kit, so make the previous code to have effects
26439         only on ACK, and rather automatically call the Automake's
26440         AM_PROG_AR as soon as possible to decide other cases.
26442         References:
26443         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
26445         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
26446         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
26447         is possible, keep setting AR/ARFLAGS to reasonable defaults.
26448         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
26449         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
26450         'extensions' module is used.
26451         * modules/extensions (configure.ac-early): Remove as this snippet
26452         is added to gnulib-comp.m4 earlier anyway.
26454 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26456         sockets: MS Windows initalization fixes
26457         Problem reported by Test User in:
26458         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
26459         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
26460         Correct the endianness.
26461         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
26462         number mismatch, not just on <.  Cleanup before any such failure.
26464 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
26466         gc: fix detection of installed libgcrypt version
26467         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
26468         at least as recent as 1.4.4.  The previously used macro is not
26469         available now, since modules were removed in version 1.6.0.
26471 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
26473         c-ctype: rewrite to use inline functions
26474         This simplifies maintenance, since it makes for just one
26475         implementation of each function, letting the compiler have the fun
26476         of optimization.  In practice this works well nowadays with GCC.
26477         E.g., c_isascii might need only three instructions even though the
26478         source code lists every ASCII character individually in a large
26479         switch statement.
26480         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
26481         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
26482         * NEWS: Document the API change.
26483         * lib/c-ctype.c: Drastically simplify, since this now just expands
26484         inline functions.
26485         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26486         (C_CTYPE_INLINE): New macro.
26487         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
26488         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
26489         Verify that either ASCII or EBCDIC is being used.
26490         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
26491         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
26492         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
26493         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
26494         New private macros.
26495         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
26496         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
26497         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
26498         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
26499         (c_tolower, c_toupper): When converting, return the unsigned char,
26500         as that is what z/OS does.
26501         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
26502         of some c-ctype.h macros.
26503         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
26504         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
26505         c_tolower promotion to be compatible with z/OS.
26507 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
26509         gitlog-to-changelog: trim only trailing whitespaces
26510         This is fix for --format regression introduced by commit
26511         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
26512         doubled %n string) had no effect anymore.  This format
26513         specification has been used e.g. by GNU paxuitils (commit
26514         edfd8bcc3).
26516         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
26517         newlines in commmit messages.
26519 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
26521         Test that c_iscntrl agrees with iscntrl, etc.
26522         Suggested by Daniel Richard G. in:
26523         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
26524         * modules/c-ctype-tests (Depends-on): Add ctype.
26525         * tests/test-c-ctype.c: Include <ctype.h>.
26526         (NCHARS): New constant.
26527         (test_agree_with_C_locale): New function.
26528         (main): Use it.
26529         (test_all): Use named constants.
26531         c-ctype: improve c_isascii testing
26532         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
26533         Add a test to count the number of ASCII characters.
26535 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26537         savewd: remove SAVEWD_CHDIR_READABLE
26538         It was problematic in the light of file systems that ignore umask.
26539         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
26540         * NEWS: Document this.
26541         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
26542         successful, -1 (setting errno) on failure, rather than something
26543         more complicated than that.
26544         * lib/mkdir-p.c (make_dir_parents):
26545         Do not use SAVEWD_CHDIR_READABLE.
26546         * lib/savewd.c (savewd_chdir):
26547         Remove support for SAVEWD_CHDIR_READABLE.
26548         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
26550         c-ctype: port better to EBCDIC
26551         Problems reported by Daniel Richard G. in
26552         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
26553         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
26554         Include "verify.h".
26555         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
26556         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
26557         Define as enum constants with value false, if not defined, so that
26558         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
26559         code more portable, as both branches of the 'if' are compiled on
26560         all platforms.
26561         (C_CTYPE_EBCDIC): New constant.
26562         Verify that the character set is either ASCII or EBCDIC.
26563         (to_char): New static function.
26564         (c_isascii, c_iscntrl):
26565         Assume standard control-character assignments for EBCDIC.
26566         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
26567         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
26568         Rewrite to use 'if' instead of 'ifdef'.
26569         Use to_char if non-ASCII.  Prefer <= to >=.
26570         Prefer true and false to 1 and 0, for booleans.
26571         (c_iscntrl): Use 'if', not 'ifdef'.
26572         * modules/c-ctype (Depends-on): Add verify.
26573         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
26574         (to_char): New function.
26575         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
26577 2015-09-21  Pádraig Brady  <P@draigBrady.com>
26579         nanosleep: fix return code for interrupted replacement
26580         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
26581         that we return -1 in the case the call is interrupted by a signal,
26582         rather than the current value of 1.
26583         Diagnosed and tested by Daniel Richard G.
26585 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
26587         Diagnose ERE '()|\1'
26588         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
26589         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
26590         track of the set of previously-completed subexpressions available
26591         before the first alternative, and restore this set just before
26592         parsing each subsequent alternative.  This lets us diagnose the
26593         invalid back-reference in the ERE '()|\1'.
26595         regex: merge patches from libc
26597         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
26598         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
26599         * lib/regex_internal.h:
26600         Include <libc-lock.h> instead of <bits/libc-lock.h>.
26602         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
26603         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
26604         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
26605         wcscoll.
26606         * lib/regexec.c (check_node_accept_bytes): Likewise.
26608         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26609         Fix regex wcrtomb namespace (bug 18496).
26610         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
26611         instead of wcrtomb.
26613         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
26614         Fix regex wctype namespace (bug 18495).
26615         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
26616         instead of towlower.
26617         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
26618         instead of iswlower.  Call __towupper instead of towupper.
26619         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
26620         instead of iswalnum.
26622         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
26623         * lib/regcomp.c (parse_bracket_exp): Initialize type to
26624         COLL_SYM in a couple of places to avoid uninitialized variable
26625         wanings on tilegx gcc 4.8.2.
26627         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26628         * lib/regex_internal.h: Remove NOT_IN_libc.
26630         2014-11-17  Andreas Schwab  <schwab@suse.de>
26631         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
26633         2014-09-11  Roland McGrath  <roland@hack.frob.com>
26634         Move findidx nested functions to top-level.
26635         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
26636         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
26637         Pass new arguments to findidx.
26638         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
26639         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
26640         Don't #include it inside the function.  Pass new arguments to findidx.
26641         * lib/regex_internal.h:
26642         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
26643         (re_string_elem_size_at): Don't #include it inside the function.
26644         Pass new arguments to findidx.
26646         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
26647         Check if DEBUG is defined in regex_internal.c
26648         * lib/regex_internal.c: Check if DEBUG is defined and is set.
26650 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
26652         ceill: detect buggy OpenBSD implementation
26653         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
26654         which returns zero for small values.  Discussed here:
26655         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
26657 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
26659         mountlist: add me_mntroot field on Linux machines
26660         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
26661         mount_entry so Linux machines based on /proc/self/mountinfo can
26662         distinguish between bind mounts and original mounts.  In reality bind
26663         mounts aren't treated differently than mountroot=/ mounts by the
26664         kernel, but the user often wants these bind mounts distinguished.
26665         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
26666         More details at https://pad.lv/1432871
26668 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
26670         doc: Describe to use multiple instances of gnulib
26671         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
26672         instances of gnulib with different modules can be used, for example one
26673         for a lib and another one for associated tools.
26675 2015-09-01  Pádraig Brady  <P@draigBrady.com>
26677         base32: mark function as __attribute__ const
26678         * lib/base32.h (isbase32): Mark __attribute__ const as
26679         suggested by GCC, and consistent with the base64 module.
26681 2015-08-20  Daiki Ueno  <ueno@gnu.org>
26683         gnulib-tool: don't transform binary files with sed
26684         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
26685         .mo and .class files.
26686         Reported by Denis Denisov.
26688 2015-08-10  Daiki Ueno  <ueno@gnu.org>
26690         gperf: respect silent rules
26691         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
26692         V_GPERF_0 for silent rules.
26693         * modules/iconv_open (Makefile.am): Use V_GPERF.
26694         * modules/unicase/locale-language (Makefile.am): Likewise.
26695         * modules/unicase/special-casing (Makefile.am): Likewise.
26696         * modules/unictype/category-byname (Makefile.am): Likewise.
26697         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
26698         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
26699         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
26700         * modules/unictype/property-byname (Makefile.am): Likewise.
26701         * modules/unictype/scripts (Makefile.am): Likewise.
26702         * modules/uninorm/composition (Makefile.am): Likewise.
26704 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
26706         Improve port of stdalign to C++11
26707         Problem reported by Sundaram in:
26708         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
26709         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
26710         (__alignas_is_defined): Define if C++11 or newer.
26712 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
26714         pmccabe2html: fix gawk regex escaping
26715         * build-aux/pmccabe2html: Add one more backslash to properly
26716         escape the gsub replacement value.  Fixes this error:
26717         gawk: ./build-aux/pmccabe2html:425: \
26718         warning: escape sequence `\&' treated as plain `&'
26720 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
26722         time_rz: port to pedantic memcpy
26723         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
26724         that reject memcpy (..., NULL, 0).
26726 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
26728         time_rz: port better to MinGW
26729         Don't change tzname, as this makes MinGW dump core (Bug#21020).
26730         Instead, store the tzname copy in the struct tm_zone object.
26731         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
26732         * lib/strftime.c [!_LIBC]:
26733         * lib/time_rz.c: Include time-internal.h.
26734         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
26735         name from *TZ rather than from TZNAME, doable because *TZ now has
26736         a tzname_copy member.
26737         * lib/time-internal.h: New file, with contents taken from
26738         lib/time_rz.c.  It's separate because strftime.c now accesses
26739         struct tm_zone members.
26740         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26741         New member tzname_copy.
26742         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
26743         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
26744         Initialize tzname_copy member.
26745         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
26746         in tzname_copy member.
26747         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
26748         (restore_tzname): Remove; no longer needed.  All calls removed.
26749         * modules/time_rz (Files): Add lib/time-internal.h.
26751         time: port __need_time_t to MinGW
26752         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
26753         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
26755 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26757         strftime: fix newly-introduced bug on Solaris
26758         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
26759         consistently at the start, rather than doing some of the setup at
26760         the start and some in the %Z format spec.  This is cleaner, and
26761         works better with time_rz on platforms like Solaris where struct
26762         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
26763         mktime_z and localtime_rz can mess up the tzname cache.
26765         test-strftime: test for Solaris bug
26766         * modules/strftime-tests (Depends-on): Add strerror.
26767         * tests/test-strftime.c: Include <errno.h>.
26768         (posixtm_test): New function, containing the old 'main'.
26769         (struct tzalloc_test, struct localtime_rz_test): New types.
26770         (TZ, LT): New static vars.
26771         (tzalloc_test): New function.
26772         (main): Rewrite in terms of posixtm_test and tzalloc_test.
26774         time_rz: port to Solaris etc.
26775         Works around a tzname problem on platforms like Solaris that have
26776         tzname but not tm_zone, by setting tzname at the appropriate time
26777         and restoring it later.
26778         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
26779         New static vars.
26780         (save_abbr) [HAVE_TZNAME]: Set them.
26781         (revert_tz) [HAVE_TZNAME]: Clear or use them.
26782         (restore_tzname): New function.
26783         (localtime_rz, mktime_z): Use it.
26785         time_rz: now LGPL
26786         * modules/time_rz (License): Now LGPL, because strftime depends on it.
26788         time_rz: make a constant 'const'
26789         * lib/time_rz.c (local_tz): Now const.
26791         time_rz: fix off-by-one typo
26792         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
26794 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
26796         fprintftime, strftime: use timezone_t args
26797         * NEWS: Document the change.
26798         * lib/fprintftime.h (fprintftime):
26799         * lib/strftime.c (extra_args) [my_strftime]:
26800         * lib/strftime.h (nstrftime):
26801         Time zone arg is now of type timezone_t, not int.
26802         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
26803         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
26804         (my_strftime) [emacs && !my_strftime]:
26805         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
26806         Remove; Emacs doesn't need this any more.
26807         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
26808         fprintftime and nstrftime to call tzset.
26809         (ut) [!my_strftime]: Remove, replacing with ...
26810         (tz) [!my_stftime]: ... this new macro.  All uses changed.
26811         (strftime_case_): Use localtime_rz and mktime_z instead
26812         of localtime_r and mktime.
26813         * modules/fprintftime (Depends-on): Add time_rz.
26814         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
26815         * tests/test-strftime.c (main): Adjust to new nstrftime API.
26817         time_rz: new module
26818         * MODULES.html.sh: Add time_rz.
26819         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
26820         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
26821         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
26822         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
26823         New var HAVE_TIMEZONE_T (default 0).
26824         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
26825         New var GNULIB_TIME_RZ (default 0).
26826         * modules/time (time.h): Substitute the new vars.
26828         flexmember: license is now unlimited
26829         * modules/flexmember (License): Change to unlimited,
26830         since its only source file gives an unlimited license.
26832 2015-07-15  Eric Blake  <eblake@redhat.com>
26834         maint: update copyright paper procedures
26835         * config/srclist.txt: Drop outdated files.
26836         * doc/Copyright/conditions.txt: Update to latest.
26837         * doc/Copyright/assign.changes.manual: Delete.
26838         * doc/Copyright/assign.future.manual: Likewise.
26839         * doc/Copyright/assign.manual: Likewise.
26840         * doc/Copyright/assign.translation.manual: Likewise.
26841         * doc/Copyright/disclaim.changes.manual: Likewise.
26842         * doc/Copyright/disclaim.manual: Likewise.
26843         * doc/Copyright/disclaim.program: Likewise.
26845 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26847         localename: fix link error on Illumos
26848         Illumos defines __sun, but does not have getlocalename_l nor the
26849         equivalent.  This partially reverts commit 387c214.
26850         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
26851         available, as well as uselocale.
26852         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
26853         use getlocalename_l if it is not available.
26855 2015-07-07  Daiki Ueno  <ueno@gnu.org>
26857         unistr/uN-strtok-tests: avoid a trivial leak
26858         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
26859         input and delim after the multibyte delimiter tests.
26861 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26863         file-has-acl, acl-permissions: fix HP-UX typos
26864         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
26865         * lib/file-has-acl.c (file_has_acl):
26866         * lib/set-permissions.c (context_acl_from_mode)
26867         (context_aclv_from_mode, set_acls):
26868         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
26869         They were introduced by the recent ACL changes.
26871         regex: match current GNU grep behavior
26872         These symbols have not matched GNU grep behavior for quite some time.
26873         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
26874         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
26875         Change to match current GNU behavior.
26876         Simplify by expressing it as differences from POSIX BREs and EREs.
26877         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
26879 2015-07-03  Jim Meyering  <meyering@fb.com>
26881         set-permissions.c: adjust acl_from_mode's cpp guard
26882         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
26883         directives identical to those guarding the sole use.
26884         Otherwise, on some systems, we'd get a warning about
26885         the function being defined but not used.
26886         Also, filter through cppi to correct misleading indentation
26887         of cpp directives.
26889 2015-07-03  Pádraig Brady  <P@draigBrady.com>
26891         tests: restrict shells to those that support 'local'
26892         The local keyword is very widely supported and used
26893         in tests in coreutils and grep at least.  Therefore
26894         restrict to testing with shells that support it.
26895         This mainly excludes /bin/sh on Solaris.
26896         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
26898 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
26899         and Daiki Ueno  <ueno@gnu.org>
26901         unistr/uN-strtok: handle multibyte delimiters
26902         Previously, uN_strtok moved PTR to the next unit to the token end.
26903         When DELIM contained a multibyte character, the new position could
26904         be a middle of a multibyte character.
26905         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
26906         after the token.
26907         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
26908         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
26909         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
26910         * modules/unistr/u8-strtok (Depends-on): Depend on
26911         unistr/u8-strmblen.
26912         * modules/unistr/u16-strtok (Depends-on): Depend on
26913         unistr/u16-strmblen.
26914         * modules/unistr/u32-strtok (Depends-on): Depend on
26915         unistr/u32-strmblen.
26916         * tests/unistr/test-u-strtok.h: New file.
26917         * tests/unistr/test-u8-strtok.c: New file.
26918         * tests/unistr/test-u16-strtok.c: New file.
26919         * tests/unistr/test-u32-strtok.c: New file.
26920         * modules/unistr/u8-strtok-tests: New file.
26921         * modules/unistr/u32-strtok-tests: New file.
26922         * modules/unistr/u16-strtok-tests: New file.
26924 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
26926         update-copyright: fix test failure with perl >= 5.22 (trivial)
26927         * build-aux/update-copyright: Escape a literal left curly bracket,
26928         required with perl >= 5.22
26930 2015-07-02  Daiki Ueno  <ueno@gnu.org>
26932         u{16,32}-strstr-tests: relax timeout condition
26933         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
26934         tests can take longer than 5 seconds to complete.
26935         Reported by Dagobert Michelsen in:
26936         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
26937         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
26938         seconds to 10 seconds.
26939         * tests/unistr/test-u32-strstr.c (main): Likewise.
26941 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26943         gnulib-common.m4: change the ARFLAGS default to 'cr'
26944         In some GNU/Linux distributions people started to compile 'ar'
26945         binary with --enable-deterministic-archives (binutils project).
26946         That, however, in combination with previous autotools long time
26947         working default AR{_,}FLAGS=cru causes warnings on such
26948         installations:
26949         ar: `u' modifier ignored since `D' is the default (see `U')
26950         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
26951         set already.
26953 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
26955         selinux-h: avoid double free after *getfilecon()
26956         Originally reported by Ben Shelton on bug-tar:
26957         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
26958         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
26959         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
26960         param should be freed by freecon(3) (regardless the return value).
26962 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
26964         fix pty related tests issues on Windows (trivial)
26965         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
26966         however it's still present in tests/ subdirectory of the final project.
26967         Therefore avoid it to pass `make check`.
26968         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
26969         will just return -ENOSYS, so avoid this non applicable test allowing
26970         the build to proceed.
26972 2015-07-01  Pádraig Brady  <P@draigBrady.com>
26974         acl: fix definition of acl_from_mode on FreeBSD
26975         This was causing basic coreutils copy operations to fail
26976         with ENOTSUP or ENOENT error messages.
26977         * lib/acl-internal.h (acl_from_mode): Only define when
26978         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
26979         of acl_from_mode() defined in lib/set-permissions.c to
26980         be used on FreeBSD at least.
26981         * lib/set-permissions.c: Fix up comment spelling,
26982         and a redundant variable assignment; noticed in passing.
26984 2015-06-30  Pádraig Brady  <P@draigBrady.com>
26986         readutmp: port to FreeBSD >= 9
26987         * lib/readutmp.h: Map utmpxname() to setutxdb().
26988         With that coreutils who(1) and pinky(1) tests pass.
26990 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26992         mgetgroups: port to strict OS X
26993         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
26994         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
26995         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
26996         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
26998 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
27000         mgetgroups: port to strict OS X
27001         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
27002         Document the getgrouplist problem.
27003         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
27004         New macro.
27005         (mgetgroups): Use it.
27006         * m4/mgetgroups.m4 (gl_MGETGROUPS):
27007         Check for OS X signature for getgrouplist.
27009 2015-06-29  Jim Meyering  <meyering@fb.com>
27011         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
27012         It started like this when building coreutils' latest on OS X,
27013         invoking ./configure with a nonempty --cache=.cache:
27015           lib/linkat.c:46:42: error: operator '||' has no right operand
27016           lib/linkat.c: In function 'rpl_linkat':
27017           lib/linkat.c:330:27: error: #if with no expression
27019         Here's linkat.c's line 46:
27021           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
27023         Here's some context:
27025           $ grep linkat_nofoll .cache
27026           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
27027           $ grep LINKAT_SYM lib/config.h
27028           #define LINKAT_SYMLINK_NOTSUP
27030         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
27031         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
27032         but that violates a tenet of AC_CACHE_CHECK: it must
27033         have no side effect other than setting its cache variable.
27035         What happens is that when the cache is set, we'd skip the
27036         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
27037         defined to whatever value it happened to have in configure's
27038         environment.  In my case, it was not defined, so this later code:
27040           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
27041             [Define to 1 if linkat can create hardlinks to symlinks])
27043         would emit code with an empty RHS.
27045         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
27046         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
27048 2015-06-28  Jim Meyering  <meyering@fb.com>
27050         mountlist: avoid an unused-label warning on OS X
27051         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
27052         Building on OS X, I saw a warning about the "free_then_fail" label
27053         being unused.  Give it the _GL_UNUSED_LABEL attribute.
27055         error.c: correct printf-style format: %d -> %u
27056         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
27057         rather than %d, to match the type of "line_number", unsigned int.
27059 2015-06-25  Pádraig Brady  <P@draigBrady.com>
27061         fts: avoid reading beyond the heap allocation
27062         GCC 5.1.1 with -O2 and -fsanitize=address reports
27063         a read of size 4 from a heap object of size 3 is indeed invalid,
27064         though this may be due to incorrect padding assumptions by GCC, see:
27065         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27066         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
27067         * modules/fts: Depend on stdalign.
27069 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27071         savedir: avoid undefined behavior in qsort call
27072         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27073         "runtime error: null pointer passed as argument 1,
27074          which is declared to never be null"
27075         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
27077 2015-06-24  Pádraig Brady  <P@draigBrady.com>
27079         userspec: avoid undefined behavior in gettext call
27080         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
27081         "runtime error: null pointer passed as argument 2,
27082          which is declared to never be null"
27083         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
27085 2015-06-20  Glenn Morris  <rgm@gnu.org>
27087         gitlog-to-changelog: improve gitmerge.el commits
27088         Let the Emacs ChangeLog generation process exclude "skipped"
27089         messages from merge commits (Bug#20717).
27090         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
27092 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27094         wchar: fix MinGW compilation warnings
27095         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
27096         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
27097         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
27099 2015-06-20  Daiki Ueno  <ueno@gnu.org>
27101         uniname/uniname-tests: use pristine data files
27102         For copyright and maintenance reasons, use the data files from UCD
27103         without modification.
27104         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
27105         (getfield): Remove.
27106         (aliases_count): New global variable.
27107         (fill_names): Skip comments and empty lines in the input.  Don't
27108         use getfield.
27109         (fill_aliases): Likewise.
27110         (main): Change the expected command line arguments to:
27111         NAMES... ["--" ALIASES...].
27112         * tests/uniname/test-uninames.sh: Adjust to the change in
27113         test-uninames.c.
27114         * tests/uniname/UnicodeDataNames.txt: Remove.
27115         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
27116         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
27117         file from Unicode 8.0.0.
27119 2015-06-19  Pádraig Brady  <P@draigBrady.com>
27121         linked-list, linkedhash-list: avoid compiler warnings
27122         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
27123         -Werror=suggest-attribute=pure (from GCC 5.1.1).
27125 2015-06-19  Daiki Ueno  <ueno@gnu.org>
27127         libunistring: bump minimum version to 0.9.6
27128         * all modules depending on updated Unicode data: Regenerate.
27129         The modules are listed by a script that does:
27130         - for each file listed by: git show --oneline --name-only 705f4efc
27131           - deduce the containing modules, based on "Files:"
27132         - deduce the modules which depend on the containing modules, based
27133           on "Depends-on:"
27135 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27137         uniname/uniname: update to Unicode 8.0.0
27138         * lib/uniname/uninames.h: Regenerate.
27139         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
27140         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
27142 2015-06-18  Daiki Ueno  <ueno@gnu.org>
27144         libunistring: update to Unicode 8.0.0
27145         * lib/gen-uni-tables.c (SIZEOF): New macro.
27146         (output_numeric): Increase the maximum number of fractions from
27147         128 to 160.  Increase the level3 value width from 7 bits to 8
27148         bits.  Use SIZEOF instead of a hard-coded integer.
27149         (output_blocks): Decrease the cut-off threshold from 0x30000 to
27150         0x28000.
27151         (fill_blocks): Increase the maximum number of blocks from 256 to
27152         384.  Use SIZEOF instead of a hard-coded integer.
27153         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
27154         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
27155         value width.
27156         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
27157         a new case added to LBP22.
27158         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
27159         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
27160         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
27161         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
27162         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
27163         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27164         lib/uniwidth/width.c.
27165         * all generated files under lib/uni* and tests/uni*: Regenerate.
27167 2015-06-16  Pádraig Brady  <P@draigBrady.com>
27169         gnu-web-doc-update: add --mirror to remove stale files
27170         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
27171         out of date files from the CVS server.  Since this is usually
27172         appropriate, a prompt is given when the option is not specified,
27173         along with the `cvs remove` command that would be run.
27175 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
27177         acl-permissions: pacify -Wsuggest-attribute=const
27178         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
27179         * lib/acl-internal.h (free_permission_context):
27180         Declare with attribute const if ! (defined USE_ACL &&
27181         (HAVE_ACL_GET_FILE || defined GETACL)).
27183         fsync: document AIX misbehavior
27184         * doc/posix-functions/fsync.texi (fsync):
27185         Document failure on AIX with read-only file descriptor.
27187 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
27189         stdio: Don't redefine gets when using C++
27190         * lib/stdio.in.h (gets): Disable warning on C++.
27192 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
27194         acl-permissions: port to AIX, C89 HP-UX
27195         Problems reported by Michael Felt.
27196         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
27197         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
27198         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
27199         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
27200         Add cast for AIX, whose system calls are declared to accept
27201         char * even though the arguments are really char const *.
27202         * lib/get-permissions.c (get_permissions):
27203         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
27204         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
27205         that broke a build.
27206         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
27207         Rework types to pacify xlc.
27209 2015-06-03  Pádraig Brady  <P@draigBrady.com>
27211         vasprintf-posix: avoid compiling vasnprintf where possible
27212         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
27213         module where not required.  For example on a GNU/Linux system
27214         when gnulib-tool is run with the --conditional-dependencies option.
27216 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27218         file-has-acl: fix build on Mac OS X 10
27219         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
27220         which has an incompatible 6 parameter getxattr() call.
27221         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
27222         call on Mac OS X >= 10.4.
27223         * doc/glibc-functions/fgetxattr.texi: Likewise.
27224         * lib/file-has-acl.c: Revert to more complete combined check.
27225         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
27226         Reported by Jack Howarth.
27228 2015-06-02  Pádraig Brady  <P@draigBrady.com>
27230         prefix-gnulib-mk: remove no longer needed special case
27231         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
27232         continued lib_SOURCES lines are no longer present,
27233         so special case handling of such entries is not required.
27235 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27237         acl: don't depend on the deprecated qacl module
27238         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
27240 2015-06-01  Pádraig Brady  <P@draigBrady.com>
27242         gnulib-tool: concatenate lib_SOURCES to a single line
27243         * gnulib-tool: Refactor the line merging sed logic,
27244         and use that to output a single lib_SOURCES line for each module.
27245         gnulib using projects often postprocess this output to prepend
27246         subdir paths to each item, and having a single line simplifies this
27247         processing allowing better decoupling from the gnulib-tool output.
27249 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
27251         pthread_sigmask: discount system version if a simple macro (trivial)
27252         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
27253         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
27254         function to ensure it's available.
27256 2015-05-31  Pádraig Brady  <P@draigBrady.com>
27258         readlinkat: avoid OS X 10.10 trailing slash bug
27259         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
27260         has this bug.
27261         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
27262         that OS X 10.10 has this function.
27263         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
27264         as done for readlink().
27265         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
27266         trailing slash bug, and assume readlinkat() has the same issue.
27267         Also fix a typo where $gl_cv_decl_readlink_works was tested,
27268         rather than the correct $gl_cv_decl_readlinkat_works.
27270 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27272         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
27273         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
27274         module rewrite.
27276         acl-permissions: Fix build on Solaris and Cygwin
27277         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
27278         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
27279         ace_entries variables have moved into struct permission_context but
27280         they were still accessed as local variables here.
27282 2015-05-29  Pádraig Brady  <P@draigBrady.com>
27284         linkat: avoid OS X 10.10 trailing slash with symlink bug
27285         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
27286         causes the symlink to be dereferenced, and if it points
27287         to a non existent file, that file will be created as
27288         a hard link to "path1".
27289         This fixes a test failure in test-linkat.c.
27290         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
27291         this case.  The existing workaround in linkat.c for
27292         trailing slash issues, suffices for this case.
27293         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
27294         the list of platforms with trailing slash issues.
27296 2015-05-28  Pádraig Brady  <P@draigBrady.com>
27298         unlinkat: handle ignoring of ".." on Darwin 14
27299         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
27300         on Mac OS X 10.10, where it ignores paths with a trailing "..",
27301         so handle in the same manner.
27302         * m4/unlinkat.m4: Comment on this Darwin issue.
27303         * doc/posix-functions/unlink.texi: Update the latest version
27304         where the issue was seen.
27305         * doc/posix-functions/unlinkat.texi: Mention this issue.
27306         Fixes a test failure in test-unlinkat.c.
27308 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
27310         qacl: split into qcopy-acl and qset-acl
27311         Emacs needs the former, but not the latter.
27312         * modules/acl-permissions: New file, containing most of the old qacl.
27313         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
27314         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
27315         * modules/qcopy-acl, modules/qset-acl: New files.
27316         * MODULES.html.sh (File system functions):
27317         Mention the new modules, and mention qacl while we're at it.
27319 2015-05-27  Glenn Morris  <rgm@gnu.org>
27321         gitlog-to-changelog: new option --ignore-line
27322         (This patch is imported from the GNU Emacs master.)
27323         This option ignores individual commit lines matching a pattern.
27324         * build-aux/gitlog-to-changelog: Add --ignore-line option.
27326 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
27328         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
27329         Implement get_permissions and set_permissions primitives for getting all
27330         the permissions of a file, storing them, and later setting them. (In the
27331         minimal case, the permissions consist only of a file mode.) Reimplement
27332         qset_acl and qcopy_acl based on these new primitives: this avoids code
27333         duplication and makes error handling more consistent.
27334         The Solaris and Cygwin code still uses duplicate code paths for setting
27335         a file mode while making sure that no acls exist and setting an explicit
27336         acl; this is no worse than before, but could be cleaned up.  The AIX
27337         code still doesn't read ACLs, it only makes sure that acls don't get in
27338         the way when setting a file mode.
27339         * lib/acl-internal.h (struct permission_context): New data structure.
27340         (get_permissions, set_permissions, free_permission_context): Declare.
27341         * lib/acl-internal.c (free_permission_context): New helper function.
27342         * lib/get-permissions.c (get_permissions): New helper function split off
27343         from qcopy_acl.
27344         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
27345         AIX, set a file's permissions based only on a file mode.
27346         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
27347         other platforms construct a temporary acl from the file mode and set
27348         that acl in the same way as setting an acl read from the source file.
27349         This should help avoid code duplication and inconsistent / buggy
27350         behavior.
27351         (set_acls): New helper function Split off from qcopy_acl.
27352         (chmod_or_fchmod): Moved here from qset-acl.c.
27353         (set_permissions): New helper function.
27354         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
27355         set_permissions.
27356         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
27357         * modules/qacl: Add get-permissions.c and set-permissions.c.
27359         file-has-acl: Split feature tests again (Bug#20667)
27360         * lib/file-has-acl.c: Instead of testing for
27361         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
27362         define them when needed.
27363         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
27364         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
27366 2015-05-27  Pádraig Brady  <P@draigBrady.com>
27368         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
27369         This avoids a conflict with "FORTIFY_SOURCE" variants
27370         of the string functions when they're replaced on NetBSD-6.0.1
27371         and Darwin-14.3.0 at least.
27372         * lib/string.in.h: Avoid including our "lib/string.h" while
27373         including the system <string.h>.
27375 2015-05-26  Eric Blake  <eblake@redhat.com>
27377         stdio: limit __gnu_printf__ witness to gcc 4.4+
27378         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
27379         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
27381         error: use correct printf attributes on mingw
27382         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
27384         inttypes: force correct mingw PRIdMAX even without <stdio.h>
27385         * modules/inttypes (Depends-on): Require extensions, so that mingw
27386         always uses GNU style inttypes.
27387         * lib/inttypes.in.h: On mingw, include <stdio.h>.
27389         stdio: fix probe on mingw under gcc 5.1
27390         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
27391         around new gcc preprocessor rules.
27393 2015-05-07  Glenn Morris  <rgm@gnu.org>
27395         gitlog-to-changelog: parse "Tiny-change"
27396         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
27397         "Copyright-paperwork-exempt".  (Bug#20324)
27399 2015-05-06  Pádraig Brady  <P@draigBrady.com>
27401         doc: document glibc posix_fallocate() issues
27402         * doc/posix-functions/posix_fallocate.texi: Mention the
27403         glibc efficiency problems and issues with NFS.
27405 2015-05-05  Karl Berry  <karl@freefriends.org>
27407         * build-aux/gendocs.sh (usage): document new css default
27408         for HTML (--htmlarg).
27410 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
27412         extern-inline: no need for workaround in GCC 5.1
27413         * doc/extern-inline.texi (extern inline):
27414         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
27415         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
27416         around these bugs in GCC 5.1 and later.  Maybe in a decade or
27417         two we can remove these workarounds.
27419 2015-04-28  Pádraig Brady  <P@draigBrady.com>
27421         eealloc, pagealign_alloc, xalloc: avoid clang warnings
27422         Avoid [-Wunknown-attributes] warnings like:
27423         warning: unknown attribute '__alloc_size__' ignored
27424         * lib/xalloc.h: Don't use the __alloc_size__  attribute
27425         with clang, as support has been fully removed as of clang 3.5:
27426         https://github.com/llvm-mirror/clang/commit/c047507a
27427         * lib/eealloc.h: Likewise.
27428         * lib/pagealign_alloc.h: Likewise.
27430 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27432         tests: pacify GCC 5.1's stricter printf checking
27433         * tests/test-dirname.c (main):
27434         * tests/test-getaddrinfo.c (simple):
27435         * tests/test-getlogin.c (main):
27436         * tests/test-getndelim2.c (main):
27437         * tests/test-inttostr.c (CK):
27438         * tests/test-md5.c (main):
27439         * tests/test-read-file.c (main):
27440         * tests/test-sha1.c (main):
27441         Fix mismatches between printf format and value signedness.
27442         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
27443         Remove, as CAST_VAL always returned a value of type uintmax_t.
27445         fts: port to GCC 5.1 with --enable-gcc-warnings
27446         Without this fix, GCC 5.1 (correctly) warns about a subscript
27447         error on the fts_name component of FTSENT.  It's actually a
27448         flexible member, so define it that way on C99 or later hosts.
27449         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
27450         structure that now has a flexible array member.
27451         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
27452         (FTSENT): fts_name is now flexible on C99-or-later platforms.
27453         * modules/fts (Depends-on): Add flexmember.
27455 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
27457         file-has-acl: port to CentOS 6
27458         Problem reported by Tom G. Christensen in:
27459         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
27460         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
27461         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
27462         HAVE_GETXATTR.
27463         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
27464         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
27465         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
27466         file-has-acl.c actually needs.
27468 2015-04-26  Pádraig Brady  <P@draigBrady.com>
27470         file-has-acl: always return false when ACLs aren't supported
27471         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
27472         change the GNU/Linux getxattr path, to transform "not supported"
27473         errors to a false return rather than an error.  This is handled
27474         within file_has_acl() due to the platform specific tests to
27475         determine if ACLs are not supported.
27477 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27479         gettext: propagate po/Makefile.in.in too
27480         * build-aux/po/Makefile.in.in: Copy from latest gettext.
27481         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
27482         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
27483         between Makefile.in.in and the gettext-runtime m4 files.
27485 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27487         file-has-acl: new module, split from acl
27488         And add a new module file-has-acl-tests to match.
27489         I ran into a problem with the recent changes to the acl module,
27490         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
27491         When using the fixed version with Emacs, I discovered that
27492         file-has-acl wasn't separated out well enough for Emacs (e.g., it
27493         had multiple libraries, but needed only one), so I fixed that too.
27494         * NEWS: Document this incompatible change.
27495         * modules/file-has-acl, modules/file-has-acl-tests: New files.
27496         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
27497         Initialize gl_need_lib_has_acl.
27498         (gl_FUNC_ACL): Require it.
27499         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
27500         Move the file-has-acl.c-relevant stuff to ...
27501         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
27502         use_xattrs = 0' typo, and omit some needless work.  Set
27503         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
27504         when gl_FUNC_ACL is called.
27505         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
27506         (Link): Remove $(LIB_HAS_ACL).
27507         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
27508         (check_PROGRAMS): Move stuff relevant to file-has-acl to
27509         modules/file-has-acl-tests.
27510         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
27512         manywarnings: add GCC 5.1 warnings
27513         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
27514         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
27515         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
27516         -Wsuggest-override, -Wuse-without-only.  Change
27517         -Wnormalized=... operands to match 5.1.
27518         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
27519         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
27520         -Wdiscarded-qualifiers, -Wformat-signedness,
27521         -Wincompatible-pointer-types, -Wint-conversion,
27522         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
27523         -Wshift-count-negative, -Wshift-count-overflow,
27524         -Wsizeof-array-argument, -Wsuggest-final-methods,
27525         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
27526         and add -Warray-bounds=2 as a special case.
27528 2015-04-21  Simon Josefsson  <simon@josefsson.org>
27530         doc: update FDL template to match FDL examples.
27531         * doc/alloca-opt.texi:
27532         * doc/alloca.texi:
27533         * doc/c-ctype.texi:
27534         * doc/c-strcase.texi:
27535         * doc/c-strcaseeq.texi:
27536         * doc/c-strcasestr.texi:
27537         * doc/c-strstr.texi:
27538         * doc/c-strtod.texi:
27539         * doc/c-strtold.texi:
27540         * doc/ctime.texi:
27541         * doc/error.texi:
27542         * doc/gcd.texi:
27543         * doc/gnulib-tool.texi:
27544         * doc/inet_ntoa.texi:
27545         * doc/intprops.texi:
27546         * doc/lib-symbol-visibility.texi:
27547         * doc/maintain.texi:
27548         * doc/parse-datetime.texi:
27549         * doc/quote.texi:
27550         * doc/regexprops-generic.texi:
27551         * doc/standards.texi: Remove spurious 'with' in FDL license
27552         template.
27554 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
27556         lstat: fix cross-compilation 'ln -s' problem
27557         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
27558         Have the test program call 'symlink' rather than a separate
27559         script run 'ln -s'; this is more likely to work in
27560         cross-compilation environments.  Reported by Pavel Fedin in:
27561         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
27563 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
27565         gendocs.sh: default to a common CSS style sheet for HTML output
27566         * build-aux/gendocs.sh (htmlarg): Change default value.
27568 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
27570         gnulib-tool: output bold attribute more portably
27571         * gnulib-tool (func_show_module_list): Change hexadecimal
27572         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
27573         encoded numbers as arguments to `printf' is not portable,
27574         and is not claimed by POSIX.  This is the case with FreeBSD.
27576 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
27578         qacl: Simplify HP-UX acl_nontrivial check
27579         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
27580         acl_nontrivial. Check if the acl has at most three entries instead (it must
27581         have exactly three entries according to the HP-UX documentation). Ignore
27582         uids and gids as long as an entry is either for a user (i.e., the owner),
27583         a group (i.e., the owning group), or others.
27584         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
27585         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
27587 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
27589         acl: On Linux, check for acls without libacl
27590         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
27591         library function to check for the presence of acls, avoiding a library.
27592         * lib/file-has-acl.c: Include xattr headers if we have them.
27593         (file_has_acl): On Linux, use getxattr().
27594         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
27595         file_has_acl(). Check for xattr headers and getxattr().
27597 2015-04-14  Ángel González  <keisial@gmail.com>
27599         tempname: avoid unused parameter warnings (trivial)
27600         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
27601         (try_nocreate): Likewise.
27603 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
27605         fseeko: fix build failure on NetBSD >= 6 (trivial)
27606         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
27607         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
27609 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27611         gitlog-to-changelog: port to MS-Windows
27612         * build-aux/gitlog-to-changelog (git_dir_option):
27613         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
27614         MS-Windows Perl.  Reported by Eli Zaretskii in:
27615         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
27617 2015-04-07  Karl Berry  <karl@gnu.org>
27619         gendocs: new option --tex for passing args to texi2dvi.
27620         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
27621         (TEXI2DVI): cut to just command name.
27622         (usage): mention new option, and update copyright.
27623         <generate_tex>: use it.
27625 2015-04-07  Karl Berry  <karl@gnu.org>
27627         * config/srclistvars.sh (GETTEXT): new definition.
27628         * config/srclist.txt: use it for gettext .m4 files.
27629         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
27630         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
27631         and continuing into April.
27633 2015-04-07  Daiki Ueno  <ueno@gnu.org>
27635         uniname/uniname-tests: fix failure due to alias
27636         Reported by Jack Howarth in:
27637         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
27638         * tests/uniname/test-uninames.c (name_has_alias): New function.
27639         (test_inverse_lookup): Exclude character name with valid alias,
27640         from randomly generated character names.
27641         (main): Fill unicode_aliases before calling test functions.
27643 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
27645         hash: remove deprecated hash_insert0 function
27646         * lib/hash.h (hash_insert0): Remove deprecated function.
27647         * lib/hash.c (hash_insert0): Likewise.
27649 2015-04-02  Pádraig Brady  <P@draigBrady.com>
27651         mountlist: remove dependency on libmount
27652         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
27653         directly, rather than depending on libmount, which has many
27654         dependencies due to its dependence on libselinux, as detailed at:
27655         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
27656         Note we restrict this to __linux__ as that's probably where this
27657         interface will remain.  If ever porting, it would be best
27658         to first pull the makedev() wrapper from coreutils to a gnulib module.
27659         Note also we don't add a getline dependency to the mountlist module,
27660         as all Linux versions are sufficient.
27662 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
27664         stddef: port to pre-C11 GCC on x86
27665         On this platform, max_align_t should have an alignment of 8 even
27666         though the storage alignments of double, long, etc. max out at 4.
27667         Inspired by a comment of Andreas Schwab's here:
27668         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
27669         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
27670         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
27671         * tests/test-stddef.c: Test __alignof__ too, if available.
27673 2015-03-24  Pádraig Brady  <P@draigBrady.com>
27675         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
27676         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
27678 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
27680         yesno: make EOL optional in ENABLE_NLS case also (trival)
27681         * lib/yesno.c (yesno): Check for EOL before replacing.
27682         * tests/test-yesno.sh: Add a test case (test along with gettext).
27684 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27686         fdopendir-tests: test it does not close its arg
27687         * tests/test-fdopendir.c (main): Test that fdopendir does not
27688         close its argument.  From a suggestion by David Grayson in:
27689         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
27691 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
27693         gitlog-to-changelog: trim trailing white space
27694         * build-aux/gitlog-to-changelog (main):
27695         Trim trailing white space from commit message lines.
27696         This is helpful for processing the GNU Emacs repository,
27697         which dates back to 1985 and contains a lot of such lines.
27699         gitlog-to-changelog: new option --ignore-matching
27700         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
27701         Support new option --ignore-matching=PAT, which ignores all
27702         commit messages whose first line matches PAT.
27704 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27706         fdopendir: port better to MinGW
27707         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
27708         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
27709         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
27710         * modules/fdopendir (Depends-on): Add dirfd.
27712 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27714         fdopendir: fix typo in comment
27715         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
27717 2015-03-09  Eric Blake  <eblake@redhat.com>
27719         error: document all entry points provided
27720         * doc/glibc-functions/error_print_progname.texi
27721         (error_print_progname): Mention the error module.
27722         * doc/glibc-functions/error_at_line.texi (error_at_line):
27723         Likewise.
27724         * doc/glibc-functions/error_message_count.texi
27725         (error_message_count): Likewise.
27726         * doc/glibc-functions/error_one_per_line.texi
27727         (error_one_per_line): Likewise.
27729 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
27731         vasnprintf: pacify clang 3.5.0
27732         Problem reported by Werner Lemberg in:
27733         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
27734         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
27735         The casts aren't needed, since the characters in question are ASCII.
27737 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27739         glob, etc.: port to MSVC v18 on MS-Windows 8.1
27740         * lib/dirent--.h (GNULIB_defined_opendir):
27741         * lib/dirent.in.h (GNULIB_defined_opendir)
27742         (GNULIB_defined_closedir):
27743         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
27744         #undef only if Gnulib defined it.
27746         poll: port to MSVC v18 on MS-Windows 8.1
27747         Problem reported by Gisle Vanem in:
27748         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
27749         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
27750         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
27751         Add sys_socket.
27753 2015-02-24  Pádraig Brady  <P@draigBrady.com>
27755         tests: support stderr verification with returns_()
27756         * tests/init.sh (returns_): Disable tracing for this wrapper
27757         function, so that stderr of the wrapped command is unchanged,
27758         allowing for verification of the contents.
27760 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
27762         passfd: avoid valgrind uninitalised data warning
27763         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
27764         to include just the fd we've initialized, rather than including
27765         the extra space used for alignment.
27767 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
27769         uniwbrk/u32-wordbreaks-tests: fix copyright
27770         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
27772         dup2: doc and test for Android bug
27773         Reported by Kevin Cernekee in:
27774         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
27775         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27776         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
27778 2015-02-23  Kevin Cernekee  <cernekee@google.com>
27780         Replace dup2() on Android
27781         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
27782         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
27783         fails.  Using rpl_dup2() fixes this because it has an explicit test
27784         for this condition.
27786 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
27788         Android doesn't define RLIM_SAVED_*
27789         Portability problem reported by Kevin Cernekee in:
27790         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
27791         * doc/posix-headers/sys_resource.texi (sys/resource.h):
27792         Mention the portability problem.
27793         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
27794         Define if not defined.
27795         * m4/dup2.m4 (gl_FUNC_DUP2):
27796         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27797         Likewise.
27799 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
27801         vasnprintf-posix-tests: use consistent test
27802         * tests/test-vasnprintf-posix.c (test_function):
27803         Use "<" in assert instead of "<=", for consistency with other tests.
27805 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27807         printf, isinf, etc.: noncanonical != NaN
27808         Do not require that isinf, printf, etc. treat noncanonical
27809         values as NaNs.  Instead, require only that they do not crash.
27810         Problem reported by Joseph Myers in:
27811         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
27812         * doc/posix-functions/dprintf.texi (dprintf):
27813         * doc/posix-functions/fprintf.texi (fprintf):
27814         * doc/posix-functions/isfinite.texi (isfinite):
27815         * doc/posix-functions/isinf.texi (isinf):
27816         * doc/posix-functions/isnan.texi (isnan):
27817         * doc/posix-functions/printf.texi (printf):
27818         * doc/posix-functions/snprintf.texi (snprintf):
27819         * doc/posix-functions/sprintf.texi (sprintf):
27820         * doc/posix-functions/vdprintf.texi (vdprintf):
27821         * doc/posix-functions/vfprintf.texi (vfprintf):
27822         * doc/posix-functions/vprintf.texi (vprintf):
27823         * doc/posix-functions/vsnprintf.texi (vsnprintf):
27824         * doc/posix-functions/vsprintf.texi (vsprintf):
27825         Document this.
27826         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
27827         * m4/isinf.m4 (gl_ISINFL_WORKS):
27828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
27829         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
27830         * tests/test-isfinite.c (test_isfinitel):
27831         * tests/test-isinf.c (test_isinfl):
27832         * tests/test-isnan.c (test_long_double):
27833         * tests/test-isnanl.h (main):
27834         * tests/test-snprintf-posix.h (test_function):
27835         * tests/test-sprintf-posix.h (test_function):
27836         * tests/test-vasnprintf-posix.c (test_function):
27837         * tests/test-vasprintf-posix.c (test_function):
27838         Test only that noncanonical values do not cause crashes, not that
27839         they are treated as NaNs.  In some cases this means a larger
27840         output buffer is needed.
27842 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
27844         fts: remove redundant close() (trivial)
27845         * lib/fts.c (fts_read): Remove redundant call to close().
27846         Spotted by coverity.
27848 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27850         getdtablesize: port better for Android
27851         Problem reported by Kevin Cernekee in:
27852         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
27853         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
27854         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
27855         Instead, just use getrlimit, taking care to avoid Cygwin bug.
27857         poll: fixes for large fds
27858         * lib/poll.c (poll): Don't check directly for NFD too large.
27859         Don't rely on undefined behavior in FD_SET when an arg exceeds
27860         FD_SETSIZE.  Always set revents afterwards, even if to zero.
27861         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
27862         as that makes the test a bit stricter.
27864 2015-02-19  Kevin Cernekee  <cernekee@google.com>
27866         fcntl: Fix cross compiling
27867         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
27868         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
27870 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
27872         dup2, fcntl: cross-compile better for Android
27873         Problem reported by Kevin Cernekee in:
27874         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
27875         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
27876         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
27877         there's little need to cross-compile for older kernels nowadays.
27878         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
27879         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
27881 2015-02-18  Pádraig Brady  <P@draigBrady.com>
27883         getopt: don't crash on memory exhaustion
27884         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
27885         memory exhaustion.  In the _LIBC case we use alloca() as is
27886         already done in glibc, so we don't need to consider the separate
27887         error path in that awkward case.  Also fix a memory leak when
27888         ambiguous options are present.
27889         Reported by Tobias Stoeckmann
27891 2015-02-17  Mike Miller  <mtmiller@ieee.org>
27893         tempname: allow compilation with C++ (trivial)
27894         * lib/tempname.h [C++]: Specify extern "C" linkage.
27895         * lib/tempname.h (try_tempname):
27896         * lib/tempname.c (__try_tempname, __gen_tempname):
27897         Rename 'try' to 'tryfunc'.
27899 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
27901         dup2, fcntl: port to AIX
27902         * m4/dup2.m4 (gl_FUNC_DUP2):
27903         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27904         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
27905         The former works on AIX 7.1 but the latter does not.
27906         Also, this may work better with Android; see:
27907         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
27909 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
27911         getdtablesize, dup2, fcntl: port to Android
27912         Problem reported by Kevin Cernekee in:
27913         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
27914         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
27915         Mention that getdtablesize doesn't work on Android.
27916         * lib/getdtablesize.c: Use getrlimit substitute only if
27917         getdtablesize is declared.  This should suffice for Cygwin
27918         while not breaking Android.
27919         * m4/dup2.m4 (gl_FUNC_DUP2):
27920         * m4/fcntl.m4 (gl_FUNC_FCNTL):
27921         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
27922         standardized but the latter is not, and sysconf works on Android.
27923         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
27924         Also check that getdtablesize is declared.
27925         This removes the need for a special case for Android.
27927 2015-02-16  Kevin Cernekee  <cernekee@google.com>
27929         localename: Implement gl_locale_name_thread_unsafe for Android
27930         * lib/localename.c: Android API level >= 21 supports two hardcoded
27931         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
27932         the internal __locale_t struct.
27934 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
27936         fts: avoid crash when a cycle is added while traversing
27937         This could be triggered by auto-mounting a recursive bind mount.
27938         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
27939         * lib/fts.c (fts_read): Avoid removing the original hash table item
27940         when leaving a directory that caused a cycle, and preserve the FTS_DC
27941         flag.
27943 2015-02-16  Daiki Ueno  <ueno@gnu.org>
27945         uniname/uniname: support character alias
27946         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
27947         Generate one-way mapping from aliases to codepoints in the
27948         generated tables.  Special case variation selectors to reduce
27949         table size.
27950         * lib/uniname/uniname.c (unicode_character_name): Special case
27951         variation selectors.
27952         (unicode_name_character): Special case variation selectors and
27953         their aliases.
27954         * lib/uniname/uninames.h: Regenerate.
27955         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
27956         * modules/uniname/uniname-tests (Files): Add
27957         tests/uniname/NameAliases.txt.
27958         * tests/uniname/test-uninames.c: Mark as static.
27959         (ALIASLEN): Define.
27960         (struct unicode_alias): New struct.
27961         (unicode_aliases): New variable.
27962         (fill_aliases): New function.
27963         (test_alias_lookup): New test function.
27964         (main): Run the 'test_alias_lookup' test if the second argument is
27965         given.
27966         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
27967         second argument.
27969 2015-02-11  Kevin Cernekee  <cernekee@google.com>
27971         Fix FILE struct compatibility with Android API level >= 21
27972         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
27973         __sferror.  Recent versions of Bionic's stdio.h no longer define
27974         __sferror.
27975         * lib/fbufmode.c: Likewise.
27976         * lib/fflush.c: Likewise.
27977         * lib/fpurge.c: Likewise.
27978         * lib/freadable.c: Likewise.
27979         * lib/freadahead.c: Likewise.
27980         * lib/freading.c: Likewise.
27981         * lib/freadptr.c: Likewise.
27982         * lib/freadseek.c: Likewise.
27983         * lib/fseeko.c: Likewise.
27984         * lib/fseterr.c: Likewise.
27985         * lib/fwritable.c: Likewise.
27987         Assume unbroken ungetc() on Android
27988         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
27989         test case passed when running on an Android host, and the code
27990         hasn't really changed since 2009.
27992         getdtablesize: Fix Android build
27993         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
27994         versions have this symbol in the .so library (at least 32-bit
27995         platforms) but are missing the declaration in the header file,
27996         causing the m4 logic to guess incorrectly.
27998         localename: Fix Android build
27999         * modules/localename (Depends-on): Add langinfo.
28001         getugroups: Fix Android build
28002         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
28003         functions.
28005         euidaccess: Fix Android build
28006         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
28007         AT_EACCESS gets declared.
28009         linkat_nofollow: Add fallback case for cross compiling
28010         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
28012         net_if: Handle content-free <net/if.h> system headers
28013         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
28014         struct if_nameindex.  If not, enable the replacement header.
28016         signal_h: Fix Android build
28017         * lib/signal.in.h: Add Android to the list of platforms that declare
28018         pthread_sigmask() in <pthread.h> instead of <signal.h>.
28020         duplocale: Fix Android build of duplocale-tests
28021         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
28022         is included by test-duplocale.c (but not by duplocale.c).
28023         * modules/duplocale-tests (configure.ac): Check for monetary.h.
28024         * tests/test-duplocale.c: Skip test if monetary.h is absent.
28025         * doc/posix-headers/monetary.texi: Add Android to the list of
28026         platforms missing monetary.h.
28028 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28030         tests: avoid recent -Werror=unused-variable regression in test-locale
28031         * tests/test-locale.c (main): Reference the variable to avoid the
28032         "unused variable" warning.
28034 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28036         maint: various whitespace cleanups in tempname
28037         * lib/tempname.c: Normalize spacing and line length.
28038         * lib/tempname.h: Likewise.
28039         * modules/tempname: Likewise.
28041 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28043         tests: provide returns_() to simplify exit status checking
28044         * tests/init.sh (returns_): A new function for use in tests,
28045         to allow for easier checking of return values, where you expect
28046         a command to exit with failure status.  By checking for a particular
28047         exit code, you don't hide any crashes for example.
28049 2015-02-11  Pádraig Brady  <P@draigBrady.com>
28051         mountlist: only use libmount when specified
28052         There are currently many shared libs dependencies introduced by
28053         libmount with associated runtime and virt mem overhead.
28054         Therefore don't enable by default.
28055         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
28057 2015-02-08  Daiki Ueno  <ueno@gnu.org>
28059         uniname/unimame-tests: don't link with -lunistring
28060         * modules/uniname/uniname-tests (Makefile.am): Don't link against
28061         $(LIBUNISTRING).  Document the rationale why we need to
28062         conditionalize the test.
28064 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28066         fstrcmp: don't assume strlen < INT_MAX
28067         * lib/fstrcmp.c: Include stddef.h and stdint.h.
28068         (uintptr_t): Remove, as we're now assuming stdint.
28069         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
28070         Prefer ptrdiff_t to int when the value could exceed INT_MAX
28071         if the input string is long.
28072         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
28073         uintptr_t to size_t when the underlying value is a pointer casted
28074         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
28075         * modules/fstrcmp (Depends-on): Add stdint.
28077         diffseq: prefer ptrdiff_t to ssize_t
28078         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
28079         ptrdiff_t is the natural type for signed indexes.
28080         On a few older platforms, ssize_t is narrower than size_t.
28082         xalloc: fix typo that suppressed warnings
28083         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
28084         This typo, introduced a couple of years ago, mistakenly suppressed
28085         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
28086         -Wmissing-declarations warnings.
28088         full-read: fix license notice typo
28089         * lib/full-read.h: Remove a stray line in the license notice.
28090         Reported by Sam Ellis in: http://bugs.gnu.org/19808
28092         crypto/gc: fix a -Wswitch warning
28093         Reported by Bruce Korb in:
28094         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
28095         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
28097 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28099         gnulib-tool: fix handling of patch(1) diagnostics
28100         * gnulib-tool: Send diagnostics from patch(1) to stderr,
28101         as otherwise gnulib-tool will reparse that output and attempt
28102         to lookup modules.
28104 2015-02-03  Pádraig Brady  <P@draigBrady.com>
28106         bootstrap: exit immediately upon gnulib-tool failure
28107         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
28108         This was noticed when gnulib-tool exited early due to failure
28109         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
28110         but various confusing errors were then given as the build proceeded.
28112 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
28114         symlinkat: include all required header files
28115         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
28116         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
28117         Reported at https://savannah.gnu.org/bugs/index.php?44151
28118         and by Jack Howarth.
28120 2015-01-29  Pádraig Brady  <P@draigBrady.com>
28122         localename: support Solaris 12 and illumos
28123         * lib/localename.c (gl_locale_name_thread_unsafe): call
28124         getlocalename_l() on newer __sun platforms.
28125         Reported by Alexander Pyhalov.
28126         Fix suggested by Rich Burridge.
28128 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
28130         locale: fix tests on illumos (trivial)
28131         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
28132         so move from global scope to main().
28134 2015-01-24  Daiki Ueno  <ueno@gnu.org>
28136         unictype: avoid undefined left-shift behavior
28137         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
28138         gcc's -fsanitize=shift and running its tests triggered:
28139           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
28140             places cannot be represented in type 'int'
28141         Cast LHS to 'unsigned int' after integer promotion.
28142         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
28143         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
28145 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28147         libunistring: bump version of unitypes dependants
28148         Due to the header file search order, all the headers which depend
28149         on unitypes.h need to be generated, when the preinstalled
28150         libunistring is older.
28151         * modules/unicase/base (configure.ac): Bump minimum version to
28152         0.9.4.
28153         * modules/uniconv/base (configure.ac): Likewise.
28154         * modules/unilbrk/base (configure.ac): Likewise.
28155         * modules/uninorm/base (configure.ac): Likewise.
28156         * modules/unistdio/base (configure.ac): Likewise.
28157         * modules/unistr/base (configure.ac): Likewise.
28158         * modules/uniwbrk/base (configure.ac): Likewise.
28159         * modules/uniwidth/base (configure.ac): Likewise.
28161 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28163         unictype/category-none: fix link with libunistring
28164         Since _UC_CATEGORY_NONE is not a public symbol, it will be
28165         prefixed with "libstring_" when compiled as part of libunistring.
28166         To avoid undefined symbol at link time, increase the minimum
28167         version when the dependant modules are updated.
28168         * modules/unictype/category-none (configure.ac): Bump minimum
28169         version to 0.9.5.
28171 2015-01-20  Daiki Ueno  <ueno@gnu.org>
28173         unitypes: fix build with installed libunistring
28174         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
28175         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
28176         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
28178 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
28180         time: port to MinGW32 3.21
28181         Problem reported by Eli Zaretskii in:
28182         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
28183         * lib/time.in.h:
28184         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
28185         * modules/time (Depends-on):
28186         Fall back on unistd.h if the other include files don't define
28187         struct timespec.
28189         update-copyright: apply to self
28190         * build-aux/update-copyright: Fix copyright date.  How ironic!
28192 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28194         libunistring: update to Unicode 7.0.0
28195         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
28196         Manichaean names.
28197         * lib/unictype/joininggroup_name.h: Likewise.
28198         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
28199         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
28200         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
28201         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
28202         (fill_arabicshaping, joining_group_as_c_identifier): Support those
28203         enum values.
28204         (is_property_alphabetic): Accept newly added characters to
28205         cuneiform numeric signs.
28206         (is_property_default_ignorable_code_point): Reject U+0605.
28207         (FIELDLEN): Increase from 120 to 160.
28208         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
28209         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
28210         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
28211         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
28212         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
28213         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
28214         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
28215         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
28216         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
28217         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
28218         U+1E8D0..U+1E8D6.
28219         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
28220         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28221         lib/uniwidth/width.c.
28222         * all generated files under lib/uni* and tests/uni*: Regenerate.
28224 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28226         libunistring: update to Unicode 6.3.0
28227         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28228         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
28229         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
28230         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
28231         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
28232         Update WB5, WB9, WB10, WB13a, and WB13b.
28233         * tests/uniwbrk/test-uc-wordbreaks.c
28234         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
28235         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28236         (UC_BIDI_PDI): New enumeration values.
28237         (bidi_category_byname): Support those enum values.
28238         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
28239         dedicated property assigned.
28240         (is_property_case_ignorable): Check 0x0027.
28241         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
28242         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28243         (output_wbp): Support those enum values.
28244         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
28245         (UC_BIDI_PDI): New enumeration values.
28246         * lib/unictype/bidi_byname.gperf: Add those property names.
28247         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
28248         U+180E, U+1A1B, and U+2066..U+2069.
28249         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28250         lib/uniwidth/width.c.
28251         * all generated files under lib/uni* and tests/uni*: Regenerate.
28253 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28255         libunistring: update to Unicode 6.2.0
28256         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
28257         (unilbrk_table): Adjust table size.
28258         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28259         for LBP_RI.
28260         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
28261         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
28262         Normalize table index skipping ignored properties.
28263         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
28264         WBP_EXTEND and WBP_FORMAT, which are now computed without using
28265         the table.
28266         * lib/uniwbrk/wbrktable.h: Adjust table size.
28267         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
28268         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
28269         Support rule GB8a.
28270         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
28271         * tests/unigbrk/test-uc-is-grapheme-break.c
28272         (graphemebreakproperty_to_string): Support GBP_RI.
28273         * tests/uniwbrk/test-uc-wordbreaks.c
28274         (wordbreakproperty_to_string): Support WBP_RI.
28275         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
28276         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
28277         (output_lbp): Support LBP_RI.  Adjust some characters changed from
28278         LBP_AL to LBP_ID.
28279         (output_lbp): Support LBP_RI.
28280         (WBP_RI): New enumeration value.
28281         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
28282         (output_wbp): Support WBP_RI.
28283         (GBP_RI): New enumeration value.
28284         (output_gbp_test, fill_org_gbp): Support GBP_RI.
28285         * all generated files under lib/uni* and tests/uni*: Regenerate.
28287 2015-01-14  Daiki Ueno  <ueno@gnu.org>
28289         libunistring: update to Unicode 6.1.0
28290         * lib/gen-uni-tables.c (output_joining_group): Switch to
28291         3-level table to accommodate joining groups defined with higher
28292         codepoint value.  Since there are only 88 groups defined in
28293         Unicode 7.0.0, use 7-bit packed format for level3 entries.
28294         (get_lbp): Update for Unicode 6.1.0.
28295         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
28296         3-level table.
28297         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
28298         joining group name.
28299         * lib/unictype/joininggroup_name.h: Likewise.
28300         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
28301         (unilbrk_table): Adjust table size.
28302         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
28303         for LBP_HL.
28304         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
28305         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
28306         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
28307         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
28308         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
28309         U+302E..U+302F.
28310         * tests/uniwidth/test-uc_width2.sh: Same updates as in
28311         lib/uniwidth/width.c.
28312         * all generated files under lib/uni* and tests/uni*: Regenerate.
28313         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
28315 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28317         uniwbrk/u32-wordbreaks-tests: add conformance test
28318         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
28319         tests/uniwbrk/test-uc-wordbreaks.c,
28320         tests/uniwbrk/test-uc-wordbreaks.sh, and
28321         tests/uniwbrk/WordBreakTest.txt.
28322         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
28323         test-uc-wordbreaks to $(check_PROGRAMS), and define
28324         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
28325         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
28326         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
28328 2015-01-15  Daiki Ueno  <ueno@gnu.org>
28330         uniwbrk: ignore Extended/Format characters at BOL not BOS
28331         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
28332         characters if the previous character property is one of
28333         WBP_NEWLINE, WBP_CR, and WBP_LF.
28335 2015-01-11  Jim Meyering  <meyering@fb.com>
28337         test-strstr.c: avoid a trivial leak
28338         * tests/test-strstr.c (main): Free haystack.
28340         update-copyright: recognize groff's \(co marker
28341         * build-aux/update-copyright (circle_c_re): Also accept
28342         uses of \(co, as found in gzip.1.
28344 2015-01-08  Pádraig Brady  <P@draigBrady.com>
28346         maint.mk: fix compatibility with OS X nm
28347         * top/maint.mk (_gl_tight_scope): Use the -g option to
28348         show exported items rather than the -e option which is
28349         ignored on all platforms except OS X where it gives an error.
28350         Reported by Assaf Gordon.
28352 2015-01-07  KO Myung-Hun  <komh@chollian.net>
28354         localcharset: improve charset detection on OS/2
28355         Use system codepage when appropriate.  Map OS/2 codepages to
28356         GNU canonical charset names if possible.
28357         * lib/config.charset: Don't output aliases if "$os" is os2*.
28358         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
28359         result for OS/2.
28360         (locale_charset) [OS2]: Use system codepage if codeset is omitted
28361         from the locale name which is neither "C" nor "POSIX".
28363 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28365         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
28366         This reverts the last patch but one, as it shouldn't be needed now
28367         that the typo is fixed.
28368         * lib/count-leading-zeros.h (count_leading_zeros_ll):
28369         * lib/count-trailing-zeros.h:
28370         * lib/count-one-bits.h:
28371         Go back to using 64-bit intrinsics.
28373         count-leading-zeros: fix pragma typos
28374         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
28375         Fix typos in declaration of intrinsics when _MSC_VER.
28377 2015-01-06  Pádraig Brady  <P@draigBrady.com>
28379         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
28380         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
28381         intrinsics in this case.
28382         * lib/count-trailing-zeros.h: Likewise.
28383         * lib/count-one-bits.h: Likewise.
28385 2015-01-06  Daiki Ueno  <ueno@gnu.org>
28387         uniname/uniname: update to Unicode 7.0.0
28388         To accommodate new characters added since Unicode 5.1.0, this
28389         changes the internal representation of codepoint ranges.
28390         Previously, we grouped codepoint ranges by manually assigned 4-bit
28391         tag, which only allowed 16 groups.  This removes the limitation by
28392         switching to binary search on a table.  For the detail rationale
28393         and the benchmark results, see:
28394         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
28395         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
28396         to INDEX, as it no longer represents a codepoint.
28397         (range): New struct.
28398         (main): Switch to intervals list from a bit-pattern based
28399         classification.
28400         * lib/uniname/uninames.h: Regenerate.
28401         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
28402         * modules/uniname/base (configure.ac): Bump minimum version to
28403         0.9.5.
28404         * modules/uniname/uniname (configure.ac): Bump minimum version to
28405         0.9.5.
28407 2015-01-05  Eric Blake  <eblake@redhat.com>
28409         doc: update INSTALL from autoconf
28410         * doc/install.texi: Resync from autoconf.
28411         * doc/INSTALL: Reflect recent autoconf update.
28412         * doc/INSTALL.ISO: Likewise.
28413         * doc/INSTALL.UTF-8: Likewise.
28415         stdio: fix use of PRIdMAX on modern mingw
28416         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
28417         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
28418         to work with modern mingw.
28420 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
28422         pthread: detect git mingw builds with only partial pollution
28423         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
28424         pollution, as seen temporarily in Fedora 21.
28426 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28428         lib-symbol-versions: cache script check
28429         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
28430         Cache the check for linker version scripts.
28431         From a suggestion by Christophe Curis in:
28432         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
28434 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
28436         maint: fix grammar nits in propername (trivial change)
28437         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
28438         and use an adequate verb and tense.
28440 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
28442         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
28443         * module/gendocs: Add 'doc/gendocs_template_min'.
28445         * build-aux/gendocs.sh: Change email addresses and upstream URLs
28446         from to Gnulib's.
28447         (scripturl, templateurl): Adjust accordingly.
28449 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28451         gendocs: copyright date and version fix
28452         Reported by Karl Berry in:
28453         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
28454         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
28455         Fix copyright date.
28456         * build-aux/gendocs.sh (scriptversion): Update.
28458 2015-01-01  Karl Berry  <karl@gnu.org>
28460         * doc/install.texi,
28461         * build-aux/mdate-sh,
28462         * build-aux/depcomp,
28463         * build-aux/config.guess,
28464         * build-aux/config.sub,
28465         * build-aux/ar-lib,
28466         * build-aux/compile: revert copyright updates (some from last
28467         year) in slaved files.
28469 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28471         version-etc: new year
28472         * doc/gnulib.texi:
28473         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
28474         * all files: Run 'make update-copyright'.
28476 2014-12-30  Pádraig Brady  <P@draigBrady.com>
28478         xstrtol: ensure errno is reset
28479         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
28480         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
28482         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
28484 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28486         utimens: fix dependency typo
28487         * modules/utimens (Depends-on): Remove 'assure'.
28488         This bug was introduced in the recent 'assure' patch.
28490 2014-12-22  Eric Blake  <eblake@redhat.com>
28492         docs: mention why libgen.h is bad
28493         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
28495 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28497         assure: new module
28498         This works better than 'assert' when compiling with -DNDEBUG,
28499         as it avoids some compiler diagnostics in that case.
28500         Reported by Norihiro Tanaka in:
28501         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
28502         * MODULES.html.sh (func_all_modules): Add 'assure'.
28503         * lib/assure.h, modules/assure: New files.
28504         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
28505         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
28506         Prefer 'assure' to 'assert'.
28507         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
28508         * modules/chdir-long, modules/cycle-check, modules/fchdir:
28509         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
28510         Depend on 'assure'.
28512 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
28514         stdalign: port better to HP compilers
28515         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
28516         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
28518         stdalign: work around Apple GCC 4.0 bug
28519         Reported by David Fang in:
28520         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
28521         * lib/stdalign.in.h (_Alignas):
28522         * m4/stdalign.m4 (gl_STDALIGN_H):
28523         Do not use aligned attribute with GCC 4.0 on Apple.
28525 2014-12-16  Pádraig Brady  <P@draigBrady.com>
28527         getcwd: fix test failure on OS X 10.9
28528         * m4/getcwd-path-max.m4: Avoid the replacement if it
28529         won't be effective due to the PATH_MAX limitation of lstat().
28530         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
28531         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
28532         for this case for use in tests, and also exclude this
28533         case when setting REPLACE_GETCWD.
28534         * tests/test-getcwd.c (test_long_name): Restrict the
28535         tested path length so that lstat() will not be passed
28536         a path greater than PATH_MAX.
28537         Also key a test condition on HAVE_OPENAT_SUPPORT rather
28538         than AT_FDCWD, since the latter is set unconditionally
28539         since Sep 2009 in commit 52c658e9.
28541 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
28543         parse-datetime: avoid a compiler warning with byacc (trivial)
28544         * lib/parse-datetime.y (yylex): Use the same prototype in the
28545         function definition as the declaration, to avoid a -Wstrict-prototypes
28546         warning seen when using byacc.
28548 2014-12-12  Daiki Ueno  <ueno@gnu.org>
28550         unicase/locale-language-tests: fix LOCALE_FR test
28551         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
28552         a French locale with traditional encoding.
28553         Reported by umerqayam in:
28554         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
28556 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28558         stddef: support C11's max_align_t
28559         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
28560         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
28561         Do not undef, as that might cause max_align_t to be defined twice.
28562         Instead, change use to check for _GL_STDDEF_WINT_T too.
28563         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
28564         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
28565         Check for max_align_t.
28566         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
28567         * modules/stddef-tests (Depends-on): Add stdalign.
28568         * tests/test-stddef.c: Test max_align_t.
28570 2014-12-11  Daiki Ueno  <ueno@gnu.org>
28572         unistd: fix iOS check conditional
28573         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
28574         as 0 or 1 in <TargetConditionals.h>, and the previous check always
28575         yielded true on non-iOS environment.
28576         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
28577         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
28578         they are defined.
28580 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
28582         posixtm: avoid compiler warning in a better way
28583         * lib/posixtm.c (IF_LINT): Remove.
28584         (year, posix_time_parse):
28585         Return true (not 0) if successful.  All callers changed.
28586         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
28588 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28590         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
28591         started with '/' on EMX.
28593 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
28595         freopen: workaround freopen() on OS/2 kLIBC
28596         * lib/freopen.c (rpl_freopen): Workaround.
28597         * m4/freopen.m4: Add os2* case.
28599         get_shared_library_fullname: port to EMX
28600         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
28601         on EMX, respectively.
28602         (_DLL_InitTerm): New on EMX.
28603         (get_shared_library_fullname): Implement on EMX.
28605         find_executable: port to EMX
28606         * lib/progreloc.c (find_executable): Implement on EMX.
28608         sched: check struct sched_param in spawn.h as well
28609         * lib/sched.in.h: Include spawn.h on kLIBC.
28610         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
28612 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
28614         bootstrap: Allow perl modules in $buildreq
28615         * build-aux/bootstrap: Add case for perl modules.
28617 2014-12-08  Pádraig Brady  <P@draigBrady.com>
28619         apply _GL_ATTRIBUTE_PURE to some inline functions
28620         clang 3.4.2 flagged these inline functions as pure
28621         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
28622         * lib/sig-handler.h (get_handler): Likewise.
28623         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
28624         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
28626 2014-12-06  Pádraig Brady  <P@draigBrady.com>
28628         vasnprintf: fix potential use after free
28629         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
28630         flagged by clang-analyzer 3.4.2.
28632 2014-12-05  Pádraig Brady  <P@draigBrady.com>
28634         filevercmp, posixtm: avoid compiler warnings with -O3
28635         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
28636         * lib/posixtm.c: (IF_LINT): Define.
28637         (posix_time_parse): Use it to void a "may be used uninitialized"
28638         warning, seen only with -O3.
28640 2014-12-05  Bruno Haible  <bruno@clisp.org>
28642         Fix LDBL80_WORDS macro on big endian platforms.
28643         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
28644         LDBL80_WORDS macro.
28645         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
28646         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28647         * tests/test-isfinite.c (test_isfinitel): Likewise.
28648         * tests/test-isinf.c (test_isinfl): Likewise.
28649         * tests/test-isnan.c (test_long_double): Likewise.
28650         * tests/test-isnanl.h (main): Likewise.
28651         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
28652         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
28653         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
28654         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
28655         Reported by Pádraig Brady.
28657 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
28659         git-version-gen: do not print new line characters
28660         * build-aux/git-version-gen: Use printf instead of echo and tr.
28662         gnulib-tool: recognize x:* as an absolute path
28663         * gnulib-tool (func_gnulib_dir): Add ?:* case.
28664         (func_relconcat): Likewise.
28666 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
28668         argp: avoid extraneous translation and mem leak with empty pre doc
28669         * lib/argp-help.c (argp_doc): Never translate the empty string,
28670         when "\v" is the first or last character of the string, as that
28671         has a reserved meaning to return the header info from a po file.
28672         This also fixes a small memory leak in the !post case.
28673         The issue can be seen with this command for example:
28674         LC_MESSAGES=en_US grub2-mknetdir --help
28676 2014-11-27  Daiki Ueno  <ueno@gnu.org>
28678         uniname/uniname-tests: skip if system's libunistring is used
28679         * modules/uniname/uniname-tests (Makefile.am): Skip test if
28680         uniname/uniname module is not compiled.
28682 2014-11-27  Pádraig Brady  <P@draigBrady.com>
28684         printf: fix configure check on big endian systems
28685         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
28687 2014-11-22  Daiki Ueno  <ueno@gnu.org>
28689         pipe-filter-gi, pipe-filter-ii: port to AIX
28690         On AIX 7.1, 'select' is defined as static and cannot be referred
28691         to from inline function.
28692         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
28693         the definition...
28694         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
28695         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
28697 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28699         gitlog-to-changelog: add --until
28700         * build-aux/gitlog-to-changelog: Support new --until option.
28701         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
28703 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
28705         extern-inline: update commentary about GCC bugs
28706         * m4/extern-inline.m4: Add another GCC bug number to comments.
28708 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28710         gen-uni-tables: untabify
28711         * lib/gen-uni-tables.c: Untabify.
28713 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28715         gen-uni-tables: check out-of-range values added to 3-level tables
28716         * lib/gen-uni-tables.c (output_category, output_bidi_category)
28717         (output_joining_type, output_ident_category): Check out-of-range
28718         values added to 3-level tables.
28720 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28722         gen-uni-tables: utilize 'assert'
28723         * lib/gen-uni-tables.c: Include <assert.h>.
28724         (output_category, output_combclass, output_decimal_digit_test)
28725         (output_decimal_digit, output_digit_test, output_digit)
28726         (output_numeric, get_mirror_value, fill_properties)
28727         (fill_property30, is_property_alphabetic)
28728         (is_property_default_ignorable_code_point)
28729         (is_property_uppercase, is_property_lowercase)
28730         (is_property_cased, is_property_case_ignorable)
28731         (is_property_changes_when_lowercased, is_property_iso_control)
28732         (is_property_math, fill_arabicshaping, output_joining_group)
28733         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
28734         (output_wbp, fill_org_gbp, get_decomposition)
28735         (output_decomposition, fill_composition_exclusions)
28736         (debug_output_composition_tables, output_composition_tables)
28737         (redistribute_casefolding_rules, output_casing_rules): Use
28738         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
28739         reporting.
28741 2014-11-13  Daiki Ueno  <ueno@gnu.org>
28743         gen-uni-tables: cosmetic improvements
28744         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
28745         variables specification.
28746         (is_outdigit): Remove unused function.
28748 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
28750         fcntl-h-tests: port to PA-RISC GNU/Linux
28751         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
28753 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28755         fts: port to C89
28756         Problem reported for MSVC 16 by Gisle Vanem in:
28757         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
28758         * lib/fts.c (fts_build): Avoid declaration before statement.
28760 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
28762         unistd: port to iOS
28763         Problem reported by André Klitzing in:
28764         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
28765         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
28767 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28769         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
28770         Problem reported by Alan Modra in:
28771         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
28772         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
28773         Always cast the function arg, reverting this part of the previous
28774         change.
28776 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28778         obstack: avoid potentially-nonportable function casts
28779         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
28780         Remove, replacing with ...
28781         (call_chunkfun, call_freefun): New static functions.
28782         All uses changed.  Avoid potentially-nonportable casts.
28783         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
28784         (_obstack_begin_worker): Omit last two args, since they
28785         rely on potentially-nonportable casts.  All callers changed.
28786         * lib/obstack.h (_OBSTACK_CAST): New macro.
28787         Use it everywhere the old API used a potentially-nonportable cast.
28788         The new API doesn't cast.
28789         (struct obstack): Use unions rather than requiring
28790         potentially-nonportable casts.
28791         (obstack_chunkfun, obstack_freefun): Return void.
28793 2014-11-03  Alan Modra  <amodra@gmail.com>
28795         obstack: fix macro return values
28796         * lib/obstack.h (obstack_next_free): Return void *.
28797         (obstack_1grow_fast, obstack_blank_fast): Return void.
28798         For __GNUC__ macros:
28799         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
28800         For !__GNUC__ macros:
28801         (obstack_make_room, obstack_grow, obstack_grow0)
28802         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
28804 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28806         obstack: do not assume system-supplied obstack is size_t safe
28807         * m4/obstack.m4: New file.
28808         * modules/obstack (Files): Add it.
28810         obstack: port to platforms that #define __alignof__
28811         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
28812         not if !_LIBC.  We don't know of any platforms that #define
28813         __alignof__, but it might be useful in tests.  Conversely,
28814         glibc assumes GCC.
28816 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28818         linkat: don't unconditionally replace on GNU/Linux
28819         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
28820         was redundant for a few reasons.  It was present to support compiling
28821         on new systems but running on the old narrow window of Linux 2.6.1[67].
28822         It setup and cleaned up test files which weren't actually used.
28823         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
28824         implicit in the following check.
28826 2014-11-03  Pádraig Brady  <P@draigBrady.com>
28828         linkat: wrap to handle symlinks on OS X 10.10
28829         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
28830         but not usable because it doesn't support creating hardlinks
28831         to symlinks.  Therefore add a generic test for this capability
28832         and fallback to our emulation if linkat() fails with ENOTSUP.
28834 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28836         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
28837         * doc/posix-functions/open.texi (open):
28838         * doc/posix-functions/openat.texi (openat):
28839         Document that these functions do not set errno to ELOOP when
28840         a symlink is opened with O_NOFOLLOW.
28842 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
28844         obstack: add NEWS entry for recent incompatible changes
28845         * NEWS: Describe recent changes.
28847 2014-10-30  Pádraig Brady  <P@draigBrady.com>
28849         mountlist: don't use libmount to decide on dummy/remote
28850         * lib/mountlist.c (read_file_system_list): Don't use the libmount
28851         routines to determine whether a file system is dummy or remote,
28852         as they're not currently compatible.  For example the remoteness
28853         is determined on file system type (for which the list seems incomplete),
28854         rather than simply checking for a ':' in the device name.
28855         Also libmount currently determines that 'tmpfs' is a dummy file system
28856         even though it has associated storage.
28858 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
28860         obstack: prefer __alignof__ to alignof
28861         This is for portability to pre-4.7 GCC when compiling glibc.
28862         See Joseph S. Myers in:
28863         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
28864         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
28865         New macro, defined by including and using <alignof.h>.
28866         (MAX): New macro.
28867         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
28868         Do not use enums as they are not portable to some broken compilers.
28869         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
28871         obstack: prefer alignof to calculating alignments by hand
28872         * lib/obstack.c: Include <stdalign.h>.
28873         (struct fooalign): Remove.
28874         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
28875         * modules/obstack (Depends-on): Add stdalign.
28877 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
28879         obstack: use size_t alignments and check for overflow
28880         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
28881         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
28882         * lib/obstack.h (struct obstack.alignment_mask):
28883         Use _OBSTACK_SIZE_T, not int, for alignments.
28884         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
28885         overflows, e.g., when adding the alignment.
28887 2014-10-29  Alan Modra  <amodra@gmail.com>
28889         obstack: 64-bit obstack support, part 3
28890         This finally enables full 64-bit obstack support.  The glibc
28891         shared library specific code is removed from obstack.c too, and
28892         the error handling code conditionally compiled under control of
28893         another macro, _OBSTACK_NO_ERROR_HANDLER.
28894         * lib/obstack.h: Include string.h earlier.
28895         (_OBSTACK_INTERFACE_VERSION): Define.
28896         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
28897         * lib/obstack.c: Don't include shlib-compat.h.
28898         (OBSTACK_INTERFACE_VERSION): Delete.
28899         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
28900         glibc code is compatible with version 2.  Don't include stdio.h for
28901         __GNU_LIBRARY.
28902         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
28903         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
28904         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
28905         glibc shared library specific source.
28907         obstack: 64-bit obstack support, part 2
28908         This gets us 4G obstack support, without changing ABI
28909         compatibility, apart from possibly introducing some
28910         signed/unsigned comparison warnings in code that uses obstack.h.
28911         a) Replace "int" size parameters, return values, and macro local vars
28912            with _OBSTACK_SIZE_T, an "unsigned int" for now.
28913         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
28914         c) Make all obstack macros checking available room use obstack_room.
28915            "next_free + desired > chunk_limit" may wrap the lhs for chunks
28916            allocated near the top of memory.
28917         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
28918         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
28919         in place of "int" size parameters, return values and local vars.
28920         (_CHUNK_SIZE_T): Define.
28921         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
28922         union use an _OBSTACK_SIZE_T integer type.
28923         For __GNUC__ versions of the following macros...
28924         (obstack_room): Rename local var.
28925         (obstack_make_room): Use obstack_room.
28926         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28927         obstack_int_grow, obstack_blank): Likewise.
28928         (obstack_finish): Use unsigned comparison when comparing aligned
28929         next_free against chunk_limit.
28930         (obstack_free): Cast OBJ to remove possible const qualifier.
28931         For !__GNUC__ versions of the following macros...
28932         (obstack_make_room): Use obstack_room.
28933         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
28934         obstack_int_grow, obstack_blank): Likewise.
28935         (obstack_finish): Use unsigned comparision when comparing aligned
28936         next_free against chunk_limit.
28937         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
28938         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
28939         _OBSTACK_SIZE_T.
28940         (_obstack_begin, _obstack_begin_1): Likewise.
28941         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
28942         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
28944         obstack: 64-bit obstack support, part 1
28945         a) Correct calls to alloc function, to use a size_t arg.  "long" is
28946            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
28947            and "size_t" 64 bits.
28948         b) Consolidate _obstack_begin and _obstack_begin1 code.
28949         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
28950         use "size_t" rather than "long".
28951         (_obstack_begin, _obstack_begin1): Likewise.
28952         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
28953         obstack_chunkfun): Update alloc function casts.
28954         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
28955         (chunkfun_type, freefun_type): New typdefs.
28956         (_obstack_begin_worker): Split out from ..
28957         (_obstack_begin, _obstack_begin_1): ..here.
28959         obstack: tidy part 2
28960         a) Don't be concerned about "not polluting the namespace with stddef.h
28961            symbols" in obstack.h, since gnulib string.h includes stddef.h
28962            anyway, and it seems unlikely that anyone would care.
28963         b) Don't roll our own slow memcpy in _obstack_newchunk.
28964         c) Rename obstack_free to _obstack_free.  This makes the naming
28965            consistent with other obstack functions and obviates the need for
28966            __obstack_free.  Ancient obstack.c defined both obstack_free and
28967            _obstack_free.  We continue to do that for _LIBC via an alias.
28968         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
28969            is clever, but nowadays gcc warns on undefined macros.  You'll get
28970            an undefined macro warning if simulating an old gcc with -U__GNUC__
28971            -U__GNUC_MINOR__ -D__GNUC__=1.
28972         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
28973         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
28974         (__obstack_free): Delete, update refs.
28975         (_obstack_free): Rename from obstack_free.
28976         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
28977         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
28978         * lib/obstack.c: Don't include stddef.h.
28979         (COPYING_UNIT): Delete.
28980         (_obstack_begin): Formatting fix.
28981         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
28982         (_obstack_free): Rename from __obstack_free, update alias.  Move
28983         undef of obstack_free to where it is needed.
28985         obstack: tidy part 1
28986         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
28987            to me, and result in overlong lines after later patches.
28988         b) Move error handling code, to avoid a forward declaration and to
28989            simplify later patches in this series.
28990         * lib/obstack.h (struct obstack <temp>): Rename fields of union
28991         and update all uses.
28992         * lib/obstack.c: Include stdlib.h earlier.
28993         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
28994         in file.
28995         (print_and_abort): Remove now redundant forward declaration.
28997 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28999         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
29000         Without this change, in bleeding-edge fileutils Autoconf complains
29001         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
29002         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
29003         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
29004         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
29006 2014-10-24  Daiki Ueno  <ueno@gnu.org>
29008         iconv: avoid false detection of non-working iconv
29009         The INBUF arguments of iconv can be either 'const char **'
29010         or 'char **'.  If CC is g++, the difference causes a compile error
29011         and thus leads to a false detection of non-working iconv.
29012         Reported by Eli Zaretskii and Werner LEMBERG in:
29013         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
29014         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
29015         iconv.  Bump serial number.
29017 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29019         bootstrap: print more diagnostics for missing programs
29020         * build-aux/bootstrap: only suppress stderr when checking for
29021         alternative program names.  This supports programs issuing non
29022         standard error messages.
29024 2014-10-23  Pádraig Brady  <P@draigBrady.com>
29026         bootstrap: only update the gnulib submodule
29027         * build-aux/bootstrap: Restrict the "submodule update" command
29028         to the gnulib path.
29030 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29032         symlinkat: port to AIX 7.1
29033         * doc/posix-functions/symlinkat.texi (symlinkat):
29034         Mention AIX porting problem.
29035         * lib/symlinkat.c: Always include errno.h.
29036         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
29037         * lib/unistd.in.h (symlinkat): Add replacement machinery.
29038         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
29039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
29040         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
29041         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
29042         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
29044         readlinkat: port to AIX 7.1
29045         * doc/posix-functions/readlink.texi (readlink):
29046         * doc/posix-functions/readlinkat.texi (readlinkat):
29047         Mention AIX porting problem.
29048         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
29049         New function.
29050         * lib/unistd.in.h (readlinkat): Add replacement machinery.
29051         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
29052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
29053         * modules/readlinkat (configure.ac): Also compile replacement
29054         if REPLACE_READLINKAT.
29055         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
29057 2014-10-12  Karl Berry  <karl@gnu.org>
29059         * doc/posix-functions/dirname.texi: remove spurious {.
29061 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
29063         basename, dirname: Improve documentation.
29064         * doc/posix-functions/basename.texi: Mention dirname module and
29065         base_name() function.
29066         * doc/posix-functions/dirname.texi: Mention dir_name() and
29067         mdir_name() functions.
29068         Suggested by Werner LEMBERG <wl@gnu.org>.
29070 2014-09-24  Jim Meyering  <meyering@fb.com>
29072         exclude: declare exclude_patopts static
29073         * lib/exclude.c (exclude_patopts): Declare static,
29074         to avoid triggering a -Wmissing-prototypes warning.
29075         The alternative (declaring it in the .h file) would
29076         require publicizing the private "struct patopts".
29078 2014-09-21  Werner Lemberg  <wl@gnu.org>
29080         dirname: support compilation with C++
29081         * lib/dirname.h: Add necessary C linkage declarations.
29083 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
29085         qsort_r: include <config.h>
29086         Problem reported by Tom G. Christensen in:
29087         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
29088         * lib/qsort.c [!_LIBC]: Include <config.h> first.
29090 2014-09-16  Dylan Cali  <calid1984@gmail.com>
29092         avltree-list: avoid compiler warnings (trivial)
29093         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29094         -Werror=suggest-attribute=pure.
29095         * lib/gl_array_list.c: Likewise.
29096         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
29097         declaration to avoid -Werror=missing-prototypes.  This is not added
29098         to a header as only exported for tests.  Add (void) to the
29099         check_invariants() call to indicate we're discarding the result
29100         in this context which avoids -Werror=unused-value.  Note we don't
29101         use ignore_value here to avoid a dependency as we know we'll not
29102         be adding __attribute__((warn_unused_result)) to check_invariants().
29103         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
29105 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
29107         qsort_r: new module, for GNU-style qsort_r
29108         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
29110 2014-09-15  Werner LEMBERG  <wl@gnu.org>
29112         strerror_r-posix: support compilation with C++
29113         * lib/strerror_r.c: Add necessary C linkage declarations.
29115 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
29117         fcntl-h: fix compilation with Intel C++ compiler (trivial)
29118         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
29120 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
29122         mountlist: use /proc/self/mountinfo when available
29123         Use libmount to propagate device IDs provided by Linux in
29124         /proc/self/mountinfo.  This will give more accurate output when
29125         using df in chroot'ed environments as the device IDs are not
29126         determined by stat() which may be inaccurate within the chroot.
29127         * lib/mountlist.c (read_file_system_list): Use the libmount routines
29128         from util-linux to parse "/proc/self/mountinfo" or fall back to
29129         standard getmntent() processing.
29130         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
29131         getmntent() is used, as is the case on GNU/Linux.
29133 2014-09-07  Eric Wong  <normalperson@yhbt.net>
29135         users.txt: add cmogstored
29136         cmogstored has used gnulib since the beginning in 2012 to support
29137         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
29139 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29141         Trivial change.
29142         * gnulib-tool: Use same options as build-aux/bootstrap to download
29143         PO files.
29145 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
29147         Trivial change.
29148         * gnulib-tool: Fallback to wget when rsync of PO files fails.
29150 2014-09-04  Eric Blake  <eblake@redhat.com>
29152         maintainer-makefile: add syntax check for useless ';;'
29153         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
29155 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
29157         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
29158         Problem reported by Assaf Gordon in:
29159         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
29160         Apparently Ubuntu is doing some fancy link-time optimization
29161         that doesn't work with -lpthread but does work with -pthread.
29162         Work around the bug by preferring -pthread to -lpthread.
29163         * m4/pthread.m4 (gl_PTHREAD_CHECK):
29164         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
29165         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
29166         Treat -pthread like -lpthread.
29168 2014-09-04  Eric Blake  <eblake@redhat.com>
29170         error: drop spurious semicolon
29171         * lib/error.c (__error_at_line): Fix ';;'.
29173 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29175         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
29176         * m4/gnulib-common.m4 (AC_C_RESTRICT):
29177         Override AC_C_RESTRICT unconditionally.
29178         Update from autoconf, incorporating:
29179         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
29180         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
29182 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29184         manywarnings: add GCC 4.9 warnings
29185         Also, make it easier to maintain this in the future.
29186         * build-aux/gcc-warning.spec: Add -Wabi-tag,
29187         -Wconditionally-supported, -Wdelete-incomplete,
29188         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
29189         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
29190         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
29191         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
29192         only for older GCC versions that need them.  Handle
29193         -Wnormalized=nfc specially, so that the 'comm' command used
29194         for maintenance doesn't get confused.
29196 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
29198         vasnprintf: fix bugs in width computation
29199         * lib/vasnprintf.c (VASNPRINTF):
29200         Rework previous change, which introduced a bug,
29201         to avoid the warning in a different way.
29202         Avoid undefined behavior if the width arg is less than -INT_MAX.
29203         Avoid unnecessary use of HAS_WIDTH local.
29205 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
29207         vasnprintf: Avoid signed/unsigned comparison warning.
29208         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
29209         compare end addr of generated string w/ maximum end addr.
29211 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
29213         parse-datetime: Avoid pointer difference.
29214         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
29215         instead of calculating difference of pointers.  This removes an
29216         annoying warning, devoid of any use.
29218 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
29220         qsort_r: new module, for GNU-style qsort_r
29221         This works even on FreeBSD, which has an incompatible qsort_r API.
29222         * MODULES.html.sh: Add it.
29223         * doc/glibc-functions/qsort_r.texi: It's now supported.
29224         * lib/qsort.c: New file, taken from glibc with minor changes
29225         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
29226         removed.
29227         * lib/qsort_r.c: New file, compiled only on FreeBSD.
29228         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
29229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
29230         * modules/qsort_r, modules/qsort_r-tests: New files.
29231         * modules/stdlib (Makefile): Set up its defaults.
29232         * tests/test-qsort_r.c: New file.
29234 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29236         vla: new module
29237         GNU RCS can use this, mostly for documentation I expect.  See:
29238         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
29239         * MODULES.html.sh: Add vla.
29240         * lib/vla.h, modules/vla: New files.
29242 2014-08-07  Daiki Ueno  <ueno@gnu.org>
29244         localename: make gl_locale_name_thread really thread-safe on Windows
29245         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
29246         "glthread/lock.h".
29247         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
29248         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
29250 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
29252         getpass: don't assume struct termios
29253         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
29254         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
29255         * lib/getpass.c (getpass): Port to systems lacking struct termios.
29257         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
29258         Problem reported by Jonas 'Sortie' Termansen in:
29259         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
29260         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
29261         Implement via sysconf for platforms that lack getdtablesize.
29263         vararrays: modernize AC_C_VARARRAYS for C11
29264         This backports a change I recently made to Autoconf.
29265         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
29266         VLAs are not supported, as this is what C11 does.  The old macro
29267         HAVE_C_VARARRAYS is still defined if they are supported, but is
29268         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
29270 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
29272         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
29273         * build-aux/install-reloc (func_create_wrapper): Also wrap
29274         strerror-override, stat, stat.
29276 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29278         sys_select: fix FD_ZERO problem on Solaris 10
29279         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
29280         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
29281         to expand to an expression that invoked memset without necessarily
29282         including <string.h>.  The problem was that the first include
29283         defined _SYS_TIME_H, causing the second include to short-circuit.
29284         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
29285         Also, fix what appears to be a cut-and-paste typo, by replacing
29286         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
29287         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
29289         accept: document Solaris 10 type glitch
29290         * doc/posix-functions/accept.texi (accept): Mention that
29291         Solaris 10 'accept' takes void * last arg, not socklen_t *.
29293 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
29295         extern-inline: port to FreeBSD, DragonFly
29296         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
29297         is present if either __DragonFly__ or __FreeBSD__ is defined.
29298         FreeBSD problem reported by Andrey Borzenkov in:
29299         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
29300         Also, worry about __APPLE__ only if __MACH__ is also defined,
29301         as this is more consistent with the rest of gnulib.
29302         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
29303         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
29305 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29307         regex: Make #if/#ifdef usage consistent for DEBUG
29308         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
29309         of the inconsistent usage of #if and #ifdef as that works with
29310         both Glibc and Gnulib's style.
29312 2014-07-31  Eric Blake  <eblake@redhat.com>
29314         openat-die: use _Noreturn markup
29315         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
29316         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
29317         _Noreturn.
29319 2014-07-30  Eric Blake  <eblake@redhat.com>
29321         test-open: port to cygwin, which lacks Fortify
29322         * tests/test-open.h (ALWAYS_INLINE): New macro.
29323         (__always_inline): Don't abuse internal symbol on non-glibc.
29325 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
29327         localename: Enforce declarations before statements.
29328         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
29329         first statement.
29331 2014-07-18  Jim Meyering  <meyering@fb.com>
29333         test-userspec: don't look up numeric user names
29334         * tests/test-userspec.c: I found a system for which getpwnam("0")
29335         returned a pointer to a non-root user's entry, and that made the
29336         test fail.
29337         (T): Prefix each numeric input with "+", to inhibit lookup.
29339 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
29341         localcharset, localename: MS-Windows support for non-default locales
29342         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
29343         falling back on the default system codepage, try extracting
29344         the codepage from what 'setlocale' returns.  This allows to
29345         take into account changes of the codeset due to non-default
29346         locale set by a previous call to 'setlocale'.
29347         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
29348         Define if not already defined.
29349         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
29350         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
29351         current locale by calling 'setlocale', then converting the
29352         locale name into LCID by calling 'get_lcid'.  This allows to
29353         take into account changes in the current locale from the
29354         default one, in contrast to GetThreadLocale.
29356 2014-07-14  Daiki Ueno  <ueno@gnu.org>
29358         announce-gen: avoid failure when Digest::SHA is installed
29359         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
29360         Digest::SHA1->new in print_checksums fails.
29361         * build-aux/announce-gen (digest_classes): New associative array
29362         for available message digest implementations.
29363         (print_locations): Use it.
29365 2014-07-13  Pádraig Brady  <P@draigBrady.com>
29367         gettext: revert "update macros to version 0.19"
29368         This reverts commit 9b9370ca, as it currently requires that
29369         developers of any project that explicitly uses the gettext module
29370         or implicitly uses it through the utimens-tests or
29371         futimens-tests modules, use gettext >= 0.19.
29372         However there are some stability and availablity issues with
29373         that version at present.  We can reinstate this soon, when stability
29374         is addressed and packages are more readily available.
29376 2014-07-12  Jim Meyering  <meyering@fb.com>
29378         regex: don't deref NULL upon heap allocation failure
29379         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
29380         failure in one more place.
29381         To trigger the segfault, configure grep -with-included-regex,
29382         build it, and run these commands:
29383         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
29384         I discovered this while replying to a private report from
29385         Jens Schleusener about excessive memory consumption by grep
29386         when using a regular expression like the one above.
29388 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
29390         regex: fix memory leak in compiler
29391         Fix by Andreas Schwab in:
29392         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
29393         * lib/regcomp.c (parse_reg_exp): Deallocate partially
29394         constructed tree before returning error.
29396 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29398         announce-gen: avoid perl warnings
29399         * build-aux/announce-gen: add two minor checks to avoid
29400         "use of uninitialized value" warnings when command-line parameters are
29401         missing.
29403 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
29405         localename: avoid -Wsuggest-attribute={const,pure} warnings
29406         * lib/localename.c (string_has): Tag internal function as pure.
29407         * lib/localename.h (gl_locale_name_default): Tag extern declaration
29408         as const when appropriate.
29410 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
29412         nl_langinfo: Fix last change.
29413         * lib/nl_langinfo.c (includes): Drop redundant include.
29415 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
29417         error: Fix -Wundef warnings in glibc
29418         * lib/error.c [_LIBC]: Define default macros for
29419         glibc.
29420         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
29421         Check _LIBC before STRERROR_R_CHAR_P.
29423         error: Sync from glibc master
29424         * lib/error.c [_LIBC]: Remove INTUSE usage.
29425         (error_tail): Remove unused macro ALLOCA_LIMIT.
29426         Fix potential buffer overflow.  Fix potential NULL dereference
29427         in strcmp.
29429 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
29431         nl_langinfo: fix build under mingw
29432         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
29434 2014-07-09  Andrew D Warshall  <warshall@99main.com>
29436         mountlist: do not classify a bind-mounted dir entry as "dummy"
29437         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
29438         1-argument getmntent() (instead of assuming absence).
29440 2014-07-08  Eric Blake  <eblake@redhat.com>
29442         maint.mk: less syntax-check noise when SIGPIPE is ignored
29443         * top/maint.mk (_sc_header_without_use)
29444         (sc_require_config_h_first): Parse full list.
29446 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
29447             Paul Eggert  <eggert@cs.ucla.edu>
29449         nl_langinfo: CODESET on MS-Windows and more items from localeconv
29450         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
29451         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
29452         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
29453         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
29454         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
29455         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
29456         Include <stdio.h> if Microsoft Windows.
29457         Include <time.h> if !REPLACE_NL_LANGINFO.
29458         (ctype_codeset): New function, taken from rpl_nl_langinfo,
29459         and with improvements for Microsoft Windows.
29460         (rpl_nl_langinfo): Use it.
29461         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
29462         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
29463         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
29464         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
29465         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
29466         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
29467         corresponding values returned by 'localeconv'.  Compute the values
29468         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
29469         'strftime' with a suitable struct tm value.
29471 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
29473         Bruno Haible has stepped down as maintainer.
29474         See Karl Berry in:
29475         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
29476         Daiki Ueno has volunteered to maintain libunistring; see:
29477         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
29478         * modules/gen-uni-tables, modules/libunistring:
29479         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
29480         * modules/unicase/base, modules/unicase/cased:
29481         * modules/unicase/empty-prefix-context:
29482         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
29483         * modules/unicase/locale-language, modules/unicase/special-casing:
29484         * modules/unicase/tocasefold, modules/unicase/tolower:
29485         * modules/unicase/totitle, modules/unicase/toupper:
29486         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
29487         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
29488         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
29489         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
29490         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
29491         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
29492         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
29493         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
29494         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
29495         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
29496         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
29497         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
29498         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
29499         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
29500         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
29501         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
29502         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
29503         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
29504         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
29505         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
29506         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
29507         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
29508         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
29509         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
29510         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
29511         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
29512         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
29513         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
29514         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
29515         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
29516         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
29517         * modules/unicase/ulc-casexfrm, modules/unicodeio:
29518         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
29519         * modules/uniconv/u16-conv-to-enc:
29520         * modules/uniconv/u16-strconv-from-enc:
29521         * modules/uniconv/u16-strconv-from-locale:
29522         * modules/uniconv/u16-strconv-to-enc:
29523         * modules/uniconv/u16-strconv-to-locale:
29524         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
29525         * modules/uniconv/u32-strconv-from-enc:
29526         * modules/uniconv/u32-strconv-from-locale:
29527         * modules/uniconv/u32-strconv-to-enc:
29528         * modules/uniconv/u32-strconv-to-locale:
29529         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
29530         * modules/uniconv/u8-strconv-from-enc:
29531         * modules/uniconv/u8-strconv-from-locale:
29532         * modules/uniconv/u8-strconv-to-enc:
29533         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
29534         * modules/unictype/bidicategory-all:
29535         * modules/unictype/bidicategory-byname:
29536         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
29537         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
29538         * modules/unictype/bidiclass-byname:
29539         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
29540         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
29541         * modules/unictype/block-all, modules/unictype/block-list:
29542         * modules/unictype/block-of, modules/unictype/block-test:
29543         * modules/unictype/category-C, modules/unictype/category-Cc:
29544         * modules/unictype/category-Cf, modules/unictype/category-Cn:
29545         * modules/unictype/category-Co, modules/unictype/category-Cs:
29546         * modules/unictype/category-L, modules/unictype/category-LC:
29547         * modules/unictype/category-Ll, modules/unictype/category-Lm:
29548         * modules/unictype/category-Lo, modules/unictype/category-Lt:
29549         * modules/unictype/category-Lu, modules/unictype/category-M:
29550         * modules/unictype/category-Mc, modules/unictype/category-Me:
29551         * modules/unictype/category-Mn, modules/unictype/category-N:
29552         * modules/unictype/category-Nd, modules/unictype/category-Nl:
29553         * modules/unictype/category-No, modules/unictype/category-P:
29554         * modules/unictype/category-Pc, modules/unictype/category-Pd:
29555         * modules/unictype/category-Pe, modules/unictype/category-Pf:
29556         * modules/unictype/category-Pi, modules/unictype/category-Po:
29557         * modules/unictype/category-Ps, modules/unictype/category-S:
29558         * modules/unictype/category-Sc, modules/unictype/category-Sk:
29559         * modules/unictype/category-Sm, modules/unictype/category-So:
29560         * modules/unictype/category-Z, modules/unictype/category-Zl:
29561         * modules/unictype/category-Zp, modules/unictype/category-Zs:
29562         * modules/unictype/category-all, modules/unictype/category-and:
29563         * modules/unictype/category-and-not, modules/unictype/category-byname:
29564         * modules/unictype/category-longname, modules/unictype/category-name:
29565         * modules/unictype/category-none, modules/unictype/category-of:
29566         * modules/unictype/category-or, modules/unictype/category-test:
29567         * modules/unictype/category-test-withtable:
29568         * modules/unictype/combining-class:
29569         * modules/unictype/combining-class-all:
29570         * modules/unictype/combining-class-byname:
29571         * modules/unictype/combining-class-longname:
29572         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
29573         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
29574         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
29575         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
29576         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
29577         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
29578         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
29579         * modules/unictype/digit, modules/unictype/joininggroup-all:
29580         * modules/unictype/joininggroup-byname:
29581         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
29582         * modules/unictype/joiningtype-all:
29583         * modules/unictype/joiningtype-byname:
29584         * modules/unictype/joiningtype-longname:
29585         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
29586         * modules/unictype/mirror, modules/unictype/numeric:
29587         * modules/unictype/property-all, modules/unictype/property-alphabetic:
29588         * modules/unictype/property-ascii-hex-digit:
29589         * modules/unictype/property-bidi-arabic-digit:
29590         * modules/unictype/property-bidi-arabic-right-to-left:
29591         * modules/unictype/property-bidi-block-separator:
29592         * modules/unictype/property-bidi-boundary-neutral:
29593         * modules/unictype/property-bidi-common-separator:
29594         * modules/unictype/property-bidi-control:
29595         * modules/unictype/property-bidi-embedding-or-override:
29596         * modules/unictype/property-bidi-eur-num-separator:
29597         * modules/unictype/property-bidi-eur-num-terminator:
29598         * modules/unictype/property-bidi-european-digit:
29599         * modules/unictype/property-bidi-hebrew-right-to-left:
29600         * modules/unictype/property-bidi-left-to-right:
29601         * modules/unictype/property-bidi-non-spacing-mark:
29602         * modules/unictype/property-bidi-other-neutral:
29603         * modules/unictype/property-bidi-pdf:
29604         * modules/unictype/property-bidi-segment-separator:
29605         * modules/unictype/property-bidi-whitespace:
29606         * modules/unictype/property-byname:
29607         * modules/unictype/property-case-ignorable:
29608         * modules/unictype/property-cased:
29609         * modules/unictype/property-changes-when-casefolded:
29610         * modules/unictype/property-changes-when-casemapped:
29611         * modules/unictype/property-changes-when-lowercased:
29612         * modules/unictype/property-changes-when-titlecased:
29613         * modules/unictype/property-changes-when-uppercased:
29614         * modules/unictype/property-combining:
29615         * modules/unictype/property-composite:
29616         * modules/unictype/property-currency-symbol:
29617         * modules/unictype/property-dash:
29618         * modules/unictype/property-decimal-digit:
29619         * modules/unictype/property-default-ignorable-code-point:
29620         * modules/unictype/property-deprecated:
29621         * modules/unictype/property-diacritic:
29622         * modules/unictype/property-extender:
29623         * modules/unictype/property-format-control:
29624         * modules/unictype/property-grapheme-base:
29625         * modules/unictype/property-grapheme-extend:
29626         * modules/unictype/property-grapheme-link:
29627         * modules/unictype/property-hex-digit:
29628         * modules/unictype/property-hyphen:
29629         * modules/unictype/property-id-continue:
29630         * modules/unictype/property-id-start:
29631         * modules/unictype/property-ideographic:
29632         * modules/unictype/property-ids-binary-operator:
29633         * modules/unictype/property-ids-trinary-operator:
29634         * modules/unictype/property-ignorable-control:
29635         * modules/unictype/property-iso-control:
29636         * modules/unictype/property-join-control:
29637         * modules/unictype/property-left-of-pair:
29638         * modules/unictype/property-line-separator:
29639         * modules/unictype/property-logical-order-exception:
29640         * modules/unictype/property-lowercase, modules/unictype/property-math:
29641         * modules/unictype/property-non-break:
29642         * modules/unictype/property-not-a-character:
29643         * modules/unictype/property-numeric:
29644         * modules/unictype/property-other-alphabetic:
29645         * modules/unictype/property-other-default-ignorable-code-point:
29646         * modules/unictype/property-other-grapheme-extend:
29647         * modules/unictype/property-other-id-continue:
29648         * modules/unictype/property-other-id-start:
29649         * modules/unictype/property-other-lowercase:
29650         * modules/unictype/property-other-math:
29651         * modules/unictype/property-other-uppercase:
29652         * modules/unictype/property-paired-punctuation:
29653         * modules/unictype/property-paragraph-separator:
29654         * modules/unictype/property-pattern-syntax:
29655         * modules/unictype/property-pattern-white-space:
29656         * modules/unictype/property-private-use:
29657         * modules/unictype/property-punctuation:
29658         * modules/unictype/property-quotation-mark:
29659         * modules/unictype/property-radical:
29660         * modules/unictype/property-sentence-terminal:
29661         * modules/unictype/property-soft-dotted:
29662         * modules/unictype/property-space:
29663         * modules/unictype/property-terminal-punctuation:
29664         * modules/unictype/property-test, modules/unictype/property-titlecase:
29665         * modules/unictype/property-unassigned-code-value:
29666         * modules/unictype/property-unified-ideograph:
29667         * modules/unictype/property-uppercase:
29668         * modules/unictype/property-variation-selector:
29669         * modules/unictype/property-white-space:
29670         * modules/unictype/property-xid-continue:
29671         * modules/unictype/property-xid-start:
29672         * modules/unictype/property-zero-width, modules/unictype/scripts:
29673         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
29674         * modules/unictype/syntax-c-whitespace:
29675         * modules/unictype/syntax-java-ident:
29676         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
29677         * modules/unigbrk/u16-grapheme-breaks:
29678         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
29679         * modules/unigbrk/u32-grapheme-breaks:
29680         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
29681         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
29682         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
29683         * modules/unigbrk/uc-is-grapheme-break:
29684         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
29685         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
29686         * modules/unilbrk/u16-width-linebreaks:
29687         * modules/unilbrk/u32-possible-linebreaks:
29688         * modules/unilbrk/u32-width-linebreaks:
29689         * modules/unilbrk/u8-possible-linebreaks:
29690         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
29691         * modules/unilbrk/ulc-possible-linebreaks:
29692         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
29693         * modules/uniname/uniname, modules/uninorm/base:
29694         * modules/uninorm/canonical-decomposition:
29695         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
29696         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
29697         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
29698         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
29699         * modules/uninorm/nfkc, modules/uninorm/nfkd:
29700         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
29701         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
29702         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
29703         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
29704         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
29705         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
29706         * modules/unistdio/base, modules/unistdio/u-printf-args:
29707         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
29708         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
29709         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
29710         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
29711         * modules/unistdio/u16-u16-sprintf:
29712         * modules/unistdio/u16-u16-vasnprintf:
29713         * modules/unistdio/u16-u16-vasprintf:
29714         * modules/unistdio/u16-u16-vsnprintf:
29715         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
29716         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
29717         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
29718         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
29719         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
29720         * modules/unistdio/u32-u32-asnprintf:
29721         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
29722         * modules/unistdio/u32-u32-sprintf:
29723         * modules/unistdio/u32-u32-vasnprintf:
29724         * modules/unistdio/u32-u32-vasprintf:
29725         * modules/unistdio/u32-u32-vsnprintf:
29726         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
29727         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
29728         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
29729         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
29730         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
29731         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
29732         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
29733         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
29734         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
29735         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
29736         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
29737         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
29738         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
29739         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
29740         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
29741         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
29742         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
29743         * modules/unistr/u16-check, modules/unistr/u16-chr:
29744         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
29745         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
29746         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
29747         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
29748         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
29749         * modules/unistr/u16-move, modules/unistr/u16-next:
29750         * modules/unistr/u16-prev, modules/unistr/u16-set:
29751         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
29752         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
29753         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
29754         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
29755         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
29756         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
29757         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
29758         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
29759         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
29760         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
29761         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
29762         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
29763         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
29764         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
29765         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
29766         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
29767         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
29768         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
29769         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
29770         * modules/unistr/u32-next, modules/unistr/u32-prev:
29771         * modules/unistr/u32-set, modules/unistr/u32-startswith:
29772         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
29773         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
29774         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
29775         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
29776         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
29777         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
29778         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
29779         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
29780         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
29781         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
29782         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
29783         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
29784         * modules/unistr/u8-check, modules/unistr/u8-chr:
29785         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
29786         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
29787         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
29788         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
29789         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
29790         * modules/unistr/u8-next, modules/unistr/u8-prev:
29791         * modules/unistr/u8-set, modules/unistr/u8-startswith:
29792         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
29793         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
29794         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
29795         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
29796         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
29797         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
29798         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
29799         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
29800         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
29801         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
29802         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
29803         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
29804         * modules/uniwbrk/base, modules/uniwbrk/table:
29805         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
29806         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
29807         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
29808         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
29809         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
29810         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
29811         * modules/uniwidth/width, modules/utf16-ucs4:
29812         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
29813         * modules/utf8-ucs4-unsafe:
29814         Change maintainer from Bruno Haible to Daiki Ueno.
29815         This is my guess at the libunistring modules; please feel free
29816         to fix if I guessed incorrectly.
29817         * modules/accept4, modules/acl, modules/acos, modules/acosf:
29818         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
29819         * modules/areadlink, modules/array-list, modules/array-mergesort:
29820         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
29821         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
29822         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
29823         * modules/binary-io, modules/bison-i18n, modules/btowc:
29824         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
29825         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
29826         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
29827         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
29828         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
29829         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
29830         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
29831         * modules/closedir, modules/concat-filename, modules/copy-file:
29832         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
29833         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
29834         * modules/csharpcomp-script, modules/csharpexec:
29835         * modules/csharpexec-script, modules/ctype, modules/diffseq:
29836         * modules/dprintf, modules/dprintf-posix, modules/dup:
29837         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
29838         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
29839         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
29840         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
29841         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
29842         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
29843         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
29844         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
29845         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
29846         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
29847         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
29848         * modules/findprog, modules/findprog-lgpl, modules/floor:
29849         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
29850         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
29851         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
29852         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
29853         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
29854         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
29855         * modules/freadable, modules/freadahead, modules/freadptr:
29856         * modules/freadseek, modules/freopen, modules/frexp:
29857         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
29858         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
29859         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
29860         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
29861         * modules/ftello, modules/full-read, modules/full-write:
29862         * modules/fwritable, modules/fwriteerror, modules/gcd:
29863         * modules/get-rusage-as, modules/get-rusage-data:
29864         * modules/getdtablesize, modules/getrusage, modules/gettext:
29865         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
29866         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
29867         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
29868         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
29869         * modules/iconv, modules/iconv-h, modules/iconv_open:
29870         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
29871         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
29872         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
29873         * modules/integer_length_ll, modules/ioctl, modules/isatty:
29874         * modules/isblank, modules/isnand, modules/isnand-nolibm:
29875         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
29876         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
29877         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
29878         * modules/javaexec, modules/javaexec-script, modules/javaversion:
29879         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
29880         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
29881         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
29882         * modules/lib-symbol-visibility, modules/libsigsegv:
29883         * modules/linked-list, modules/linkedhash-list, modules/list:
29884         * modules/localcharset, modules/locale, modules/localeconv:
29885         * modules/localename, modules/lock, modules/log, modules/log-ieee:
29886         * modules/log10, modules/log10-ieee, modules/log10f:
29887         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
29888         * modules/log1p, modules/log1p-ieee, modules/log1pf:
29889         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
29890         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
29891         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
29892         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
29893         * modules/logf, modules/logf-ieee, modules/login_tty:
29894         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
29895         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
29896         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
29897         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
29898         * modules/mbscspn, modules/mbsinit, modules/mbslen:
29899         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
29900         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
29901         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
29902         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
29903         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
29904         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
29905         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
29906         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
29907         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
29908         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
29909         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
29910         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
29911         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
29912         * modules/posix_spawn, modules/posix_spawn-internal:
29913         * modules/posix_spawn_file_actions_addclose:
29914         * modules/posix_spawn_file_actions_adddup2:
29915         * modules/posix_spawn_file_actions_addopen:
29916         * modules/posix_spawn_file_actions_destroy:
29917         * modules/posix_spawn_file_actions_init:
29918         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
29919         * modules/posix_spawnattr_getpgroup:
29920         * modules/posix_spawnattr_getschedparam:
29921         * modules/posix_spawnattr_getschedpolicy:
29922         * modules/posix_spawnattr_getsigdefault:
29923         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
29924         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
29925         * modules/posix_spawnattr_setschedparam:
29926         * modules/posix_spawnattr_setschedpolicy:
29927         * modules/posix_spawnattr_setsigdefault:
29928         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
29929         * modules/pow, modules/powf, modules/printf-frexp:
29930         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
29931         * modules/progname, modules/propername, modules/pselect:
29932         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
29933         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
29934         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
29935         * modules/read, modules/readdir, modules/readlink:
29936         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
29937         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
29938         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
29939         * modules/relocatable-script, modules/remainder:
29940         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
29941         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
29942         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
29943         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
29944         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
29945         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
29946         * modules/setlocale, modules/sh-quote, modules/shutdown:
29947         * modules/signal, modules/signbit, modules/sigpipe:
29948         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
29949         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
29950         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
29951         * modules/snippet/link-warning, modules/snippet/unused-parameter:
29952         * modules/snprintf, modules/snprintf-posix, modules/spawn:
29953         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
29954         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
29955         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
29956         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
29957         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
29958         * modules/streq, modules/strerror_r-posix, modules/striconv:
29959         * modules/striconveh, modules/striconveha, modules/strncat:
29960         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
29961         * modules/sublist, modules/sys_resource, modules/sys_utsname:
29962         * modules/sys_wait, modules/system-posix, modules/system-quote:
29963         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
29964         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
29965         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
29966         * modules/truncf, modules/truncf-ieee, modules/truncl:
29967         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
29968         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
29969         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
29970         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
29971         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
29972         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
29973         * modules/wait-process, modules/waitpid, modules/wcpcpy:
29974         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
29975         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
29976         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
29977         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
29978         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
29979         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
29980         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
29981         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
29982         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
29983         * modules/write, modules/xconcat-filename, modules/xlist:
29984         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
29985         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
29986         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
29987         * modules/y0, modules/y1, modules/yn:
29988         Remove Bruno Haible as maintainer; if he's the sole maintainer,
29989         change the maintainer to 'all'.  Let's hope someone volunteers.
29991 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
29993         mktime: merge #if/#ifdef usage from glibc
29994         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
29995         as that works with both Glibc's and Gnulib's style.
29996         See thread starting at Siddhesh Poyarekar's bug report at:
29997         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
29999 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
30001         git-version-gen: improve option descriptions
30002         * build-aux/git-version-gen: Mention that --prefix and --fallback
30003         have a mandatory argument.
30005 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30007         regex: fix memory leak in compiler
30008         Fix by Andreas Schwab in:
30009         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
30010         * lib/regcomp.c (parse_expression): Deallocate partially
30011         constructed tree before returning error.
30013         regex: merge patch from libc
30014         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
30015         Combine __USE_BSD and __USE_SVID into __USE_MISC.
30016         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
30018 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
30020         acl: port to gcc -Wredundant-decls
30021         From a request by Dmitry Antipov in:
30022         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
30023         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
30024         "#ifndef _GL_ACL_H".
30026 2014-06-11  Bruce Korb  <bkorb@gnu.org>
30027         Jim Meyering  <meyering@fb.com>
30029         parse-duration: eliminate 68-year duration limit
30030         * lib/parse-duration.c: Include "intprops.h".
30031         (TIME_MAX): Rename to MAX_DURATION and define to
30032         TYPE_MAXIMUM(time_t).
30033         * modules/parse-duration (Depends-on): Add intprops.
30034         Reported by Jonas 'Sortie' Termansen.
30036 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30038         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
30039         * modules/pthread (Depends-on): Add 'extensions', as it defines
30040         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
30041         (configure.ac-early): New section.
30042         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
30043         it is no longer needed.
30045 2014-06-14  Pádraig Brady  <P@draigBrady.com>
30047         pthread: define thread-safe macros on some platforms
30048         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
30049         for thread-safe operation on some platforms.
30051 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
30053         regex: don't be multithreaded if USE_UNLOCKED_IO.
30054         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
30055         * lib/regex_internal.h: Do not use multithreaded version if
30056         USE_UNLOCKED_IO is defined.  This is a hack, but it works
30057         around a porting bug with coreutils 8.22 on AIX 7.1.
30059 2014-06-11  Daiki Ueno  <ueno@gnu.org>
30061         gettext: update macros to version 0.19
30062         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
30063         depend on gl_EXTERN_INLINE and drop support for older Bison
30064         versions.
30066 2014-06-10  Pádraig Brady  <P@draigBrady.com>
30068         select,poll: fix console handle check on windows 8
30069         lib/poll.c (IsConsoleHandle): Change from testing the lower
30070         2 bits of the handle to the more expensive but accurate syscall.
30071         lib/select.c: Likewise.
30073 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30075         select: fix waiting on anonymous pipes on MS-Windows
30076         * lib/select.c (rpl_select): Fall back to polling when select()
30077         indicates there is nothing to check, while due to the timeout not
30078         expiring, activity is indicated on one of the handles.
30079         Also clear the TIMEOUT argument if the timer does expire.
30081 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
30083         times: fix to return non constant value on MS-Windows
30084         * lib/times.c (times): Don't use the process creation time,
30085         rather clock() which on windows returns the number of
30086         clock ticks since the process started.
30088 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
30090         isatty: fix to work on windows 8
30091         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
30092         2 bits of the handle to the more expensive but accurate syscall.
30094 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
30096         maint: fix typo in fdl.texi
30097         * doc/fdl.texi: Fix typo (missing '@').
30098         Somehow this was in fdl.texi but not fdl-1.3.texi.
30100 2014-06-06  Ben Walton  <bdwalton@gmail.com>
30102         mountlist: avoid hasmntopt const type warning on solaris
30103         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
30104         with char * instead of const char *.  Passing the constant string
30105         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
30106         to avoid the warning.
30108 2014-06-04  Eric Blake  <eblake@redhat.com>
30110         maintainer-makefile: delete obsolete code
30111         * top/maint.mk (build_aux): Drop old code, as threatened.
30113         maintainer-makefile: avoid spurious error messages
30114         * top/maint.mk (syntax-check): Guard definition and use of
30115         $(shell) by whether Makefile is present.
30117 2014-06-03  Ben Walton  <bdwalton@gmail.com>
30119         rename: avoid unused-but-set-variable compiler warning
30120         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
30121         it is possible that dst_exists may be set but not used.  Mark it with
30122         the unused attribute to avoid compiler warnings.
30124 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30126         rename: mark a label as potentially unused
30127         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
30128         by marking the out label as potentially unused.
30129         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
30131 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
30133         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
30134         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
30136 2014-06-02  Ben Walton  <bdwalton@gmail.com>
30138         acl: apply pure attribute to two functions
30139         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
30140         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
30142 2014-06-01  Pádraig Brady  <P@draigBrady.com>
30144         gnulib-common.m4: add _GL_UNUSED_LABEL
30145         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
30146         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
30148 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30150         dup2, fcntl, fcntl-h: port to AIX 7.1
30151         This fixes some porting problems discovered when testing the latest
30152         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
30153         in grep but it could be important for other applications.
30154         * doc/posix-functions/dup2.texi:
30155         * doc/posix-functions/fcntl.texi:
30156         * doc/posix-headers/fcntl.texi:
30157         Document AIX bugs.
30158         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
30159         Define to 0 if outside 'int' range.
30160         * m4/dup2.m4 (gl_FUNC_DUP2):
30161         * m4/fcntl.m4 (gl_FUNC_FCNTL):
30162         Check for getdtablesize.  If it's available, test a value just
30163         outside its range instead of testing 1000000.  When cross-compiling,
30164         guess that AIX will fail this improved test.
30166 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30168         printf, config.rpath: Port to FreeBSD 10.
30169         Problem reported by Tijl Coosemans in:
30170         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
30171         * build-aux/config.rpath (hardcode_libdir_flag_spec)
30172         (hardcode_direct): Simplify FreeBSD configuration.
30173         (library_names_spec): Don't mishandle FreeBSD 10+.
30174         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
30175         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
30176         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
30177         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
30178         Don't mishandle FreeBSD 10+ when cross-compiling.
30180         ftoastr: work around compiler bug in IBM xlc 12.1
30181         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
30182         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
30183         around a compiler bug in IBM xlc 12.1.0.0: it complains
30184         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
30185         _GL_FLT_PREC_BOUND.'
30187 2014-05-30  Kieran Colford  <colfordk@gmail.com>
30189         valgrind-tests: fixed misleading help message
30190         * m4/valgrind-tests.m4: The help message generated by configure
30191         implied that valgrind was disabled by default, which it wasn't.
30192         Adjusted the help message using s/enable/disable/ to clarify.
30194 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
30196         isfinite, isinf, isnan tests: fix for little-endian PowerPC
30197         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
30198         first double of a PowerPC "double double" pair.
30199         * tests/test-isinf.c (test_isinfl): Likewise.
30200         * tests/test-isnan.c (test_long_double): Likewise.
30201         * tests/test-isnanl.h (main): Likewise.
30202         * tests/test-signbit.c (test_signbitl): Likewise.
30204 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
30206         exclude-tests: port to AIX 7.1
30207         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
30208         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
30209         the regex code uses locks.
30211 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
30213         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
30214         Without this fix, Emacs would sometimes call sigprocmask instead
30215         of pthread_sigmask, which is a no-no in multithreaded applications.
30216         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
30217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30218         Suppress check for pthread_sigmask working without -lpthread if
30219         the application always links with -lpthread.  Do not link with
30220         $LIBMULTITHREAD if gl_THREADLIB is not defined.
30221         * m4/timer_time.m4 (gl_TIMER_TIME):
30222         Require gl_THREADLIB only if it is defined.  Do not append
30223         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
30225 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
30227         gnulib-tool: wget translations using --no-verbose rather than --quiet
30228         This allows the user to see error messages if any (--quiet hides them)
30229         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
30231 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
30233         gnulib-tool: adjust translation wget to avoid a https redirection
30234         Context: http://translationproject.org/latest/gnulib redirects to
30235            https://translationproject.org/latest/gnulib/
30236         Rationale: if the user falls back to wget, she doesn't have rsync and
30237         is probably in a minimal build environment, where packages such as
30238         'ca-certificates' are missing as well, resulting in a failed (and
30239         difficult to detect since ignored) translation initial fetch.
30240         Consequently let's avoid https if possible, and add the missing
30241         trailing slash.  This also avoids an unnecessary 302 redirection.
30242         * gnulib-tool: Add trailing slash to gnulib URL.
30244 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30246         getlogin_r-tests: check return value rather than errno
30247         * tests/test-getlogin_r.c (main): As per POSIX we should be
30248         verifying the return value from getlogin_r() rather than errno.
30250 2014-05-22  Pádraig Brady  <P@draigBrady.com>
30252         getlogin_r-tests: fix various issues in recent change
30253         * tests/test-getlogin_r.c: Include required headers that were
30254         missed in recent commit eec20b4e.
30255         Also consistently check the errno rather than the return value from
30256         getlogin_r as POSIX only specifies that non zero is returned on error.
30257         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
30259 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
30261         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
30262         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
30263         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
30264         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
30265         * lib/spawn-pipe.c:
30266         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
30267         and then 'int open64(const char *, int, ...);', which means the
30268         declaration for 'open' gets lost if we later '#undef open'.
30269         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
30270         where the compilation reported the non-fatal error "In function
30271         'openat_proc_name' ... warning: implicit declaration of function
30272         'open'".  In this case the error is relatively harmless, but in
30273         other cases it might not be so minor.
30275 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30277         xalloc: don't potentially generate invalid code for xmemdup calls
30278         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
30279         this function can initialize the newly-allocated storage with new
30280         pointers, which means this function is not malloc-like.  See:
30281         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
30283 2014-05-19  Pádraig Brady  <P@draigBrady.com>
30285         getlogin_r-tests: avoid false failure under sudo/ssh etc.
30286         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
30287         changes from commit 97249cf29 to not depend on environment variables.
30289 2014-05-18  Pádraig Brady  <P@draigBrady.com>
30291         getlogin-tests: avoid false failure under cron
30292         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
30293         since that's not what's under test.  Centos 6 was seen to return
30294         EINVAL for ttyname() when run from cron.
30296 2014-05-16  Jim Meyering  <meyering@fb.com>
30298         mbrtowc.m4: fix a comment typo
30299         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
30300         emitted documentation string.
30302 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30304         mbrlen, mbrtowc: fix bug with empty input
30305         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
30306         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
30307         so this is mainly for documentation.
30308         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
30309         (gl_FUNC_MBRTOWC): Use it.
30310         * tests/test-mbrtowc.c (main): Test for the bug.
30312 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
30314         doc: document mbrtowc and mbrlen problem with empty input
30315         * doc/posix-functions/mbrlen.texi (mbrlen):
30316         * doc/posix-functions/mbrtowc.texi (mbrtowc):
30317         Document portability problem when the input string is empty.  See:
30318         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
30320         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
30321         Problem reported by Eli Zaretskii in:
30322         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
30323         * doc/posix-functions/execl.texi (execl):
30324         * doc/posix-functions/execle.texi (execle):
30325         * doc/posix-functions/execlp.texi (execlp):
30326         * doc/posix-functions/execv.texi (execv):
30327         * doc/posix-functions/execve.texi (execve):
30328         * doc/posix-functions/execvp.texi (execvp):
30329         Mention spawn+exit problem on non-Cygwin Windows platforms.
30331 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
30333         getlogin-tests: avoid false failure under sudo/ssh etc.
30334         * modules/getlogin-tests (configure.ac): Check for ttyname().
30335         * tests/test-getlogin.c (main): Don't depend on environment variables
30336         to correlate with getlogin(), since sudo and ssh etc. can tamper
30337         with the LOGNAME and USER env vars.  Instead lookup the name from
30338         the uid associated with the stdin tty.
30340 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
30342         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
30343         These were found when building the latest grep snapshot on IRIX 6.5.
30344         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
30345         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
30346         never used later.
30347         * lib/quotearg.c (quoting_options_from_style):
30348         * lib/xstrtol.c (__xstrtol):
30349         Use enum instead of 0, to pacify IRIX 6.5 cc.
30351 2014-04-18  Pádraig Brady  <P@draigBrady.com>
30353         gitlog-to-changelog: revert inclusion of git-log-fix file
30354         * build-aux/git-log-fix: Delete dummy file.
30355         * modules/gitlog-to-changelog: Don't reference (overwrite)
30356         the project specific git-log-fix file.
30358 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
30360         maint.mk: Relax the copyright check to cater for non FSF projects
30361         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
30362         to not require the "Free" suffix after the copyright years.
30364 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
30366         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
30367         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
30368         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
30369         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
30370         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
30372 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
30374         exclude: port to strict C99
30375         Strict C does not allow converting a function pointer to void *
30376         and vice versa.  Pass a pointer to a function pointer instead.
30377         * lib/exclude.c (add_exclude_file):
30378         Pass the address of the function pointer.
30379         (call_addfn): And deference the address here, to match.
30381 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
30383         regex: do not depend on malloc-gnu
30384         * modules/regex (Depends-on): Remove malloc-gnu.
30385         It's no longer needed, because of the 2012-12-29 patch
30386         "regex: port to hosts where malloc (0) == NULL".
30387         Reported by Nathan Kennedy in:
30388         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
30390 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
30392         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
30393         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
30394         * doc/posix-functions/expl.texi: Mention the workaround.
30396 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
30398         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
30399         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
30400         size to be zero even when the pointer is nonnull.  This
30401         accommodates the use case where P is malloc (0) and *PN is 0 on a
30402         host where malloc (0) yields nonnull.
30404 2014-04-09  Eric Blake  <eblake@redhat.com>
30406         fts: avoid unnecessary strlen calls
30407         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
30409 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30411         fts: avoid unnecessary strlen calls
30412         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
30413         when that can be faster than strlen.
30415 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30417         fts: avoid unnecessary strlen calls
30418         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
30419         (fts_build): Store the length of the dp->d_name entry in a local variable
30420         instead of calling strlen() several times via the above, removed macro.
30421         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
30422         run by ~4%, yet this reduces the execution time by about a third if run
30423         via "ltrace -c rm -rf some-dir".
30425 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30427         obstack: Remove ancient NeXTSTEP gcc support conditional
30428         This change will ease merging with glibc.  The "#if ... __NEXT__"
30429         causes a warning with -Wundef which glibc now enables by default.
30430         Problem reported by Will Newton in
30431         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
30432         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
30433         so go with that.
30434         * lib/obstack.h (__extension__):
30436 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
30438         obstack: merge with glibc changes
30439         * lib/obstack.c, lib/obstack.h: Merge from glibc.
30440         This is mostly indenting and commentary changes.
30441         Instances of 'register' have been removed.
30443 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30445         strftime: wrap macros in "do {...} while(0)"
30446         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
30447         this macro in "do {...} while(0)" to prevent false use as a
30448         single statement, e.g., in an un-braced "{}" else-block.
30449         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
30450         (strftime_case_): Remove 'else' after 'goto' - which was the
30451         only non-fatal, un-braced use of one of the above macros.
30452         Spotted by coverity (NESTING_INDENT_MISMATCH).
30454 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
30456         modechange: avoid memory leaks for invalid octal modes
30457         * lib/modechange.c (mode_compile): During the parsing of
30458         notations like +40, free the 'mc' buffer for invalid mode
30459         strings like +17777 (greater than the maximum octal mode),
30460         =18 (bad octal mode characters) or u=1 ('affected' with
30461         octal modes).
30462         Reproducer, e.g.:
30463             $ valgrind --leak-check=full chmod +17777 file
30464         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
30465         add notations +40, 00440, etc.".
30466         Spotted by coverity (RESOURCE_LEAK).
30468 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
30470         gitlog-to-changelog: include a dummy git-log-fix file
30471         Problem reported by Nathan Stratton Treadway in:
30472         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
30473         * build-aux/git-log-fix: New file.
30475 2014-03-13  Jim Meyering  <meyering@fb.com>
30477         gitlog-to-changelog: also include the file, git-log-fix
30478         * modules/gitlog-to-changelog (Files): Add git-log-fix.
30479         Reported by Assaf Gordon.
30481 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
30483         regex: port to OS X 10.8.5 en_US.UTF-8 locale
30484         This fixes a bug when ignoring case and when comparing the
30485         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
30486         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
30487         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
30488         titlecase letter is neither lowercase nor uppercase, but
30489         uppercasing the titlecase letter (via towupper) yields the
30490         uppercase letter, so the two letters should match when ignoring case.
30491         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
30492         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
30493         Don't test whether a character is lowercase before uppercasing it.
30495 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
30497         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
30498         This is basically one of the options Bruno Haible proposed in:
30499         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
30500         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
30501         * lib/stdint.in.h: Use it.
30502         * modules/stdint (Depends-on): Add sys_types.
30504 2014-02-26  Pádraig Brady  <P@draigBrady.com>
30506         parse-datetime: fix crash or infloop in TZ="" parsing
30507         * lib/parse-datetime.y (parse_datetime): Break out of the
30508         TZ="" parsing loop once the second significant " is found.
30509         Also skip over any subsequent whitespace to be consistent
30510         with the non TZ= case.
30511         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
30513 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
30515         savedir: new symbol for fast-read version
30516         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
30517         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
30518         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
30519         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
30521 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
30523         unistd: port readlink to Mac OS X 10.3.9
30524         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
30525         around self-include problem in Mac OS X 10.3.9 when combined with
30526         readlink module.  Problem reported by Klaus Zietler in
30527         <http://bugs.gnu.org/16825>.
30529 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
30531         diffseq: remove TOO_EXPENSIVE heuristic
30532         Problem with diffutils reported by Vincent Lefevre in
30533         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
30534         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
30535         Although appropriate for circa-1993 hardware, these days the heuristic
30536         seems to be more trouble than it's worth.
30537         * lib/diffseq.h: Modernize citations.
30538         (struct context): Remove member too_expensive.
30539         All uses changed.
30540         (struct partition): Remove members lo_minimal, hi_minimal.
30541         All uses changed.
30542         (diag, compareseq): Remove arg find_minimal.  All uses changed.
30543         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
30544         1993 to make 'diff' run faster (but not as well) on large inputs.
30545         These days, computers are fast enough that it's typically better
30546         to run slower but more accurately.
30547         * lib/fstrcmp.c: Remove duplicate comment.
30548         * lib/fstrcmp.c (strcmp_bounded):
30549         * lib/git-merge-changelog.c (compute_differences):
30550         Adjust to diffseq.h changes.
30551         * NEWS: Document the change.
30553         savedir: simplify by using stpcpy
30554         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
30555         (streamsavedir): Use stpcpy instead.
30556         * modules/savedir (Depends-on): Add stpcpy.
30558 2014-02-21  Pádraig Brady  <P@draigBrady.com>
30560         spawn: fix link error on uclibc
30561         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
30562         to incorporate -lrt if needed (on uclibc for example).
30563         * modules/posix_spawn: Reference the substituted LIB.
30565 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
30566         timer: fix uClibc detection of threading
30567         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
30568         enabled in uClibc.
30570 2014-02-21  Eric Blake  <eblake@redhat.com>
30572         maintainer-makefiles: provide AC_PROG_SED for older autoconf
30573         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
30575 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
30577         exclude: add support for posix regexps
30579         This commit adds support for POSIX extended regular expressions
30580         and fixes a long-standing memory leak (pattern buffer was never
30581         freed).  It also implements a new interface function to read
30582         exclude patterns from a FILE, which passes an additional parameter
30583         to its callback function, thereby allowing to preserve its state
30584         between invocations.
30586         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
30587         (pattern_buffer): New struct.
30588         (exclude): New member patbuf.
30589         (exclude_add_pattern_buffer): New function.
30590         (free_exclude_segment): Free regexps.
30591         (free_exclude): Free allocated pattern buffers.
30592         (exclude_patopts): New function.
30593         (file_pattern_matches): Use exclude_patopts.
30594         (add_exclude): support regexps.
30595         (add_exclude_fp): New function.
30596         (add_exclude_file): Rewrite using add_exclude_fp.
30597         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30598         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30599         (add_exclude_fp)
30600         (add_exclude_file): Rewrite using add_exclude_fp.
30601         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
30602         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
30603         (add_exclude_fp)
30604         (exclude_add_pattern_buffer): New prototypes.
30605         * modules/exclude: Depends on regex and filename.
30607 2014-02-20  Eric Blake  <eblake@redhat.com>
30609         maintainer-makefiles: use $(SED) for syntax check
30610         * modules/maintainer-makefile (configure.ac): Check for sane sed.
30611         * top/maint.mk: Change sed to $(SED).
30613 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
30614             Paul Eggert  <eggert@cs.ucla.edu>
30616         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
30617         Patch based on an idea by Dick Streefland in
30618         <https://savannah.gnu.org/patch/?7892>.
30619         * NEWS: Document this.
30620         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
30621         (direntry_t, comparison_function): New types.
30622         (direntry_cmp_name): New function.
30623         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
30624         (streamsavedir, savedir): New arg OPTION.
30625         (streamsavedir): Simplify memory allocation.
30626         (fdsavedir): Remove.
30627         * lib/savedir.h (enum savedir_option): New type.
30628         (streamsavedir, savedir): New arg OPTION.
30629         (fdsavedir): Remove.
30631 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
30633         file-type: add support for doors and other less-common file types
30634         Problem with S_ISDOOR reported by Rich Burridge.
30635         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
30636         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
30637         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
30639 2014-01-23  Eric Blake  <eblake@redhat.com>
30641         pthread: work around winpthread header pollution on mingw
30642         * lib/time.in.h: Move pthread workarounds...
30643         * lib/pthread.in.h: ...here.
30644         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
30645         detect macro pollution on mingw.
30646         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
30648 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30650         qacl: check for fchmod
30651         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
30652         and qset-acl.c both use HAVE_FCHMOD.
30654 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
30656         fdopen-tests: port to Tru64
30657         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
30658         descriptor that is not open, as POSIX doesn't specify the
30659         resulting behavior and the test does not work on Tru64.
30660         Problem reported by Steven M. Schweda in:
30661         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
30663         stdalign: port to HP-UX compilers
30664         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
30665         if __HP_cc or __HP_aCC are nonzero.
30667 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30669         strtoimax: port to platforms lacking 'long long'
30670         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
30671         check whether strtoll is declared, which causes the C file to
30672         wrongly report an error.  Problem reported by Steven M. Schweda in:
30673         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
30674         * lib/strtoimax.c (strtoull):
30675         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
30676         (strtoll): Declare only if HAVE_LONG_LONG_INT.
30678 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
30680         relocatable-perl: fix texi syntax
30681         * doc/relocatable-maint.texi: Escape braces.
30683 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
30685         relocatable-perl: like relocatable-script, but for Perl scripts
30686         * build-aux/relocatable.pl.in: Add.
30687         * doc/relocatable-maint.texi: Add documentation.
30688         * modules/relocatable-perl: Add.
30690 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
30692         tests: fix export bug in previous patch
30693         Problem reported by Jim Meyering.
30694         * tests/init.sh (re_shell): New var, which is exported instead of
30695         re_shell_.
30697         tests: simplify porting to Solaris 10 /bin/sh
30698         Some test cases in 'grep' need a shell that groks '$(';
30699         export re_shell_ for their benefit.  Problem reported for 'grep'
30700         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
30701         * tests/init.sh (re_shell_): Export if it's used.
30703 2014-01-06  Eric Blake  <eblake@redhat.com>
30705         md5, sha1, sha256, sha512: support older autoconf
30706         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
30707         for autoconf < 2.63b.
30709         include_next: port to autoconf 2.63
30710         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
30712 2014-01-04  Jim Meyering  <meyering@fb.com>
30714         maint: add a gnulib-local rule to keep non-ascii out of .texi files
30715         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
30716         so that "make sc_maint" will ding anyone who puts non-ascii
30717         in any of gnulib's .texi files.
30719 2014-01-03  Jim Meyering  <meyering@fb.com>
30721         freadable, fwritable, fwriting: declare with the "pure" attribute
30722         * lib/freadable.h (freadable): Declare with the "pure" attribute.
30723         * lib/fwritable.h (fwritable): Likewise.
30724         * lib/fwriting.h (fwriting): Likewise.
30725         Suggested by Bruno Haible.
30727         maint.mk: adapt openat.h-include-without-use test
30728         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
30729         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
30730         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
30731         With this change, running "make sc_maint" in gnulib's top-level
30732         directory now passes for me.
30734 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
30736         doc: use ASCII in .texi files where UTF-8 isn't needed
30737         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
30738         * doc/posix-functions/setkey.texi, doc/regex.texi:
30739         Use ASCII input, not UTF-8.
30741 2014-01-02  Jim Meyering  <meyering@fb.com>
30743         freading: declare with the "pure" attribute
30744         * lib/freading.h (freading): Declare with the "pure" attribute.
30746         manywarnings: remove -Wmudflap
30747         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
30748         it is no longer supported in gcc-4.9-to-be.
30750 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30752         relocatable-script: remove unused code
30753         Problem reported by Reuben Thomas in:
30754         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
30755         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
30757 2014-01-01  Jim Meyering  <meyering@fb.com>
30759         maint: fix public-submodule-commit to work with newer git
30760         * top/maint.mk (public-submodule-commit): Remove excess quoting.
30761         We were over-quoting the test arguments, and somewhere prior to
30762         version 1.8.5.2.229, git stopped removing those excess quotes,
30763         which made the test fail, since the unexpanded strings would
30764         always differ; using GIT_TRACE=1 confirmed that the git merge-base
30765         command wasn't even being run.
30767 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30769         doc: update main copyright year
30770         * doc/gnulib.texi: Update copyright date.
30772 2014-01-01  Eric Blake  <eblake@redhat.com>
30774         version-etc: new year
30775         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
30776         * all files: run 'make update-copyright'
30778 2013-12-24  Eric Blake  <eblake@redhat.com>
30780         passfd: give nicer error for recvfd at eof
30781         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
30782         * tests/test-passfd.c (main): Enhance test to cover this.
30784 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30786         gettimeofday: port recent C++ fix to Emacs
30787         Without this further patch, Emacs won't build due to
30788         the portcheck failing.  Also, this simplifies the patch a bit.
30789         * lib/time.in.h (localtime, gmtime): Don't replace unless
30790         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
30791         * lib/time.in.h (localtime, gmtime):
30792         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
30793         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30794         * modules/time (time.h):
30795         Don't worry about the possibility of localtime and gmtime
30796         being absent; they're present in all C libraries we know about.
30797         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30798         Don't assume sys_time is present and has been initialized.
30799         Instead, use a hack that should work even if it hasn't been.
30800         Don't use a portcheck for gmtime or localtime; this supports
30801         the hack.
30802         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
30804 2013-12-17  John W. Eaton  <jwe@gnu.org>
30806         gettimeofday: fix C++ crosscompilation
30808         Never replace gmtime and localtime by macros when compiling with
30809         C++, this prevents <ctime> from being included.
30811         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
30812         define gmtime and localtime as preprocessor macros.  Instead
30813         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
30814         REPLACE_LOCALTIME substitutions.
30815         * lib/time.in.h: Declare gmtime and localtime when needed.
30816         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
30817         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
30818         * modules/time: Depend on gettimeofday, and substitute the above
30819         variables in time.h.
30821 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
30823         qacl: port to Windows better
30824         See Eli Zaretskii in
30825         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
30826         * lib/file-has-acl.c (acl_access_nontrivial):
30827         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
30828         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
30830 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
30832         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
30833         * lib/gl_openssl.h: Cast void pointers to a specific type.
30835 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30837         open-tests: fix build failure with -Werror=old-style-declaration
30838         * tests/test-open.h: Reorder the inline to avoid the issue.
30840 2013-12-07  Pádraig Brady  <P@draigBrady.com>
30842         md5, sha1, sha256, sha512: fix link error with partial libcrypto
30843         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
30844         init time, so that if early checks find crypto routines,
30845         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
30846         avoiding link failures.
30848 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
30850         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
30851         This provides a new way to specify the default for
30852         gl_CRYPTO_CHECK, one that is reflected in the --help message.
30853         Emacs uses this, as well as the old way.
30854         This attempts to implement a suggestion by Pádraig Brady in
30855         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
30856         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
30857         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
30859         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
30860         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
30861         Add support for a new option, --with-openssl=auto, which causes
30862         the library to be used if available and silently ignored if not.
30863         Add support to allow configure.ac to specify its own
30864         default, by setting with_openssl_default before invoking gl_INIT.
30866 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
30868         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
30869         Problem reported by Daiki Ueno in:
30870         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
30871         * tests/test-open.h (__always_inline):
30872         New macro, if not already defined.
30873         (test_open): Use it.
30875 2013-12-04  Eric Blake  <eblake@redhat.com>
30877         include_next: minimize code duplication
30878         * modules/include_next (Depends-on): Add absolute-header.
30879         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
30880         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
30882 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30884         getcwd: fix compile error in configure check
30885         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
30887 2013-12-04  Pádraig Brady  <P@draigBrady.com>
30889         regex: suppress core dumps from detection code
30890         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
30891         to suppress core dumps that may well occur on glibc systems.
30892         These core dumps might not be cleaned up automatically, or could
30893         trigger some system core dump handling logic.
30895 2013-12-03  Pádraig Brady  <P@draigBrady.com>
30897         md5, sha1, sha256, sha512: support mandating use of openssl
30898         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
30899         description, to list the now 3 separate options.  also don't
30900         mention the default=no, since this is implicit given the option
30901         is described as --with-openssl rather than --without-openssl.
30902         If projects change the default they're free to document that.
30903         with --with-openssl[=yes] we now error out when the specified
30904         hash algorithm is not available in libcrypto.
30906 2013-12-03  Ivailo  <xakepa10@gmail.com>
30908         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
30909         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
30910         -Wformat-nonliteral checks, as these edge cases are part of the test.
30912 2013-12-03  Eric Blake  <eblake@redhat.com>
30914         regex: avoid glibc deadlock during configure
30915         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
30916         glibc bug 15078 in turn triggers bug 16159.
30917         Reported by Michal Privoznik.
30919 2013-12-02  Pádraig Brady  <P@draigBrady.com>
30921         md5, sha1, sha256, sha512: use openssl routines if available.
30922         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
30923         routines will be used if available, requiring apps to link @LIB_CRYPTO@
30924         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
30925         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
30926         in the standard system location.
30927         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
30928         * m4/sha256.m4: Likewise with SHA256.
30929         * m4/sha512.m4: Likewise with SHA512.
30930         * m4/md5.m4: Likewise with MD5.
30931         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
30932         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
30933         * lib/sha256.h: Likewise with SHA256.
30934         * lib/sha512.h: Likewise with SHA512.
30935         * lib/md5.h: Likewise with MD5.
30936         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
30937         * lib/sha256.c: Likewise with SHA256.
30938         * lib/sha512.c: Likewise with SHA512.
30939         * lib/md5.c: Likewise with MD5.
30940         * modules/crypto/sha1 (Link:): Add the new optional lib.
30941         (Depends-on:): Add dependency on extern-inline.
30942         * modules/crypto/sha256: Likewise.
30943         * modules/crypto/sha512: Likewise.
30944         * modules/crypto/md5: Likewise.
30945         * modules/crypto/sha1-tests: Reference the lib here too.
30946         * modules/crypto/md5-tests: Likewise.
30947         * modules/crypto/gc-des-tests: Likewise.
30948         * modules/crypto/gc-hmac-md5-tests: Likewise.
30949         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30950         * modules/crypto/gc-hmac-sha256-tests: Likewise.
30951         * modules/crypto/gc-hmac-sha512-tests: Likewise.
30952         * modules/crypto/gc-md5-tests: Likewise.
30953         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30954         * modules/crypto/gc-sha1-tests: Likewise.
30955         * modules/crypto/gc-tests: Likewise.
30956         * modules/crypto/hmac-md5-tests: Likewise.
30957         * modules/crypto/hmac-sha1-tests: Likewise.
30958         * modules/crypto/hmac-sha256-tests: Likewise.
30959         * modules/crypto/hmac-sha512-tests: Likewise.
30961 2013-11-29  RV1971  <rv1971@web.de>
30963         base64: (trivial) fix compilation regression on some compilers
30964         * lib/base64.c: Don't return the void function,
30965         instead split to a separate return statement.
30967 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
30969         ignore-value: revert previous code change
30970         * lib/ignore-value.h (ignore_value): Use __extension__ and
30971         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
30972         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
30973         Change the comment to try to explain this better.
30975 2013-11-27  Pádraig Brady  <P@draigBrady.com>
30977         selinux-h: improve stub types and add more stub functions
30979         * lib/se-selinux.in.h: Change security_context_t to a typedef
30980         rather than a define, as it's a pointer type and so is better
30981         as a typedef to avoid issues declaring multiple variables
30982         with the comma operator.  Also add stub for string_to_security_class().
30983         * lib/se-context.in.h: Add stub functions for
30984         context_{type,range,role,user}_get().
30986 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
30988         ignore-value: prefer GCC version back through 2.0
30989         The code didn't match the comments, so I did a bit of software
30990         archaeology.  GCC 2.0 seems to support __extension__ and
30991         __typeof__, so fix both code and comments to use 2.0.
30992         * lib/ignore-value.h (ignore_value): Use __extension__ and
30993         __typeof__ for GCC 2.0 through 3.3, too.
30995 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
30997         pty: Activate the signature wrapper of forkpty.
30998         The intended preprocessor macro HAVE_FORKPTY is
30999         never defined, yet `lib/forkpty.c' depends on it.
31001         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
31002         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
31003         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
31005 2013-11-18  Jim Meyering  <meyering@fb.com>
31006         and Paul Eggert  <eggert@cs.ucla.edu>
31008         quotearg: don't attempt to store 1 << 31 into an "int"
31009         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
31010         gcc's new -fsanitize=undefined and running its tests triggered some
31011         new test failures due to undefined behavior, all with this diagnostic:
31012           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
31013             cannot be represented in type int
31014         Rather than shifting "1" left to form a mask, shift the bits right and
31015         simply use "1" as the mask.
31017 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
31019         error: depend on stdio
31020         Problem reported by Nikos Mavrogiannopoulos in
31021         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
31022         * modules/error (Depends-on): Add stdio.
31024 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
31026         * doc/relocatable-maint.texi (Supporting Relocation): Improve
31027         wording.
31028         Reported by Reuben Thomas <rrt@sc3d.org>.
31030 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
31032         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
31033         New function and macro, to work around _DARWIN_C_SOURCE problem.
31034         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
31036 2013-11-11  Pádraig Brady  <P@draigBrady.com>
31038         base64: provide a fast path for encoding well sized buffers
31039         Avoid conditionals in the base64 encoding loop,
31040         which was seen to give 60% better throughput.
31041         * lib/base64.c (base64_encode_fast): A new function to be called
31042         when we don't want to NUL terminate, and we have enough space
31043         in the output to encode the given input.
31044         (base64_encode): Call the _fast() version when appropriate.
31045         Also remove a redundant mask with 0x3F on the first encoded byte.
31047 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
31049         extern-inline: port better to OS X 10.9
31050         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
31051         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
31052         OS X 10.9, except for g++ where the bug is still present.
31053         See <http://trac.macports.org/ticket/41033>.
31055 2013-11-08  Eric Blake  <eblake@redhat.com>
31057         fpending: fix regression on DragonFly BSD
31058         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
31059         * lib/fpending.h (__fpending): Don't declare twice.
31060         Reported by GW in
31061         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
31063 2013-11-05  Jim Meyering  <meyering@fb.com>
31065         hash: relax license to LGPLv2+, for libguestfs
31066         * modules/hash (License): Change from GPL to LGPLv2+.
31068 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
31070         intprops: port to Oracle Studio c99
31071         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
31072         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
31074 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
31076         obstack: pacify HP C
31077         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
31078         warning "conversion from pointer to smaller integer" from HP
31079         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
31080         C89 or later nowadays, so cast to void instead of int.  Privately
31081         reported by H.Merijn Brand.  Also, change header to match glibc's,
31082         to make checking against glibc easier.
31084 2013-10-29  Jim Meyering  <meyering@fb.com>
31086         maint.mk: prefer gpgv2 over gpgv
31087         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
31088         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
31089         Reported by Gary Vaughan.
31091 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31093         isnan: port to VAX
31094         Reported by John Klos for NetBSD-5/VAX in
31095         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
31096         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
31097         (FUNC): Use it.
31099 2013-10-28  Jim Meyering  <meyering@fb.com>
31101         gnulib-tool: protect against CDPATH
31102         * gnulib-tool: Many "cd" built-in functions print a directory name
31103         to stdout when CDPATH is set, e.g.,
31104           $ bash -c 'CDPATH=/; cd tmp'
31105           /tmp
31106         Unset it, when possible.  Prompted by a comment from Bruce Korb.
31108         maint.mk: restore functionality removed by recent change...
31109         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
31110         the context of a shallow-cloned gnulib repository: "git describe"
31111         would fail in such a directory.  However, that change made it so
31112         the reported gnulib revision no longer includes the version number
31113         or a commit count, even when run from a full clone.
31114         * top/maint.mk (gnulib-version): Use the full "git describe"
31115         output when possible, e.g., the form above, rather than the
31116         abbreviated, no-tag, no-commit-count string, and fall back to
31117         using a 10-byte hash, rather than the default minimal-length
31118         hash prefix, since while the minimal-length one may be fine today,
31119         it is likely not to be unique for very long.
31121 2013-10-26  Jim Meyering  <meyering@fb.com>
31123         maint.mk: fix "release" target to build _version
31124         This fixes a bug in README-release whereby following the outlined
31125         steps, one would publish a tarball whose programs would report
31126         --version output not consistent with the package version number.
31127         This bug caused grep-2.15 to produce a grep program whose
31128         --version option made it print 2.14.56-1e3d rather than 2.15.
31129         * top/maint.mk (release): Making this target build "_version"
31130         ensures that the new version number is reflected in configure.
31132 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
31134         install-reloc: Support multi-binary installation.
31135         * build-aux/install-reloc: Support installing multiple programs in
31136         one invocation, as done by Automake starting with commit
31137         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
31138         Haible <bruno@clisp.org>, archived at
31139         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
31140         Reported by Sylvain <beuc@gnu.org>.
31142 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31144         selinux-h: Really build without selinux when library is missing.
31145         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
31146         continue without selinux, as already told in the warning message.
31148 2013-10-21  Jim Meyering  <meyering@fb.com>
31150         regex: also remove dependency on HAVE_WCSCOLL
31151         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
31153 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
31155         xfreopen: Fix typo. s/frepoen/freopen/
31156         * lib/xfreopen.c: Fix description.
31157         * modules/xfreopen: Likewise.
31159 2013-10-21  Jim Meyering  <meyering@fb.com>
31161         regex: don't depend on wcscoll
31162         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
31163         It is no longer used.
31165 2013-10-20  Jim Meyering  <meyering@fb.com>
31167         error: add the printf attribute to a static function
31168         * lib/error.c (error_tail): Add the printf attribute, to placate
31169         gcc's -Werror=suggest-attribute=format option.
31171 2013-09-30  Jim Meyering  <meyering@fb.com>
31173         fpending, obstack, strerror-override: use pure+const function attrs
31174         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
31175         * lib/obstack.c (_obstack_allocated_p): Likewise.
31176         * lib/obstack.h (_obstack_memory_used): Likewise.
31177         (_obstack_memory_used): Likewise.
31178         * lib/strerror-override.h (strerror_override): Declare with
31179         the "const" attribute.
31181 2013-10-18  Eric Blake  <eblake@redhat.com>
31183         extern-inline: make safe for -Wundef usage
31184         Reported by Vladimir 'phcoder' Serbinenko in
31185         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
31186         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
31188 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
31190         mkfifo-tests, etc.: allow HP-UX 11.11 bug
31191         Problem reported by Daniel Richard G. in
31192         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
31193         * doc/posix-functions/mkfifo.texi (mkfifo):
31194         * doc/posix-functions/mkfifoat.texi (mkfifoat):
31195         * doc/posix-functions/mknod.texi (mknod):
31196         * doc/posix-functions/mknodat.texi (mknodat):
31197         Document the HP-UX 11.11 bug.
31198         * tests/test-mkfifo.h (test_mkfifo):
31199         Allow the HP-UX 11.11 bug.
31201 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
31203         acl: allow cross-compilation to Gentoo
31204         Problem reported by Gabriel Marcano in
31205         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
31206         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
31207         test only whether it links.
31209 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
31211         mgetgroups: remove dependency on realloc-gnu
31212         The dependency violates the comment in realloc-gnu, which
31213         says that tests can't depend on realloc-gnu; some tests depend
31214         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
31215         Problem reported by Daniel Richard G. in
31216         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
31217         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
31218         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
31219         not realloc-gnu.
31221 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31223         regex-tests: port to HP-UX 11.11
31224         Problem reported by Daniel Richard G. in
31225         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
31226         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
31228 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31230         verify: document some 'assume' pitfalls
31231         * doc/verify.texi (Compile-time Assertions):
31232         Mention that 'assume (E)' can sometimes slow things down.
31233         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
31235 2013-10-10  Eric Blake  <eblake@redhat.com>
31237         strtoumax: fix typo in previous commit.
31238         * modules/strtoumax (Depends-on): Fix typo.
31239         * modules/strtoimax (Depends-on): Likewise.
31241 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31243         strtoumax: port to Solaris 8
31244         This problem was introduced in the recent HP-UX patch.
31245         Reported by Tom G. Christensen in
31246         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
31247         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
31248         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
31250 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31252         strtoimax, strtoumax: port to HP-UX 11.11
31253         Problem reported by Daniel Richard G. in
31254         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
31255         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
31256         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
31257         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
31258         REPLACE_STRTOUMAX.
31259         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
31260         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
31261         Replace the function if defined as a macro but not as a function.
31262         * modules/inttypes-incomplete (inttypes.h): Substitute
31263         REPLACE_STRTOUMAX.
31264         * modules/strtoumax (configure.ac): Replace strtoumax if
31265         REPLACE_STRTOUMAX.
31267 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31269         strtoimax: port to HP-UX 11.11
31270         Problem reported by Daniel Richard G.
31271         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
31272         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
31273         they might clash with inttypes.h.
31275 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31277         New module 'count-trailing-zeros'.
31278         * MODULES.html.sh: Mention it.
31279         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
31280         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
31281         * modules/count-trailing-zeros-tests:
31282         * tests/test-count-trailing-zeros.c:
31283         New files.
31285         count-leading-zeros: port to MSC; support types wider than 64 bits
31286         The ideas behind the MSC port are stolen from Emacs.
31287         * lib/count-leading-zeros.h:
31288         Don't include verify.h: it's no longer needed, as types wider than
31289         64 bits are now supported.
31290         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
31291         performance with MSC.  All uses changed.  Do not assume that TYPE
31292         has at most 64 bits.
31293         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
31294         All uses changed.  Fold the subtraction from 31 into the table.
31296         count-one-bits: port to MSC; support types wider than 64 bits
31297         The ideas behind the MSC port are stolen from Emacs.
31298         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
31299         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
31300         Don't include verify.h: it's no longer needed, as types wider than
31301         64 bits are now supported.
31302         (COUNT_ONE_BITS_GENERIC): New macro.
31303         (popcount_supported) [_MSC_VER]: New inline function.
31304         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
31305         performance with MSC.  All uses changed.  Do not assume that TYPE
31306         has at most 64 bits.
31307         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
31309 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
31311         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
31312         * lib/mountlist.c (read_file_system_list): fix leak of directory
31313         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
31315 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31317         tests: improve diagnostic when an assertion fails
31318         * tests/macros.h (ASSERT): Report the assertion that failed.
31320 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
31322         verify: new macro 'assume'
31323         This is taken from Emacs, and should be generally useful.
31324         * doc/verify.texi (assume): Document it.
31325         * lib/verify.h (assume): New macro.
31326         (__has_builtin): Expand to 0 if not defined.
31328 2013-09-26  Eric Blake  <eblake@redhat.com>
31330         dup2, dup3: work around another cygwin crasher
31331         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
31332         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
31333         * tests/test-dup2.c (main): Likewise.
31334         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
31335         * lib/dup3.c (dup3): Likewise.
31336         * doc/posix-functions/dup2.texi (dup2): Document it.
31337         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31339         getdtablesize: work around cygwin issue
31340         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
31341         * modules/getdtablesize (configure.ac): Build replacement.
31342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
31343         * modules/unistd (Makefile.am): Expose the witness.
31344         * lib/unistd.in.h (getdtablesize): Declare replacement.
31345         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
31346         * tests/test-getdtablesize.c (main): Test it.
31347         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
31349 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
31351         pmccabe2html: escaping of special characters
31352         Escape all '<', '>', and '&' in HTML output.
31353         * build-aux/pmccabe2html (html_fnc): Call gsub()
31354         instead of sub() to capture all '<', '>', and '&'.
31355         Neither of '<' and '>' is special in a regexp,
31356         so first arguments to gsub() are corrected. Also,
31357         in replacement strings, ampersand must be escaped.
31358         Finally, '&' must be handled first, then '<' and '>'.
31360 2013-09-24  Eric Blake  <eblake@redhat.com>
31362         manywarnings: enable nicer gcc warning messages
31363         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
31364         some -f options for optimal warnings.
31366 2013-09-21  Jim Meyering  <meyering@fb.com>
31368         timespec: use the new TIMESPEC_RESOLUTION in a few more places
31369         * lib/timespec-add.c (timespec_add): Also replace 999999999
31370         with TIMESPEC_RESOLUTION - 1.
31371         * lib/timespec-sub.c (timespec_sub): Likewise.
31373 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
31375         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
31376         Problem reported by Dagobert Michelsen via Eric Blake in
31377         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
31378         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
31379         not AC_COMPILE_IFELSE.
31381 2013-09-23  Eric Blake  <eblake@redhat.com>
31383         configmake: support new --runstatedir option
31384         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
31385         even if autoconf was too old to provide the command line option.
31386         * modules/configmake (Makefile.am): Propagate it to .h file.
31388 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31390         ctype, string: depend on extern-inline
31391         This is needed to complete the recent OS X fixes.
31392         Also, fix related documentation as suggested by Eric Blake.
31393         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31394         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
31395         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
31396         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
31397         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
31398         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
31399         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
31400         * doc/posix-functions/toupper.texi:
31401         List the 'ctype' gnulib module.
31402         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
31403         * doc/posix-functions/strncpy.texi:
31404         List the 'string' gnulib module.
31405         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
31406         Add string.
31407         * modules/ctype, modules/string (Depends-on): Add extern-inline.
31409 2013-09-19  Pádraig Brady  <P@draigBrady.com>
31411         userspec: support optional parameters to parse_user_spec()
31412         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
31413         then avoid group processing and treat the full spec as a user.
31414         (parse_with_separator): Allow the USERNAME and GROUPNAME to
31415         be optional params (NULL), in which case they're ignored.
31417 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
31419         timespec: new function make_timespec, and new constants
31420         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
31421         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
31422         (make_timespec): New function.
31423         * lib/dtotimespec.c (dtotimespec):
31424         * lib/timespec-add.c (timespec_add):
31425         * lib/timespec-sub.c (timespec_sub):
31426         * lib/utimens.c (validate_timespec):
31427         * lib/utimensat.c (rpl_utimensat):
31428         Use these new constants and functions.
31430         stdio: OS X port of putc_unlocked + extern inline
31431         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
31432         * doc/posix-functions/putc_unlocked.texi:
31433         * doc/posix-functions/putchar_unlocked.texi:
31434         Document this portability problem.
31436         signal: OS X port of sigaddset etc. + extern inline
31437         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
31438         (sigismember): #undef on problematic Apple platforms.
31439         * doc/posix-functions/sigaddset.texi:
31440         * doc/posix-functions/sigdelset.texi:
31441         * doc/posix-functions/sigemptyset.texi:
31442         * doc/posix-functions/sigfillset.texi:
31443         * doc/posix-functions/sigismember.texi:
31444         Document this portability problem.
31446         extern-inline: do not always suppress extern inline on OS X
31447         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
31448         extern inline on Apple only if the particular compile-time
31449         configuration is known to have the problem.
31450         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
31451         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
31452         other Gnulib modules.
31454         extern-inline: document fixes for ctype and wctype macros
31455         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
31456         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
31457         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
31458         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
31459         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
31460         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
31461         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
31462         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
31463         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
31464         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
31465         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
31466         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
31467         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
31468         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
31469         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
31470         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
31471         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
31472         * doc/posix-functions/strncpy.texi:
31473         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
31474         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
31475         Document that Gnulib fixes portability problems with these
31476         functions on OS X 10.8 and earlier when called from plain inline
31477         or extern inline functions.
31479 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
31481         fflush, freadahead, fseeko: Fix for Android
31482         Suggested by Bruno Haible in:
31483         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
31484         * lib/stdio-impl.h: Use local __sfileext definition.
31486 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
31488         pmccabe2html: Portability to other awk versions.
31489         The functions systime() and strftime() are available
31490         in Gawk only.  Properly close two HTML-tags 'style'
31491         and 'span'.
31492         * build-aux/pmccabe2html (BEGIN): Store timing
31493         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
31494         systime() in HTML_COMMENT.
31495         (html_header): Correctly close tag 'style'.
31496         (END): Replace strftime() by CHRONOS_TIME.  Close
31497         tag 'span' correctly, not as 'div'.
31499 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31501         getgroups: statement without effect
31502         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
31503         Change equality conditional to expected assignment.
31505 2013-09-09  Eric Blake  <eblake@redhat.com>
31507         glob: fix compilation
31508         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
31510 2013-09-07  Eric Blake  <eblake@redhat.com>
31512         glob: fix build for platforms without __THROW
31513         * lib/glob.in.h (__THROW): Add definition again.
31515 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
31517         regex-quote: fix buffer access out of bounds
31518         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
31519         * lib/regex-quote.c (regex_quote_spec_pcre):
31520         Fix typo that resulted in an out-of-bounds read.
31522 2013-09-04  Eric Blake  <eblake@redhat.com>
31524         glob: avoid -Wattribute warnings on glibc
31525         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
31526         __THROWNL, not __THROW, on static functions.
31527         * lib/glob.in.h (__THROW): Adjust...
31528         (__THROWNL): ...accordingly.
31530 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
31532         headers: check that _GL_INLINE_HEADER_BEGIN is defined
31533         Suggested by Bruce Korb in:
31534         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
31535         * doc/extern-inline.texi (extern inline):
31536         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
31537         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
31538         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
31539         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
31540         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
31541         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
31542         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
31543         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
31544         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
31545         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
31546         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
31547         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
31548         * lib/xtime.h:
31549         Check that _GL_INLINE_HEADER_BEGIN is defined.
31551 2013-08-29  Pádraig Brady  <P@draigBrady.com>
31553         bootstrap: remove the --version requirement from ancillary tools
31554         * build-aux/bootstrap (check_exists): A new refactored function to
31555         determine if a command exists.
31556         (find_tool): Use the new function which does not require the
31557         --version option to be supported.
31558         (check_versions): Use the new function.
31560 2013-08-26  Simon Josefsson  <simon@josefsson.org>
31562         gc: support HMAC-SHA256 and HMAC-SHA512.
31563         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
31564         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
31565         functions.
31566         (gc_hmac_md5): Use symbolic constant.
31567         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
31568         (gc_hmac_sha256, gc_hmac_sha512): New functions.
31569         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
31570         * m4/sha256.m4: Protect against empty expansion.
31571         * m4/sha512.m4: Likewise.
31572         * lib/hmac-sha256.c: New file.
31573         * lib/hmac-sha512.c: Likewise.
31574         * m4/gc-hmac-sha256.m4: Likewise.
31575         * m4/gc-hmac-sha512.m4: Likewise.
31576         * m4/gc-sha256.m4: Likewise.
31577         * m4/gc-sha512.m4: Likewise.
31578         * modules/crypto/gc-hmac-sha256: Likewise.
31579         * modules/crypto/gc-hmac-sha256-tests: Likewise.
31580         * modules/crypto/gc-hmac-sha512: Likewise.
31581         * modules/crypto/gc-hmac-sha512-tests: Likewise.
31582         * modules/crypto/hmac-sha256: Likewise.
31583         * modules/crypto/hmac-sha256-tests: Likewise.
31584         * modules/crypto/hmac-sha512: Likewise.
31585         * modules/crypto/hmac-sha512-tests: Likewise.
31586         * tests/test-gc-hmac-sha256.c: Likewise.
31587         * tests/test-gc-hmac-sha512.c: Likewise
31588         * tests/test-hmac-sha256.c: Likewise.
31589         * tests/test-hmac-sha512.c: Likewise
31591 2013-08-24  Daiki Ueno  <ueno@gnu.org>
31593         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
31594         of AC_CHECK_DECLS.
31596 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31598         selinux-at: omit unnecessary include
31599         * lib/selinux-at.c: Don't include dosname.h; not needed, since
31600         this source file doesn't use its macros, and subsidiary files that
31601         use the macros already include it.
31603 2013-08-21  Eric Blake  <eblake@redhat.com>
31605         d-ino: avoid false negative on symlink
31606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
31607         Reported by Stephane Chazelas.
31609 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
31611         bootstrap: port to OpenBSD sed
31612         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
31613         does not interpret `-' as a file argument to mean stdin.
31615 2013-08-15  Eric Blake  <eblake@redhat.com>
31617         warnings: minor optimization
31618         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
31620         warnings: check -Wfoo rather than -Wno-foo
31621         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
31622         -Wno-, test if the compiler recognizes the positive form instead.
31624 2013-08-15  Karl Berry  <karl@gnu.org>
31626         * config/srclist-update: add option "doclicense" to placate
31627         pulling *.texi files from Emacs.  Write terse usage
31628         documentation at the top.
31630 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
31632         xvasprintf-tests: port to GCC with hardening flags
31633         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
31634         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
31635         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
31637 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31639         fpending: port to recent Cygwin change to stdio_ext.h
31640         Reported by LRN in
31641         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
31642         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
31643         just declare __fpending unless it's a macro.
31644         A duplicate decl shouldn't hurt.
31645         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
31646         call compiles and links, instead of separately checking for
31647         decl and lib function.
31648         * modules/fpending (configure-ac):
31649         Adjust to fpending.m4's renaming of shell variable.
31651 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31653         sys_time: port to OpenBSD
31654         * lib/sys_time.in.h: Simply delegate to the system's header
31655         in the BSDish cases as well.  Problem reported by Mike Miller in
31656         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
31657         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
31658         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
31659         wider than time_t.
31661 2013-08-09  Pádraig Brady  <P@draigBrady.com>
31663         bootstrap: support checksum utils having -c but not --status
31664         * build-aux/bootstrap: Only look for sha1sum if updating po files.
31665         Add sha1 to the list of supported checksum utils since it's now
31666         supported through adjustments below.
31667         (update_po_files): Remove the use of --status
31668         in a way that will suppress all error messages, but since this is
31669         only used to minimize updates, it shouldn't cause an issue.
31670         Exit early if there is a problem updating the po file checksums.
31671         (find_tool): Remove the check for --version support as this
31672         is optional as per commit 86186b17.  Don't even check for the
31673         presence of the command as if that is needed, it's supported
31674         through configuring prerequisites in bootstrap.conf.
31675         Prompt that when a tool isn't found, one can define an environment
31676         variable to add to the hardcoded search list.
31678 2013-08-05  Jim Meyering  <meyering@fb.com>
31680         regex: port to non-glibc/lock-using systems
31681         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
31682         system with GNULIB_LOCK would fail due to absence of the
31683         included "glthread/lock.h".  This would affect any package
31684         for which the "lock" module is used only by the regex module,
31685         and not explicitly used.
31686         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
31687         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
31688         Add a dependency on the "lock" module.
31690 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31692         localecharset: make locale_charset thread-safe on Mac OS X
31693         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
31694         instead of MB_CUR_MAX.
31696 2013-07-20  Daiki Ueno  <ueno@gnu.org>
31698         gettext: update to version 0.18.3
31699         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
31700         require AC_PROG_SED to allow user to specify custom sed command when
31701         generating en@quot PO file.
31703 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
31705         bootstrap: use correct source when copying build-aux files
31706         * build-aux/bootstrap (gnulib_extra_files): This variable is
31707         relative to upstream gnulib layout, not downstream.
31709 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
31711         tmpdir: fix bug in VMS port
31712         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
31713         See Steven M. Schweda in
31714         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
31716 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
31718         tmpdir: port to VMS, to // != /, and to long dirs
31719         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
31720         __secure_getenv, so that we're more like the glibc version.
31721         All uses changed.
31722         (path_search): Don't put slash after directory if __VMS.
31723         Problem reported by Steven M. Schweda in
31724         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
31725         Simplify code to add slash; no need for a loop.
31726         Do not remove trailing slash from "//".
31727         Do not assume dlen <= INT_MAX.
31729 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
31731         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
31732         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
31733         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
31734         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
31736         accept4, dup3, pipe2: port to Cygwin
31737         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
31738         * lib/accept4.c (accept4) [O_BINARY]:
31739         * lib/dup3.c (dup3) [O_BINARY]:
31740         * lib/pipe2.c (pipe2) [O_BINARY]:
31741         Use set_binary_mode, not setmode.
31742         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
31743         * modules/binary-io (Depends-on): Remove module indicator.
31744         These last two bits undo the previous change to pipe2 and binary-io.
31746 2013-07-09  Pádraig Brady  <P@draigBrady.com>
31748         mountlist: add support for deallocating returned list entries
31749         * lib/mountlist.c (free_mount_entry): A new exported function
31750         to deallocate a mount list entry.
31751         (read_file_system_list): Refactor to use the new deallocation function.
31752         Suggested by Anton Ovchinnikov.
31754 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
31756         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
31757         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
31758         * lib/stdalign.in.h (_Alignas, _Alignof):
31759         Port to FreeBSD 9.1, and to C11 and C++11.
31760         (_Alignas): Also support ICC.
31761         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
31762         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
31764 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
31766         fnmatch: don't goto over declaration
31767         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
31768         undefined behavior for goto over a declaration.
31769         Problem reported by Charlie Brown in
31770         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
31772         pipe2: decouple from binary-io a bit
31773         This is for Emacs, which needs pipe2 but not binary-io.
31774         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
31775         * modules/binary-io (Depends-on): Add module indicator.
31777 2013-07-03  Eric Blake  <eblake@redhat.com>
31779         mgetgroups: relax license to LGPLv2+
31780         * modules/getugroups (License): Change from GPLv3+.
31781         * modules/mgetgroups (License): Likewise.
31782         * modules/getgroups (License): Change from LGPLv3+.
31784         xalloc-oversized: relax license to LGPLv2+
31785         * modules/xalloc-oversized (License): Change from GPLv3+.
31787         nproc: relax license to LGPLv2+
31788         * modules/nproc (License): Change from LGPLv3+.
31790         bootstrap: honor --no-git
31791         * build-aux/bootstrap: Don't even try to use git when user is
31792         pointing to a static checkout.
31794 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
31796         ignore-value: port to gcc -pedantic
31797         * lib/ignore-value.h (ignore_value):
31798         Port to gcc -pedantic, by using __extension__.
31799         Reindent as per usual gnulib style nowadays.
31800         Simplify GCC version check.
31802 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
31804         extern-inline: port to gcc -std=c89
31805         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
31806         Do not use __gnu_inline__ if pedantic and pre-C99.
31808 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
31810         doc: document extern-inline
31811         * doc/extern-inline.texi: New file.
31812         * doc/gnulib.texi (alloca-opt): Include it.
31813         * m4/extern-inline.m4: Move some comments to documentation,
31814         and others closer to what they describe.
31816         doc: chatter less
31817         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
31818         (updated-stamp): Use it.  This causes 'make' to output just
31819         one file name rather than zillions.
31821         fflush, fseeko: port to musl cross-compiles
31822         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
31823         on some implementation that (1) is not known to be buggy,
31824         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
31825         cross-compiled to so we can't easily check for lack of
31826         conformance.  This is for cross-compiling to musl.
31827         Reported by Rich Felker in
31828         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
31829         * m4/fclose.m4 (gl_FUNC_FCLOSE):
31830         * m4/fflush.m4 (gl_FUNC_FFLUSH):
31831         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
31832         Adjust to above change.
31833         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
31834         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
31835         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
31836         known not to work, or unknown.
31838 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
31840         msvc-inval: port to mingw-w64
31841         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
31842         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
31843         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
31845 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
31847         getcwd-lgpl: port to Tru64
31848         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
31849         Problem reported by Steven M. Schweda in
31850         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
31852         tests: port large-fd POSIX spawn tests to OS X
31853         Problem reported by Daiki Ueno in
31854         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
31855         * tests/test-posix_spawn_file_actions_addclose.c:
31856         * tests/test-posix_spawn_file_actions_adddup2.c:
31857         * tests/test-posix_spawn_file_actions_addopen.c:
31858         Include <limits.h>, for OPEN_MAX, if available.
31859         (big_fd): New static function.
31860         (main): Use it.
31862 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
31864         tests/nap.h: use an adaptive delay to avoid ctime update issues
31865         The recent change in nap.h (5191133e) decreased the probability of lost
31866         races to about a third, however such problems could still be observed
31867         in virtual machines and openSUSE's OBS.
31868         Before, nap() detected the needed time once empirically and then used
31869         that delay (together with a small correction multiplier) in further
31870         calls.  This problem has been reported and discussed several times,
31871         including guesses about possible kernel issues:
31872         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
31873         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
31874         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
31875         http://bugs.gnu.org/12820
31876         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
31877         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
31878         Now, nap() avoids the race alltogether by verifying on a reference
31879         file whether a timestamp difference has happened.
31880         * tests/nap.h (nap_fd): Define file descriptor variable for the
31881         witness file.
31882         (nap_works): Change return value to bool.  Change passing
31883         the old file's status by value instead of by reference as this function
31884         does no longer update that timestamp; rename the function argument from
31885         st to old_st.  Remove the local variables cdiff and mdiff because that
31886         function now returns true/false instead of the precise delay.
31887         (guess_delay): Remove function.
31888         (clear_tmp_file): Add new function to close and unlink the witness file.
31889         (nap): Instead of re-using the delay which has been calculated during
31890         the first call, avoid the race by actually verifying that a timestamp
31891         difference can be observed on the current file system.  Use an adaptive
31892         approach for the delay to minimize execution time.  Assert that the
31893         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
31894         = 2^31 - 1 = 2.1s.
31895         Use atexit to call clear_tmp_file when the process terminates.
31897 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
31899         sig2str: port to C++
31900         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
31901         Reported by Daniel J Sebald in
31902         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
31904 2013-05-30  Eric Blake  <eblake@redhat.com>
31906         docs: mention cygwin shortcoming in <sys/un.h>
31907         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
31909         vasnprintf: silence mingw compiler warning
31910         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
31912 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
31914         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
31915         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
31916         This fixes a porting bug I recently reintroduced in regex, and
31917         some other instances that I discovered while testing the fix.
31918         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
31919         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
31920         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
31921         with an empty argument if this is a pedantic pre-C99 GCC.
31922         * lib/verify.h: Do not use _Static_assert if this is a pedantic
31923         pre-C11 GCC.
31925         regex: adapt to locking regime instead of depending on pthread
31926         Instead of depending on pthread, adapt to whatever thread
31927         modules are in use.  Problem reported by Ludovic Courtès in
31928         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
31929         and by Mats Erik Andersson in
31930         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
31931         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31932         Support either the 'lock' module, or the 'pthread' module, or
31933         no module.
31934         (lock_lock, lock_unlock): New macros.
31935         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
31936         * modules/lock, modules/pthread (configure.ac): Add module indicator.
31937         * modules/regex (Depends-on): Remove pthread.
31939 2013-05-22  Eric Blake  <eblake@redhat.com>
31941         getgroups: document portability issues
31942         * doc/glibc-functions/initgroups.texi (initgroups): Mention
31943         multithread safety.
31944         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
31945         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
31946         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
31947         getugroups.
31948         * doc/posix-functions/getgroups.texi (getgroups): Mention
31949         multithread safety and mgetgroups.
31951 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
31953         test-lchown, test-chown: also skip test if chown fails with EPERM
31954         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
31955         skip this test, to handle FAT file systems.
31956         * tests/test-chown.h (test_chown): Likewise.
31958 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
31960         regex: fix dfa race in multithreaded uses
31961         Problem reported by Ludovic Courtès in
31962         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
31963         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
31964         New macros.  All uses of __libc_lock_define, __libc_lock_init
31965         changed to use the first two of these.
31966         (__libc_lock_lock, __libc_lock_unlock): New macros, for
31967         non-glibc platforms.
31968         (struct re_dfa_t): Define the lock unconditionally.
31969         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
31970         '#ifdef _LIBC"s.
31971         * modules/regex (Depends-on): Add pthread, if we use the
31972         included regex.
31974         * lib/regcomp.c: Do actions that are not needed for glibc,
31975         but may be needed elsewhere.
31976         (regfree, re_compile_internal): Destroy the lock.
31977         (re_compile_internal): Check for lock-initialization failure.
31979         malloca: port to compilers that reject size-zero arrays
31980         This fixes a bug introduced in my previous patch.
31981         * lib/malloca.c (struct preliminary_header): Use an int
31982         rather than a character array of size int; that's simpler.
31983         (struct header): Remove, replacing with ...
31984         (union header): New type.  This avoids the need for declaring a
31985         character array of size zero, which is not allowed on some platforms.
31986         All uses changed.
31988 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
31990         parse-datetime, tests: don't use "string" + int
31991         Recent versions of 'clang' complain about C source code that
31992         uses expressions of the form '"string literal" + integer',
31993         I guess on the theory that it's confusing for readers who are
31994         used to C++.  On those grounds I suppose it's OK to make this
31995         minor style change.
31996         * lib/parse-datetime.y (parse_datetime):
31997         * tests/test-fchdir.c (main):
31998         * tests/test-snprintf-posix.h (test_function):
31999         * tests/test-snprintf.c (main):
32000         * tests/test-vasnprintf-posix.c (test_function):
32001         * tests/test-vasnprintf.c (test_function):
32002         * tests/test-vsnprintf.c (main):
32003         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
32004         Rewrite '"str" + E' to '&"str"[E]'.
32006 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
32008         argmatch: port to C++
32009         * lib/argmatch.h [__cplusplus]: Add extern "C".
32011         argp: typo fix
32012         * lib/argp-help.c: Typo in comment.
32014 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32016         manywarnings: update for GCC 4.8.0
32017         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
32018         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
32019         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
32020         -Wmissing-noreturn, as they are duplicates of other warnings.
32021         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
32022         was documented to be flaky in earlier versions of GCC.
32024         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
32025         * tests/test-spawn.c (main):
32026         * tests/test-sys_socket.c (main):
32027         * tests/test-sys_wait.c (main):
32028         Don't have a switch value that isn't covered by a case.
32030         getaddrinfo-tests: port --enable-gcc-warnings to clang
32031         * tests/test-getaddrinfo.c (simple):
32032         Avoid casts from looser to stricter-aligned pointers.
32034         thread: port --enable-gcc-warnings to clang
32035         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
32036         Include <signal.h>, to pacify a warning about pthread_sigmask.
32038         stdio: use __REDIRECT for fwrite, fwrite_unlocked
32039         * lib/stdio.in.h (fwrite):
32040         When working around bug 11959, use __REDIRECT rather than '#define
32041         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
32042         fix the -Wunused-value issue with clang, and it works with GCC too.
32043         Problem with targeting reported by Eric Blake in
32044         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
32045         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
32046         debugging the fwrite issue.
32048         stdio: port --enable-gcc-warnings to clang
32049         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
32050         since the GCC workaround for fwrite does not pacify clang.
32052         sig2str: port --enable-gcc-warnings to clang
32053         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
32055         obstack: port --enable-gcc-warnings to clang
32056         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
32057         Avoid casts from looser to stricter-aligned pointers.
32059         memchr2: port --enable-gcc-warnings to clang
32060         * lib/memchr2.c (memchr2):
32061         Avoid casts from looser to stricter-aligned pointers.
32063         mbsstr: port --enable-gcc-warnings to clang
32064         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
32065         Avoid casts from looser to stricter-aligned pointers.
32067         malloca: port --enable-gcc-warnings to clang
32068         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
32069         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
32071         inttostr: port --enable-gcc-warnings to clang
32072         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
32074         warnings: port to clang
32075         Problem reported by Daniel P. Berrange via Eric Blake in
32076         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
32077         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
32078         (gl_WARN_ADD): Use it.
32080 2013-05-11  Jim Meyering  <meyering@fb.com>
32082         quotearg: do not read beyond end of buffer
32083         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
32084         end of an ARG for which no length was specified.  With an N-byte
32085         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
32086         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
32087         via coreutils' misc/sort-debug-keys.sh test and detected by running
32088         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
32089         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
32090         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
32091         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
32092         characters correctly."
32094 2013-05-11  Daiki Ueno  <ueno@gnu.org>
32096         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
32097         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
32098         compilation target is Mac OS X 10.6.
32099         Problem reported by parafin and Andoni Morales in
32100         <http://savannah.gnu.org/bugs/?37844> and
32101         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
32103 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32105         mkdir-p: remove assumptions about umask and mode
32106         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
32107         umask is 0, or that MODE is a subset of MODE_BITS.
32109 2013-05-10  Eric Blake  <eblake@redhat.com>
32111         maint.mk: catch more abuse of HAVE_DECL in syntax-check
32112         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
32114 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
32116         deps: require Automake >= 1.9.6 in generated Makefile fragments
32118         That is the same minimal version required in the DEPENDENCIES file.
32119         Moreover, the old code generated a requirement of Automake >= 1.5,
32120         and that is an insanely outdated version.
32122         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
32123         * tests/havelib/rpathlx/Makefile.am: Likewise.
32124         * tests/havelib/rpathly/Makefile.am: Likewise.
32125         * tests/havelib/rpathlyx/Makefile.am: Likewise.
32126         * tests/havelib/rpathlz/Makefile.am: Likewise.
32127         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
32128         * tests/havelib/rpathx/Makefile.am: Likewise.
32129         * tests/havelib/rpathy/Makefile.am: Likewise.
32130         * tests/havelib/rpathz/Makefile.am: Likewise.
32132 2013-05-08  Eric Blake  <eblake@redhat.com>
32134         bootstrap: AC_INIT may have more than four parameters
32135         * build-aux/bootstrap (extract_package_name): Correctly extract
32136         non-empty tarname field.  Avoid range in regex.
32137         Based on a report by Sami Kerola <kerolasa@iki.fi>.
32139 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
32141         qacl: port to MS-Windows port of GNU Emacs
32142         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
32143         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
32144         port of GNU Emacs.  Problem reported by Eli Zaretskii in
32145         <http://bugs.gnu.org/14295#14>.
32147 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
32149         acl: include quote.h
32150         * lib/copy-acl.c: Include quote.h.
32151         * lib/set-acl.c: Likewise.
32153 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
32155         fchownat, renameat, unlinkat: update statat dependencies
32156         These modules use statat and lstatat, not fstatat; so depend on
32157         the statat module, which was split out recently from fstatat.
32158         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
32159         * modules/renameat: Likewise.  Also delete fstat.
32160         URL: http://bugs.gentoo.org/468790
32162 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
32164         Assume gnulib is checked out from Git, not CVS
32166         In fact, access to the gnulib repository through CVS has been
32167         disabled, or more precisely, got broken and was never restored; see:
32168         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
32170         Note that support for CVS is not removed completely and unthinkingly
32171         by this change: only support for CVS checkouts of gnulib itself is
32172         removed.  For example, the 'bootstrap' script still cater to .cvsingore
32173         files and CVS directories, for the benefit of those poor gnulib clients
32174         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
32176         * gnulib-tool: Simplify accordingly.
32177         * posix-modules: Likewise.
32178         * MODULES.html.sh: Likewise.
32179         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
32180         repository.
32181         * doc/gnulib-intro.texi: Likewise.
32182         * doc/gnulib-readme.texi: Likewise.
32183         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
32184         sample '.gitignore' file rather than a sample '.cvsignore'.
32185         * NEWS: Update.
32186         * m4/extensions.m4: While at it, remove a comment mistakenly referring
32187         to "CVS Autoconf" rather than "git Autoconf".
32189 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
32191         utimensat-tests, etc.: try to fix some races
32192         Problem reported by Bernhard Voelker in
32193         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
32194         I don't know whether this patch fixes that race condition, but it
32195         fixes *some* race conditions, so it should be a win.
32196         * modules/chown-tests (Depends-on):
32197         * modules/fchownat-tests (Depends-on):
32198         * modules/fdutimensat-tests (Depends-on):
32199         * modules/futimens-tests (Depends-on):
32200         * modules/lchown-tests (Depends-on):
32201         * modules/stat-time-tests (Depends-on):
32202         * modules/utimens-tests (Depends-on):
32203         * modules/utimensat-tests (Depends-on):
32204         Depend on nanosleep, not usleep.
32205         * modules/chown-tests (test_chown_LDADD):
32206         * modules/lchown-tests (test_lchown_LDADD):
32207         * modules/stat-time-tests (test_stat_time_LDADD):
32208         New macro.
32209         * modules/fchownat-tests (test_fchownat_LDADD):
32210         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
32211         * modules/futimens-tests (test_futimens_LDADD):
32212         * modules/utimens-tests (test_utimens_LDADD):
32213         * modules/utimensat-tests (test_utimensat_LDADD):
32214         Add $(LIB_NANOSLEEP).
32215         * modules/stat-time-tests (Files): Add tests/nap.h.
32216         * tests/nap.h: Include <limits.h>, for INT_MAX.
32217         (lt_mtime): Remove.
32218         (diff_timespec): New function.
32219         (get_stat): Rename from get_mtime.  All callers changed.
32220         (nap_works): Determine the needed delay by inspecting the
32221         file system's timestamp jumps; this should be more reliable.
32222         Look at both mtime and ctime, and take the maximum of the two jumps.
32223         (nap_works, guess_delay):
32224         Return a nanosecond count, not a microsecond count.
32225         All callers changed.
32226         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
32227         failure.
32228         (nap): Multiply the guess by 1.125, to accommodate the case where
32229         the file system's clock is a bit slower than nanosleep's clock.
32230         * tests/test-stat-time.c (BASE): New macro.
32231         Include nap.h.
32232         (nap): Remove; nap.h now defines this.  This removes a duplicate
32233         implementation of 'nap'.
32235         utimens, utimensat: work around Solaris UTIME_OMIT bug
32236         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
32237         Linux kernel 2.6.32 does.  Work around it in the same way.
32238         * doc/posix-functions/futimens.texi (futimens):
32239         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
32240         * lib/utimens.c (fdutimens, lutimens):
32241         * lib/utimensat.c (rpl_utimensat): Work around the bug.
32243         gettext: now it's your responsibility to add -I$(top_builddir)/intl
32244         Formerly, it was your responsibility to do this for all Makefile.ams
32245         other than Gnulib's.  Now it's your responsibility to do it for
32246         Gnulib's Makefile.am, too.
32247         * NEWS: Document this.
32248         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
32250         acl: include errno.h to get errno
32251         Reported by Daiki Ueno in
32252         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
32253         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
32255 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
32257         tests: don't assume getdtablesize () <= 10000000
32258         * modules/cloexec-tests:
32259         * modules/dup2-tests:
32260         * modules/dup3-tests:
32261         * modules/nonblocking-tests:
32262         * modules/posix_spawn_file_actions_addclose-tests:
32263         * modules/posix_spawn_file_actions_adddup2-tests:
32264         * modules/posix_spawn_file_actions_addopen-tests:
32265         * modules/unistd-safer-tests:
32266         Depend on the getdtablesize module.
32267         * tests/test-cloexec.c:
32268         * tests/test-dup-safer.c:
32269         * tests/test-dup2.c:
32270         * tests/test-dup3.c:
32271         * tests/test-fcntl.c:
32272         * tests/test-nonblocking.c:
32273         * tests/test-posix_spawn_file_actions_addclose.c:
32274         * tests/test-posix_spawn_file_actions_adddup2.c:
32275         * tests/test-posix_spawn_file_actions_addopen.c:
32276         Don't assume getdtablesize () <= 10000000.
32278 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
32280         extern-inline: work around bug in Sun c99
32281         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32282         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
32284 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
32286         qacl: new module, broken out from the acl module
32287         This is for GNU Emacs, which wants the acl functions but does
32288         not want 'error' invoked when they fail.
32289         * lib/acl-internal.h: Do not include error.h, quote.h.
32290         (ENOSYS, ENOTSUP): Remove; no longer needed.
32291         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
32292         * lib/acl.h: Include <stdbool.h>.
32293         (acl_errno_valid): New function.
32294         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
32295         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
32296         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
32297         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
32298         (ACL_INTERNAL_INLINE): Remove; no longer needed.
32299         * lib/file-has-acl.c (file_has_acl):
32300         * lib/qcopy-acl.c (qcopy_acl):
32301         * lib/qset-acl.c (qset_acl):
32302         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
32303         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
32304         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
32305         lib/file-has-acl.c, m4/acl.m4 to qacl module.
32306         Add lib/set-acl.c.
32307         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
32308         Add qacl.
32309         (configure.ac): Move gl_FUNC_ACL to qacl module.
32310         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
32311         Rename set-mode-acl.c to set-acl.c.
32312         * lib/acl-errno-valid.c: New file.
32313         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
32314         copy_acl function remains in copy-acl.c.
32315         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
32316         (_): Remove; not needed.
32317         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
32318         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
32319         * modules/qacl: New file, moved from the old modules/acl.
32320         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
32321         Remove set-mode-acl.c, copy-acl.c.
32322         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
32324         alignof, intprops, malloca: port better to IBM's C compiler
32325         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
32326         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
32327         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
32329 2013-04-25  Daiki Ueno  <ueno@gnu.org>
32331         wctype-h: fix gettext link error on mingw
32332         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
32333         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
32334         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
32335         rpl_towupper and rpl_towupper.
32337 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
32339         regex-tests, regex: allow glibc re_search behavior
32340         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
32341         re_search input data to make the multi-character collating element
32342         in it clearly visible, and treat re_search return code 0 as valid.
32343         * m4/regex.m4 (gl_REGEX): Likewise.
32345 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32347         stdalign: doc fix
32348         * doc/posix-headers/stdalign.texi (stdalign.h):
32349         Gnulib doesn't support '_Alignof expr'.
32351 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32353         stdalign: port to stricter ISO C11
32354         ISO C11 says that _Alignof's operand must be a parenthesized type.
32355         Problem reported by Eli Zaretskii in
32356         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
32357         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
32358         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
32360 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
32362         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
32363         Problem reported by Marco Atzeri in
32364         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
32365         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
32366         Simply delegate to the system <sys/select.h> in this case too.
32367         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
32368         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
32369         be needed on Solaris either.
32370         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
32371         Simply delegate to the system <sys/time.h> in this case.
32373 2013-03-19  Karl Berry  <karl@gnu.org>
32375         * build-aux/gnupload: check for erroneous (with gnupload) use of
32376         ftp-upload.gnu.org, tweak help.
32378 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32380         copy-file, rpmatch: fix problems found by cppcheck
32381         Reported by Arno Onken in
32382         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
32383         * lib/rpmatch.c (try): Fix memory leak.
32384         * lib/copy-file.c: Include "ignore-value.h".
32385         (qcopy_file_preserving): Ignore chown value.
32386         * modules/copy-file (Depends-on): Add ignore-value.
32388 2013-01-27  Jim Meyering  <jim@meyering.net>
32390         prefix-gnulib-mk: give better diagnostics
32391         * build-aux/prefix-gnulib-mk: Don't just "die".
32392         Give better diagnostics upon failure.
32394 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
32396         putenv: port to Solaris 10
32397         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
32398         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
32399         is not what is wanted here.
32400         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
32401         declaration, not for its existence.
32403 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
32405         mktime: fix configure typo
32406         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
32408 2013-03-12  Eric Blake  <eblake@redhat.com>
32410         regex-tests: skip UTF-8 test on mingw
32411         * modules/regex-tests (Depends-on): Add localcharset.
32412         * tests/test-regex.c (main): Use it to skip test on mingw.
32414 2013-03-11  Eric Blake  <eblake@redhat.com>
32416         tests: make it easier to bypass alarm time in debugger
32417         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
32418         * tests/test-memmem.c (main): Likewise.
32419         * tests/test-passfd.c (main): Likewise.
32420         * tests/test-ptsname.c (main): Likewise.
32421         * tests/test-ptsname_r.c (main): Likewise.
32422         * tests/test-strcasestr.c (main): Likewise.
32423         * tests/test-strstr.c (main): Likewise.
32425         regex: port to mingw's recent addition of undeclared alarm
32426         * doc/posix-functions/alarm.texi (alarm): Document that alarm
32427         exists but still doesn't work in newer mingw.
32428         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
32429         not existence.  Ensure SIGALRM is not trapped.
32430         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
32431         * m4/regex.m4 (gl_REGEX): Likewise.
32432         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
32433         * tests/test-regex.c (main): Use correct probe for alarm.
32435         putenv: avoid compilation warning on mingw
32436         * lib/putenv.c (_unsetenv): Protect variable declaration.
32437         (putenv): Fix indentation.
32439 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
32441         unistd: don't prevent Tru64 Unix from using gnulib strtod.
32442         * lib/unistd.in.h: be careful not to include un-needed system
32443         stdlib.h from here, because that prevents gnulib stdlib.h from
32444         defining rpl_strtod correctly.
32446 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
32448         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
32449         changesets, but for the 'precision 0' test.
32450         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32451         round-to-even, since POSIX says rounding is implementation-defined
32452         and OS X 10.8.2 rounds 1.51 to 1 here.
32454         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
32455         changeset.
32456         * tests/test-vasprintf-posix.c (test_function): Don't insist on
32457         round-to-even, since POSIX says rounding is implementation-defined
32458         and OS X 10.8.2 rounds 1.5 to 1 here.
32460 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
32462         vasnprintf-posix-tests: allow rounding 1.5 to 1
32463         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
32464         round-to-even, since POSIX says rounding is implementation-defined
32465         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
32466         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
32468         bootstrap: port to FreeBSD
32469         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
32470         that treat '--' differently.  Reported by Mats Erik Andersson in
32471         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
32473 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
32475         regex: rename remaining __attribute calls to __attribute__.
32476         2012-02-25 changed definition of __attribute, but left some uses
32477         unchanged, preventing compilation of regex module on most non-gcc
32478         environments.
32479         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
32480         (lookup_collation_sequence_value, build_range_exp)
32481         (build_collating_symbol): Set attributes with newly renamed
32482         __attribute__ decorator.
32483         * lib/regex_internal.c (re_string_peek_byte_case)
32484         (re_node_set_compare, re_node_set_contains): Likewise.
32485         * lib/regexec.c (acquire_init_state_context): Likewise.
32487 2013-03-06  Bruno Haible  <bruno@clisp.org>
32489         execute: Revert last change, but use a different condition.
32490         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
32491         on Windows.
32493 2013-03-05  Eric Blake  <eblake@redhat.com>
32495         execute: drop dead code
32496         * lib/execute.c (nonintr_close, nonintr_open): Delete.
32498 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
32500         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
32501         * m4/non-recursive-gnulib-prefix-hack.m4
32502         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
32503         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
32504         <http://bugs.gnu.org/10305#237>.
32506 2013-03-04  Eric Blake  <eblake@redhat.com>
32508         test-getsockopt: avoid compiler warning
32509         * tests/test-getsockopt.c (includes): Ensure close is declared.
32511 2013-03-02  Bruno Haible  <bruno@clisp.org>
32513         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
32514         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
32516 2013-03-02  Bruno Haible  <bruno@clisp.org>
32518         gettext: Update to version 0.18.2.
32519         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
32520         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
32521                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
32523 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
32525         regex: merge patches from libc
32527         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32528         * lib/regex_internal.h (__attribute__): Rename from __attribute.
32529         All uses changed.
32530         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
32531         (re_string_wchar_at, re_string_elem_size_at):
32532         Mark function as possibly unused.
32534         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
32535         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
32536         elements compare against the byte sequence of it, not its name.
32538 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
32540         putenv: port better to native Windows
32541         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32542         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
32543         (_unsetenv): Use _putenv if available.
32544         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
32545         a bit less likely to cause damage.
32546         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
32547         Fix the wrong value with SetEnvironmentVariable.
32548         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
32549         code better.
32551 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32553         regex: ignore old-style-definition warnings
32554         * lib/regex.c: Add pragma to ignore these warnings.
32555         Problem reported for GNU tar by Pavel Raiskup.
32557 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32559         getcwd: support coreutils better
32560         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
32561         but this might not be correct in coreutils, which disables
32562         the raw decl checks.  Problem reported by Nagendra in
32563         <http://bugs.gnu.org/10305#192>.
32564         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
32565         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
32566         Test the getcwd function, not any macro, since getcwd.c wants the
32567         function.
32568         * m4/getcwd.m4 (gl_FUNC_GETCWD):
32569         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
32570         compile, as might happen if there's a macro but no function.
32572         strtod: support coreutils better
32573         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
32574         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
32575         disables the raw decl checks.  This assumes there is an underlying
32576         strtod, but that's a safe assumption these days.
32577         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
32579         mountlist: port to HP NonStop
32580         Reported by Joachim Schmitz in
32581         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
32582         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
32583         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
32585 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
32587         extern-inline: avoid compilation error with HP-UX cc
32588         Reported by Richard Lloyd in
32589         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
32590         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
32591         Suppress extern inline with HP-UX cc.  This should be safe,
32592         though it may hurt performance.  Perhaps someone with some HP-UX
32593         experience can come up with a higher-performance fix.
32595 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
32597         putenv: fix heap corruption with mixed putenv/_putenv
32598         Problem reported by Michael Goffioul in
32599         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
32600         * lib/putenv.c (putenv) [HAVE__PUTENV]:
32601         Rely on _putenv to allocate the new environment.
32602         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
32603         * modules/putenv (configure.ac): Use it.
32605 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
32607         unsetenv etc.: port to Solaris 11 + GNU Emacs
32608         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
32609         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
32610         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
32611         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
32612         idea but is too painful to fix right now), and without this gnulib
32613         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
32614         compiling unsetenv.c on Solaris 11.  Fix the problem for
32615         unsetenv.c, and fix other similar occurrences.
32617 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
32619         secure_getenv: fix C++ declaration typo
32620         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
32621         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
32622         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
32624 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
32626         careadlinkat: stop exporting careadlinkatcwd
32627         Only Emacs used it directly, and Emacs no longer needs it.
32628         * NEWS: Document this simplification.
32629         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
32630         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
32631         for readlink.
32632         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
32633         Don't include stdlib.h; no longer needed.
32634         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
32635         * lib/relocwrapper.c: Adjust comment to match new dependencies.
32636         * modules/areadlink (Depends-on): Add readlink.
32637         (Maintainer): Add self.
32638         * modules/careadlinkat (Depends-on): Remove readlink.
32640         extensions: port better to HP-UX
32641         This is merged from git Autoconf.
32642         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32643         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
32644         so that it's compatible with the value used when compiling.
32646         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
32647         Problem reported by Mats Erik Andersson in
32648         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
32649         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32650         openpty function exists, not merely when we intend to replace it.
32651         This corrects the 2013-01-31 patch, which mistakenly defined
32652         HAVE_OPENPTY even on hosts that lacked it.
32654 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
32656         secure_getenv: fix include typo
32657         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
32659         secure_getenv: port better to FreeBSD and Solaris
32660         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
32661         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
32662         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
32663         This works better on BSDish platforms.
32664         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
32665         Test for issetugid if __secure_getenv is missing.
32667 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
32669         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
32670         Some of these changes are merged in from git Autoconf.
32671         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
32672         When deciding whether to define _XOPEN_SOURCE, inspect the
32673         preprocessor macro __hpux instead of the more-heavyweight
32674         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
32675         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
32676         as the key for __EXTENSIONS__.
32678         unistd: avoid namespace pollution on non-glibc systems
32679         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
32680         This avoids namespace pollution on non-glibc systems, by causing
32681         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
32682         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
32683         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
32685 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
32687         tmpdir: use secure_getenv
32688         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
32689         Define to secure_getenv, not getenv.
32690         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
32691         as that's now secure_getenv's job.
32692         * modules/tmpdir (Depends-on): Add secure_getenv.
32694         tempname: use secure_getenv
32695         * lib/tempname.c (__secure_getenv) [!_LIBC]:
32696         Define to secure_getenv, not getenv.
32697         * modules/tempname (Depends-on):
32698         Add secure_getenv.
32700         secure_getenv: new module
32701         * MODULES.html.sh (Extra functions based on ANSI C 89):
32702         Add secure_getenv.
32703         * doc/glibc-functions/secure_getenv.texi: New file.
32704         * doc/gnulib.texi: Include it.
32705         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
32706         New files.
32707         * lib/stdlib.in.h (secure_getenv): New decl.
32708         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
32709         * modules/stdlib (stdlib.h):
32710         Add secure_getenv checks.
32712 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
32714         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
32715         Reported for OS X 10.8.2 by Assaf Gordon in
32716         <http://bugs.gnu.org/13516>.
32717         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
32718         !HAVE_OPENAT && !HAVE_FDOPENDIR.
32719         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
32720         so that they can be kept in sync more easily.  Avoid PATH_MAX
32721         test on the Hurd.  Sync from test-getcwd.c for errno tests after
32722         mkdir or chdir failure.
32723         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
32724         lib/getcwd.c.
32725         (test_abort_bug): Do not test for the deep directory bug unless we
32726         have openat support.  Avoid PATH_MAX test on the Hurd.
32728         regex-tests, regex: fix bug: memset undeclared
32729         * tests/test-regex.c: Don't include regex.h twice.  Include
32730         string.h, to declare memset.  Christensen's report also mentioned
32731         this issue.
32732         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
32733         test-regex.c, to avoid future problems like this.  Remove
32734         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
32735         twice.
32737         regex-tests: fix link errors on older Solaris
32738         These need to link with @LIBINTL@ to get libintl_gettext.
32739         Problem reported by Tom G. Christensen in
32740         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
32741         * modules/regex-tests (test_regex_LDADD): New macro.
32743 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
32745         regex-tests: new module
32746         * modules/regex-tests, tests/test-regex.c: New files.
32748         regex: fix off-by-one error in configure test
32749         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
32751 2013-01-31  Eric Blake  <eblake@redhat.com>
32753         regex: avoid infinite configure test
32754         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
32756 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
32758         openpty: fix bug where HAVE_OPENPTY wasn't defined
32759         See the thread starting at:
32760         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
32761         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
32762         openpty function exists, not merely when we intend to replace it.
32764 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
32766         sys_time: port to Solaris 2.6
32767         There is a circularity problem on Solaris 2.6, where <time.h> includes
32768         <sys/time.h> for struct timespec.  The include nesting is gnulib
32769         <time.h>, system <time.h>, gnulib <sys/time.h>, system
32770         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
32771         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
32772         <sys/siginfo.h>; the last, innermost file needs struct
32773         timestruc_t, which is defined in <sys/time.h>, which has not been
32774         fully parsed.  Problem reported by Tom G. Christensen in
32775         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
32776         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
32777         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
32778         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
32779         uses split double-inclusion guards.
32781 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
32783         regex: test for buffer overrun
32784         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
32785         for the just-fixed regex bug.
32787 2013-01-29  Andreas Schwab  <schwab@suse.de>
32789         regex: fix buffer overrun in regexp matcher [BZ #15078]
32790         * lib/regexec.c (extend_buffers): Add parameter min_len.
32791         (check_matching): Pass minimum needed length.
32792         (clean_state_log_if_needed): Likewise.
32793         (get_subexp): Likewise.
32795 2013-01-28  Pádraig Brady  <P@draigBrady.com>
32797         mountlist: don't consider "devtmpfs" as dummy
32798         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
32799         as there is storage associcated with it.
32801 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
32803         futimens-tests, utimens-tests: Depend on gettext.
32804         This works around a problem introduced in my 2013-01-12 patch,
32805         which added @LIBINTL@ to these modules.
32806         * modules/futimens-tests (Depends-on):
32807         * modules/utimens-tests (Depends-on): Add gettext.
32809 2013-01-26  Eric Blake  <eblake@redhat.com>
32811         test-getpeername: fix typo
32812         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
32814 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
32816         bootstrap: remove the need for a sorted .gitignore file
32817         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
32818         rename to insert_if_absent(), so that we don't need or generate
32819         a sorted .gitignore file.  We do require a .gitignore with no
32820         existing duplicate entries and enforce that.
32821         (sort_patterns): Remove this function as we now use the simpler
32822         technigue of inserting blacklist entries at the top of the file,
32823         assuming gnulib won't be inserting !whitelist entries.
32825 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
32827         readlinkat: don't depend on gl_FUNC_OPENAT
32828         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
32829         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
32830         renameat.m4, symlinkat.m4; but one thing at a time.
32832         statat: new module, split out from fstatat
32833         GNU Emacs needs the POSIX-specified fstatat, but not the
32834         gnulib-specified statat and lstat.  Split the latter two into a
32835         new module 'statat'.
32836         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
32837         * lib/openat.h, lib/statat.c (STATAT_INLINE):
32838         Rename from FSTATAT_INLINE. All uses changed.
32839         * modules/fstatat (Files): Remove lib/statat.c.
32840         (gl_MODULE_INDICATOR([fstatat])): Remove.
32841         (lib_SOURCES): Remove.
32842         (Maintainer): Add self.
32843         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
32844         * tests/test-fstatat.c (BASE): Don't define if already defined.
32845         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
32847 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32849         tests: don't assume fd 99 is closed
32850         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
32851         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
32852         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
32853         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
32854         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
32855         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
32856         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
32857         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
32858         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
32859         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
32860         * tests/test-fwrite.c, tests/test-getpeername.c:
32861         * tests/test-getsockname.c, tests/test-getsockopt.c:
32862         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
32863         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
32864         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
32865         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
32866         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
32867         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
32868         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
32869         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
32870         * tests/test-unlinkat.c, tests/test-unlockpt.c:
32871         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
32872         Close file descriptor 99, instead of assuming it's already closed.
32874 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
32876         stpncpy: port to OS X 10.8
32877         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
32878         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
32880 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32882         unistd: port to recent mingw
32883         * lib/unistd.in.h: Remove special invocation convention for mingw,
32884         which breaks for the latest mingw version.  See John W. Eaton in
32885         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
32887         largefile: port better to Mac OS X 10.5
32888         This patch is backported from Autoconf git.
32889         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
32890         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
32891         with ino_t size being different for configuration time versus
32892         build/run time.  Problem reported by PHO in
32893         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
32895 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32897         doc: clarify -Werror
32898         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
32899         clarify that it's intended for developers, not for ordinary builds,
32900         and mention --enable-gcc-warnings as one possible use.
32902 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
32904         stdint: fix build with Android's Bionic fox x86
32905         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
32906         was already included as _SSIZE_T_DEFINED_ might also be defined
32907         in include/machine/_types.h, which is included by stdio.h
32909 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
32911         net_if-tests: port to Solaris 7 + GCC 3.4.6
32912         Problem reported by Tom G. Christensen in
32913         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
32914         * tests/test-net_if.c (ni): Move to next the code that uses it,
32915         so that it's declared only if needed.
32917 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
32919         net_if-tests: port to older Solaris
32920         Problem reported by Tom G. Christensen in
32921         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32922         * modules/net_if-tests (NET_IF_LIB): New substitution.
32923         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
32924         (HAVE_IF_NAMEINDEX): New C macro.
32925         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
32927         system-quote-tests: port to older Solaris
32928         Problem reported by Tom G. Christensen in
32929         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32930         * tests/test-system-quote-child.c (fopen, fread): Undef.
32932         c-xvasprintf etc.: fix link errors on older Solaris
32933         These need to link with @LIBINTL@ to get libintl_gettext.
32934         Problem reported by Tom G. Christensen in
32935         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
32936         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
32937         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
32938         * modules/futimens-tests (test_futimens_LDADD):
32939         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
32941 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
32943         locale: port to Solaris 2.6 and 7 + GNU gettext
32944         * lib/locale.in.h: Just include_next <locale.h> when
32945         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
32946         when combining the localename module with GNU gettext 0.18.2.
32947         Problem reported by Tom G. Christensen in
32948         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
32950 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
32952         stdlib: port to Solaris 2.6
32953         Also, the code worked on Solaris 7 through 9 only by accident.
32954         Problem reported by Tom G. Christensen in
32955         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
32956         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
32957         simply include the system stdlib.h.
32958         * lib/getopt.in.h (__need_system_stdlib_h):
32959         * lib/pthread.in.h (__need_system_stdlib_h):
32960         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
32961         Define when including <stdlib.h>, to avoid problems at least for
32962         the pthread case on Solaris 2.6 and 7.  These .h files can get by
32963         with the system stdlib.h.
32965 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
32967         doc: update main copyright year
32968         * doc/gnulib.texi: Update copyright date.
32970         doc: improve ISO 8601 discussion
32971         * doc/parse-datetime.texi (Combined date and time of day items):
32972         Specify more carefully what formats are supported and what is
32973         done with excess precision.
32975 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
32977         doc: avoid small caps
32978         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
32979         they're more trouble than they're worth.  Suggested by Karl Berry
32980         in <http://bugs.gnu.org/13360>.
32982         regex: conform to strict C
32983         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
32984         From Aharon Robbins.
32986         gnulib-tool: fix incompatibility with autopoint 0.18.2
32987         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
32988         Problem reported by Tom G. Christensen in
32989         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
32991 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
32993         fprintftime: bring back and reword fwrite comment
32994         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
32996         stdio: remove now-unnecessary stdio.c
32997         Since stdio.in.h no longer uses inline functions, we no longer
32998         need to compile the extern versions.
32999         * lib/stdio.c: Remove.
33000         * modules/stdio (Files): Remove lib/stdio.c.
33001         (lib_SOURCES): Remove.
33003         unicodeio: depend on stdio, not ignore-value
33004         * lib/unicodeio.c: Do not include ignore-value.h.
33005         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
33006         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
33008         fprintftime: depend on stdio, not ignore-value
33009         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
33010         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
33011         since the stdio module arranges to silence that warning now.
33012         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
33014 2012-10-04  Simon Josefsson  <simon@josefsson.org>
33016         stdint-tests: Fix expanded-before-required-warning.
33017         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
33019 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
33021         fwrite: silence __wur only for older glibc versions
33022         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
33023         This will help us remove this workaround some time in the far future.
33025 2013-01-03  Eric Blake  <eblake@redhat.com>
33027         fwrite: silence __wur without using inline
33028         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
33029         just gcc, and in a way that avoids inline issues.
33030         * modules/stdio (Depends-on): Drop extern-inline.
33032 2013-01-03  Jim Meyering  <jim@meyering.net>
33034         update-copyright: avoid copyright notice date corruption
33035         Given a sequence of copyright year numbers in which the final
33036         one was a two-digit number that happened to be a substring of
33037         a preceding four-digit year number, we would mistakenly update
33038         the substring (from two- to four-digit) rather than the two-digit
33039         number at the end, which, combined with the addition of the current
33040         4-digit year number would yield two 5-digit year numbers, e.g.,
33041         here, it would convert the first "99" to "1999, 2013" rather than
33042         the final one:
33043           1991, 99
33044           11999, 20131, 1999
33045         * build-aux/update-copyright: Tighten a regexp.
33046         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
33047         Reported by Joseph Myers in
33048         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
33050 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
33052         regex: omit needless signed-pointer casts
33053         * lib/regcomp.c (build_charclass, build_charclass_op):
33054         Use char *, not unsigned char *, for class name and extra.
33055         The char values are always nonnegative so there's no need to
33056         insist on unsigned char * here, and using char * removes the need
33057         for casts.  Reported by Aharon Robbins in
33058         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33060         regex: support Gawk, which never uses alloca
33061         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
33062         Do not include in this case.  Gawk doesn't supply a substitute
33063         alloca.h and doesn't need one.
33065         regex: port __libc_lock_define usage to C89
33066         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
33067         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
33068         does not conform to C89, as it has an empty macro argument.
33069         Reported by Aharon Robbins in
33070         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33072 2013-01-01  Eric Blake  <eblake@redhat.com>
33074         maint: update all copyright year number ranges
33075         Run "make update-copyright".
33077         version-etc: bump copyright year reported in --version
33078         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
33080 2012-12-31  Eric Blake  <eblake@redhat.com>
33082         sigprocmask-tests: skip test if pid is unexpectedly large
33083         * tests/test-sigprocmask.c (main): Add range check.
33085         git-version-gen: avoid test -z portability glitch
33086         * build-aux/git-version-gen: Prefer portable test spelling, since
33087         git-version-gen is run on more than just developer machines.
33089 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
33091         git-version-gen: add --fallback option to use if git is not present
33092         * build-aux/git-version-gen: Add support for the new option --fallback,
33093         which comes into play when there is no $tarball_version_file and
33094         git is not working.
33095         (scriptversion): Update.
33097         maint.mk: handle missing git with more grace
33098         * top/maint.mk (no-submodule-changes, public-submodule-commit):
33099         Quietly proceed if git is not present.
33101 2012-12-31  Eric Blake  <eblake@redhat.com>
33103         dup2: work around cygwin bug
33104         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
33105         * lib/dup2.c (rpl_dup2): Work around it.
33106         * doc/posix-functions/dup2.texi (dup2): Document it.
33108 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
33110         regex: remove unnecessary dependency on localcharset.h
33111         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
33112         hasn't been needed for years.
33113         * modules/regex (Depends-on): Remove localcharset.
33115         regex: revert single-byte change
33116         * lib/regexec.c (check_node_accept_bytes): Revert previous change
33117         to this function.  This was alredy fixed in a different way, at
33118         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
33119         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
33120         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
33122         regex: simplify based on Gawk version
33123         * lib/regex_internal.c (re_dfa_add_node): Simplify.
33124         Reported by Aharon Robbins in
33125         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33127 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33129         regex: check that pattern char is single-byte
33130         Reported by Aharon Robbins in
33131         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33132         * lib/regexec.c (check_node_accept_bytes):
33133         Return 0 if the pattern string has a multibyte character here.
33135         regex: implement rational ranges
33136         Reported by Aharon Robbins in
33137         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33138         * lib/regcomp.c (build_range_exp) [!_LIBC]:
33139         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
33140         Implement rational ranges.
33142         regex: avoid redefining __wctype
33143         Reported by Aharon Robbins in
33144         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33145         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
33146         #undef before defining.
33148         regex: port to hosts where malloc (0) == NULL
33149         Reported by Aharon Robbins in
33150         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33151         * lib/regex_internal.c (re_node_set_alloc):
33152         Don't assume that malloc (0) yields nonnull.
33153         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
33154         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
33155         * modules/regex (Files): Add m4/eealloc.m4.
33157         regex: port to C89
33158         Reported by Aharon Robbins in
33159         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
33160         * lib/regcomp.c (init_word_char): Declaration before statement.
33162         regex: merge glibc changes
33163         Also, copy the license wording from glibc.  This simplifies
33164         merging changes.  gnulib-tool will change the wording to GPL as
33165         appropriate, when importing it to other packages.  The only
33166         glibc change made since the last merge, which needs merging, is:
33167         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
33168         * lib/regex_internal.h (gettext): Remove use of INTUSE.
33170         * users.txt: Add Emacs.
33172         doc: omit mention of version when not needed
33173         * doc/gnulib-intro.texi (Portability and Application Code):
33174         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
33175         Don't mention particular dates or versions when not necessary, so
33176         that the documentation won't go out of date so quickly.
33178         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
33180 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
33182         bootstrap: pass --force to autoreconf.
33183         * build-aux/bootstrap (AUTORECONFFLAGS): New.
33184         Add "--force" so that Automake's ylwrap and other such tools
33185         be updated at each bootstrap invocation.
33186         Use it.
33188 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
33190         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
33191         The earlier patch forgot to update one of the #if conditions, causing
33192         a problem on Debian testing i386 reported by Mats Erik Andersson
33193         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
33194         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
33195         (__argp_fmtstream_puts, argp_fmtstream_puts)
33196         (__argp_fmtstream_write, argp_fmtstream_write)
33197         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
33199         * doc/gnulib-readme.texi: Minor fixups.
33200         (Portability guidelines): Modernize URLs.  Remove some repetition.
33201         (Indent with spaces not TABs): Reword to avoid too-long lines.
33202         Remove some '@ifset standalone' stuff that isn't used.
33204         * doc/gnulib-readme.texi (Portability guidelines):
33205         ctype.h, not ctime.h.
33207         Correct name of POSIX.1-2001.
33208         * doc/posix-functions/fgetc.texi (fgetc):
33209         * doc/posix-functions/fgets.texi (fgets):
33210         * doc/posix-functions/fread.texi (fread):
33211         * doc/posix-functions/fscanf.texi (fscanf):
33212         * doc/posix-functions/getc.texi (getc):
33213         * doc/posix-functions/getchar.texi (getchar):
33214         * doc/posix-functions/scanf.texi (scanf):
33215         POSIX.1-2001, not POSIX-2001.
33217         doc: move README into manual
33218         * README: Move contents to new file doc/gnulib-readme.texi.
33219         Replace with a one-line summary.
33220         * doc/gnulib.texi (Brief Overview): New section,
33221         with old intro preface.  Include gnulib-readme.texi for contents.
33222         (Philosophy): Rename from "Introduction", since this
33223         section no longer introduces the rest.  Write a new preface.
33224         * doc/gnulib-readme.texi: New file, with the old contents of
33225         README texinfo-ized.  This way, the README info appears
33226         in the online and printed manual.
33228 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
33230         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
33231         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
33232         c_vasprintf() prototype.
33234 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
33236         c-vasprintf: Fix "empty declaration" warning reported by GCC.
33237         * lib/c-vasprintf.h: Remove stray semicolon.
33239 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
33241         gettext: avoid obsolete macro AM_PROG_MKDIR_P
33242         It is obsolete and is planned to be removed from Automake 1.14; see
33243         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
33244         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
33245         (installdirs-data, installdirs-data-yes):
33246         Use $(MKDIR_P), not $(mkdir_p).
33247         * m4/intl.m4 (AM_INTL_SUBDIR):
33248         * m4/po.m4 (AM_PO_SUBDIRS):
33249         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
33251 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
33253         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
33254         On this platform, we are not optimizing but we are using
33255         the substitute for extern inlines, so compile as if
33256         C99-style extern inline, or a substitute, is available.
33257         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
33258         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
33259         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
33260         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
33261         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
33262         Declare as ARGP_FS_EI, not as extern.
33263         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
33264         (__option_is_short, _option_is_end, __option_is_end)
33265         [!_LIBC && __USE_EXTERN_INLINES]:
33266         Declare as ARGP_EI, not as extern.
33268 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
33270         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
33271         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
33272         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
33273         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
33274         ...), as the latter is fatal with older Autoconfs.
33275         Problem reported and fix suggested by Eric Blake in thread starting at
33276         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
33278 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
33280         AC_PROG_MKDIR_P: don't workaround if not buggy
33281         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
33282         Define only for Autoconf versions before 2.62.
33283         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
33284         undocumented m4_PACKAGE_VERSION, for consistency with the
33285         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
33286         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
33287         was introduced in 2.62.
33289 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
33291         New 'c-*printf' modules for formatted output in C locale.
33293         New module 'c-vasnprintf'.
33294         * modules/c-vasnprintf: New file.
33295         * lib/c-vasnprintf.c: New file.
33296         * lib/c-vasnprintf.h: New file.
33298         New module 'c-snprintf'.
33299         * modules/c-snprintf: New file.
33300         * modules/c-snprintf-tests: New file.
33301         * lib/c-snprintf.c: New file.
33302         * lib/c-snprintf.h: New file.
33303         * tests/test-c-snprintf.c: New file.
33304         * tests/test-c-snprintf.sh: New file.
33306         New module 'c-vsnprintf'.
33307         * modules/c-vsnprintf: New file.
33308         * modules/c-vsnprintf-tests: New file.
33309         * lib/c-vsnprintf.c: New file.
33310         * lib/c-vsnprintf.h: New file.
33311         * tests/test-c-vsnprintf.c: New file.
33312         * tests/test-c-vsnprintf.sh: New file.
33314         New module 'c-vasprintf'.
33315         * modules/c-vasprintf: New file.
33316         * modules/c-vasprintf-tests: New file.
33317         * lib/c-asprintf.c: New file.
33318         * lib/c-vasprintf.c: New file.
33319         * lib/c-vasprintf.h: New file.
33320         * tests/test-c-vasprintf.c  +: New file.
33321         * tests/test-c-vasprintf.sh: New file.
33323         New module 'c-xvasprintf'.
33324         * modules/c-xvasprintf: New file.
33325         * modules/c-xvasprintf-tests: New file.
33326         * lib/c-xasprintf.c: New file.
33327         * lib/c-xvasprintf.c: New file.
33328         * lib/c-xvasprintf.h: New file.
33329         * tests/test-c-xvasprintf.c: New file.
33330         * tests/test-c-xvasprintf.sh: New file.
33332 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33334         argp: better 'inline'
33335         Use extern-inline module to declare extern inline functions.
33336         This avoids some bogus warning diagnostics.  Problem discovered
33337         when modifying GNU tar to use the manywarnings module.
33338         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
33339         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
33340         Define based on extern-inline.
33341         * modules/argp (Depends-on): Add extern-inline.
33343 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
33345         filemode, sys_stat: Handle MPX files a la AIX.
33346         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
33347         * lib/sys_stat.in.h (S_ISMPX): New macro.
33348         * tests/test-sys_stat.c: Add tests for MPX files.
33350 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33352         x-to-1: honor $PERL
33353         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
33354         a chance to use his preferred version of Perl.  This is typically
33355         required by Darwin users whose default /usr/bin/perl does not have all
33356         the libraries required by help2man, and who need to use their MacPorts
33357         installation of Perl instead.
33359 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33361         gnu-web-doc-update: add all the new files, even in new directories
33362         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
33363         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
33364         Use it.
33365         (main): Don't use cvsutils to get the list of unknown files,
33366         just add all the existing files and directories.
33368 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
33370         gnu-web-doc-update: improve --help
33371         * build-aux/gnu-web-doc-update: Move comments into --help.
33373 2012-12-07  Eric Wong  <normalperson@yhbt.net>
33375         mountlist: recognize more "dummy" file systems
33376         * lib/mountlist.c (ME_DUMMY_0):
33377         Add these dummy FS names to the list:
33378         - "debugfs" virtual filesystem for kernel debugging
33379         - "devpts" PTY slave filesystem
33380         - "devtmpfs" device filesystem on top of tmpfs/ramfs
33381         - "fusectl" control filesystem for FUSE
33382         - "mqueue" enumerates POSIX message queues
33383         - "rpc_pipefs" kernel <-> userspace bridge for NFS
33384         - "sysfs" is for exporting kernel objects
33385         - "devfs" device filesystem for Linux 2.4 and FreeBSD
33387 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
33389         extern-inline: avoid incompatibility with Darwin Libc
33390         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
33391         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
33392         Problem reported by Akim Demaille in
33393         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
33395 2012-12-11  Simon Josefsson  <simon@josefsson.org>
33397         gnupload: Work with GnuPG using gpg-agent (for smartcards).
33398         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
33399         let it handle password prompting.
33401 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
33403         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
33404         * lib/canonicalize.c (canonicalize_filename_mode):
33405         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
33406         fetching the current directory.  Don't overrun the beginning of
33407         rpath if there's no slashes after the MS-Windows drive letter.
33409 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
33411         maint.mk: avoid extra forks
33412         * top/maint.mk (_cfg_mk): The GNU make manual documents that
33413         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
33414         So use that instead of "$(shell test -f FILE && echo FILE)".
33416 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
33418         vasnprintf: fix ASCII_ONLY typo
33419         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33420         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33421         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
33422         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
33423         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
33425 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
33427         list, oset, xlist, xoset: fix extern inline issue with C99
33428         This was introduced by my recent changes for 'inline'.
33429         Problem reported for gettext by Daiki Ueno in
33430         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
33431         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
33432         (gl_list_nx_create, gl_list_size, gl_list_node_value)
33433         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
33434         (gl_list_previous_node, gl_list_get_at)
33435         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
33436         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
33437         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
33438         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
33439         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
33440         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
33441         (gl_list_iterator_free, gl_sortedlist_search)
33442         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
33443         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
33444         (gl_sortedlist_remove):
33445         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
33446         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
33447         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
33448         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
33449         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
33450         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
33451         (gl_list_add_at, gl_sortedlist_add):
33452         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
33453         Wrap these extern decls inside "#if 0", because they are implemented
33454         as inline functions, and extern inline is not what's wanted here.
33455         It would simplify these .h files to remove the extern decls entirely,
33456         although a downside would be less-clear separation between
33457         specification and implementation.
33459 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
33461         sys_stat: no 'static inline'
33462         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
33463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
33465         extern-inline: no 'static inline'
33466         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33467         Do not require AC_C_INLINE.
33468         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
33469         'static inline', for older compilers.
33471         snippet/warn-on-use: no 'static inline'
33472         * build-aux/snippet/warn-on-use.h:
33473         Remove unnecessary 'inline' in comment.
33475         rbtree-list, rbtreehash-list: no 'static inline'
33476         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
33477         * lib/gl_anytree_list2.h (node_at):
33478         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
33479         (gl_oset_first, add_nodes_to_buckets):
33480         Now static, not static inline.
33482         regex: no 'static inline'
33483         * lib/regex_internal.c (calc_state_hash):
33484         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
33485         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
33486         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
33487         Now static, not static inline.
33488         (inline) [__GNUC__ < 3 && _LIBC]:
33489         Remove macro; no longer needed.
33491         xvasprintf: no 'static inline'
33492         * lib/xvasprintf.c (xstrcat):
33493         Now static, not static inline.
33494         * m4/xvasprintf.m4 (gl_XVASPRINTF):
33495         Do not require AC_C_INLINE.
33497         parse-datetime, parse-duration: no 'static inline'
33498         * lib/parse-datetime.y (to_uchar):
33499         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
33500         (scale_n_add):
33501         Now static, not static inline.
33502         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
33503         * modules/parse-duration (configure.ac):
33504         Do not require AC_C_INLINE.
33506         getaddrinfo: no 'static inline'
33507         * lib/getaddrinfo.c (validate_family):
33508         Now static, not static inline.
33509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
33510         Do not require AC_C_INLINE.
33512         ftruncate, fts, lstat, openat, raise: no 'static inline'
33513         * lib/ftruncate.c (chsize_nothrow):
33514         * lib/fts.c (opendirat, diropen):
33515         * lib/lstat.c (orig_lstat):
33516         * lib/openat.c (orig_openat):
33517         * lib/raise.c (raise_nothrow):
33518         Now static, not static inline.
33519         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
33520         * m4/fts.m4 (gl_FUNC_FTS_CORE):
33521         * m4/lstat.m4 (gl_PREREQ_LSTAT):
33522         * m4/openat.m4 (gl_PREREQ_OPENAT):
33523         * m4/raise.m4 (gl_PREREQ_RAISE):
33524         Do not require AC_C_INLINE.
33526         fflush, stat: no 'static inline'
33527         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33528         (clear_ungetc_buffer, disable_seek_optimization)
33529         (restore_seek_optimization, update_fpos_cache):
33530         * lib/stat.c (orig_stat):
33531         Now static, not static inline.
33532         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
33533         (update_fpos_cache):
33534         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
33535         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
33536         * m4/stat.m4 (gl_PREREQ_STAT):
33537         Do not require AC_C_INLINE.
33539         error, filevercmp: no 'static inline'
33540         * lib/error.c (is_open, flush_stdout):
33541         * lib/filevercmp.c (order):
33542         Now static, not static inline.
33543         * m4/error.m4 (gl_PREREQ_ERROR):
33544         * modules/filevercmp (configure.ac):
33545         Do not require AC_C_INLINE.
33547         dup, execute, fatal-signal, etc.: no 'static inline'
33548         * lib/dup.c (dup_nothrow):
33549         * lib/execute.c (nonintr_close, nonintr_open):
33550         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
33551         * lib/fopen.c (orig_fopen):
33552         * lib/freadseek.c (freadptrinc):
33553         * lib/freopen.c (orig_freopen):
33554         * lib/fstat.c (orig_fstat, fstat_nothrow):
33555         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
33556         (get_rusage_as_via_iterator):
33557         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
33558         * lib/getdtablesize.c (_setmaxstdio_nothrow):
33559         * lib/isatty.c (_isatty_nothrow):
33560         * lib/open.c (orig_open):
33561         * lib/read.c (read_nothrow):
33562         * lib/sigprocmask.c (signal_nothrow):
33563         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
33564         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
33565         * lib/wait-process.c (unregister_slave_subprocess):
33566         * lib/write.c (write_nothrow):
33567         Now static, not static inline.
33568         * lib/spawn-pipe.c (nonintr_open): Define only if
33569         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
33570         * m4/dup.m4 (gl_PREREQ_DUP):
33571         * m4/execute.m4 (gl_EXECUTE):
33572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
33573         * m4/fopen.m4 (gl_PREREQ_FOPEN):
33574         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
33575         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
33576         * m4/fstat.m4 (gl_PREREQ_FSTAT):
33577         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
33578         * m4/isatty.m4 (gl_PREREQ_ISATTY):
33579         * m4/open.m4 (gl_PREREQ_OPEN):
33580         * m4/read.m4 (gl_PREREQ_READ):
33581         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
33582         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
33583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
33584         * m4/wait-process.m4 (gl_WAIT_PROCESS):
33585         * m4/write.m4 (gl_PREREQ_WRITE):
33586         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
33587         Do not require AC_C_INLINE.
33589         c-strtod, memcoll, readutmp: no 'static inline'
33590         * lib/c-strtod.c (c_locale):
33591         * lib/memcoll.c (strcoll_loop):
33592         * lib/readutmp.c (desirable_utmp_entry):
33593         Now static, not static inline.
33594         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
33595         * m4/memcoll.m4 (gl_MEMCOLL):
33596         * m4/readutmp.m4 (gl_READUTMP):
33597         Do not require AC_C_INLINE.
33599         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
33600         * lib/arctwo.c (to_uchar):
33601         * lib/md4.c (set_uint32):
33602         * lib/md5.c (set_uint32):
33603         * lib/sha1.c (set_uint32):
33604         * lib/sha256.c (set_uint32):
33605         * lib/sha512.c (set_uint64):
33606         Now static, not static inline.  This is a bit simpler, and doesn't
33607         affect performance with GCC and default optimization.
33608         * m4/arctwo.m4 (gl_ARCTWO):
33609         * m4/md4.m4 (gl_MD4):
33610         * m4/md5.m4 (gl_MD5):
33611         * m4/sha1.m4 (gl_SHA1):
33612         * m4/sha256.m4 (gl_SHA256):
33613         * m4/sha512.m4 (gl_SHA512):
33614         Do not require AC_C_INLINE.
33616         cond, lock, thread: better 'inline'
33617         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
33618         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
33619         New macros.  Use them instead of static inline, for header functions.
33620         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
33621         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33622         * lib/glthread/lock.c (gl_waitqueue_init)
33623         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
33624         * lib/glthread/thread.c (get_current_thread_handle):
33625         Change 'static inline' to 'inline'.
33626         * lib/glthread/cond.h, lib/glthread/thread.h:
33627         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33628         * m4/cond.m4 (gl_COND):
33629         * m4/lock.m4 (gl_PREREQ_LOCK):
33630         * m4/thread.m4 (gl_THREAD):
33631         Do not require AC_C_INLINE.
33632         * modules/cond, modules/thread (Depends-on): Add extern-inline.
33634         chdir-long, cycle-check, savewd: better 'inline'
33635         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
33636         (find_non_slash):
33637         * lib/cycle-check.c (is_zero_or_power_of_two):
33638         * lib/savewd.c (savewd_delegating):
33639         Change 'static inline' to 'inline'.
33640         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
33641         Replace all remaining uses of 'static inline' with it.
33642         * lib/savewd.h:
33643         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33644         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
33645         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33646         * m4/savewd.m4 (gl_SAVEWD):
33647         Do not require AC_C_INLINE.
33648         * modules/savewd (Depends-on): Add extern-inline.
33650         base32, base64: no need for 'inline'
33651         * lib/base32.c (to_uchar, get_8, decode_8):
33652         * lib/base64.c (to_uchar, get_4, decode_4):
33653         Change 'static inline' to 'inline'.
33654         * m4/base32.m4 (gl_PREREQ_BASE32):
33655         * m4/base64.m4 (gl_PREREQ_BASE64):
33656         Do not require AC_C_INLINE.
33658         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
33659         * lib/gl_array_oset.c (gl_array_nx_add_at):
33660         (gl_array_remove_at):
33661         * lib/gl_linkedhash_list.c (hash_resize_after_add)
33662         (add_to_bucket, remove_from_bucket):
33663         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
33664         Change 'static inline' to 'static', as it's simpler to omit
33665         'inline' unless there's a significant performance advantage.
33667         list, oset, xlist, xoset, xsublist: simplify via extern inline
33668         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
33669         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
33670         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
33671         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
33672         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
33673         New macro.  Replace all uses of 'static inline' with it.
33674         [HAVE_INLINE]: Implement functions as *_INLINE functions,
33675         instead of as macros FOO that are defined to static inline
33676         functions FOO_inline.
33677         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
33678         * lib/gl_xsublist.c:
33679         Reimplement from scratch, by defining the corresponding *_INLINE
33680         macro and including the corresponding .h file.  This is simpler.
33681         * modules/list, modules/oset, modules/xlist, modules/xoset:
33682         (Files): Remove m4/gl_list.m4.
33683         (configure.ac): Remove gl_LIST.
33684         * m4/gl_list.m4: Remove.
33685         * modules/list, modules/oset, modules/xlist, modules/xoset:
33686         * modules/xsublist:
33687         (Depends-on): Depend on extern-inline, not inline.
33689         xalloc: better 'inline'
33690         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
33691         New macro.  Replace all uses of 'static inline' with it.
33692         (static_inline): Remove.
33693         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
33694         Let 'extern inline' do the work automatically, instead of doing
33695         it by hand.
33696         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
33697         Remove.  All uses removed.
33698         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
33700         gethrxtime: better 'inline'
33701         * lib/xtime.c: New file.
33702         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
33703         * lib/xtime.h (XTIME_INCLUDE):
33704         New macros.  Replace all uses of 'static inline' with them.
33705         * lib/gethrxtime.c (gethrxtime): Define only if
33706         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
33707         this source file is now always compiled, because of the extern inline.
33708         * lib/gethrxtime.h, lib/xtime.h:
33709         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33710         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
33711         if gethrtime works, as they're not needed in that case.
33712         (gl_XTIME): Do not require AC_C_INLINE.
33713         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
33714         compiled now.  Move the check into gl_GETHRXTIME.
33715         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
33716         (Depends-on): Add extern-inline.
33717         (configure.ac): gethrxtime is always compiled now.
33718         (lib_SOURCES): Add gethrxtime.c.
33720         wctype-h: better 'inline'
33721         * lib/wctype-h.c: New file.
33722         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
33723         New macro.  Replace all uses of 'static inline' with it.
33724         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33725         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
33726         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
33727         (Depends-on): Add extern-inline.
33729         unistd: better 'inline'
33730         * lib/unistd.c: New file.
33731         * lib/unistd.in.h (_GL_UNISTD_INLINE):
33732         New macro.  Replace all uses of 'static inline' with it.
33733         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33734         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
33735         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
33736         (Depends-on): Add extern-inline.
33738         sys_socket: better 'inline'
33739         * lib/sys_socket.c: New file.
33740         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
33741         New macro.  Replace all uses of 'static inline' with it.
33742         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33743         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
33744         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
33745         (Depends-on): Add extern-inline.
33747         stdio: better 'inline'
33748         * lib/stdio.c: New file.
33749         * lib/stdio.in.h (_GL_STDIO_INLINE):
33750         New macro.  Replace all uses of 'static inline' with it.
33751         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33752         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
33753         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
33754         (Depends-on): Add extern-inline.
33756         sigaction: better 'inline'
33757         * lib/sig-handler.c: New file.
33758         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33759         New macro.  Replace all uses of 'static inline' with it.
33760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33761         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
33762         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
33763         (Depends-on): Add extern-inline.
33765         selinux-h: better 'inline'
33766         * lib/se-context.c, lib/se-selinux.c: New files.
33767         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
33768         * lib/se-context.in.h (SE_CONTEXT_INLINE):
33769         New macro.  Replace all uses of 'static inline' with it.
33770         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33771         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
33772         New macro.  Replace all uses of 'static inline' with it.
33773         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33774         * modules/selinux-h (Files, lib_SOURCES):
33775         Add lib/se-context.c, lib/se-selinux.c.
33776         (Depends-on): Add extern-inline.
33777         (configure.ac): Do not require AC_C_INLINE.
33779         pthread: better 'inline'
33780         * lib/pthread.c: New file.
33781         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
33782         New macro.  Replace all uses of 'static inline' with it.
33783         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33784         * m4/pthread.m4 (gl_PTHREAD_CHECK):
33785         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
33786         * modules/pthread (Files): Add lib/pthread.c.
33787         (Depends-on): Add extern-inline.
33789         math: better 'inline'
33790         * lib/math.c: New file.
33791         * lib/math.in.h (_GL_MATH_INLINE):
33792         New macro.  Replace all uses of 'static inline' with it.
33793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33794         * m4/math_h.m4 (gl_MATH_H):
33795         Do not require AC_C_INLINE.
33796         * modules/math (Files, lib_SOURCES):
33797         Add lib/math.c.
33798         (Depends-on): Add extern-inline.
33800         count-one-bits: better 'inline'
33801         * lib/count-one-bits.c: New file.
33802         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
33803         New macro.  Replace all uses of 'static inline' with it.
33804         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33805         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
33806         Do not require AC_C_INLINE.
33807         * modules/count-one-bits (Files, lib_SOURCES):
33808         Add lib/count-one-bits.c.
33809         (Depends-on): Add extern-inline.
33811         count-leading-zeros: better 'inline'
33812         * lib/count-leading-zeros.c: New file.
33813         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
33814         New macro.  Replace all uses of 'static inline' with it.
33815         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33816         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
33817         Do not require AC_C_INLINE.
33818         * modules/count-leading-zeros (Files, lib_SOURCES):
33819         Add lib/count-leading-zeros.c.
33820         (Depends-on): Add extern-inline.
33822         bitrotate: better 'inline'
33823         * lib/bitrotate.c: New file.
33824         * lib/bitrotate.h (BITROTATE_INLINE):
33825         New macros.
33826         Replace all uses of 'static inline' with them.
33827         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
33828         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
33829         (Depends-on): Add extern-inline.
33830         (configure.ac): Do not require AC_C_INLINE.
33832 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
33834         maint.mk: avoid gratuitous failure
33835         Reported by Stefano Lattarini in
33836         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
33837         * top/maint.mk (public-submodule-commit): Quote more safely.
33839 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
33841         canonicalize, canonicalize-lgpl: support MS-Windows file names
33842         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
33843         for test cases, which it'd be nice to add at some point.
33844         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
33845         * lib/canonicalize.c (canonicalize_filename_mode):
33846         * lib/canonicalize-lgpl.c (__realpath):
33847         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
33848         slash is at the beginning of the file name.  Use ISSLASH, instead
33849         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
33850         the first character with '/'.  Test for
33851         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
33852         with a drive letter.
33853         * lib/canonicalize.c (SLASHES): New macro.
33854         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
33856 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
33858         fts: introduce FTS_VERBATIM
33859         * lib/fts_.h (FTS_VERBATIM): New bit flag.
33860         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
33861         * lib/fts.c (fts_open): Honor it.
33863 2012-11-09  Pádraig Brady  <P@draigBrady.com>
33865         getlogin-tests: allow errno == ENXIO
33866         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33867         with errno == ENXIO (No controlling tty).
33868         getlogin_r-tests: Likewise. Also allow errno == ENOENT
33869         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
33870         with errno == ENOENT.  This was reported to happen in various
33871         situations on GNU/Linux.
33873 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
33875         getlogin-tests: allow errno == ENOENT
33876         * tests/test-getlogin.c (main): Skip tests if getlogin fails
33877         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
33878         when running a test in an Emacs shell buffer.
33880 2012-11-08  Jim Meyering  <jim@meyering.net>
33882         tests/nap.h: avoid warning about unused variable
33883         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
33885         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
33886         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
33887         white space before each of the special-cased file names, to avoid
33888         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
33889         in http://bugs.gnu.org/12830.
33891 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33893         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
33894         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
33895         fails with errno == EBADF when fd is opened with O_PATH.
33896         Reported by Jim Meyering in
33897         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
33898         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33899         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
33901 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
33903         test-utimens: speed up by taking shorter naps
33904         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
33905         New functions.
33906         (nap): Use them, to do a better job of guessing the delay.
33907         On Fedora 17 with ext4 atop md atop hard disks, this made
33908         test-utimens run 10x faster, because the test napped for
33909         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
33910         <http://bugs.gnu.org/12820#11>.
33912 2012-11-07  Jim Meyering  <jim@meyering.net>
33914         mountlist.c: fix a compilation failure
33915         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
33916         I introduced while transforming commit v0.0-7683-g613bcb6
33918 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33920         errno: port to LynxOS 178 2.2.2
33921         Problem reported by Joel Brobecker in
33922         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
33923         * doc/posix-headers/errno.texi (errno.h): Document this.
33924         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
33925         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
33926         Supply a string for EILSEQ.
33927         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
33929 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
33931         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
33932         Linux kernel 2.6.39 introduced O_PATH (see
33933         <http://lwn.net/Articles/433854/>) and this is a better fallback
33934         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
33935         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
33936         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
33937         * lib/fcntl.in.h (O_ACCMODE):
33938         * tests/test-fcntl-h.c (main):
33939         Do not reject O_ACCMODE merely because it has more than the
33940         minimal number of bits, as POSIX allows extensions here.
33942 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
33944         mountlist: do not classify a bind-mounted dir entry as "dummy"
33945         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
33946         the "none"-testing clause.
33947         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
33948         exception for bind-mounted directories.
33950 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
33952         quote: provide a means to escape strings with nul characters
33953         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
33954         (quote, quote_n): Rename formal arguments for consistency with
33955         quotearg.
33957 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33959         test-raise: don't assume 199 is an invalid signal
33960         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
33962         sh-quote-tests: port to Solaris 9
33963         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
33964         Problem reported by Dagobert Michelsen in
33965         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
33967 2012-10-28  Jim Meyering  <jim@meyering.net>
33969         maint.mk: rename a new configurable variable
33970         * top/maint.mk (_gl_translatable_string_re): Rename from
33971         translation-markers: _gl_ prefix to insulate from user Makefile code,
33972         and the _re suffix to inform that it's a regular expression.
33974 2012-10-26  Eric Blake  <eblake@redhat.com>
33976         maint.mk: let packages tweak sc_po_check pattern
33977         * top/maint.mk (sc_po_check): Add translation-markers, to allow
33978         finding files with other translation markers.
33980 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33982         euidaccess: speed up 'configure' on GNU hosts
33983         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
33984         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
33985         it's needed only in this case.  Use AC_CHECK_DECLS, not
33986         AC_CHECK_DECLS_ONCE.
33987         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
33988         or AC_REQUIRE for AC_FUNC_GETGROUPS.
33990         * lib/regexec.c (re_search_internal): Fix grammar in comment.
33992 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
33994         fchmodat, fchownat, fstatat: port to non-inlining compilers
33995         Problem reported for FreeBSD 9 by Jim Meyering in
33996         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
33997         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
33998         New files, which define FCHMODAT_INLINE etc.
33999         * lib/fchmodat.c (FCHMODAT_INLINE):
34000         * lib/fchownat.c (FCHOWNAT_INLINE):
34001         * lib/fstatat.c (FSTATAT_INLINE):
34002         Remove, as chmodat.c etc. now do this.
34003         * modules/fchmodat (Files): Add lib/chmodat.c.
34004         * modules/fchownat (Files): Add lib/chownat.c.
34005         * modules/fstatat (Files): Add lib/statat.c.
34007 2012-10-15  Jim Meyering  <jim@meyering.net>
34009         fchmodat.c, fchownat.c: compile-impeding typos
34010         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
34011         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
34012         Introduced in commit v0.0-7636-gd202279.
34014 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
34016         fcntl-h: support GNU flags like O_IGNORE_CTTY
34017         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
34018         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
34019         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
34020         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
34021         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
34022         Define to 0 if not already defined.
34023         * tests/test-fcntl-h.c: Test these new flags.
34025 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34027         faccessat, etc.: support AT_FDCWD-only use
34028         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
34029         this function only if its first argument is AT_FDCWD.
34030         Emacs wants faccessat for AT_EACCESS but not for any first-arg
34031         values other than AT_FDCWD, so it doesn't want all the openat
34032         machinery with fchdir etc.
34033         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
34034         * modules/fstatat, modules/mkdirat, modules/openat (Files):
34035         * modules/unlinkat (Files):
34036         Remove lib/openat-priv.h, as at-internal supplies this file.
34037         Removing this file here allows us to support programs like Emacs
34038         that avoid at-internal.
34040         faccessat: speed up 'configure' on mainstream hosts
34041         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
34042         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
34043         since it's only on unusual platforms that we need to check for
34044         'access', and it's better not to slow 'configure' down on all
34045         platforms.
34047         faccessat: port to Solaris 10
34048         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
34049         Needed on Solaris 10, which doesn't have AT_EACCESS,
34050         so we need the Gnulib fcntl.h, which defines it.
34052 2012-10-14  Pádraig Brady  <P@draigBrady.com>
34053         canonicalize: fix C89 compilation
34054         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
34055         declarations so C89 is supported.  Also remove the comment
34056         referencing memorty allocation as the suggested feature could
34057         not be implemented as suggested.
34058         Reported by Michael Goffioul.
34060 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34062         group-member: omit unnecessary dependencies
34063         This is for Emacs, which has its own allocator and where we
34064         don't want to use xalloc.
34065         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
34066         since we no longer use xmalloc.  Do not include stdbool.h, since
34067         the changes below happen to remove the only use of bool.
34068         (GROUPBUF_SIZE): New constant.
34069         (struct group_info): Remove n_groups member.  Add groupbuf member.
34070         This lets us get the groups without using malloc, usually.
34071         (free_group_info, get_group_info): Adjust to this.
34072         (get_group_info): Return the number of groups found, or -1 on error.
34073         Use plain malloc not xmalloc, and treat its failure as if there
34074         are no groups, as the user already loses in case of error.
34075         (group_member): Simplify, based on changes to get_group_info.
34076         * modules/group-member (Depends-on): Remove dependencies on
34077         xalloc and stdbool.  Add dependency on xalloc-oversized.
34079 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
34081         gethrxtime: port to C++
34082         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
34084 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
34086         ptsname: fix macro-name typo
34087         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
34089 2012-10-03  Simon Josefsson  <simon@josefsson.org>
34091         inttostr: Relax license.
34092         * modules/inttostr (License): Change from LGPL to LGPLv2+.
34094 2012-10-03  Eric Blake  <eblake@redhat.com>
34096         ptsname_r: support ptys returned by FreeBSD posix_openpt
34097         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
34098         lives in /dev/pts/.
34100 2012-10-02  Eric Blake  <eblake@redhat.com>
34102         pselect: reject invalid file descriptors
34103         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
34104         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
34105         * modules/pselect (Depends-on): Add dup2.
34106         * doc/posix-functions/pselect.texi (pselect): Document this.
34108         select: reject invalid file descriptors
34109         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
34110         * lib/select.c (rpl_select) [!win32]: Work around it.
34111         * modules/select (Depends-on): Add dup2.
34112         * doc/posix-functions/select.texi (select): Document this.
34114         select: enhance test
34115         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
34116         New functions.
34117         (test_function): Enhance test.
34118         (do_select_bad_fd): Avoid any stale errno values.
34120         ptsname: reject invalid file descriptors
34121         http://www.austingroupbugs.net/view.php?id=503
34122         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
34123         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
34124         * modules/stdlib (Makefile.am): Replace witness.
34125         * lib/stdlib.in.h (ptsname): Allow for replacement.
34126         * modules/ptsname (configure.ac): Trigger replacement.
34127         * doc/posix-functions/ptsname.texi (ptsname): Document this.
34129 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
34131         hash-pjw-bare: new module
34132         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
34133         * lib/hash-pjw-bare.h: Likewise.
34134         * modules/hash-pjw-bare: New file.
34135         * MODULES.html.sh (Misc): Add it.
34137 2012-10-02  Eric Blake  <eblake@redhat.com>
34139         manywarnings: cater to more gcc infelicities
34140         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
34141         -Wuninitialized without -O.
34143 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
34145         select, poll tests: Make setsockopt invocation effective.
34146         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
34147         the bind() call.
34148         * tests/test-select.h (open_server_socket): Likewise.
34150 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
34152         sockets, sys_stat: restore AC_C_INLINE
34153         This undoes the 2012-09-22 patch.
34154         * m4/sockets.m4 (gl_SOCKETS):
34155         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34156         Restore AC_C_INLINE, since MSVC requires __inline or _inline
34157         and does not support plain 'inline'.  Reported by Bruno Haible in
34158         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
34160 2012-09-30  Bruno Haible  <bruno@clisp.org>
34162         localeconv tests: Avoid test failure on OpenIndiana.
34163         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
34164         skip the 'grouping' and 'mon_grouping' tests.
34165         Reported by Jim Meyering.
34167 2012-09-30  Bruno Haible  <bruno@clisp.org>
34169         havelib: Follow libtool developments.
34170         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
34171         Suggested by Simon Josefsson.
34173 2012-09-29  Jim Meyering  <meyering@redhat.com>
34175         fstatat.c: fix a compile-impeding typo
34176         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
34177         Introduced in commit v0.0-7636-gd202279.
34178         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
34180 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
34182         extern-inline: provide a -Wundef safe config.h
34183         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
34184         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
34185         to produce a -Wundef warning free config.h.
34187 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34189         hash-pjw: relax license to LGPLv2+
34190         * modules/hash-pjw (License): Relax, with consent of author.
34192 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34194         maint.mk: fix strict vs. lazy variable issues with RELEASE
34195         * top/maint.mk (_equal): New function.
34196         (member_check): Strip the result to avoid spurious spaces.
34197         (url_dir_list): Do not use ifeq, which is strict, as it will
34198         require RELEASE_TYPE to be defined.
34199         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
34200         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
34201         (announcement_Cc_alpha,announcement_mail_headers_alpha)
34202         (announcement_Cc_beta,announcement_mail_headers_beta)
34203         (announcement_Cc_stable,announcement_mail_headers_stable): these.
34204         (release): Do not depend on $(release-type), as it forces its
34205         evaluation.  Bounce to it.
34207 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
34209         maint.mk: formatting changes
34210         * top/maint.mk: Indent bodies of if's.
34212 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
34214         maint.mk: factor the validation of RELEASE_TYPE
34215         With help from Jim Meyering.
34216         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
34217         * top/maint.mk (_empty, _sp): Move their definition earlier.
34218         (member-check, release-type): New.
34219         Use the latter instead of $(RELEASE_TYPE).
34220         Remove now useless local checks.
34222 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34224         maint.mk: provide "make upload" to ease uploading
34225         See
34226         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
34227         Do not depend simply on the current $(VERSION), as there may have been
34228         new commits since the tarball generation.  Rather, rely on $(RELEASE),
34229         as "make release-commit" already does.
34231         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
34232         "make TYPE".
34234         * top/maint.mk (upload_command, upload, release): New.
34235         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
34236         (VERSION): first word of $(RELEASE) is always right.
34237         (emit_upload_commands): Adjust.
34238         * top/README-release: Update.
34240 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
34242         maint.mk: silent rules
34243         With help from Stefano Lattarini.
34244         * top/maint.mk (writable-files): Use $(AM_V_GEN).
34245         (announcement): Use $(AM_V_at).
34247 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
34249         localename: port gl_locale_name_thread_unsafe to FreeBSD
34250         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
34251         and use the simpler FreeBSD implementation on Mac OS X as well.
34252         Original idea suggested by Ed Maste in
34253         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
34255 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34257         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
34258         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
34259         * lib/mbuiter.c, lib/xsize.c: New files.
34260         * lib/binary-io.h (BINARY_IO_INLINE):
34261         * lib/eealloc.h (EEALLOC_INLINE):
34262         * lib/mbfile.h (MBFILE_INLINE):
34263         * lib/mbiter.h (MBITER_INLINE):
34264         * lib/mbuiter.h (MBUITER_INLINE):
34265         * lib/xsize.h (XSIZE_INLINE):
34266         New macros.
34267         Replace all uses of 'static inline' with them.
34268         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34269         * m4/eealloc.m4 (gl_EEALLOC):
34270         * m4/mbfile.m4 (gl_MBFILE):
34271         * m4/mbiter.m4 (gl_MBITER):
34272         * m4/xsize.m4 (gl_XSIZE):
34273         Do not require AC_C_INLINE.
34274         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
34275         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
34276         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
34277         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
34278         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
34279         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
34280         * modules/binary-io, modules/eealloc, modules/mbfile:
34281         * modules/mbiter, modules/mbuiter:
34282         (Depends-on): Add extern-inline.
34284         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
34285         * lib/pipe-filter-aux.c: New file.
34286         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
34287         Replace all uses of 'static inline' with it.
34288         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34289         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
34290         (filter_retcode): No real need for inline here.
34291         * modules/pipe-filter-gi, modules/pipe-filter-ii:
34292         (Files): Add lib/pipe-filter-aux.c.
34293         (Depends-on): Add extern-inline.
34294         (configure.ac): Do not require AC_C_INLINE.
34295         (lib_SOURCES): Add pipe-filter-aux.c.
34297         fdutimensat: omit unnecessary AC_C_INLINE
34298         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
34300         fchmodat, fchownat, fstatat: use extern-inline
34301         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
34302         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
34303         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
34304         New macros.
34305         * lib/openat.h:
34306         Replace all uses of 'static inline' with them.
34307         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34308         * modules/fchmodat, modules/fchownat, modules/fstatat:
34309         * modules/openat-h:
34310         (Depends-on):
34311         Add extern-inline.
34312         (configure.ac): Remove AC_C_INLINE.
34314         acl, mbchar, priv-set: use extern-inline
34315         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
34316         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
34317         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
34318         New macros.
34319         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
34320         Replace all uses of 'static inline' with it.
34321         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34322         * m4/acl.m4 (gl_FUNC_ACL):
34323         * m4/mbchar.m4 (gl_MBCHAR):
34324         * m4/priv-set.m4 (gl_PRIV_SET):
34325         Remove AC_C_INLINE, since 'inline' is no longer used directly.
34326         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
34327         Add extern-inline.
34329         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
34330         * m4/sockets.m4 (gl_SOCKETS):
34331         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
34332         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
34333         environments where it's already guaranteed to work, so we needn't
34334         check for it at 'configure'-time.
34336         tls-tests: omit unnecessary 'inline'
34337         * tests/test-tls.c (perhaps_yield): No longer inline.
34338         Simplicity and portability trump efficiency in test cases.
34340         utimens-tests: avoid unnecessary 'inline'
34341         * modules/fdutimensat-tests (configure.ac):
34342         * modules/futimens-tests (configure.ac):
34343         * modules/utimens-tests (configure.ac):
34344         * modules/utimensat-tests (configure.ac):
34345         Remove AC_C_INLINE.
34346         * tests/test-utimens-common.h (ctime_compare):
34347         No longer inline.  Simplicity and portability trump efficiency here.
34349         misc: don't limit commentary to inline functions
34350         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
34351         * lib/xalloc-oversized.h, lib/xsize.h:
34352         Contrast macros to functions in general, not just to inline functions,
34353         when the commentary does not apply only to inline functions.
34355 2012-09-20  Jim Meyering  <meyering@redhat.com>
34357         non-recursive-gnulib-prefix-hack: new module
34358         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
34359         the file that originated in Bison.
34360         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
34361         largely copied from a snippet that resided in bison's configure.ac.
34362         * modules/non-recursive-gnulib-prefix-hack: New file.
34363         * MODULES.html.sh (Support for maintaining and releasing projects):
34364         Add it.
34366 2012-09-18  Jim Meyering  <meyering@redhat.com>
34368         maint.mk: generalize _gl_tight_scope for non-recursive make
34369         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
34370         that *.h would describe additional .h files in the directory
34371         specified by $(_gl_TS_dir).  I.e., add this...
34372         (_gl_TS_other_headers): New variable.
34374         maint.mk: exempt trailing blanks found in "binary" files
34375         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
34376         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
34377         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34379 2012-09-17  Jim Meyering  <meyering@redhat.com>
34381         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
34382         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
34383         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
34384         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34386 2012-09-17  Jim Meyering  <meyering@redhat.com>
34388         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
34389         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
34390         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
34391         It is not in the same category as "exit (0)" or "exit (1)", and
34392         besides, I know of no symbolic name for that 77.  Reported by
34393         Richard W.M. Jones in
34394         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34396 2012-09-17  Jim Meyering  <meyering@redhat.com>
34398         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
34399         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
34400         all uses of #define, not just those that start in column 1.
34401         Richard W.M. Jones reported a false positive in
34402         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
34404 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
34406         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
34407         * lib/localcharset.c (locale_charset) [DARWIN7]:
34408         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
34409         as these two values are incompatible.  Problem reported by Max Horn.
34410         For more discussion, please see
34411         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
34413         doc: document sticky-EOF issue
34414         * doc/posix-functions/fgetc.texi (fgetc):
34415         * doc/posix-functions/fgets.texi (fgets):
34416         * doc/posix-functions/fread.texi (fread):
34417         * doc/posix-functions/fscanf.texi (fscanf):
34418         * doc/posix-functions/getc.texi (getc):
34419         * doc/posix-functions/getchar.texi (getchar):
34420         * doc/posix-functions/scanf.texi (scanf):
34421         Mention that glibc and default Solaris do not conform to
34422         C99 and POSIX-2001 or later, with respect to how getchar
34423         etc. behave when feof reports nonzero.
34425 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34427         poll: fix poll(0, NULL, msec)
34428         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
34429         but nfd is 0.  In that case poll should behave like select.
34431 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
34432             Paolo Bonzini  <bonzini@gnu.org>
34434         poll: fix for systems that can't recv() on a non-socket
34435         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
34436         is readable.  In this case POLLHUP will not be supported.
34437         * doc/posix-functions/poll.texi: Document this.
34439 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
34441         poll/select: document portability problems not fixed by Gnulib.
34442         * doc/posix-functions/poll.texi: poll does not work well on
34443         pipes under Windows.  It has the same limitations as select on
34444         BeOS.
34445         * doc/posix-functions/select.texi: select does not work well
34446         on pipes under Windows.
34448 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
34450         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
34451         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
34452         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
34453         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
34455 2012-09-06  Eric Blake  <eblake@redhat.com>
34457         net_if: give more details about the bug being fixed
34458         * doc/posix-headers/net_if.texi: Add clarification.
34460 2012-09-05  Eric Blake  <eblake@redhat.com>
34462         net_if: new module
34463         * modules/net_if: New module, borrowing ideas from netinet_in.
34464         * m4/net_if_h.m4: New file.
34465         * lib/net_if.in.h: Likewise.
34466         * doc/posix-headers/net_if.texi (net/if.h): Document it.
34467         * MODULES.html.sh (lacking POSIX:2008): Likewise.
34468         * tests/test-net_if.c: Make function checks conditional.
34469         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
34471 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34473         readutmp: fix non-portable UT_PID use
34474         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
34475         Use `UT_PID (u) > 0' as absolute condition.
34477 2012-09-04  Jim Meyering  <meyering@redhat.com>
34479         fts: reduce two or more trailing spaces to just one, usually
34480         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
34481         or more slashes, trim all but the final one.  But if a name consists
34482         solely of two slashes, don't modify it.  If it consists solely of
34483         three or more slashes, strip all but one.
34485         This is part of the solution to a minor problem with rm:
34486         it would print a bogus ELOOP diagnostic when failing to remove
34487         the slash-decorated name of a symlink-to-directory:
34489             $ mkdir d && ln -s d s && env rm -r s/
34490             rm: cannot remove 's': Too many levels of symbolic links
34492         With the change below and a trivial don't-trim-trailing-slashes
34493         adjustment to remove.c, it does this:
34495             $ env rm -r s/
34496             rm: cannot remove 's/': Not a directory
34498         Improved by: Eric Blake
34500         fts: when there is no risk of overlap, use memcpy, not memmove
34501         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
34503 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
34505         stdbool: be more compatible with mixed C/C++ compiles
34506         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
34507         Define to bool, true, false, respectively, as GCC's builtin
34508         stdbool.h does.  Problem reported by Michael Goffioul in
34509         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
34511 2012-08-28  Jim Meyering  <meyering@redhat.com>
34513         revert last change: it was not needed
34514         * tests/test-vc-list-files-git.sh: There's already a test for
34515         a working git, just below.
34517 2012-08-28  Jim Meyering  <meyering@redhat.com>
34519         tests: test-vc-list-files-git.sh: skip if git is not available
34520         * tests/test-vc-list-files-git.sh: Skip this test when git is
34521         not available.
34523 2012-08-26  Bruno Haible  <bruno@clisp.org>
34525         gnulib-tool: Remove no-op option --no-changelog.
34526         * gnulib-tool (func_usage): Don't mention --no-changelog.
34527         (do_changelog): Remove variable.
34528         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34530 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34532         doc: remove fdl-1.2.texi
34533         It is no longer used or maintained, and its use of @acronym
34534         is problematic.  See the thread containing
34535         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
34536         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
34537         * doc/old-licenses/fdl-1.2.texi: Remove.
34539         execinfo: port to FreeBSD
34540         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
34541         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
34542         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
34543         * modules/execinfo (Link): Add $(LIB_EXECINFO).
34545 2012-08-23  Jim Meyering  <meyering@redhat.com>
34547         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
34548         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
34549         to placate gcc's -Wold-style-declaration.
34551 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
34553         doc: do not use @acronym
34554         * doc/inet_ntoa.texi (inet_ntoa):
34555         * doc/parse-datetime.texi (Seconds since the Epoch)
34556         (Specifying time zone rules):
34557         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
34558         Don't use @acronym.  Problem reported by John Darlington in
34559         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
34561 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34563         stdnoreturn: port to newer GCCs
34564         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
34565         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
34566         Problem reported by Jim Meyering in
34567         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
34568         Also, rename the 'test' function to a void a clash with the
34569         already-supplied 'main' function; this fixes a bug that incorrectly
34570         rejected GCC 4.7.1's <stdnoreturn.h>.
34571         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
34572         Document GCC problem.
34574 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
34576         pipe-filter: fix comment typo
34577         * lib/pipe-filter.h: Mention correct function.
34579 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
34581         execinfo: new module
34582         This is for Emacs.  Currently, it provides a no-effect stub
34583         on all platforms where it does not already work.
34584         It already works on glibc-based systems, and on Solaris 11.
34585         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
34586         New files.
34587         * doc/glibc-headers/execinfo.texi (execinfo.h):
34588         * MODULES.html.sh (Misc): Document it.
34590 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
34592         extern-inline: support old GCC 'inline'
34593         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
34594         if available.  This applies to GCC versions 2.7 through 4.2, or
34595         when newer GCC is using -fgnu89-inline.  The goal is to address
34596         some of the performance issues mentioned by Bruno Haible in
34597         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
34599 2012-08-20  Eric Blake  <eblake@redhat.com>
34601         maint.mk: avoid redundant file name in message
34602         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
34603         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
34604         (sc_makefile_path_separator_check): Remove bogus $(ME).
34606 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
34608         timer-time: fix link order when static linking on glibc
34609         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
34610         _after_ -lrt so that it's significant.
34612 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
34614         timespec: omit unnecessary AC_C_INLINE
34615         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
34617         stat-time: omit unnecessary AC_C_INLINE
34618         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34619         Do not require AC_C_INLINE.
34621         ignore-value: omit unnecessary AC_C_INLINE
34622         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
34624         sys_select: avoid 'static inline'
34625         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
34627         mktime: avoid 'static inline'
34628         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
34629         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
34631 2012-08-19  Bruno Haible  <bruno@clisp.org>
34633         gnulib-tool: Improve coding style.
34634         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
34635         func_emit_lib_Makefile_am.
34636         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34638 2012-08-19  Bruno Haible  <bruno@clisp.org>
34640         gnulib-tool: Fix indentation.
34641         * gnulib-tool (func_import): Fix indentation.
34643 2012-08-19  Bruno Haible  <bruno@clisp.org>
34645         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
34646         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
34647         on the list of removed files.
34649 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
34651         test-parse-datetime: avoid glibc leap-second glitch
34652         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
34653         with the 2012 rules.  Problem reported by Bruce Dubbs in
34654         <http://bugs.gnu.org/12206>.
34656 2012-08-14  Bruno Haible  <bruno@clisp.org>
34658         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
34659         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
34660         from argument.
34661         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34663 2012-08-14  Eric Blake  <eblake@redhat.com>
34665         ldexp: relax license
34666         * modules/ldexp (License): Trivial relax, since the module only
34667         provides a permissively licensed m4 file.
34669 2012-08-13  Bruno Haible  <bruno@clisp.org>
34671         gnulib-tool: Fix persistence of --witness-c-macro option.
34672         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
34673         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
34675 2012-08-11  Eric Blake  <eblake@redhat.com>
34677         count-leading-zeros: use a lookup table on non-gcc compilers
34678         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
34679         alternate implementation, suggested by Jim Meyering.
34681 2012-08-10  Eric Blake  <eblake@redhat.com>
34683         count-leading-zeros: new module
34684         * modules/count-leading-zeros: New module.
34685         * m4/count-leading-zeros.m4: New file.
34686         * lib/count-leading-zeros.h: Likewise.
34687         * modules/count-leading-zeros-tests: New test.
34688         * tests/test-count-leading-zeros.c: New file.
34689         * MODULES.html.sh (Integer arithmetic functions): Document it.
34691 2012-08-07  Simon Josefsson  <simon@josefsson.org>
34692             Jim Meyering  <meyering@redhat.com>
34694         maintainer-makefile: Fix syntax error with dash.
34695         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
34696         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
34698 2012-08-05  Jim Meyering  <meyering@redhat.com>
34700         extern-inline: also ignore -Wmissing-declarations
34701         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
34702         required with gcc-4.8.0-to-be.
34704         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
34705         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
34706         for /error ?([^,]*)/.  This avoids false-positives for strings like
34707         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
34709 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
34711         gnumakefile: better interaction with Automake-NG
34712         * modules/gnumakefile [Makefile.am]: The makefiles generated by
34713         Automake-NG always contain a definition of VPATH, even in non-VPATH
34714         builds (its value being simply '.' in that case).  So, in the
34715         'clean-GNUmakefile' rule, to determine whether running under a
34716         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
34717         '$(VPATH)' expands to the empty string.
34719 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
34721         base64: Use extern C scope in header file, for C++.
34722         * lib/base64.h: Add C++ namespace protection.
34724 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
34726         stat-time, timespec, u64: support naive out-of-dir builds
34727         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
34728         Use '#include "foo.h"', not '#include <foo.h>', when including
34729         one's own interface.  This works better when configuring with
34730         out-of-directory builds, since packages need not add an
34731         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
34733 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
34735         utimens: use extern-inline
34736         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
34737         * lib/utimens.h: Add copyright notice, since this is now large enough
34738         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34739         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
34740         * modules/utimens (Depends-on): Add extern-inline.
34742         u64: use extern-inline
34743         * lib/u64.c: New file.
34744         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34745         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
34746         * modules/u64 (Files): Add lib/u64.c.
34747         (Depends-on): Add extern-inline.
34748         (configure.ac): No need to require AC_C_INLINE, since extern-inline
34749         does that now.
34750         (lib_SOURCES): Add u64.c.
34752         timespec: use extern-inline
34753         * lib/timespec.c: New file.
34754         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34755         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
34756         * modules/timespec (Files): Add lib/timespec.c.
34757         (Depends-on): Add extern-inline.
34758         (lib_SOURCES): Add timespec.c.
34760         stat-time: use extern-inline
34761         * lib/stat-time.c: New file.
34762         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
34763         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
34764         * modules/stat-time (Files): Add lib/stat-time.c.
34765         (Depends-on): Add extern-inline.
34766         (lib_SOURCES): Add stat-time.c.
34768         extern-inline: new module
34769         * modules/extern-inline, m4/extern-inline.m4: New files.
34770         This is for better support of 'extern inline' a la ISO C99,
34771         with a portable alternative on compilers that do not support
34772         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
34773         of the Emacs executable, when compiled with debugging disabled,
34774         which is a typical way that Emacs is built while developing.
34776 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
34778         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
34779         * build-aux/do-release-commit-and-tag: Move variable definitions
34780         together.
34781         ($branch): Instead of defaulting to "master", default to the current
34782         branch (as gnu-web-doc-update does).
34783         (help): Display the current values of the option arguments.
34784         * top/maint.mk (release-commit): New.
34785         * top/README-release: Simplify the corresponding step.
34787 2012-07-30  Eric Blake  <eblake@redhat.com>
34789         passfd: fix comment on recvfd
34790         * lib/passfd.c (recvfd): Fix comment.
34791         Reported by Jann Horn <jannhorn@googlemail.com>.
34793 2012-07-30  Jim Meyering  <meyering@redhat.com>
34795         maint.mk: avoid a sub-shell
34796         * top/maint.mk (release-prep): Remove unneeded sub-shell.
34798 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34800         maint.mk: use silent-rules support from Automake
34801         * top/maint.mk (news-check, vc-diff-check, announcement)
34802         (no-submodule-changes, alpha beta stable, release-prep)
34803         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
34805 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34807         maint.mk: provide a web-manual-update target
34808         * top/maint.mk: here.
34809         * top/README-release: Use it to simplify the web manual update step.
34811 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34813         README-release: shorten the circuit to post a news
34814         * top/README-release: Point directly to the news submission form.
34816 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34818         gnu-web-doc-update: fix --help
34819         * build-aux/gnu-web-doc-update: The information "top level" was written
34820         twice.
34822 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
34824         maint.mk: absolute VPATH issue
34825         * top/maint.mk (release-prep): Help Git find .git/.
34826         From Jim Meyering.
34828 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34830         gitlog-to-changelog: fix previous change
34831         * build-aux/gitlog-to-changelog: Fix condition.
34832         Add missing ";".
34834 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34836         gitlog-to-changelog: don't expect .git to be in $srcdir
34837         Reported by Bruno Haible.
34838         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
34839         * build-aux/gitlog-to-changelog (&git_dir_option): New.
34840         Use it.
34842 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
34844         maint.mk: absolute VPATH build fix
34845         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
34846         $(srcdir) is not a parent of $(builddir).
34848 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
34850         clean-temp: Fix memory leak.
34851         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
34852         'files' members of tmpdir.
34854 2012-07-27  Jim Meyering  <meyering@redhat.com>
34856         maint.mk: new rule: refresh-gnulib-patches
34857         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
34858         Use this rule to refresh them.
34859         * top/maint.mk (refresh-gnulib-patches): New rule.
34861 2012-07-24  Bruno Haible  <bruno@clisp.org>
34863         gnulib-tool: Fix handling of inctests variable.
34864         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
34865         Reported by Nick Bowler <nbowler@elliptictech.com>.
34867 2012-07-22  Bruno Haible  <bruno@clisp.org>
34869         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
34870         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
34871         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34872         Remove exemption for getpass.h.
34873         Suggested by Eric Blake.
34875 2012-07-20  Eric Blake  <eblake@redhat.com>
34877         verify: document conflict with -Wnested-externs
34878         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
34880         maint.mk: forbid exit(-1)
34881         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
34883 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34885         fsusage: port back to Solaris
34886         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
34887         error (fsd not declared) on Solaris 10.  Reported privately by
34888         Andrew Borodin.
34890 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
34892         gnu-web-doc-update: fix error messages
34893         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
34895         gnu-web-doc-update: check the requirements.
34896         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
34897         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
34898         * build-aux/bootstrap (find_tool): Comment change.
34900 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
34902         maint.mk: minor simplication.
34903         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
34904         for default values.
34906 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
34908         gitlog-to-changelog: VPATH build issues
34909         If builddir is not a subdirectory of srcdir, running git from it will
34910         fail.
34911         * build-aux/gitlog-to-changelog (--srcdir): New option.
34913 2012-07-15  Bruno Haible  <bruno@clisp.org>
34915         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
34916         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
34917         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
34918         Remove exemption for fpending.h.
34919         Suggested by Eric Blake.
34921 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34923         pthread_sigmask: fix bug on FreeBSD 9
34924         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
34925         Include string.h.
34926         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
34927         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
34928         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
34929         but pthread_sigmask (1729, NULL, NULL) returns zero.
34930         See <http://bugs.gnu.org/11884>.
34931         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
34932         by inspecting whether the main call changed the old mask.
34934 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
34936         README-release: make it more legible
34937         * top/README-release: Improve typography slightly.
34939 2012-07-15  Jim Meyering  <meyering@redhat.com>
34941         maint: require that each sc_... command start with "@"
34942         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
34943         "make sc_maint" helps us avoid this nit.
34945 2012-07-15  Jim Meyering  <meyering@redhat.com>
34947         maint.mk: add leading "@" to quiet new "make syntax-check" rule
34948         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
34950 2012-07-13  Eric Blake  <eblake@redhat.com>
34952         maint.mk: new syntax check for HAVE_DECL checks
34953         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
34954         * cfg.mk
34955         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
34956         Exempt some false positives.
34957         Based on a report by Karel Zak.
34959         argp: make HAVE_DECL usage consistent
34960         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
34961         macros, not whether they are defined.
34962         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
34963         convention with other declaration checks.
34964         Reported by Karel Zak, with suggestions from Paul Eggert.
34966         stat-time: relax license to LGPLv2+
34967         * modules/stat-time (License): Relax, with consent of all authors.
34969         strndup: fix m4 usage error
34970         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
34971         defined, to either 0 or 1.
34972         Reported by Karel Zak.
34974 2012-07-11  Jim Meyering  <meyering@redhat.com>
34976         maint: enable the sc_avoid_if_before_free syntax-check rule
34977         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
34978         (if_before_free_offenders_): Define.
34979         (if_before_free_basename_re_): Define.
34980         Exempt current files with useless if-before-free.
34982 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
34984         gettext: do not assume '#define ... defined ...' behavior
34985         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
34986         Do not use '#define FOO ... defined BAR ...', as the C standard says
34987         it's not portable to expect that this works after macro expansion.
34988         Problem reported for gzip by Steven M. Schweda in
34989         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
34991 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34993         getloadavg: clean out old Emacs and Autoconf cruft
34994         See Glenn Morris in <http://bugs.gnu.org/11905>.
34995         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
34996         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
34997         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
34998         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
35000 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
35002         bootstrap: let warn be like tests/init.sh's warn_
35003         Reported by Jim Meyering.
35004         * build-aux/bootstrap (warn): Remove, replaced by...
35005         (warnf_, warn_): these.
35006         Adjust callers.
35007         Shorten messages that no longer fit in 80 columns.
35009 2012-07-09  Bruno Haible  <bruno@clisp.org>
35011         getopt: Simplify after Emacs changed.
35012         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
35013         (gl_GETOPT_IFELSE): Remove macro.
35015 2012-07-09  Jim Meyering  <meyering@redhat.com>
35017         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
35018         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
35020         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
35021         Bugs in both of those conspired to make the
35022         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
35023         _sc_search_regexp's handling of non-empty $in_files would filter
35024         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
35025         choice of in_files value meant there would be no match in most
35026         projects, due to the presence of two or more Makefile.in files.
35027         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
35028         Fix a bug in how a non-empty $$in_files was processed:
35029         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
35030         in spite of the name, it's a regexp, not a list of file names.
35032 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35034         getloadavg, getopt: fix commentary re configure.in
35035         Autoconf is deprecating the name 'configure.in', so change it to
35036         to the new name 'configure.ac' in a couple of places.
35037         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
35038         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
35039         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
35040         Emacs has renamed it to configure.ac, and it no longer refers
35041         to these macros anyway.
35043         timespec: mark functions with const attributes
35044         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
35045         Mark with _GL_ATTRIBUTE_CONST.
35047 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35049         canonicalize[-lgpl]: handle "guessing" values when cross-building
35050         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35051         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
35052         matches "*yes" instead of just "yes".  Regression introduced in commit
35053         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
35055 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
35056             Bruno Haible  <bruno@clisp.org>
35058         canonicalize: make the right guess when cross-compiling to GNU
35059         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
35060         determine whether cross-compiling to glibc systems, so as to
35061         include GNU/Hurd.
35063 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35065         timespec-sub: avoid duplicate include
35066         * lib/timespec-sub.c: Do not include <config.h> twice.
35067         Reported by Juanma Barranquero.
35069 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
35071         bootstrap: use a more consistent error reporting scheme
35072         * build-aux/bootstrap (warn, die): New.
35073         Use them.
35075 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35077         sys_time: allow too-wide tv_sec
35078         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
35079         timeval even if tv_sec is wider than time_t.  This allows
35080         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
35081         as without this patch gnulib replaces struct timeval
35082         and OpenBSD futimes therefore has a type mismatch.
35083         * doc/posix-headers/sys_time.texi: Mention this.
35085         pthread: check for both pthread_create and pthread_join
35086         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
35087         alter the check so that it tests for both pthread_create and
35088         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
35089         Suggested by Bruno Haible and Richard Yao in
35090         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
35092         parse-datetime: doc tuneup
35093         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
35094         spacing issues.
35096 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
35098         do-release-commit-and-tag: fix the previous commit
35099         * build-aux/do-release-commit-and-tag: Actually the test was right,
35100         but the comment and the error message were misleading.
35101         Fix comment, and improve error message.
35102         Perform check first, so that NEWS is not modified uselessly.
35104         do-release-commit-and-tag: fix typo
35105         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
35106         _not_ start with a stub.
35108 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
35110         pthread: check for pthread_create, not pthread_join
35111         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
35112         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
35113         pthread_join in libc.  I hope this removes the need for all the
35114         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
35115         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
35117 2012-07-04  Jim Meyering  <meyering@redhat.com>
35119         parse-datetime: fix failure to diagnose invalid input
35120         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
35121         rather than diagnosing the invalid input.  Now it reports this:
35122         date: invalid date '\260'
35123         * lib/parse-datetime.y (to_uchar): Define.
35124         (yylex): Don't sign-extend "other" bytes.
35125         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
35126         Thanks to Bruno Haible for the patch to this file.
35127         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
35128         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
35130 2012-07-03  Jim Meyering  <meyering@redhat.com>
35132         bootstrap: do not require now-removed build-aux/missing
35133         Now that build-aux/missing is, er, missing, bootstrap would
35134         silently fail.
35135         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
35136         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
35137         no longer part of gnulib.
35138         Diagnose the failure.
35140 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
35142         alloca: add support for HP NonStop TNS/E native
35143         * lib/alloca.in.h (alloca): Support the new host.
35144         From a suggestion by Joachim Schmitz in
35145         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
35147 2012-07-02  Pádraig Brady  <P@draigBrady.com>
35149         fsusage: remove code not needed on non GNU/Linux systems.
35151         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35152         Don't include headers no longer needed in this case.
35153         * lib/fsusage.c [STAT_STATVFS &&
35154         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
35155         STAT_STATFS2_FRSIZE to exclude code not used in this case.
35157 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35159         fsusage: include files needed for glibc 2.6 fallback
35160         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
35161         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
35162         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
35163         Problem reported by Ludovic Courtès in
35164         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
35166         fsusage: avoid needless check on GNU/Linux
35167         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
35168         on GNU/Linux systems, since it can't possibly work.
35170 2012-07-01  Bruno Haible  <bruno@clisp.org>
35172         log: Fix an autoconf >= 2.64 warning.
35173         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
35174         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35176 2012-06-28  Bruno Haible  <bruno@clisp.org>
35178         log10f: Fix possible configuration problem.
35179         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
35180         $LOGF_LIBM.
35181         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35183 2012-06-28  Bruno Haible  <bruno@clisp.org>
35185         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
35186         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
35187         not gl_cv_func_unlink_works.
35188         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
35190 2012-06-27  Eric Blake  <eblake@redhat.com>
35192         config: drop scripts that automake says are not independent
35193         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
35194         * build-aux/elisp-comp: Delete.
35195         * build-aux/missing: Likewise.
35196         * build-aux/ylwrap: Likewise.
35197         * modules/elisp-comp: Likewise.
35198         * MODULES.html.sh: Drop mention of elisp-comp.
35199         * NEWS: Mention this.
35201 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35203         root-uid: new module
35204         This is for portability to Tandem's NonStop Kernel.
35205         * lib/root-uid.h, modules/root-uid: New files.
35206         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
35207         * lib/write-any-file.c, tests/test-sethostname2.c:
35208         Include "root-uid.h".
35209         * lib/euidaccess.c (euidaccess):
35210         * lib/pt_chown.c (main):
35211         * lib/unlinkdir.c (cannot_unlink_dir):
35212         * lib/write-any-file.c (can_write_any_file):
35213         * m4/mknod.m4 (gl_FUNC_MKNOD):
35214         * tests/test-sethostname2.c (geteuid, main):
35215         Don't assume ROOT_UID == 0.
35216         * modules/euidaccess (Depends-on):
35217         * modules/pt_chown (Depends-on):
35218         * modules/sethostname-tests (Depends-on):
35219         * modules/unlinkdir (Depends-on):
35220         * modules/write-any-file (Depends-on):
35221         Add root-uid.
35223         regex: use locale-independent comparison for codeset name
35224         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
35225         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
35226         for codeset name.
35227         * lib/regex_internal.h: Do not include <strings.h>, since we
35228         no longer use strcasecmp.
35229         * modules/regex (Depends-on): Remove strcase.
35231 2012-06-23  Bruno Haible  <bruno@clisp.org>
35233         getopt-posix: No longer guarantee that option processing is resettable.
35234         * doc/posix-functions/getopt.texi: Drop description of problem with
35235         internal state. Fix info about mingw and msvc9.
35236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
35237         option processing by getopt(). Run three test programs instead of one.
35238         Simplify cross-compilation guess.
35239         * NEWS: Mention the change.
35240         Reported by Rich Felker <dalias@aerifal.cx>.
35242 2012-06-26  Bruno Haible  <bruno@clisp.org>
35244         argp, regex: Ensure strcasecmp gets declared.
35245         * lib/argp-help.c: Include <strings.h>.
35246         * lib/regex_internal.h: Likewise.
35247         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
35249 2012-06-24  Bruno Haible  <bruno@clisp.org>
35251         ptsname_r: Make it consistent with ptsname on AIX.
35252         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
35253         implementation as for OSF/1.
35254         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
35255         a pty master.
35257         ptsname_r: Make it consistent with ptsname on OSF/1.
35258         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35259         OSF/1.
35261 2012-06-24  Bruno Haible  <bruno@clisp.org>
35263         ttyname_r: Fix result on OSF/1, Solaris.
35264         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
35266 2012-06-24  Bruno Haible  <bruno@clisp.org>
35268         ptsname_r: Add support for Solaris.
35269         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
35270         Solaris.
35272         ptsname_r: Fix test failure on native Windows.
35273         * modules/ptsname_r (Depends-on): Add isatty.
35275         ptsname_r: Fix test failures on IRIX, Solaris.
35276         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
35277         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
35278         accordingly.
35279         * lib/ptsname_r.c: Include <fcntl.h>.
35280         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
35281         set errno if fd is invalid.
35282         * tests/test-isatty.c (main): Update comments.
35284 2012-06-24  Bruno Haible  <bruno@clisp.org>
35286         ptsname test: Extend test.
35287         * tests/test-ptsname.c: Include <errno.h>.
35288         (main): Test behaviour with invalid file descriptor.
35290 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35292         time: fix obsolete comment
35293         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
35294         reference to HAVE_STRUCT_TIMESPEC in comment.
35296 2012-06-23  Bruno Haible  <bruno@clisp.org>
35298         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
35299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
35300         does not handle abbreviated long options with equivalent
35301         disambiguations, set gl_replace_getopt to yes.
35302         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
35304 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35306         time_r: fix typo that always overrode localtime_r decl
35307         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
35308         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
35309         not in a standard include.
35311 2012-06-22  Bruno Haible  <bruno@clisp.org>
35313         Write "Mac OS X" instead of "MacOS X".
35314         * README: Write "Mac OS X" instead of "MacOS X".
35315         * build-aux/bootstrap: Likewise.
35316         * build-aux/install-reloc: Likewise.
35317         * lib/acl-internal.h: Likewise.
35318         * lib/acl_entries.c: Likewise.
35319         * lib/argp-ba.c: Likewise.
35320         * lib/argp-pv.c: Likewise.
35321         * lib/config.charset: Likewise.
35322         * lib/copy-acl.c: Likewise.
35323         * lib/csharpexec.c: Likewise.
35324         * lib/euidaccess.c: Likewise.
35325         * lib/fbufmode.c: Likewise.
35326         * lib/fflush.c: Likewise.
35327         * lib/file-has-acl.c: Likewise.
35328         * lib/filemode.h: Likewise.
35329         * lib/fpurge.c: Likewise.
35330         * lib/freadable.c: Likewise.
35331         * lib/freadahead.c: Likewise.
35332         * lib/freading.c: Likewise.
35333         * lib/freadptr.c: Likewise.
35334         * lib/freadseek.c: Likewise.
35335         * lib/fseeko.c: Likewise.
35336         * lib/fseterr.c: Likewise.
35337         * lib/fsusage.c: Likewise.
35338         * lib/fwritable.c: Likewise.
35339         * lib/fwriting.c: Likewise.
35340         * lib/get-rusage-as.c: Likewise.
35341         * lib/get-rusage-data.c: Likewise.
35342         * lib/getdomainname.c: Likewise.
35343         * lib/idpriv-drop.c: Likewise.
35344         * lib/idpriv-droptemp.c: Likewise.
35345         * lib/localcharset.c: Likewise.
35346         * lib/locale.in.h: Likewise.
35347         * lib/localename.c: Likewise.
35348         * lib/mbsrtowcs-state.c: Likewise.
35349         * lib/nproc.c: Likewise.
35350         * lib/passfd.c: Likewise.
35351         * lib/posix_openpt.c: Likewise.
35352         * lib/printf-parse.c: Likewise.
35353         * lib/progreloc.c: Likewise.
35354         * lib/safe-read.h: Likewise.
35355         * lib/safe-write.h: Likewise.
35356         * lib/sched.in.h: Likewise.
35357         * lib/set-mode-acl.c: Likewise.
35358         * lib/signal.in.h: Likewise.
35359         * lib/stdint.in.h: Likewise.
35360         * lib/stdio-impl.h: Likewise.
35361         * lib/stdlib.in.h: Likewise.
35362         * lib/strtod.c: Likewise.
35363         * lib/sys_select.in.h: Likewise.
35364         * lib/tcgetsid.c: Likewise.
35365         * lib/unistd.in.h: Likewise.
35366         * lib/unlockpt.c: Likewise.
35367         * lib/vasnprintf.c: Likewise.
35368         * lib/vma-iter.c: Likewise.
35369         * lib/wcsrtombs-state.c: Likewise.
35370         * m4/acl.m4: Likewise.
35371         * m4/acosl.m4: Likewise.
35372         * m4/asinl.m4: Likewise.
35373         * m4/atanl.m4: Likewise.
35374         * m4/c-stack.m4: Likewise.
35375         * m4/cosl.m4: Likewise.
35376         * m4/expl.m4: Likewise.
35377         * m4/extensions.m4: Likewise.
35378         * m4/fdatasync.m4: Likewise.
35379         * m4/fmal.m4: Likewise.
35380         * m4/frexp.m4: Likewise.
35381         * m4/frexpf.m4: Likewise.
35382         * m4/frexpl.m4: Likewise.
35383         * m4/fsusage.m4: Likewise.
35384         * m4/getdomainname.m4: Likewise.
35385         * m4/getloadavg.m4: Likewise.
35386         * m4/getopt.m4: Likewise.
35387         * m4/gettext.m4: Likewise.
35388         * m4/gnulib-common.m4: Likewise.
35389         * m4/intdiv0.m4: Likewise.
35390         * m4/intlmacosx.m4: Likewise.
35391         * m4/largefile.m4: Likewise.
35392         * m4/ldexpl.m4: Likewise.
35393         * m4/link-follow.m4: Likewise.
35394         * m4/locale-ar.m4: Likewise.
35395         * m4/locale-fr.m4: Likewise.
35396         * m4/locale-ja.m4: Likewise.
35397         * m4/locale-tr.m4: Likewise.
35398         * m4/locale-zh.m4: Likewise.
35399         * m4/locale_h.m4: Likewise.
35400         * m4/lock.m4: Likewise.
35401         * m4/logl.m4: Likewise.
35402         * m4/mathfunc.m4: Likewise.
35403         * m4/minus-zero.m4: Likewise.
35404         * m4/mktime.m4: Likewise.
35405         * m4/mmap-anon.m4: Likewise.
35406         * m4/multiarch.m4: Likewise.
35407         * m4/nanosleep.m4: Likewise.
35408         * m4/nocrash.m4: Likewise.
35409         * m4/poll.m4: Likewise.
35410         * m4/printf-frexpl.m4: Likewise.
35411         * m4/printf.m4: Likewise.
35412         * m4/signbit.m4: Likewise.
35413         * m4/sinl.m4: Likewise.
35414         * m4/sqrtl.m4: Likewise.
35415         * m4/strerror_r.m4: Likewise.
35416         * m4/tanl.m4: Likewise.
35417         * m4/threadlib.m4: Likewise.
35418         * m4/ttyname_r.m4: Likewise.
35419         * m4/unlink.m4: Likewise.
35420         * m4/visibility.m4: Likewise.
35421         * m4/wcwidth.m4: Likewise.
35422         * tests/minus-zero.h: Likewise.
35423         * tests/test-alloca-opt.c: Likewise.
35424         * tests/test-copy-acl.sh: Likewise.
35425         * tests/test-copy-file.sh: Likewise.
35426         * tests/test-fdatasync.c: Likewise.
35427         * tests/test-file-has-acl.sh: Likewise.
35428         * tests/test-flock.c: Likewise.
35429         * tests/test-fsync.c: Likewise.
35430         * tests/test-localename.c: Likewise.
35431         * tests/test-malloca.c: Likewise.
35432         * tests/test-nonblocking-pipe.h: Likewise.
35433         * tests/test-nonblocking-socket.h: Likewise.
35434         * tests/test-openpty.c: Likewise.
35435         * tests/test-posix_openpt.c: Likewise.
35436         * tests/test-ptsname.c: Likewise.
35437         * tests/test-ptsname_r.c: Likewise.
35438         * tests/test-sameacls.c: Likewise.
35439         * tests/test-select.h: Likewise.
35440         * tests/test-set-mode-acl.sh: Likewise.
35441         * tests/test-snprintf-posix.h: Likewise.
35442         * tests/test-sprintf-posix.h: Likewise.
35443         * tests/test-strtod.c: Likewise.
35444         * tests/test-time.c: Likewise.
35445         * tests/test-vasnprintf-posix.c: Likewise.
35446         * tests/test-vasprintf-posix.c: Likewise.
35447         * doc/acl-resources.txt: Likewise.
35448         * doc/**/*.texi: Likewise.
35449         Reported by Max Horn <max@quendi.de>.
35451 2012-06-22  Bruno Haible  <bruno@clisp.org>
35453         grantpt: Relax requirement regarding invalid file descriptors.
35454         * lib/grantpt.c: Don't include <fcntl.h>.
35455         (grantpt): Don't verify the validity of the file descriptor.
35456         * modules/grantpt (Depends-on): Remove fcntl-h.
35457         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
35458         file descriptors.
35459         * doc/posix-functions/grantpt.texi: Document more platforms on which
35460         grantpt succeeds for invalid file descriptors.
35461         Reported by Rich Felker <dalias@aerifal.cx>.
35463 2012-06-22  Bruno Haible  <bruno@clisp.org>
35465         fbufmode test: Don't test unportable behaviour.
35466         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
35467         (main): Invoke it three times.
35468         Reported by Szabolcs Nagy <nsz@port70.net>
35469         and Rich Felker <dalias@aerifal.cx>.
35471 2012-06-21  Bruno Haible  <bruno@clisp.org>
35473         gnulib-tool: Refactor inctests variable.
35474         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
35475         (func_modules_transitive_closure,
35476         func_modules_transitive_closure_separately,
35477         func_import, func_create_testdir): Update.
35479         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
35480         * gnulib-tool: Accept option --without-tests.
35481         (func_usage): Document --without-tests option. Rearrange.
35482         (inctests): Normalize according to the mode.
35483         * NEWS: Mention the change.
35484         Suggested by Simon Josefsson.
35486 2012-06-21  Bruce Korb  <bkorb@gnu.org>
35488         parse-duration test: Avoid spurious output.
35489         * tests/test-parse-duration.sh: Reindent with leading tabs.
35491 2012-06-21  Jim Meyering  <meyering@redhat.com>
35493         maint: disable the strncpy prohibition
35494         * cfg.mk: Do not prohibit strncpy here.
35496 2012-06-21  Bruno Haible  <bruno@clisp.org>
35498         nonblocking: Avoid compilation error on mingw64.
35499         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
35500         fscanf.
35501         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
35502         * modules/vfscanf (configure.ac): Likewise.
35503         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
35504         definition only if stdio.h has prepared it.
35505         Reported by Daniel P. Berrange <berrange@redhat.com>.
35507 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
35509         gnulib-tool: Use readlink if it is available.
35510         * gnulib-tool (func_readlink): Choose function more appropriately.
35512 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35514         posixtm-tests: port to buggy compiler
35515         Problem reported by Simon Josefsson in
35516         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
35517         * modules/posixtm-tests (Depends-on): Add stdint.
35518         * tests/test-posixtm.c (struct posixtm_test.t_expected):
35519         Now of type int_least64_t, not int64_t, both because that's
35520         what INT64_C returns and because int_least64_t works even
35521         on 72-bit hosts.
35522         (T): Use INT64_C on constants outside the traditional int range,
35523         to work around compiler bug noted by Simon.
35525         mktime: fix integer overflow in 'configure'-time test
35526         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
35527         after integer overflow.  Problem reported by Rich Felker in
35528         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
35529         Also, don't look for further instances of a bug if we've already
35530         found one instance; this helps 'configure' run faster.
35532 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
35534         tmpfile, clean-temp: Fix invocation of GetVersionEx.
35535         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
35536         GetVersionEx correctly.
35537         * lib/clean-temp.c (supports_delete_on_close): Likewise.
35539 2012-06-20  Bruno Haible  <bruno@clisp.org>
35541         fdopen: Allow implementations that don't reject invalid fd arguments.
35542         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
35543         succeeds.
35544         Reported by Rich Felker <dalias@aerifal.cx>.
35546 2012-06-20  Simon Josefsson  <simon@josefsson.org>
35548         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
35549         bring in LIBINTL.
35551 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35553         init.sh: do not rely on autoupated PWD
35554         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
35555         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
35556         Although Nelson's bug was not necessarily fixed by this patch,
35557         it seems wise to make the change for safety.
35558         * tests/init.sh (path_prepend_): Do not rely on PWD updating
35559         automagically after 'cd'; this is not reliable on older shells.
35560         (setup_): Fail if we cannot cd to temporary directory.
35562 2012-06-19  Bruno Haible  <bruno@clisp.org>
35564         stat, fstat: Avoid warnings on mingw64.
35565         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
35566         redefining.
35567         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
35568         Reported by Daniel P. Berrange <berrange@redhat.com>.
35570 2012-06-19  Bruno Haible  <bruno@clisp.org>
35572         stdioext: Add support for musl libc.
35574         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
35575         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
35577         * m4/fseterr.m4: New file.
35578         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
35579         function exists.
35580         * modules/fseterr (Files): Add m4/fseterr.m4.
35581         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
35582         __fseterr does not exist.
35583         (Makefile.am): Remove fseterr.c from lib_SOURCES.
35585         * lib/freadable.h: Update comment.
35587         * lib/fwritable.h: Update comment.
35589         * lib/freading.h: Update comment.
35591         * lib/fwriting.h: Update comment.
35593         * m4/freadahead.m4: New file.
35594         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
35595         that function exists.
35596         * modules/freadahead (Files): Add m4/freadahead.m4.
35597         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
35598         __freadahead does not exist.
35599         (Makefile.am): Remove freadahead.c from lib_SOURCES.
35601         * m4/freadptr.m4: New file.
35602         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
35603         function exists.
35604         * modules/freadptr (Files): Add m4/freadptr.m4.
35605         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
35606         __freadptr does not exist.
35607         (Makefile.am): Remove freadptr.c from lib_SOURCES.
35609         * m4/freadseek.m4: New file.
35610         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
35611         exists.
35612         * modules/freadseek (Files): Add m4/freadseek.m4.
35613         (configure.ac): Invoke gl_FUNC_FREADSEEK.
35615         * lib/fpurge.c (fpurge): Update comment.
35617         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
35619 2012-06-19  Bruno Haible  <bruno@clisp.org>
35621         *printf-posix: Put more info into config.log.
35622         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
35623         exit code into config.log.
35625 2012-06-19  Bruno Haible  <bruno@clisp.org>
35627         getopt-gnu: Fix exit code overflow in autoconf test.
35628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
35629         to keep them below < 128.
35631 2012-06-17  Jim Meyering  <meyering@redhat.com>
35633         maint.mk: fix typo in code to derive GPG key at release time
35634         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
35636 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
35638         regex: avoid warning when pointers are not long
35639         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
35640         and uintptr_t, not long, for portability to hosts where pointers and
35641         long have different sizes.  Issue noted by Daniel P. Berrange in
35642         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
35643         and fix suggested by Bruno Haible in
35644         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
35646 2012-06-17  Bruno Haible  <bruno@clisp.org>
35648         dummy: Relicense into the public domain.
35649         * modules/dummy (License): Set to "public domain".
35650         Suggested by Reuben Thomas.
35652 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35654         announce-gen: VPATH issues
35655         * build-aux/announce-gen (--srcdir): New option, used to trim the
35656         $srcdir part of the path from $builddir to NEWS.
35657         * top/maint.mk (announcement): Adjust.
35659 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
35661         gnu-web-doc-update: VPATH builds
35662         * build-aux/gnu-web-doc-update (--builddir): New option.
35663         Revamp the handling of options.
35664         Prefer $(...) to `...`.
35665         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
35666         the template, and it is GNU mktemp specific.
35667         Prefer set -e to long series of &&.
35668         Restore the initial git branch, not "master".
35669         Properly initialize submodules (don't rely only on bootstrap).
35670         Do not reconfigure blindly, use config.status.
35671         * top/README-release: Update instructions for gnu-web-doc-update.
35673 2012-06-11  Jim Meyering  <meyering@redhat.com>
35675         maint.mk: revert most of the previous change re "all these"
35676         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
35677         For rationale, see the discussion at
35678         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
35680 2012-06-10  Karl Berry  <karl@gnu.org>
35682         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
35684         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
35686 2012-06-10  Bruce Korb  <bkorb@gnu.org>
35688         parse-duration: Relicense under LGPLv2+.
35689         * modules/parse-duration (License): Change to LGPLv2+.
35691 2012-06-10  Jim Meyering  <meyering@redhat.com>
35693         maint.mk: prohibit common grammar error: "all these"
35694         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
35695         the list of prohibited word sequences.  It should be "all of these".
35696         * lib/tempname.c (__gen_tempname): Fix one of them.
35698 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35700         do-release-commit-and-tag: support VPATH builds
35701         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
35702         (noteworthy): Defined earlier to factor its value.
35703         (noteworthy_stub): New.
35704         Use it to factor.
35705         (help_version): Split into...
35706         (help, version): these.
35707         Adjust the option processing part.
35708         Support "--option=value" in addition to "--option value".
35709         (builddir): New.
35710         (--builddir): New option.
35711         * top/README-release: Document this.
35712         Reword slightly so that the reader cannot understand that he
35713         has to do these steps before calling do-release-commit-and-tag.
35715 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35717         readme-release: also require announce-gen and maintainer-makefile
35718         * modules/readme-release (Depends-on): here.
35719         * modules/announce-gen, modules/do-release-commit-and-tag,
35720         modules/gnu-web-doc-update, modules/maintainer-makefile
35721         (Description): Point to readme-release.
35723 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35725         maint.mk: fix VPATH issues.
35726         * top/maint.mk (news-check): GNU Make understand $< very well.
35727         (release-prep): NEWS is in $(srcdir).
35729 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
35731         readme-release: require the promoted modules.
35732         * modules/readme-release (Depends-on): Add
35733         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
35734         in this text.
35736 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35737             Bruno Haible  <bruno@clisp.org>
35739         error, strerror-override: Support mingw64 from Fedora 17.
35740         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
35741         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
35742         EINPROGRESS.
35743         * lib/strerror-override.h (strerror_override): Test it.
35744         * lib/strerror-override.c (strerror_override): Likewise.
35745         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
35747 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35748             Bruno Haible  <bruno@clisp.org>
35750         error, strerror-override: Support mingw64 from Fedora 17.
35751         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
35752         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
35753         * lib/strerror-override.h (strerror_override): Test it.
35754         * lib/strerror-override.c (strerror_override): Likewise.
35756 2012-06-03  Bruno Haible  <bruno@clisp.org>
35758         error, strerror-override: Support new errno values from POSIX:2008.
35759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
35760         ENOTRECOVERABLE.
35761         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
35762         platforms.
35763         * lib/strerror-override.c (strerror_override): Conditionalize the
35764         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
35765         * lib/strerror-override.h (strerror_override): Declare also if
35766         GNULIB_defined_EOWNERDEAD is defined.
35767         * tests/test-errno.c (e130, e131): New variables.
35768         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
35769         ENOTRECOVERABLE.
35770         Reported by Paolo Bonzini.
35772 2012-05-31  Jim Meyering  <meyering@redhat.com>
35774         savewd: add missing dependency on sys_wait module
35775         * modules/savewd (Depends-on): Add sys_wait, needed at least
35776         for MSVC.  Report and suggested change by Michael Goffioul.
35778 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35780         system-quote-tests: port to CentOS 5
35781         Problem reported by Tom G. Christensen in
35782         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
35783         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
35785 2012-05-29  Jim Meyering  <meyering@redhat.com>
35787         maint: fix typos in comments and ChangeLog
35788         Culprits identified and fixed mostly automatically using these commands:
35789         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
35790         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
35791         using http://github.com/lyda/misspell-check
35792         * ChangeLog: Fix typos.
35793         * doc/solaris-versions: Likewise.
35794         * lib/regexec.c (re_search_stub): Likewise.
35795         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
35797 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
35799         manywarnings: remove duplicate -Wmultichar entry
35800         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
35801         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
35802         so keep the entry marked as documented.
35804 2012-05-27  Karl Berry  <karl@gnu.org>
35806         * config/srclist.txt (mktime.c): remove last libc sync,
35807         perhaps just temporarily.
35809 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
35811         regex: don't assume uint64_t or uint32_t
35812         * lib/regcomp.c (init_word_char): Don't assume that the types
35813         uint64_t and uint32_t exist.  The C standard doesn't guarantee
35814         them, and on some 32-bit compilers there is no uint64_t.
35815         Problem reported by Gianluigi Tiesi in
35816         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
35818 2012-05-25  Jim Meyering  <meyering@redhat.com>
35820         maint.mk: add strncpy-prohibiting syntax-check rule
35821         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
35823 2012-05-24  Jim Meyering  <meyering@redhat.com>
35825         maint.mk: compute $(gpg_key_ID) more portably
35826         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
35827         That use of sed is not portable to some fringe systems.
35828         Reported by Paul Eggert in
35829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
35831 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
35833         mktime: sync from glibc
35834         * config/srclist.txt: Uncomment mktime.c.
35835         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
35836         First, indent with tabs, since glibc uses tabs and doesn't want to
35837         change and we'd rather be identical to glibc.  Also, two small
35838         coding changes:
35839         (isdst_differ): Use &&, not &, as && is the usual style.
35840         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
35841         for clarity.
35843 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35845         announce-gen: du -h is more portable than du --human
35846         * build-aux/announce-gen (sizes): Invoke du with -h instead
35847         of --human.  Accept leading white space in its output.
35849 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35851         announce-gen: Improve diagnostics.
35852         * build-aux/announce-gen: When parsing command line options,
35853         prefer "announce-gen: option --release-type requires an argument"
35854         to "Option release-type requires an argument".
35856 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
35858         maint.mk: gpg_key_ID: use sed more portably
35859         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
35860         the closing brace.
35861         (refresh-po): Fuse two sed invocations into one.
35863 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
35865         gitlog-to-changelog: support the log message format used in Bison.
35866         * build-aux/gitlog-to-changelog: Support --strip-tab and
35867         --strip-cherry-picked.
35869 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
35871         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
35872         the rest of the current time slice to another thread in the current
35873         process. So if the thread that feeds the file decscriptor we're
35874         polling is not in the current process, we get busy-waiting.
35875         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
35876         Patch from Theodore Leblond.
35877         * lib/select.c: Split polling out of the loop that sets the output
35878         fd_sets.  Check for zero result and loop if the wait timeout is
35879         infinite.
35881 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35883         select: Fix build error on IRIX 6.5.
35884         * lib/select.c: Include stddef.h for NULL.
35886 2012-05-21  Simon Josefsson  <simon@josefsson.org>
35888         gc: fix libgcrypt detection on older machines.
35889         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
35890         copyright years because the file has been distributed every year
35891         since it was created.
35893 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35895         crypto: fix bug in large buffer handling
35896         Problem reported by Serge Belyshev for glibc in
35897         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
35898         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
35899         * lib/md4.c (md4_process_block):
35900         * lib/md5.c (md5_process_block):
35901         * lib/sha1.c (sha1_process_block):
35902         * lib/sha256.c (sha256_process_block):
35903         Don't assume the buffer length is less than 2**32.
35904         * lib/sha512.c (sha512_process_block): Likewise.
35905         Here, the bug is present only in the rare case where the host does
35906         not support uint64_t or where size_t is wider than 64 bits.
35907         Use u64size to work around the problems.
35908         * lib/u64.h (u64size): New macro.
35910 2012-05-15  Pádraig Brady  <P@draigBrady.com>
35912         fsusage: fix block size returned on older Linux 2.6
35914         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
35915         which is available since Linux 2.6.
35916         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
35917         when the member is available so it can be used as a fallback.
35918         * doc/posix-functions/statvfs.texi: Mention the hang issue
35919         on Linux < 2.6.36.
35921 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35923         bootstrap: suppress stderr chatter
35924         * build-aux/bootstrap (insert_sorted_if_absent, main program):
35925         Omit unnecessary chatter to stderr.  The main program chatter
35926         was there only inadvertantly.
35928         bootstrap: .gitignore files created by autopoint, libtool
35929         I ran into this problem when bootstrapping the latest diffutils.
35930         After './bootstrap', 'git status' reported lots of untracked files
35931         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
35932         autopoint and do not need to be version-controlled.
35933         * build-aux/bootstrap: Put into .gitignore the files that
35934         autopoint and libtool create, by keeping track of files that exist
35935         after but not before these programs are run.
35936         (version_controlled_file): Move up.  2nd arg is now full file
35937         name, not base name; this is more convenient.  Put CVS at the end,
35938         as it's now somewhat deprecated.
35940 2012-05-14  Jim Meyering  <meyering@redhat.com>
35942         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
35943         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
35944         definition.  Reported by Bruno Haible.
35946 2012-05-13  Bruno Haible  <bruno@clisp.org>
35947             Paul Eggert  <eggert@cs.ucla.edu>
35949         binary-io: Define set_binary_mode function.
35950         * lib/binary-io.h (set_binary_mode): New function.
35951         (SET_BINARY): Define in terms of set_binary_mode.
35952         * modules/binary-io (configure.ac): Require AC_C_INLINE.
35953         * tests/test-binary-io.c (main): Accept an argument, and test either
35954         set_binary_mode or SET_BINARY depending on the argument.
35955         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
35956         argument. Clean up also t-bin-out0.tmp.
35958 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
35960         bootstrap: take advantage of POSIX shell features
35962         The 'bootstrap' script offered by Gnulib script already uses POSIX
35963         shell features (like $((...)) arithmetic expansions) that are not
35964         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
35965         means that bootstrap must already be run using a proper POSIX shell,
35966         which will thus provide more features, like ${var#pattern} parameter
35967         expansion or inversion of a command exit status with '!'.  We can
35968         thus use these features to improve the clarity and the performances
35969         of the bootstrap script.
35971         Suggested by Eric Blake.
35973         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
35974         of sed/expr plus command substitutions, to save some forks.  While
35975         we are at it, prefer the POSIX $(...) form of command substitution,
35976         rather than the legacy form `...` (since the former is visually
35977         clearer and interacts better with quoting), and prefer the idiom:
35978           "if ! CMD; then ACTION ..."
35979         over the idiom:
35980           "if CMD; then :; else ACTION ..."
35981         which was required by legacy Bourne shells not supporting '!'.
35983 2012-05-12  Bruno Haible  <bruno@clisp.org>
35985         system-quote: Add more comments.
35986         * lib/system-quote.h: Add more comments about wilcards and limitations.
35987         Suggested by Eli Zaretskii <eliz@gnu.org>.
35989         sh-quote, system-quote: Add comments about wildcards.
35990         * lib/sh-quote.h: Clarify what happens with wildcard characters.
35991         * lib/system-quote.h: Likewise.
35992         Reported by Eli Zaretskii <eliz@gnu.org>.
35994 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35996         fsusage: check for GNU/Linux statvfs problem dynamically
35997         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
35998         Define STAT_STATFS2_BSIZE too, since in this case the code now
35999         checks dynamically whether statvfs is reliable, falling back on
36000         Linux-style statfs otherwise.
36001         (statvfs_works): New function, for dynamically testing statvfs.
36002         (get_fs_usage) [STAT_STATVFS]: Use it.
36003         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
36004         statvfs on GNU/Linux hosts, since it's now done dynamically.
36006 2012-05-10  Bruno Haible  <bruno@clisp.org>
36008         system-quote, execute, spawn-pipe: Escape '?' on Windows.
36009         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
36010         '?' character.
36011         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
36012         * tests/test-system-quote-main.c (check_all): Check also strings like
36013         "??????????".
36014         Reported by Eli Zaretskii <eliz@gnu.org>.
36016 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
36018         _Noreturn: port config.h to gcc -Wundef
36019         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
36020         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
36021         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
36023 2012-05-10  Bruno Haible  <bruno@clisp.org>
36025         system-quote: Refactor.
36026         * lib/system-quote.h (system_quote_copy): Fix comment.
36027         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
36028         New functions, extracted from system_quote_copy.
36029         (system_quote_length, system_quote_copy): Use these functions.
36030         Reported by Paul Eggert.
36032 2012-05-08  Bruno Haible  <bruno@clisp.org>
36034         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
36035         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
36037 2012-05-08  Bruno Haible  <bruno@clisp.org>
36039         Tests for module 'system-quote'.
36040         * modules/system-quote-tests: New file.
36041         * tests/test-system-quote.sh: New file.
36042         * tests/test-system-quote-main.c: New file.
36043         * tests/test-system-quote-child.c: New file.
36045         New module 'system-quote'.
36046         * lib/system-quote.h: New file.
36047         * lib/system-quote.c: New file.
36048         * modules/system-quote: New file.
36050 2012-05-08  Bruno Haible  <bruno@clisp.org>
36052         sh-quote: Make C++ safe and allow multiple inclusion.
36053         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
36054         declarations in extern "C".
36056 2012-05-08  Bruno Haible  <bruno@clisp.org>
36058         sh-quote tests: Make tests stricter.
36059         * tests/test-sh-quote.c (check_one): Check the return value of
36060         shell_quote_copy.
36061         (main): Check a string with a CR character. Check a string that
36062         contains UCHAR_MAX.
36064 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
36066         warnings.m4: provide a means to specify the program to compile.
36067         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
36068         (gl_WARN_ADD): here.
36069         Use gl_AS_VAR_APPEND.
36070         Support an argument to specify the program to compile.
36071         (gl_WARN_ADD): Accept an argument to specify the program to compile.
36072         AC_SUBST the WARN_CFLAGS when they are used.
36073         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
36074         leave this to gl_WARN_ADD.
36076 2012-05-08  Eric Blake  <eblake@redhat.com>
36078         doc: recommendations on gettext version
36079         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
36080         choice between versions.
36081         * DEPENDENCIES (gettext): Cover both approaches.
36083 2012-05-08  Jim Meyering  <meyering@redhat.com>
36085         init.sh: explain why EXEEXT support uses aliases rather than functions
36086         * tests/init.sh: Add a comment.
36088         init.sh: don't let bash aliases interfere with tests
36089         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
36090         is bash.  This avoids problems for those who alias standard commands to
36091         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
36092         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
36094 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
36096         stdint: be more consistent with glibc, SunOS libc
36097         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
36098         (gl_int_fast16_t, gl_uint_fast16_t)
36099         (gl_int_fast32_t, gl_uint_fast32_t)
36100         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
36101         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
36102         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36103         Be consistent with glibc by default, and with SunOS 5.10 and later
36104         if __sun is defined.  This lessens the likelihood of clashes if
36105         code compiled for older hosts is combined with code compiled for
36106         newer ones.  Problem reported by Niels Möller in
36107         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
36109 2012-05-07  Eric Blake  <eblake@redhat.com>
36111         isatty: relax license to LGPLv2+
36112         * modules/isatty (License): Relax license.
36114 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36116         stat-size: comment fix
36117         * lib/stat-size.h: Remove obsolete comment about indenting.
36119 2012-05-06  Bruno Haible  <bruno@clisp.org>
36121         Tests for module 'sh-quote'.
36122         * modules/sh-quote-tests: New file.
36123         * tests/test-sh-quote.c: New file.
36125 2012-05-06  Bruno Haible  <bruno@clisp.org>
36127         sh-quote: Improve shell_quote_argv's signature.
36128         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
36129         * lib/sh-quote.c (shell_quote_argv): Likewise.
36131 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36133         stdint: document issues with int_fast8_t etc.
36134         * doc/posix-headers/stdint.texi (stdint.h): Say that other
36135         stdint.h substitutes may define these types differently.  See
36136         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
36138 2012-05-05  Bruno Haible  <bruno@clisp.org>
36140         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
36141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
36142         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
36143         or 'guessing no (mishandles large arguments)'.
36145 2012-05-05  Bruno Haible  <bruno@clisp.org>
36147         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
36148         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
36149         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36150         set gl_cv_func_link_follows_symlink to "guessing no".
36152 2012-05-05  Bruno Haible  <bruno@clisp.org>
36154         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
36155         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
36156         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
36157         "guessing no".
36158         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
36160 2012-05-05  Bruno Haible  <bruno@clisp.org>
36162         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
36163         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
36164         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
36165         set gl_cv_struct_dirent_d_ino to "guessing yes".
36167 2012-05-05  Bruno Haible  <bruno@clisp.org>
36169         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
36170         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
36171         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
36172         "guessing yes".
36174 2012-05-05  Bruno Haible  <bruno@clisp.org>
36176         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
36177         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
36178         compiling to a glibc system, set gl_cv_func_signbit and
36179         gl_cv_func_signbit_gcc to "guessing yes".
36181 2012-05-05  Bruno Haible  <bruno@clisp.org>
36183         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
36184         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
36185         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
36186         to "guessing yes".
36187         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
36188         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
36190 2012-05-05  Bruno Haible  <bruno@clisp.org>
36192         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
36193         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
36194         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
36195         gl_cv_func_realpath_works to "guessing yes".
36197 2012-05-05  Bruno Haible  <bruno@clisp.org>
36199         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
36200         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
36201         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
36203 2012-05-04  Bruno Haible  <bruno@clisp.org>
36205         Tweak last commit.
36206         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
36207         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36209 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
36211         unistd_h: make it easier to avoid sys_types_h
36212         This is useful for Emacs, which has its own method of porting to
36213         Windows, and which therefore does not need the sys_types_h module.
36214         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
36215         code moved here from gl_SYS_TYPES_H.
36216         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
36217         using the code directly.
36218         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
36219         gl_SYS_TYPES_H.
36220         * modules/sys_types (Files):
36221         * modules/unistd (Files): Add m4/off_t.m4.
36223 2012-05-03  Bruno Haible  <bruno@clisp.org>
36225         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
36226         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
36227         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
36228         "guessing yes" or "guessing no".
36229         (gl_FUNC_LSTAT): Update.
36230         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
36231         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
36232         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
36234 2012-05-03  Bruno Haible  <bruno@clisp.org>
36236         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
36237         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
36238         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
36239         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
36240         cross-compiling, choose the first alternative on glibc systems.
36241         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
36243 2012-05-03  Bruno Haible  <bruno@clisp.org>
36245         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
36246         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
36247         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
36249 2012-05-03  Bruno Haible  <bruno@clisp.org>
36251         chown: Avoid "guessing no" when cross-compiling to glibc systems.
36252         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
36254 2012-05-03  Bruno Haible  <bruno@clisp.org>
36256         Avoid "guessing no" guesses when cross-compiling to glibc systems.
36257         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
36258         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
36259         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
36260         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
36261         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
36262         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
36263         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
36264         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
36265         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
36266         compiling to glibc systems, set gl_cv_func_chown_slash_works,
36267         gl_cv_func_chown_ctime_works to "guessing yes".
36268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
36269         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
36270         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
36271         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
36272         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
36273         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
36274         compiling to glibc systems, set gl_cv_func_open_directory_works to
36275         "guessing yes".
36276         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
36277         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
36278         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
36279         "guessing yes".
36280         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
36281         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
36282         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
36283         compiling to glibc systems, set gl_cv_func_floorf_ieee to
36284         "guessing yes".
36285         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
36286         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
36287         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
36288         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
36289         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
36290         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
36291         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
36292         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
36293         "guessing yes".
36294         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
36295         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
36296         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
36297         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
36298         "guessing yes".
36299         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
36300         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
36301         "guessing yes".
36302         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
36303         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
36304         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
36305         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
36306         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
36307         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
36308         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
36309         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
36310         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
36311         compiling to glibc systems, set gl_cv_func_log10f_ieee to
36312         "guessing yes".
36313         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
36314         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
36315         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
36316         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
36317         "guessing yes".
36318         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
36319         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
36320         "guessing yes".
36321         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
36322         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
36323         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
36324         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
36325         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
36326         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
36327         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
36328         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
36329         compiling to glibc systems, set gl_cv_func_mkfifo_works to
36330         "guessing yes".
36331         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
36332         compiling to glibc systems, set gl_cv_func_mknod_works to
36333         "guessing yes".
36334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
36335         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
36336         "guessing yes".
36337         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
36338         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
36339         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
36340         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
36341         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
36342         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
36343         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
36344         compiling to glibc systems, set gl_cv_func_svid_putenv to
36345         "guessing yes".
36346         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
36347         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
36348         "guessing yes".
36349         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
36350         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
36351         "guessing yes".
36352         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
36353         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
36354         to "guessing yes".
36355         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
36356         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
36357         to "guessing yes".
36358         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
36359         compiling to glibc systems, set gl_cv_func_rmdir_works to
36360         "guessing yes".
36361         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
36362         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
36363         gl_cv_func_unlink_parent_fails to "guessing yes".
36364         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
36365         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
36366         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
36367         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
36368         gl_cv_func_rename_dest_works to "guessing yes".
36369         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
36370         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
36371         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
36372         compiling to glibc systems, set gl_cv_func_roundf_ieee to
36373         "guessing yes".
36374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
36375         compiling to glibc systems, set gl_cv_func_roundl_ieee to
36376         "guessing yes".
36377         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
36378         compiling to glibc systems, set gl_cv_func_setenv_works to
36379         "guessing yes".
36380         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
36381         compiling to glibc systems, set gl_cv_func_unsetenv_works to
36382         "guessing yes".
36383         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
36384         compiling to glibc systems, set gl_cv_func_sleep_works to
36385         "guessing yes".
36386         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
36387         compiling to glibc systems, set gl_cv_func_stat_file_slash to
36388         "guessing yes".
36389         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
36390         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
36391         "guessing yes".
36392         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
36393         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
36394         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
36395         compiling to glibc systems, set gl_cv_func_truncf_ieee to
36396         "guessing yes".
36397         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
36398         compiling to glibc systems, set gl_cv_func_truncl_ieee to
36399         "guessing yes".
36400         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
36401         compiling to glibc systems, set gl_cv_func_usleep_works to
36402         "guessing yes".
36403         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
36404         compiling to glibc systems, set gl_cv_func_futimesat_works to
36405         "guessing yes".
36407 2012-05-03  Bruno Haible  <bruno@clisp.org>
36409         Say "guessing yes" or "guessing no" when cross-compiling.
36410         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
36411         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
36412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
36413         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
36414         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
36415         am_cv_func_working_getline to "guessing yes" or "guessing no".
36416         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
36417         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
36418         (gl_FUNC_MEMMEM): When cross-compiling, set
36419         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
36420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
36421         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
36422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
36423         set gl_cv_func_strcasestr_works_always to "guessing yes" or
36424         "guessing no".
36425         (gl_FUNC_STRCASESTR): When cross-compiling, set
36426         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
36427         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
36428         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
36429         (gl_FUNC_STRSTR): When cross-compiling, set
36430         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
36431         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
36432         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
36433         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
36434         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
36436 2012-05-01  Bruno Haible  <bruno@clisp.org>
36438         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
36439         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
36440         * build-aux/reloc-ldflags: Likewise.
36441         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
36443 2012-05-01  Bruno Haible  <bruno@clisp.org>
36445         gnulib-tool: Remove transitional code.
36446         * gnulib-tool: Don't warn about --import with 0 arguments any more.
36447         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36449 2012-05-01  Bruno Haible  <bruno@clisp.org>
36451         getcwd: Fix misindentation.
36452         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
36454 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
36456         exclude: process exclude and include directives in order
36457         This restores the pre-2009 behavior, and is part of a fix of a
36458         grep bug reported by Quentin Arce in
36459         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
36460         * lib/exclude.c (struct exclude): Remove 'tail' member.
36461         (new_exclude_segment): Prepend the new segment instead of appending.
36462         Return void, since that's now more convenient.
36463         (file_pattern_matches): Renamed from excluded_file_pattern_p.
36464         (file_name_matches): Renamed from excluded_file_name_p.
36465         (file_pattern_matches, file_name_matches):
36466         Return true if the pattern matches, not if it excludes.
36467         All callers changed.
36468         (excluded_file_name): Process the list in reverse order;
36469         since the list is now reversed this restores the pre-2009 behavior.
36470         (add_exclude): Adjust to new reversed-order list.  Use local var
36471         rather than macro, for clarity.
36472         * tests/test-exclude7.sh: Adjust to corrected behavior.
36474         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
36475         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
36476         it's not possible here.  Handle the case of \ at end of pattern
36477         without dumping core.
36478         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
36480         _Noreturn: future-proof non-GNU and non-MSVC compilers
36481         * build-aux/snippet/_Noreturn.h (_Noreturn):
36482         * m4/gnulib-common.m4 (gl_COMMON_BODY):
36483         Do not define _Noreturn if __STDC_VERSION__ indicates this is
36484         C11 or later.  This is more likely to work with random future C
36485         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
36486         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
36488         exclude: handle wildcards with FNM_EXTMATCH
36489         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
36490         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
36491         comment that "has wildcards" really means "has or may have
36492         wildcards".  Simplify by avoiding the need to call strcspn.
36494 2012-04-29  Bruno Haible  <bruno@clisp.org>
36496         gnulib-tool: Fix list of authors.
36497         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
36499 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
36501         bootstrap: support Automake-NG in $buildreq
36502         * bootstrap (check_versions): Handle automake and aclocal from
36503         Automake-NG specially.  They can be specified as respectively
36504         the "automake-ng" and "aclocal-ng" requirements.
36506 2012-04-25  Eric Blake  <eblake@redhat.com>
36508         bootstrap: only force latest Makefile.in.in for gettext module
36509         * build-aux/bootstrap (with_gettext): Only install latest
36510         Makefile.in.in for projects requesting bleeding edge gettext.
36512 2012-04-22  Bruno Haible  <bruno@clisp.org>
36514         doc: Mention reason for replacement on glibc/Linux systems.
36515         * doc/posix-functions/dprintf.texi: Mention the problem with special
36516         'long double' values.
36517         * doc/posix-functions/fprintf.texi: Likewise.
36518         * doc/posix-functions/printf.texi: Likewise.
36519         * doc/posix-functions/snprintf.texi: Likewise.
36520         * doc/posix-functions/sprintf.texi: Likewise.
36521         * doc/posix-functions/vdprintf.texi: Likewise.
36522         * doc/posix-functions/vfprintf.texi: Likewise.
36523         * doc/posix-functions/vprintf.texi: Likewise.
36524         * doc/posix-functions/vsnprintf.texi: Likewise.
36525         * doc/posix-functions/vsprintf.texi: Likewise.
36526         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
36527         platforms with F_DUPFD_CLOEXEC problems.
36528         * doc/posix-functions/glob.texi: Mention which platforms are affected
36529         by the problem with symbolic links.
36530         * doc/posix-functions/linkat.texi: Mention the problem with
36531         AT_SYMLINK_FOLLOW on Linux.
36533 2012-04-22  Bruno Haible  <bruno@clisp.org>
36535         pwrite: Don't replace on all platforms.
36536         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
36538 2012-04-22  Bruno Haible  <bruno@clisp.org>
36540         rint* tests: Avoid gcc warnings.
36541         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
36542         * tests/test-rintf.c (INFINITY, NAN): Likewise.
36543         * tests/test-rintl.c (INFINITY, NAN): Likewise.
36545 2012-04-21  Bruno Haible  <bruno@clisp.org>
36547         users.txt: Update.
36548         * users.txt: Add freedink, wdiff. Update URLs for projects that have
36549         switched from CVS to git, bzr, or svn.
36551 2012-04-21  Bruno Haible  <bruno@clisp.org>
36553         Large File Support for native Windows platforms.
36555         * m4/largefile.m4 (gl_LARGEFILE): New macro.
36556         * modules/largefile (configure.ac): Require gl_LARGEFILE.
36558         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
36559         type.
36560         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
36561         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
36562         * doc/posix-headers/sys_types.texi: Mention the effect of the
36563         'largefile' module.
36565         * lib/fcntl.in.h: Add comments about off_t.
36566         * modules/fcntl-h (Depends-on): Add sys_types.
36568         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
36569         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
36570         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
36571         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
36572         * modules/unistd (Depends-on): Add sys_types.
36573         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
36575         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
36576         instead of lseek.
36577         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
36578         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
36579         * modules/lseek (Depends-on): Add sys_types.
36581         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
36582         msvc-nothrow.h.
36583         (SetFileSize): New function.
36584         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
36585         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
36586         if Large File Support is requested.
36587         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
36588         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
36590         * lib/stdio.in.h: Add comments about off_t.
36591         * modules/stdio (Depends-on): Add sys_types.
36593         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
36594         instead of ftello.
36595         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
36596         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
36597         (gl_PREREQ_FTELLO): New macro.
36598         * modules/ftello (Depends-on): Add sys_types.
36599         (configure.ac): Incoke gl_PREREQ_FTELLO.
36601         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
36602         instead of fseeko.
36603         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
36604         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
36605         (gl_PREREQ_FSEEKO): New macro.
36606         * modules/fseeko (Depends-on): Add sys_types.
36607         (configure.ac): Invoke gl_PREREQ_FSEEKO.
36609         * lib/sys_stat.in.h: Add comments about off_t.
36610         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
36611         64-bit integer for st_size in 'struct stat'.
36612         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
36613         Define _GL_WINDOWS_64_BIT_ST_SIZE.
36614         * modules/sys_stat (Depends-on): Add sys_types.
36615         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
36617         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
36618         instead of stat or _stat.
36620         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
36621         'struct _stati64' instead of fstat and 'struct stat'.
36622         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
36623         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
36625         Reported by Ray Satiro <raysatiro@yahoo.com>.
36627 2012-04-19  Eric Blake  <eblake@redhat.com>
36629         bootstrap: accommodate older libtool
36630         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
36631         Reported by Daniel P. Berrange.
36633 2012-04-19  Jim Meyering  <meyering@redhat.com>
36635         announce-gen: avoid failure due to lack of Digest::SHA1
36636         Even with the preferred Digest::SHA available, this script
36637         would fail when the backup module, Digest::SHA1, was not installed.
36638         * build-aux/announce-gen: Quote the conditional use of "use".
36639         Reported by Reuben Thomas in:
36640         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
36642         bootstrap: don't let a user's CDPATH setting affect this script
36643         When CDPATH is set, cd will sometimes generate output.
36644         When "cd" is run in a subshell whose output matters, that
36645         surprising-to-some output can cause malfunction.
36646         Unsetting CDPATH turns off this shell "feature."
36647         * build-aux/bootstrap (CDPATH): Unset.
36648         Reported by Reuben Thomas in:
36649         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
36650         and inspired by his patch here:
36651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
36653 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
36654         and Jim Meyering  <meyering@redhat.com>
36656         maint.mk: catch "see @xref{}" and similar
36657         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
36658         prohibit "See also @xref{", "Also see @pxref{", and similar.
36660 2012-04-16  Jim Meyering  <meyering@redhat.com>
36662         bootstrap: really use gnulib's po/Makefile.in.in
36663         * build-aux/bootstrap: Correct the source file name in previous change.
36664         Reported by Akim Demaille.
36666         configmake: correct minor inconsistency in Makefile rule
36667         * modules/configmake (Makefile.am): All other rules like this one
36668         run the final "mv -f ..." in the same backslash-continued command
36669         as the one that does everything else.  This one put the mv -f ...
36670         command on a separate, non-backslash-continued line.
36671         Make it like the others.
36673         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
36674         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
36675         the one from gettext.  Reported by Akim Demaille.
36677 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
36679         Fix recursion of install-* into po directories.
36680         Bison's install-pdf bug reported by Hans Aberg at
36681         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
36682         * build-aux/po/Makefile.in.in (install-dvi, install-html)
36683         (install-info, install-pdf, install-ps): New targets.
36685 2012-04-16  Jim Meyering  <meyering@redhat.com>
36687         maint: avoid spurious "make sc_maint" failure
36688         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
36689         exempt all *.class file names, for lib/javaversion.class.
36691 2012-04-15  Bruno Haible  <bruno@clisp.org>
36693         lseek: Make configure test independent of environment.
36694         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
36695         Windows, we know that lseek() on pipes is broken; skip the runtime
36696         test.
36698 2012-04-14  Bruno Haible  <bruno@clisp.org>
36700         stat: Bypass buggy override in mingw64.
36701         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
36702         * lib/stat.c (stat) [mingw64]: Define to _stat.
36703         * doc/posix-functions/stat.texi: Mention mingw64 bug.
36705 2012-04-14  Bruno Haible  <bruno@clisp.org>
36707         pathmax: Fix compilation error on MSVC 9.
36708         * modules/pathmax (Depends-on): Add unistd.
36710 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
36712         README: document pointer comparison assumption
36713         * README (Portability guidelines): Document assumption about
36714         pointer comparisons, in response to a recent bug-gnulib comment by
36715         Jeffrey Kegler.
36717 2012-04-12  Bruno Haible  <bruno@clisp.org>
36719         Tests for module 'getrusage'.
36720         * modules/getrusage-tests: New file.
36721         * tests/test-getrusage.c: New file.
36723         New module 'getrusage'.
36724         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
36725         warn-on-use.h.
36726         (getrusage): New declaration.
36727         * lib/getrusage.c: New file.
36728         * m4/getrusage.m4: New file.
36729         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
36730         is declared.
36731         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
36732         HAVE_GETRUSAGE.
36733         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
36734         snippet/c++defs, snippet/warn-on-use.
36735         (Makefile.am): Update generation of sys/resource.h. Substitute
36736         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
36737         * modules/getrusage: New file.
36738         * doc/posix-functions/getrusage.texi: Mention the new module.
36740 2012-04-12  Bruno Haible  <bruno@clisp.org>
36742         Tests for module 'sys_resource'.
36743         * modules/sys_resource-tests: New file.
36744         * tests/test-sys_resource.c: New file.
36746         New module 'sys_resource'.
36747         * lib/sys_resource.in.h: New file.
36748         * m4/sys_resource_h.m4: New file.
36749         * modules/sys_resource: New file.
36750         * doc/posix-headers/sys_resource.texi: Mention the new module.
36752 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
36754         ioctl: Fix compilation error on mingw.
36755         * lib/ioctl.c: Include <windows.h>.
36756         Also reported by Ray Satiro <raysatiro@yahoo.com>.
36758 2012-04-04  Jim Meyering  <meyering@redhat.com>
36760         regex: correct #pragma guard expression
36761         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
36762         not 4.3.  Correct its cpp guard expression.
36764 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
36766         regex: remove unnecessary type punning
36767         Problem reported by Vladimir Serbinenko in
36768         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
36769         * lib/regex.h (struct re_pattern_buffer): Change the type of
36770         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
36771         Fix comment to match code.
36772         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
36773         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
36774         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
36775         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
36776         (set_regs):
36777         Omit no-longer-necessary casts.
36779 2012-04-03  Bruno Haible  <bruno@clisp.org>
36781         Tests for module 'ilogbl'.
36782         * modules/ilogbl-tests: New file.
36783         * tests/test-ilogbl.c: New file.
36785         New module 'ilogbl'.
36786         * lib/math.in.h (ilogbl): New declaration.
36787         * lib/ilogbl.c: New file.
36788         * m4/ilogbl.m4: New file.
36789         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
36790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
36791         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
36792         Split sed invocation, to avoid the limit of 100 substitutions of
36793         HP-UX 'sed'.
36794         * modules/ilogbl: New file.
36795         * tests/test-math-c++.cc: Check the declaration of ilogbl.
36796         * doc/posix-functions/ilogbl.texi: Mention the new module.
36798 2012-04-03  Bruno Haible  <bruno@clisp.org>
36800         Tests for module 'ilogbf'.
36801         * modules/ilogbf-tests: New file.
36802         * tests/test-ilogbf.c: New file.
36804         New module 'ilogbf'.
36805         * lib/math.in.h (ilogbf): New declaration.
36806         * lib/ilogbf.c: New file.
36807         * m4/ilogbf.m4: New file.
36808         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
36809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
36810         REPLACE_ILOGBF.
36811         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
36812         REPLACE_ILOGBF.
36813         * modules/ilogbf: New file.
36814         * tests/test-math-c++.cc: Check the declaration of ilogbf.
36815         * doc/posix-functions/ilogbf.texi: Mention the new module.
36817 2012-04-03  Bruno Haible  <bruno@clisp.org>
36819         Tests for module 'ilogb'.
36820         * modules/ilogb-tests: New file.
36821         * tests/test-ilogb.c: New file.
36822         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
36823         tests/test-logb-ieee.h.
36825         New module 'ilogb'.
36826         * lib/math.in.h (ilogb): New declaration.
36827         * lib/ilogb.c: New file.
36828         * m4/ilogb.m4: New file.
36829         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
36830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
36831         REPLACE_ILOGB.
36832         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
36833         REPLACE_ILOGB.
36834         * modules/ilogb: New file.
36835         * tests/test-math-c++.cc: Check the declaration of ilogb.
36836         * doc/posix-functions/ilogb.texi: Mention the new module.
36838 2012-04-03  Bruno Haible  <bruno@clisp.org>
36840         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
36841         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
36842         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
36843         (main): Check their values.
36844         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
36845         problem.
36847 2012-04-03  Bruno Haible  <bruno@clisp.org>
36849         Tests for module 'logbl-ieee'.
36850         * modules/logbl-ieee-tests: New file.
36851         * tests/test-logbl-ieee.c: New file.
36853         New module 'logbl-ieee'.
36854         * modules/logbl-ieee: New file.
36856         Tests for module 'logb-ieee'.
36857         * modules/logb-ieee-tests: New file.
36858         * tests/test-logb-ieee.c: New file.
36860         New module 'logb-ieee'.
36861         * modules/logb-ieee: New file.
36863         Tests for module 'logbf-ieee'.
36864         * modules/logbf-ieee-tests: New file.
36865         * tests/test-logbf-ieee.c: New file.
36866         * tests/test-logb-ieee.h: New file.
36868         New module 'logbf-ieee'.
36869         * modules/logbf-ieee: New file.
36871 2012-04-03  Bruno Haible  <bruno@clisp.org>
36873         Tests for module 'logbl'.
36874         * modules/logbl-tests: New file.
36875         * tests/test-logbl.c: New file.
36877         New module 'logbl'.
36878         * lib/math.in.h (logbl): New declaration.
36879         * lib/logbl.c: New file.
36880         * m4/logbl.m4: New file.
36881         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
36882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
36883         REPLACE_LOGBL.
36884         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
36885         REPLACE_LOGBL.
36886         * modules/logbl: New file.
36887         * tests/test-math-c++.cc: Check the declaration of logbl.
36888         * doc/posix-functions/logbl.texi: Mention the new module.
36890 2012-04-02  Bruno Haible  <bruno@clisp.org>
36892         Tests for module 'logbf'.
36893         * modules/logbf-tests: New file.
36894         * tests/test-logbf.c: New file.
36896         New module 'logbf'.
36897         * lib/math.in.h (logbf): New declaration.
36898         * lib/logbf.c: New file.
36899         * m4/logbf.m4: New file.
36900         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
36901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
36902         REPLACE_LOGBF.
36903         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
36904         REPLACE_LOGBF.
36905         * modules/logbf: New file.
36906         * tests/test-math-c++.cc: Check the declaration of logbf.
36907         * doc/posix-functions/logbf.texi: Mention the new module.
36909 2012-04-02  Bruno Haible  <bruno@clisp.org>
36911         logb tests: More tests.
36912         * tests/test-logb.h: New file, based on tests/test-logb.c and
36913         tests/test-frexp.h.
36914         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
36915         (main): Just invoke test_function.
36916         * modules/logb-tests (Files): Add tests/test-logb.h,
36917         tests/minus-zero.h, tests/randomd.c.
36918         (Makefile.am): Add randomd.c to test_logb_SOURCES.
36920         logb: Provide replacement and workarounds.
36921         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
36922         is 1.
36923         * lib/logb.c: New file.
36924         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
36925         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
36926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
36927         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
36928         * modules/logb (Files): Add lib/logb.c.
36929         (Depends-on): Add isfinite, frexp, isnand.
36930         (configure.ac): Compile the replacement code logb.c if needed.
36931         * tests/test-math-c++.cc: Check the declaration of logb.
36932         * doc/posix-functions/logb.texi: Mention the replacement and the bug
36933         with subnormal numbers.
36935 2012-04-02  Bruno Haible  <bruno@clisp.org>
36937         log10* tests: Speed up.
36938         * tests/test-log10.h (test_function): Reduce amount of random numbers
36939         to test.
36941 2012-04-01  Bruno Haible  <bruno@clisp.org>
36943         logf-ieee: Fix test whether logf works.
36944         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
36946 2012-04-01  Bruno Haible  <bruno@clisp.org>
36948         log10l: Work around log10l-ieee test failure on IRIX 6.5.
36949         * lib/log10l.c: Include <float.h>
36950         (log10l): On IRIX, normalize the +Infinity value.
36951         * modules/log10l (Depends-on): Add 'float'.
36952         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
36953         +Infinity.
36955         log10f-ieee: Work around test failure on NetBSD 5.1.
36956         * m4/log10f-ieee.m4: New file.
36957         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
36958         test whether log10f works with a negative argument. Replace it if not.
36959         * lib/log10f.c (log10f): For negative arguments, return NaN.
36960         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
36961         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
36962         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
36964         log10f-ieee: Work around test failure on Solaris 9.
36965         * modules/log10f-ieee (Depends-on): Add log10-ieee.
36966         (configure.ac): Require gl_FUNC_LOG10F.
36968         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
36969         * m4/log10-ieee.m4: New file.
36970         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
36971         whether log10 works with a negative argument. Replace it if not.
36972         * lib/log10.c (log10): For negative arguments, return NaN.
36973         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
36974         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
36975         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
36977         Tests for module 'log10l-ieee'.
36978         * modules/log10l-ieee-tests: New file.
36979         * tests/test-log10l-ieee.c: New file.
36981         New module 'log10l-ieee'.
36982         * modules/log10l-ieee: New file.
36984         Tests for module 'log10-ieee'.
36985         * modules/log10-ieee-tests: New file.
36986         * tests/test-log10-ieee.c: New file.
36988         New module 'log10-ieee'.
36989         * modules/log10-ieee: New file.
36991         Tests for module 'log10f-ieee'.
36992         * modules/log10f-ieee-tests: New file.
36993         * tests/test-log10f-ieee.c: New file.
36994         * tests/test-log10-ieee.h: New file.
36996         New module 'log10f-ieee'.
36997         * modules/log10f-ieee: New file.
36999 2012-04-01  Bruno Haible  <bruno@clisp.org>
37001         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
37002         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
37003         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
37004         workaround.
37005         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
37006         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
37007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
37008         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
37009         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
37010         (Depends-on): Update conditions.
37011         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
37012         IRIX 6.5, OSF/1 5.1 problems.
37014 2012-04-01  Bruno Haible  <bruno@clisp.org>
37016         log10f: Work around OSF/1 5.1 bug.
37017         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
37018         * lib/log10f.c (log10f): If logf exists, use it and provide just the
37019         workaround.
37020         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
37021         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
37022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
37023         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
37024         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
37025         (Depends-on): Update conditions.
37026         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
37028 2012-04-01  Bruno Haible  <bruno@clisp.org>
37030         log10: Work around OSF/1 5.1 bug.
37031         * lib/math.in.h (log10): New declaration.
37032         * lib/log10.c: New file.
37033         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
37034         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
37035         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
37036         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
37037         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
37038         * modules/log10 (Files): Add lib/log10.c.
37039         (Depends-on): Add math.
37040         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
37041         * tests/test-math-c++.cc: Check the declaration of log10.
37042         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
37044 2012-03-31  Bruno Haible  <bruno@clisp.org>
37046         log10l tests: More tests.
37047         * modules/log10l-tests (Files): Add tests/test-log10l.h,
37048         tests/minus-zero.h, tests/randoml.c.
37049         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
37050         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
37051         (main): Invoke test_function.
37053         log10f tests: More tests.
37054         * modules/log10f-tests (Files): Add tests/test-log10.h,
37055         tests/minus-zero.h, tests/randomf.c.
37056         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
37057         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
37058         (main): Invoke test_function.
37060         log10 tests: More tests.
37061         * tests/test-log10.h: New file.
37062         * modules/log10-tests (Files): Add tests/test-log10.h,
37063         tests/minus-zero.h, tests/randomd.c.
37064         (Makefile.am): Add randomd.c to test_log10_SOURCES.
37065         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
37066         (main): Invoke test_function.
37068 2012-03-31  Simon Josefsson  <simon@josefsson.org>
37070         fflush: Fix syntax error.
37071         * lib/fflush.c: Include unused-parameter.h, needed for
37072         _GL_UNUSED_PARAMETER.
37073         * modules/fflush (Depends-on): Add snippet/unused-parameter.
37075 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
37077         regex: pacify GCC when compiling GRUB
37078         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
37079         a diagnostic.  Reported by Vladimir Serbinenko in
37080         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
37082 2012-03-29  Eric Blake  <eblake@redhat.com>
37084         stdio: don't assume gets any more
37085         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
37086         support.
37087         * modules/stdio (Makefile.am): Likewise.
37088         * lib/stdio-read.c (gets): Likewise.
37089         * tests/test-stdio-c++.cc: Likewise.
37090         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
37091         * lib/stdio.in.h (gets): Make warning occur in more places.
37092         * doc/posix-functions/gets.texi (gets): Update documentation.
37093         Reported by Christer Solskogen.
37095         maint.mk: fix syntax checks without exclusions
37096         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
37097         Reported by Daniel P. Berrange.
37099         strerror_r: avoid compiler warning
37100         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
37101         level.
37103         fflush: avoid compiler warning
37104         * lib/fflush.c (update_fpos_cache): Mark variables that are
37105         potentially unused.
37107 2012-03-25  Bruno Haible  <bruno@clisp.org>
37109         Tests for module 'localeconv'.
37110         * modules/localeconv-tests: New file.
37111         * tests/test-localeconv.c: New file.
37113         New module 'localeconv'.
37114         * lib/locale.in.h (localeconv): New declaration.
37115         * lib/localeconv.c: New file.
37116         * m4/localeconv.m4: New file.
37117         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
37118         REPLACE_LOCALECONV.
37119         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
37120         REPLACE_LOCALECONV.
37121         * modules/localeconv: New file.
37122         * modules/nl_langinfo (Depends-on): Add localeconv.
37123         * modules/human (Depends-on): Likewise.
37124         * doc/posix-functions/localeconv.texi: Mention the new module.
37126 2012-03-25  Bruno Haible  <bruno@clisp.org>
37128         locale: Provide a complete 'struct lconv'.
37129         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37130         'struct lconv' does not contain int_p_cs_precedes.
37131         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37132         * doc/posix-headers/locale.texi: Update.
37134         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
37135         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
37136         * doc/posix-headers/locale.texi: Update.
37138         locale: Provide a working 'struct lconv'.
37139         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
37140         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
37141         'struct lconv' does not even contain decimal_point.
37142         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
37143         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
37144         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
37145         * doc/posix-headers/locale.texi: Mention the problems with
37146         'struct lconv'.
37147         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
37149 2012-03-24  Bruno Haible  <bruno@clisp.org>
37151         Enable common subexpression optimization in GCC.
37152         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
37153         macros.
37154         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
37155         GCC attribute 'const'.
37156         (uc_locale_language): Declare with GCC attribute 'pure'.
37157         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
37158         with GCC attribute 'const'.
37159         * lib/unictype.in.h (uc_is_general_category_withtable,
37160         uc_combining_class, uc_combining_class_name,
37161         uc_combining_class_long_name, uc_bidi_class_name,
37162         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
37163         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
37164         uc_decimal_value, uc_digit_value, uc_numeric_value,
37165         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
37166         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
37167         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
37168         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
37169         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
37170         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
37171         Declare with GCC attribute 'const'.
37172         (uc_general_category_name, uc_general_category_long_name,
37173         uc_general_category_byname, uc_general_category,
37174         uc_is_general_category, uc_combining_class_byname,
37175         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
37176         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
37177         Declare with GCC attribute 'pure'.
37178         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
37179         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
37180         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
37181         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
37182         with GCC attribute 'pure'.
37183         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
37184         'const'.
37185         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
37186         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
37187         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
37188         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
37189         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
37190         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
37191         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
37192         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
37193         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
37194         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
37195         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
37196         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
37197         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
37198         GCC attribute 'pure'.
37199         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
37200         'const'.
37201         * lib/uniwidth.in.h (uc_width): Simplify declaration.
37202         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
37203         u32_strwidth): Declare with GCC attribute 'pure'.
37205         Enable common subexpression optimization in GCC.
37206         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37207         (alphasort): Declare with GCC attribute 'pure'.
37208         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37209         (atoll): Declare with GCC attribute 'pure'.
37210         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37211         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37212         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
37213         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
37214         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
37215         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
37216         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
37218 2012-03-24  Bruno Haible  <bruno@clisp.org>
37220         gnulib-tool: Avoid unintended error output from 'cmp'.
37221         * gnulib-tool (func_add_file, func_update_file, func_import): Use
37222         "cmp -s", not "cmp > /dev/null".
37224 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
37226         gnulib-tool: fix imprecise comments w.r.t. an automake bug
37228         It's not just Automake versions < 1.9b that creates an empty
37229         pkgdatadir at installation time if pkgdata_DATA is specified
37230         to empty; modern automake versions do this as well, at least
37231         until automake 1.11.4 (not yet released at the moment of writing,
37232         but soon to appear).  That behaviour was generally considered a
37233         feature rather than a bug, at least until this discussion:
37234         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
37236         See also automake bugs #10997 and #11030.
37238         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
37239         reference to relevant automake bug numbers.
37240         (func_emit_tests_Makefile_am): Likewise.
37242 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37244         announce-gen: use Digest::SHA when possible
37245         * build-aux/announce-gen: Use Digest::SHA when possible, falling
37246         back to Digest::SHA1 if necessary.
37248 2012-03-20  Jim Meyering  <meyering@redhat.com>
37250         tests: avoid gcc warnings about argv vs. const initializers
37251         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
37252         warnings about discarding 'const' qualifier from pointer target type.
37253         * tests/test-posix_spawn2.c (main): Likewise.
37255 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
37257         README-release: simplify slightly
37258         * top/README-release: Run "git checkout master" only once.
37260 2012-03-15  Mark Wielaard  <mark@klomp.org>
37262         git-merge-changelog: add specific example on how to use with hg.
37263         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
37265 2012-03-18  Mark Wielaard  <mark@klomp.org>
37267         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
37269 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
37271         git-version-gen: don't let "prefix" envvar cause trouble
37272         * build-aux/git-version-gen (prefix): Initialize properly,
37273         so as not to use a value specified via the environment.
37274         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
37276 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37278         regex: diagnose too-large repeat counts in EREs
37279         Previously, the code did not diagnose the too-large repeat count
37280         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
37281         as if it were 'b\{1000000000}', which is unexpected.
37282         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
37283         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
37284         is a reasonable one for this problem.  Another option would be to
37285         create a new REG_OVERFLOW error for repeat counts that are too large.
37286         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
37287         count is too large, so that the caller can distinguish the two cases.
37288         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
37289         "Too large" return code, and that repeat counts are one example of this.
37291 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
37293         doc: some glibc x32 integer width issues
37294         * doc/posix-headers/sys_types.texi (sys/types.h):
37295         * doc/posix-headers/time.texi (time.h):
37296         Mention that glibc x32 does not conform to POSIX in a couple of
37297         areas related to integer widths.
37299 2012-03-15  Bruno Haible  <bruno@clisp.org>
37301         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
37302         * lib/fma.c (VOLATILE): New macro.
37303         (FUNC): Use it to work around a GCC compiler bug.
37305 2012-03-13  Bruno Haible  <bruno@clisp.org>
37307         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37308         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
37309         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
37310         REPLACE_HYPOTL to 1.
37311         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
37313 2012-03-13  Bruno Haible  <bruno@clisp.org>
37315         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37316         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
37317         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
37318         REPLACE_REMAINDERL to 1.
37319         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
37320         bug.
37322 2012-03-13  Bruno Haible  <bruno@clisp.org>
37324         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37325         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
37326         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
37327         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
37328         too big rounding errors.
37329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
37330         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
37331         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
37332         (Depends-on): Update conditions.
37333         * tests/test-sqrtl.c (my_ldexpl): New function.
37334         (main): Add test of a particular value.
37335         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37337 2012-03-13  Pádraig Brady  <P@draigBrady.com>
37339         doc: Update timer_* platform portability notes.
37340         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
37341         that always return ENOSYS.
37342         * doc/posix-functions/timer_delete.texi: Likewise.
37343         * doc/posix-functions/timer_gettime.texi: Likewise.
37344         * doc/posix-functions/timer_settime.texi: Likewise.
37346 2012-03-13  Bruno Haible  <bruno@clisp.org>
37348         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
37349         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
37350         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
37351         REPLACE_CBRTL to 1.
37352         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
37354 2012-03-13  Bruno Haible  <bruno@clisp.org>
37356         remainderl: Avoid compilation error on AIX >= 5.2.
37357         * lib/math.in.h (remainderl): Undefine macro from the system header.
37359 2012-03-13  Bruno Haible  <bruno@clisp.org>
37361         Avoid compilation errors with MSVC option -fp:strict.
37362         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
37363         * lib/cbrtf.c: Likewise.
37364         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
37366 2012-03-12  Bruno Haible  <bruno@clisp.org>
37368         uninorm: Don't crash in out-of-memory conditions.
37369         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
37370         gracefully.
37371         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
37372         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
37374 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
37376         quote: fix syntax-check
37377         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
37378         also exports quote_quoting_options.
37380 2012-03-12  Simon Josefsson  <simon@josefsson.org>
37382         Collapse list of copyright years to ranges.  See
37383         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
37384         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
37385         build-aux/csharpexec.sh.in, build-aux/gnupload,
37386         build-aux/install-reloc, build-aux/javacomp.sh.in,
37387         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
37388         build-aux/move-if-change, build-aux/reloc-ldflags,
37389         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
37391 2012-03-11  Bruno Haible  <bruno@clisp.org>
37393         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37394         * m4/log2f-ieee.m4: New file.
37395         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
37396         whether log2f works with a minus zero argument. Replace it if not.
37397         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
37398         (Depends-on): Add log2-ieee.
37399         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
37400         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
37402         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
37403         * m4/log2-ieee.m4: New file.
37404         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
37405         whether log2 works with a minus zero argument. Replace it if not.
37406         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
37407         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
37408         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
37410         Tests for module 'log2l-ieee'.
37411         * modules/log2l-ieee-tests: New file.
37412         * tests/test-log2l-ieee.c: New file.
37414         New module 'log2l-ieee'.
37415         * modules/log2l-ieee: New file.
37417         Tests for module 'log2-ieee'.
37418         * modules/log2-ieee-tests: New file.
37419         * tests/test-log2-ieee.c: New file.
37421         New module 'log2-ieee'.
37422         * modules/log2-ieee: New file.
37424         Tests for module 'log2f-ieee'.
37425         * modules/log2f-ieee-tests: New file.
37426         * tests/test-log2f-ieee.c: New file.
37427         * tests/test-log2-ieee.h: New file.
37429         New module 'log2f-ieee'.
37430         * modules/log2f-ieee: New file.
37432 2012-03-11  Bruno Haible  <bruno@clisp.org>
37434         Tests for module 'log2l'.
37435         * modules/log2l-tests: New file.
37436         * tests/test-log2l.c: New file.
37438         New module 'log2l'.
37439         * lib/math.in.h (log2l): New declaration.
37440         * lib/log2l.c: New file.
37441         * m4/log2l.m4: New file.
37442         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
37443         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
37444         REPLACE_LOG2L.
37445         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
37446         REPLACE_LOG2L.
37447         * modules/log2l: New file.
37448         * tests/test-math-c++.cc: Check the declaration of log2l.
37449         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
37450         and OSF/1 problems.
37452 2012-03-11  Bruno Haible  <bruno@clisp.org>
37454         Tests for module 'log2f'.
37455         * modules/log2f-tests: New file.
37456         * tests/test-log2f.c: New file.
37458         New module 'log2f'.
37459         * lib/math.in.h (log2f): New declaration.
37460         * lib/log2f.c: New file.
37461         * m4/log2f.m4: New file.
37462         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
37463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
37464         REPLACE_LOG2F.
37465         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
37466         REPLACE_LOG2F.
37467         * modules/log2f: New file.
37468         * tests/test-math-c++.cc: Check the declaration of log2f.
37469         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
37470         and OSF/1 and Cygwin problems.
37472 2012-03-11  Bruno Haible  <bruno@clisp.org>
37474         Tests for module 'log2'.
37475         * modules/log2-tests: New file.
37476         * tests/test-log2.c: New file.
37477         * tests/test-log2.h: New file.
37479         New module 'log2'.
37480         * lib/math.in.h (log2): New declaration.
37481         * lib/log2.c: New file.
37482         * m4/log2.m4: New file.
37483         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
37484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
37485         REPLACE_LOG2.
37486         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
37487         REPLACE_LOG2.
37488         * modules/log2: New file.
37489         * tests/test-math-c++.cc: Check the declaration of log2.
37490         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
37491         and OSF/1 and Cygwin problems.
37493 2012-03-11  Bruno Haible  <bruno@clisp.org>
37495         exp2* tests: More tests.
37496         * tests/test-exp2.h (test_function): Test all integral arguments that
37497         don't need to overflow or denormalized numbers.
37498         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
37499         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
37500         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
37502 2012-03-10  Bruno Haible  <bruno@clisp.org>
37504         log1pl-ieee: Work around test failure on AIX 7.1.
37505         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
37507         log1pl-ieee: Work around test failure on IRIX 6.5.
37508         * m4/log1pl-ieee.m4: New file.
37509         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
37510         test whether log1pl works with a minus zero argument. Replace it if
37511         not.
37512         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
37513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
37514         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
37515         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
37516         (Depends-on): Update conditions.
37517         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37518         m4/signbit.m4.
37519         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
37520         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
37522         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
37523         * m4/log1pf-ieee.m4: New file.
37524         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
37525         test whether log1pf works with a minus zero argument. Replace it if
37526         not.
37527         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
37528         m4/signbit.m4.
37529         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
37530         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
37532         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
37533         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
37534         (configure.ac): Require gl_FUNC_LOG1PF.
37536         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
37537         * m4/log1p-ieee.m4: New file.
37538         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
37539         whether log1p works with a minus zero argument. Replace it if not.
37540         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
37541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
37542         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
37543         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
37544         (Depends-on): Update conditions.
37545         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
37546         m4/signbit.m4.
37547         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
37548         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
37550         Tests for module 'log1pl-ieee'.
37551         * modules/log1pl-ieee-tests: New file.
37552         * tests/test-log1pl-ieee.c: New file.
37554         New module 'log1pl-ieee'.
37555         * modules/log1pl-ieee: New file.
37557         Tests for module 'log1p-ieee'.
37558         * modules/log1p-ieee-tests: New file.
37559         * tests/test-log1p-ieee.c: New file.
37561         New module 'log1p-ieee'.
37562         * modules/log1p-ieee: New file.
37564         Tests for module 'log1pf-ieee'.
37565         * modules/log1pf-ieee-tests: New file.
37566         * tests/test-log1pf-ieee.c: New file.
37567         * tests/test-log1p-ieee.h: New file.
37569         New module 'log1pf-ieee'.
37570         * modules/log1pf-ieee: New file.
37572 2012-03-10  Bruno Haible  <bruno@clisp.org>
37574         Tests for module 'log1pl'.
37575         * modules/log1pl-tests: New file.
37576         * tests/test-log1pl.c: New file.
37578         New module 'log1pl'.
37579         * lib/math.in.h (log1pl): New declaration.
37580         * lib/log1pl.c: New file.
37581         * m4/log1pl.m4: New file.
37582         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
37583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
37584         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
37585         * modules/log1pl: New file.
37586         * tests/test-math-c++.cc: Check the declaration of log1pl.
37587         * doc/posix-functions/log1pl.texi: Mention the new module.
37589 2012-03-10  Bruno Haible  <bruno@clisp.org>
37591         Tests for module 'log1pf'.
37592         * modules/log1pf-tests: New file.
37593         * tests/test-log1pf.c: New file.
37595         New module 'log1pf'.
37596         * lib/math.in.h (log1pf): New declaration.
37597         * lib/log1pf.c: New file.
37598         * m4/log1pf.m4: New file.
37599         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
37600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
37601         REPLACE_LOG1PF.
37602         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
37603         REPLACE_LOG1PF.
37604         * modules/log1pf: New file.
37605         * tests/test-math-c++.cc: Check the declaration of log1pf.
37606         * doc/posix-functions/log1pf.texi: Mention the new module.
37608 2012-03-10  Bruno Haible  <bruno@clisp.org>
37610         log1p tests: More tests.
37611         * tests/test-log1p.h: New file.
37612         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
37613         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
37614         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
37615         (main): Invoke test_function.
37617         log1p: Provide replacement for Minix and MSVC.
37618         * lib/math.in.h (log1p): New declaration.
37619         * lib/log1p.c: New file.
37620         * m4/log1p.m4: New file.
37621         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
37622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
37623         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
37624         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
37625         (Depends-on): Add math, isnand, log, round.
37626         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
37627         HAVE_LOG1P is 0.
37628         * tests/test-math-c++.cc: Check the declaration of log1p.
37629         * doc/posix-functions/log1p.texi: Mention the replacement.
37631 2012-03-10  Bruno Haible  <bruno@clisp.org>
37633         math tests: Small simplification.
37634         * tests/test-exp.h (test_function): Use the same err_bound for
37635         'double' on platforms with sizeof (long double) == sizeof (double)
37636         than on platforms with sizeof (long double) > sizeof (double).
37637         * tests/test-exp2.h (test_function): Likewise.
37638         * tests/test-expm1.h (test_function): Likewise.
37639         * tests/test-log.h (test_function): Likewise.
37641 2012-03-10  Bruno Haible  <bruno@clisp.org>
37643         Fix some comments.
37644         * lib/expl.c: Fix an ambiguous comment.
37645         * lib/expm1.c: Likewise.
37646         * lib/expm1l.c: Likewise.
37647         * lib/exp2.c: Likewise.
37648         * lib/exp2l.c: Likewise.
37650 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37652         regex: allow inclusion of <regex.h> before <limits.h>
37653         Without this patch, portable programs had to include <limits.h> before
37654         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
37655         I ran into this problem with a test version of GNU grep on Solaris 8.
37656         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
37657         This is done conditionally so that this change can be merged
37658         back to glibc.
37659         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
37660         using the included regex.
37662         fts: depend on fdopendir
37663         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
37664         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
37665         problem was introduced when fdopendir was split out.
37667 2012-03-10  Bruno Haible  <bruno@clisp.org>
37669         Remove unused variables.
37670         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
37671         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
37673 2012-03-10  Bruno Haible  <bruno@clisp.org>
37675         isnanf-nolibm: Fix last commit.
37676         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
37678         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
37679         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
37681 2012-03-10  Bruno Haible  <bruno@clisp.org>
37683         logf-ieee: Work around test failure on NetBSD 5.1.
37684         * m4/logf-ieee.m4: New file.
37685         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
37686         whether logf works with a negative argument. Replace it if not.
37687         * lib/logf.c (logf): For negative arguments, return NaN.
37688         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
37689         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
37690         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
37692         logf-ieee: Work around test failure on Solaris 9.
37693         * modules/logf-ieee (Depends-on): Add log-ieee.
37694         (configure.ac): Require gl_FUNC_LOGF.
37696         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
37697         * m4/log-ieee.m4: New file.
37698         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
37699         log works with a negative argument. Replace it if not.
37700         * lib/log.c (log): For negative arguments, return NaN.
37701         * modules/log-ieee (Files): Add m4/log-ieee.m4.
37702         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
37703         * doc/posix-functions/log.texi: Mention the log-ieee module.
37705         Tests for module 'logl-ieee'.
37706         * modules/logl-ieee-tests: New file.
37707         * tests/test-logl-ieee.c: New file.
37709         New module 'logl-ieee'.
37710         * modules/logl-ieee: New file.
37712         Tests for module 'log-ieee'.
37713         * modules/log-ieee-tests: New file.
37714         * tests/test-log-ieee.c: New file.
37716         New module 'log-ieee'.
37717         * modules/log-ieee: New file.
37719         Tests for module 'logf-ieee'.
37720         * modules/logf-ieee-tests: New file.
37721         * tests/test-logf-ieee.c: New file.
37722         * tests/test-log-ieee.h: New file.
37724         New module 'logf-ieee'.
37725         * modules/logf-ieee: New file.
37727 2012-03-10  Bruno Haible  <bruno@clisp.org>
37729         log: Fix bug introduced on 2012-03-09.
37730         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
37732 2012-03-10  Pádraig Brady  <P@draigBrady.com>
37734         timer-time: link explicitly with pthreads on glibc
37735         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37736         to support static linking, when newer glibc is
37737         detected, as that contains pthread emulation of
37738         POSIX timer functions where required.
37739         * modules/timer-time: Depend on threadlib to
37740         pull in the appropriate library to link.
37742 2012-03-10  Bruno Haible  <bruno@clisp.org>
37744         log* tests: More tests.
37745         * tests/test-log.h: New file.
37746         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
37747         (main): Invoke test_function.
37748         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
37749         (main): Invoke test_function.
37750         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
37751         (main): Invoke test_function.
37752         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37753         tests/randomd.c.
37754         (Makefile.am): Add randomd.c to test_log_SOURCES.
37755         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37756         tests/randomf.c.
37757         (Makefile.am): Add randomf.c to test_logf_SOURCES.
37758         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
37759         tests/randoml.c.
37760         (Depends-on): Add 'float'.
37761         (Makefile.am): Add randoml.c to test_logl_SOURCES.
37763 2012-03-09  Bruno Haible  <bruno@clisp.org>
37765         logl: Work around OSF/1 5.1 bug.
37766         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
37767         * lib/logl.c (logl): If logl exists, use it and provide just the
37768         workaround.
37769         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
37770         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
37771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
37772         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
37773         * modules/logl (configure.ac): Consider REPLACE_LOGL.
37774         (Depends-on): Update conditions.
37775         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
37777 2012-03-09  Bruno Haible  <bruno@clisp.org>
37779         logf: Work around OSF/1 5.1 bug.
37780         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
37781         * lib/logf.c (logf): If logf exists, use it and provide just the
37782         workaround.
37783         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
37784         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
37785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
37786         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
37787         * modules/logf (configure.ac): Consider REPLACE_LOGF.
37788         (Depends-on): Update conditions.
37789         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
37791 2012-03-09  Bruno Haible  <bruno@clisp.org>
37793         log: Work around OSF/1 5.1 bug.
37794         * lib/math.in.h (log): New declaration.
37795         * lib/log.c: New file.
37796         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
37797         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
37798         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
37799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
37800         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
37801         * modules/log (Files): Add lib/log.c.
37802         (Depends-on): Add math.
37803         (configure.ac): If REPLACE_LOG is 1, compile an override.
37804         * tests/test-math-c++.cc: Check the declaration of log.
37805         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
37807 2012-03-09  Jim Meyering  <meyering@redhat.com>
37809         readtokens.c: adjust wording in a comment
37810         * lib/readtokens.c: Insert omitted "that" in a comment.
37812 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37814         modechange: add notations +40, 00440, etc.
37815         * lib/modechange.c (mode_compile): Support new notations
37816         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
37818 2012-03-08  Bruno Haible  <bruno@clisp.org>
37820         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
37821         * m4/exp2l-ieee.m4: New file.
37822         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
37823         test whether exp2l works with a NaN argument and with a negative
37824         infinity argument. Replace it if not.
37825         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
37826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
37827         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
37828         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
37829         (Depends-on): Update conditions.
37830         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
37831         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
37832         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
37834         Tests for module 'exp2l-ieee'.
37835         * modules/exp2l-ieee-tests: New file.
37836         * tests/test-exp2l-ieee.c: New file.
37838         New module 'exp2l-ieee'.
37839         * modules/exp2l-ieee: New file.
37841         Tests for module 'exp2-ieee'.
37842         * modules/exp2-ieee-tests: New file.
37843         * tests/test-exp2-ieee.c: New file.
37845         New module 'exp2-ieee'.
37846         * modules/exp2-ieee: New file.
37848         Tests for module 'exp2f-ieee'.
37849         * modules/exp2f-ieee-tests: New file.
37850         * tests/test-exp2f-ieee.c: New file.
37851         * tests/test-exp2-ieee.h: New file.
37853         New module 'exp2f-ieee'.
37854         * modules/exp2f-ieee: New file.
37856 2012-03-08  Bruno Haible  <bruno@clisp.org>
37858         Tests for module 'exp2l'.
37859         * modules/exp2l-tests: New file.
37860         * tests/test-exp2l.c: New file.
37862         New module 'exp2l'.
37863         * lib/math.in.h (exp2l): New declaration.
37864         * lib/exp2l.c: New file.
37865         * lib/expl-table.c: New file, extracted from lib/expl.c.
37866         * lib/expl.c (gl_expl_table): New declaration.
37867         (expl): Remove expl_table. Update reference.
37868         * m4/exp2l.m4: New file.
37869         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
37870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
37871         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
37872         * modules/exp2l: New file.
37873         * modules/expl (Files): Add lib/expl-table.c.
37874         (configure.ac): Compile also expl-table.c.
37875         * tests/test-math-c++.cc: Check the declaration of exp2l.
37876         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
37877         problem.
37879 2012-03-08  Bruno Haible  <bruno@clisp.org>
37881         Tests for module 'exp2f'.
37882         * modules/exp2f-tests: New file.
37883         * tests/test-exp2f.c: New file.
37885         New module 'exp2f'.
37886         * lib/math.in.h (exp2f): New declaration.
37887         * lib/exp2f.c: New file.
37888         * m4/exp2f.m4: New file.
37889         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
37890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
37891         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
37892         * modules/exp2f: New file.
37893         * tests/test-math-c++.cc: Check the declaration of exp2f.
37894         * doc/posix-functions/exp2f.texi: Mention the new module and the
37895         IRIX problem.
37897 2012-03-08  Bruno Haible  <bruno@clisp.org>
37899         Tests for module 'exp2'.
37900         * modules/exp2-tests: New file.
37901         * tests/test-exp2.c: New file.
37902         * tests/test-exp2.h: New file.
37904         New module 'exp2'.
37905         * lib/math.in.h (exp2): New declaration.
37906         * lib/exp2.c: New file.
37907         * m4/exp2.m4: New file.
37908         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
37909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
37910         REPLACE_EXP2.
37911         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
37912         REPLACE_EXP2.
37913         * modules/exp2: New file.
37914         * tests/test-math-c++.cc: Check the declaration of exp2.
37915         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
37916         and OpenBSD problems.
37918 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
37920         savedir: fix comment typo
37921         * lib/savedir.c (savedirstream): Fix typo in comment.
37923 2012-03-08  Bruno Haible  <bruno@clisp.org>
37925         test-readtokens.c: use const; remove unwarranted cast
37926         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
37928 2012-03-08  Bruno Haible  <bruno@clisp.org>
37930         fmal: Avoid compilation error on AIX.
37931         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
37932         AIX 5.2..7.1.
37934 2012-03-08  Bruno Haible  <bruno@clisp.org>
37936         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
37937         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
37938         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
37939         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
37940         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
37941         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
37942         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
37944 2012-03-08  Bruno Haible  <bruno@clisp.org>
37946         remainderf: Override buggy system function on IRIX 6.5.
37947         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
37948         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
37949         when it exists.
37950         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
37952 2012-03-08  Jim Meyering  <meyering@redhat.com>
37954         test-readtokens.c: avoid const-related compilation warnings
37955         * tests/test-readtokens.c: Avoid const-related compilation warnings.
37957 2012-03-07  Jim Meyering  <meyering@redhat.com>
37958             Bruno Haible  <bruno@clisp.org>
37960         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
37961         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
37962         tests/randomd.c.
37963         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
37964         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
37965         tests/randoml.c.
37966         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
37968 2012-03-07  Bruno Haible  <bruno@clisp.org>
37970         expm1l: Avoid compilation error on AIX.
37971         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
37972         AIX 5.2..7.1.
37974 2012-03-07  Bruno Haible  <bruno@clisp.org>
37976         expm1l: Don't override undeclared system function on IRIX 6.5.
37977         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
37978         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
37979         it exists. Set HAVE_DECL_EXPM1L.
37980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
37981         HAVE_EXPM1L.
37982         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
37983         HAVE_EXPM1L.
37984         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
37986 2012-03-07  Bruno Haible  <bruno@clisp.org>
37988         remainderl: Don't override undeclared system function on IRIX 6.5.
37989         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
37990         HAVE_REMAINDERL.
37991         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
37992         declared when it exists. Set HAVE_DECL_REMAINDERL.
37993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
37994         not HAVE_REMAINDERL.
37995         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
37996         HAVE_REMAINDERL.
37997         * doc/posix-functions/remainderl.texi: Mention missing declaration
37998         problem.
38000 2012-03-07  Bruno Haible  <bruno@clisp.org>
38002         rintf: Don't override undeclared system function on IRIX 6.5.
38003         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
38004         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
38005         exists. Set HAVE_DECL_RINTF.
38006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
38007         HAVE_RINTF.
38008         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
38009         HAVE_RINTF.
38010         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
38012 2012-03-07  Bruno Haible  <bruno@clisp.org>
38014         roundl: Avoid compilation error on AIX.
38015         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
38016         AIX 5.2..7.1.
38018 2012-03-07  Bruno Haible  <bruno@clisp.org>
38020         roundl: Don't override undeclared system function on IRIX 6.5.
38021         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
38022         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
38023         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38024         * modules/roundl (configure.ac): For replacement code, test
38025         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
38026         (Depends-on): Update conditions.
38027         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
38029 2012-03-07  Bruno Haible  <bruno@clisp.org>
38031         roundf: Don't override undeclared system function on IRIX 6.5.
38032         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
38033         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
38034         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38035         * modules/roundf (configure.ac): For replacement code, test
38036         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
38037         (Depends-on): Update conditions.
38038         * modules/roundf-ieee (Depends-on): Update conditions.
38039         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
38041 2012-03-07  Bruno Haible  <bruno@clisp.org>
38043         round: Don't override undeclared system function on IRIX 6.5.
38044         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
38045         argument.
38046         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
38047         also when it is not declared. Set HAVE_ROUND. For replacement code,
38048         test HAVE_ROUND, not HAVE_DECL_ROUND.
38049         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
38050         not HAVE_DECL_ROUND.
38051         (Depends-on): Update conditions.
38052         * modules/round-ieee (Depends-on): Update conditions.
38053         * doc/posix-functions/round.texi: Mention the IRIX problem.
38055 2012-03-07  Bruno Haible  <bruno@clisp.org>
38057         copysignf: Don't override undeclared system function on IRIX 6.5.
38058         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
38059         HAVE_COPYSIGNF.
38060         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
38061         declared when it exists. Set HAVE_DECL_COPYSIGNF.
38062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
38063         not HAVE_COPYSIGNF.
38064         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
38065         HAVE_COPYSIGNF.
38066         * doc/posix-functions/copysignf.texi: Mention missing declaration
38067         problem.
38069 2012-03-07  Jim Meyering  <meyering@redhat.com>
38071         readtokens: add tests
38072         * modules/readtokens-tests: New file.
38073         * tests/test-readtokens.c: New file.
38075 2012-03-07  Jim Meyering  <meyering@redhat.com>
38077         quotearg: the module must now include quote.h
38078         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
38079         So must the module.
38080         * modules/quotearg (Files): Add quote.h.
38082 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
38084         readtokens: avoid core dumps with unusual calling patterns
38085         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
38086         * lib/readtokens.c: Include limits.h.
38087         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
38088         (readtoken): Don't cache the delimiters; the cache code was buggy
38089         if !delim && saved_delim, or if the new n_delim differs from the old.
38090         Also, it wasn't thread-safe.
38092 2012-03-07  Bruno Haible  <bruno@clisp.org>
38094         quote: Adhere to common module description layout.
38095         * modules/quote (Makefile.am): Add back empty section.
38097 2012-03-06  Akim Demaille  <demaille@gostai.com>
38099         quote: fuse into quotearg
38100         This patch is made for the benefit of Bison.
38101         quote does not leave the choice of the quoting style to the user.
38102         quoting_style provides poor customizability, yet quoting_options,
38103         which is very rich, is hidden inside quotearg.c.  So in order to
38104         allow quote customization, move its implementation to quotearg.c.
38105         * lib/quote.c: Remove.
38106         * modules/quote: Adjust.
38107         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
38108         warning: provide all the members of literal structs.
38109         (quote_quoting_options): New.
38110         (quote, quote_n): Import implementation from quote.c.
38111         * lib/quote.h: Import the comments from quote.c.
38112         (quote_quoting_options): New.
38114 2012-03-06  Bruno Haible  <bruno@clisp.org>
38116         Tests for module 'expm1l-ieee'.
38117         * modules/expm1l-ieee-tests: New file.
38118         * tests/test-expm1l-ieee.c: New file.
38120         New module 'expm1l-ieee'.
38121         * modules/expm1l-ieee: New file.
38123         Tests for module 'expm1f-ieee'.
38124         * modules/expm1f-ieee-tests: New file.
38125         * tests/test-expm1f-ieee.c: New file.
38127         New module 'expm1f-ieee'.
38128         * modules/expm1f-ieee: New file.
38130         Tests for module 'expm1-ieee'.
38131         * modules/expm1-ieee-tests: New file.
38132         * tests/test-expm1-ieee.c: New file.
38133         * tests/test-expm1-ieee.h: New file.
38135         New module 'expm1-ieee'.
38136         * modules/expm1-ieee: New file.
38137         * m4/expm1-ieee.m4: New file.
38138         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
38139         whether expm1 works with a minus zero argument. Replace it if not.
38140         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
38141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
38142         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
38143         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
38144         (Depends-on): Update conditions.
38145         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
38146         AIX problem.
38148 2012-03-06  Bruno Haible  <bruno@clisp.org>
38150         Work around expm1f bug on IRIX 6.5.
38151         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
38152         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
38153         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
38154         not work.
38155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
38156         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
38157         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
38158         (Depends-on): Update conditions.
38159         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
38161 2012-03-06  Bruno Haible  <bruno@clisp.org>
38163         Tests for module 'expm1l'.
38164         * modules/expm1l-tests: New file.
38165         * tests/test-expm1l.c: New file.
38167         New module 'expm1l'.
38168         * lib/math.in.h (expm1l): New declaration.
38169         * lib/expm1l.c: New file.
38170         * m4/expm1l.m4: New file.
38171         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
38172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
38173         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
38174         * modules/expm1l: New file.
38175         * tests/test-math-c++.cc: Check the declaration of expm1l.
38176         * doc/posix-functions/expm1l.texi: Mention the new module.
38178 2012-03-06  Bruno Haible  <bruno@clisp.org>
38180         Tests for module 'expm1f'.
38181         * modules/expm1f-tests: New file.
38182         * tests/test-expm1f.c: New file.
38184         New module 'expm1f'.
38185         * lib/math.in.h (expm1f): New declaration.
38186         * lib/expm1f.c: New file.
38187         * m4/expm1f.m4: New file.
38188         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
38189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
38190         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
38191         * modules/expm1f: New file.
38192         * tests/test-math-c++.cc: Check the declaration of expm1f.
38193         * doc/posix-functions/expm1f.texi: Mention the new module.
38195 2012-03-06  Bruno Haible  <bruno@clisp.org>
38197         Tests for module 'expm1'.
38198         * modules/expm1-tests: New file.
38199         * tests/test-expm1.c: New file.
38200         * tests/test-expm1.h: New file.
38202         New module 'expm1'.
38203         * lib/math.in.h (expm1): New declaration.
38204         * lib/expm1.c: New file.
38205         * m4/expm1.m4: New file.
38206         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
38207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
38208         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
38209         * modules/expm1: New file.
38210         * tests/test-math-c++.cc: Check the declaration of expm1.
38211         * doc/posix-functions/expm1.texi: Mention the new module.
38213 2012-03-06  Bruno Haible  <bruno@clisp.org>
38215         math: Ensure declarations of math functions.
38216         * modules/acosf (Depends-on): Add 'extensions'.
38217         * modules/asinf (Depends-on): Likewise.
38218         * modules/atan2f (Depends-on): Likewise.
38219         * modules/atanf (Depends-on): Likewise.
38220         * modules/cbrt (Depends-on): Likewise.
38221         * modules/cbrtf (Depends-on): Likewise.
38222         * modules/cbrtl (Depends-on): Likewise.
38223         * modules/copysignf (Depends-on): Likewise.
38224         * modules/copysignl (Depends-on): Likewise.
38225         * modules/cosf (Depends-on): Likewise.
38226         * modules/coshf (Depends-on): Likewise.
38227         * modules/expf (Depends-on): Likewise.
38228         * modules/fabsf (Depends-on): Likewise.
38229         * modules/fabsl (Depends-on): Likewise.
38230         * modules/fmaf (Depends-on): Likewise.
38231         * modules/fmal (Depends-on): Likewise.
38232         * modules/fmodf (Depends-on): Likewise.
38233         * modules/fmodl (Depends-on): Likewise.
38234         * modules/frexpf (Depends-on): Likewise.
38235         * modules/frexpl (Depends-on): Likewise.
38236         * modules/hypot (Depends-on): Likewise.
38237         * modules/hypotf (Depends-on): Likewise.
38238         * modules/hypotl (Depends-on): Likewise.
38239         * modules/ldexpf (Depends-on): Likewise.
38240         * modules/ldexpl (Depends-on): Likewise.
38241         * modules/log10f (Depends-on): Likewise.
38242         * modules/log10l (Depends-on): Likewise.
38243         * modules/log1p (Depends-on): Likewise.
38244         * modules/logb (Depends-on): Likewise.
38245         * modules/logf (Depends-on): Likewise.
38246         * modules/modff (Depends-on): Likewise.
38247         * modules/modfl (Depends-on): Likewise.
38248         * modules/powf (Depends-on): Likewise.
38249         * modules/remainderf (Depends-on): Likewise.
38250         * modules/remainderl (Depends-on): Likewise.
38251         * modules/rintf (Depends-on): Likewise.
38252         * modules/rintl (Depends-on): Likewise.
38253         * modules/sinf (Depends-on): Likewise.
38254         * modules/sinhf (Depends-on): Likewise.
38255         * modules/sqrtf (Depends-on): Likewise.
38256         * modules/tanf (Depends-on): Likewise.
38257         * modules/tanhf (Depends-on): Likewise.
38258         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
38259         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
38260         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
38261         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
38262         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
38263         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
38264         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
38265         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
38266         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
38267         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
38268         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
38269         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
38270         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
38271         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
38272         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
38273         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
38274         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
38275         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38276         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
38277         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
38278         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
38279         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
38280         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
38281         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
38282         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38283         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
38284         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
38285         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38286         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
38287         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
38288         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
38289         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
38290         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
38291         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38292         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
38293         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
38294         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
38295         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
38296         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
38297         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
38298         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
38300 2012-03-06  Bruno Haible  <bruno@clisp.org>
38302         math: Update module names in warnings.
38303         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
38304         tanl): Use specific module name in warn-on-use warning.
38306 2012-03-06  Bruno Haible  <bruno@clisp.org>
38308         expl: Simplify computation.
38309         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
38311 2012-03-05  Bruno Haible  <bruno@clisp.org>
38313         exp* tests: More tests.
38314         * tests/test-exp.h: New file.
38315         * tests/test-exp.c: Include <float.h> and test-exp.h.
38316         (main): Invoke test_function.
38317         * tests/test-expf.c: Include <float.h> and test-exp.h.
38318         (main): Invoke test_function.
38319         * tests/test-expl.c: Include <float.h> and test-exp.h.
38320         (main): Invoke test_function.
38321         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
38322         (Makefile.am): Add randomd.c to test_exp_SOURCES.
38323         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
38324         (Makefile.am): Add randomf.c to test_expf_SOURCES.
38325         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
38326         (Depends-on): Add 'float'.
38327         (Makefile.am): Add randoml.c to test_expl_SOURCES.
38329         expl: Fix precision of computed result.
38330         * lib/expl.c: Completely rewritten.
38331         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
38332         (Maintainer): Add me.
38333         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
38335 2012-03-05  Bruno Haible  <bruno@clisp.org>
38337         cbrt* tests: More tests.
38338         * tests/test-cbrt.h: New file.
38339         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
38340         (main): Invoke test_function.
38341         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
38342         (main): Invoke test_function.
38343         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
38344         (main): Invoke test_function.
38345         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
38346         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
38347         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
38348         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
38349         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
38350         (Depends-on): Add 'float'.
38351         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
38353 2012-03-05  Bruno Haible  <bruno@clisp.org>
38355         hypot* tests: More tests.
38356         * tests/test-hypot.h: New file, partially extracted from
38357         tests/test-hypotl.c.
38358         * tests/test-hypot.c: Include test-hypot.h.
38359         (main): Invoke test_function.
38360         * tests/test-hypotf.c: Include test-hypot.h.
38361         (main): Invoke test_function.
38362         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
38363         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
38364         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
38365         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
38366         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
38367         tests/randomf.c.
38368         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
38369         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
38370         tests/randoml.c.
38371         (Depends-on): Add 'fpucw', 'float'.
38372         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
38374 2012-03-05  Bruno Haible  <bruno@clisp.org>
38376         fpucw: Doc about FreeBSD.
38377         * lib/fpucw.h: Mention FreeBSD in comments.
38379 2012-03-04  Bruno Haible  <bruno@clisp.org>
38381         sqrt* tests: More tests.
38382         * tests/test-sqrt.h: New file.
38383         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
38384         (main): Invoke test_function.
38385         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
38386         (main): Invoke test_function.
38387         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
38388         (main): Invoke test_function.
38389         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
38390         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
38391         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
38392         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
38393         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
38394         (Depends-on): Add 'float'.
38395         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
38397 2012-03-04  Bruno Haible  <bruno@clisp.org>
38399         remainder* tests: More tests.
38400         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
38401         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
38402         (main): Invoke test_function.
38403         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
38404         (main): Invoke test_function.
38405         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
38406         (main): Invoke test_function.
38407         * modules/remainder-tests (Files): Add tests/test-remainder.h,
38408         tests/randomd.c.
38409         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
38410         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
38411         tests/randomf.c.
38412         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
38413         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
38414         tests/randoml.c.
38415         (Depends-on): Add 'float'.
38416         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
38418 2012-03-04  Bruno Haible  <bruno@clisp.org>
38420         remainder, remainderf, remainderl: Fix computation for large quotients.
38421         * lib/remainder.c: Completely rewritten.
38422         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
38423         USE_FLOAT.
38424         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
38425         USE_LONG_DOUBLE.
38426         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
38427         isnand, isinf. Remove round, fma.
38428         * modules/remainderf (Files): Add lib/remainder.c.
38429         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
38430         Remove roundf, fmaf.
38431         * modules/remainderl (Files): Add lib/remainder.c.
38432         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
38433         isinf. Remove roundl, fmal.
38434         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
38435         REMAINDER_LIBM.
38436         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
38437         REMAINDERF_LIBM.
38438         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
38439         REMAINDERL_LIBM.
38441 2012-03-04  Bruno Haible  <bruno@clisp.org>
38443         fmod* tests: More tests.
38444         * tests/test-fmod.h (my_ldexp): New function.
38445         (test_function): Reduce amount of random numbers to test. Add tests
38446         of very large quotients x / y.
38447         * tests/test-fmod.c (MAX_EXP): New macro.
38448         * tests/test-fmodf.c (MAX_EXP): Likewise.
38449         * tests/test-fmodl.c (MAX_EXP): Likewise.
38451 2012-03-04  Bruno Haible  <bruno@clisp.org>
38453         fmod, fmodl: Fix computation for large quotients x / y.
38454         * lib/fmod.c: Completely rewritten.
38455         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
38456         USE_LONG_DOUBLE.
38457         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
38458         isnand. Remove fma.
38459         * modules/fmodl (Files): Add lib/fmod.c.
38460         (Depends-on): Add float, isfinite, signbit, fabsl,
38461         frexpl, ldexpl, isnanl. Remove fma.
38462         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
38463         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
38465 2012-03-03  Bruno Haible  <bruno@clisp.org>
38467         fmod* tests: More tests.
38468         * tests/test-fmod.h: New file.
38469         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
38470         (main): Invoke test_function.
38471         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
38472         (main): Invoke test_function.
38473         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
38474         (main): Invoke test_function.
38475         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
38476         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
38477         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
38478         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
38479         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
38480         (Depends-on): Add 'float'.
38481         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
38483 2012-03-03  Bruno Haible  <bruno@clisp.org>
38485         rint* tests: More tests.
38486         * tests/test-rint.h: New file, partially extracted from
38487         tests/test-rintl.c.
38488         * tests/test-rint.c: Include test-rint.h.
38489         (main): Invoke test_function.
38490         * tests/test-rintf.c: Include test-rint.h.
38491         (main): Invoke test_function.
38492         * tests/test-rintl.c: Include test-rint.h.
38493         (main): Invoke test_function.
38494         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
38495         (Makefile.am): Add randomd.c to test_rint_SOURCES.
38496         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
38497         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
38498         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
38499         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
38501 2012-03-03  Bruno Haible  <bruno@clisp.org>
38503         modf* tests: More tests.
38504         * tests/test-modf.h: New file.
38505         * tests/test-modf.c: Include <float.h> and test-modf.h.
38506         (main): Invoke test_function.
38507         * tests/test-modff.c: Include <float.h> and test-modf.h.
38508         (main): Invoke test_function.
38509         * tests/test-modfl.c: Include <float.h> and test-modf.h.
38510         (main): Invoke test_function.
38511         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
38512         (Makefile.am): Add randomd.c to test_modf_SOURCES.
38513         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
38514         (Makefile.am): Add randomf.c to test_modff_SOURCES.
38515         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
38516         (Depends-on): Add 'float'.
38517         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
38519 2012-03-03  Bruno Haible  <bruno@clisp.org>
38521         fabs* tests: More tests.
38522         * tests/test-fabs.h: New file, partially extracted from
38523         tests/test-fabsl.c.
38524         * tests/test-fabs.c (RANDOM): New macro.
38525         * tests/test-fabsf.c (RANDOM): New macro.
38526         * tests/test-fabsl.c (RANDOM): New macro.
38527         * modules/fabs-tests (Files): Add tests/randomd.c.
38528         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
38529         * modules/fabsf-tests (Files): Add tests/randomf.c.
38530         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
38531         * modules/fabsl-tests (Files): Add tests/randoml.c.
38532         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
38534 2012-03-03  Bruno Haible  <bruno@clisp.org>
38536         ldexp* tests: More tests.
38537         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
38538         * tests/test-ldexp.c (RANDOM): New macro.
38539         * tests/test-ldexpf.c (RANDOM): New macro.
38540         * tests/test-ldexpl.c (RANDOM): New macro.
38541         * modules/ldexp-tests (Files): Add tests/randomd.c.
38542         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
38543         * modules/ldexpf-tests (Files): Add tests/randomf.c.
38544         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
38545         * modules/ldexpl-tests (Files): Add tests/randoml.c.
38546         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
38548 2012-03-03  Bruno Haible  <bruno@clisp.org>
38550         frexp* tests: More tests.
38551         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
38552         * tests/test-frexp.c (RANDOM): New macro.
38553         * tests/test-frexpf.c (RANDOM): New macro.
38554         * tests/test-frexpl.c (RANDOM): New macro.
38555         * modules/frexp-tests (Files): Add tests/randomd.c.
38556         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
38557         * modules/frexpf-tests (Files): Add tests/randomf.c.
38558         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
38559         * modules/frexpl-tests (Files): Add tests/randoml.c.
38560         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
38562 2012-03-03  Bruno Haible  <bruno@clisp.org>
38564         Support for pseudo-random numbers in tests.
38565         * tests/randomf.c: New file.
38566         * tests/randomd.c: New file.
38567         * tests/randoml.c: New file.
38568         * tests/macros.h (randomf, randomd, randoml): New declarations.
38570 2012-03-03  Bruno Haible  <bruno@clisp.org>
38572         frexp* tests: Refactor.
38573         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
38574         * tests/test-frexp.c: Include and use it.
38575         * tests/test-frexpf.c: Likewise.
38576         * tests/test-frexpl.c: Likewise.
38577         * modules/frexp-tests (Files): Add tests/test-frexp.h.
38578         * modules/frexpf-tests (Files): Likewise.
38579         * modules/frexpl-tests (Files): Likewise.
38581 2012-03-02  Jim Meyering  <meyering@redhat.com>
38583         maint: don't specify XZ_OPT=-9ev in dist-related rule
38584         Using xz's -9 option is warranted only if you have a very large
38585         tarball (see xz's documentation for the sizes vs. presets), and
38586         requires 64MiB of memory at decompression time.
38587         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
38588         Automake's default of just "-e" is fine.  Override on a
38589         per-package basis by setting XZ_OPT e.g., in cfg.mk.
38591 2012-03-01  Eric Blake  <eblake@redhat.com>
38593         maint.mk: allow announcement for non-gnulib project
38594         * maint.mk (announcement): Skip gnulib version if not used.
38596 2012-03-01  Jim Meyering  <meyering@redhat.com>
38598         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
38599         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
38600         envvar settings cannot interfere.  Otherwise, setting envvars like
38601         prohibit=foo require=bar, etc. would cause spurious test failures.
38603 2012-03-01  Eric Blake  <eblake@redhat.com>
38605         maint.mk: add per-line exclusions to prohibitions
38606         * maint.mk (_sc_search_regexp): Add $exclude parameter.
38607         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
38608         (sc_const_long_option): Use it.
38610 2012-03-01  Bruno Haible  <bruno@clisp.org>
38612         Tests for module 'expl-ieee'.
38613         * modules/expl-ieee-tests: New file.
38614         * tests/test-expl-ieee.c: New file.
38616         New module 'expl-ieee'.
38617         * modules/expl-ieee: New file.
38619         Tests for module 'exp-ieee'.
38620         * modules/exp-ieee-tests: New file.
38621         * tests/test-exp-ieee.c: New file.
38623         New module 'exp-ieee'.
38624         * modules/exp-ieee: New file.
38626         Tests for module 'expf-ieee'.
38627         * modules/expf-ieee-tests: New file.
38628         * tests/test-expf-ieee.c: New file.
38629         * tests/test-exp-ieee.h: New file.
38631         New module 'expf-ieee'.
38632         * modules/expf-ieee: New file.
38634 2012-02-29  Bruno Haible  <bruno@clisp.org>
38636         cbrtl-ieee: Work around test failure on IRIX 6.5.
38637         * m4/cbrtl-ieee.m4: New file.
38638         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
38639         test whether cbrtl works with a minus zero argument. Replace it if not.
38640         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
38641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
38642         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
38643         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
38644         (Depends-on): Update conditions.
38645         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
38646         m4/signbit.m4.
38647         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
38648         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
38649         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
38651         Tests for module 'cbrtl-ieee'.
38652         * modules/cbrtl-ieee-tests: New file.
38653         * tests/test-cbrtl-ieee.c: New file.
38655         New module 'cbrtl-ieee'.
38656         * modules/cbrtl-ieee: New file.
38658         Tests for module 'cbrt-ieee'.
38659         * modules/cbrt-ieee-tests: New file.
38660         * tests/test-cbrt-ieee.c: New file.
38662         New module 'cbrt-ieee'.
38663         * modules/cbrt-ieee: New file.
38665         Tests for module 'cbrtf-ieee'.
38666         * modules/cbrtf-ieee-tests: New file.
38667         * tests/test-cbrtf-ieee.c: New file.
38668         * tests/test-cbrt-ieee.h: New file.
38670         New module 'cbrtf-ieee'.
38671         * modules/cbrtf-ieee: New file.
38673 2012-02-29  Bruno Haible  <bruno@clisp.org>
38675         cbrtf: Work around bug in IRIX 6.5 system function.
38676         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
38677         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
38678         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
38679         work.
38680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
38681         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
38682         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
38683         (Depends-on): Update conditions.
38684         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
38686 2012-02-29  Bruno Haible  <bruno@clisp.org>
38688         Tests for module 'cbrtl'.
38689         * modules/cbrtl-tests: New file.
38690         * tests/test-cbrtl.c: New file.
38692         New module 'cbrtl'.
38693         * lib/math.in.h (cbrtl): New declaration.
38694         * lib/cbrtl.c: New file.
38695         * m4/cbrtl.m4: New file.
38696         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
38697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
38698         HAVE_DECL_CBRTL.
38699         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
38700         HAVE_DECL_CBRTL.
38701         * modules/cbrtl: New file.
38702         * tests/test-math-c++.cc: Check the declaration of cbrtl.
38703         * doc/posix-functions/cbrtl.texi: Mention the new module.
38705 2012-02-29  Bruno Haible  <bruno@clisp.org>
38707         Tests for module 'cbrtf'.
38708         * modules/cbrtf-tests: New file.
38709         * tests/test-cbrtf.c: New file.
38711         New module 'cbrtf'.
38712         * lib/math.in.h (cbrtf): New declaration.
38713         * lib/cbrtf.c: New file.
38714         * m4/cbrtf.m4: New file.
38715         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
38716         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
38717         HAVE_DECL_CBRTF.
38718         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
38719         HAVE_DECL_CBRTF.
38720         * modules/cbrtf: New file.
38721         * tests/test-math-c++.cc: Check the declaration of cbrtf.
38722         * doc/posix-functions/cbrtf.texi: Mention the new module.
38724 2012-02-29  Bruno Haible  <bruno@clisp.org>
38726         cbrt: Provide replacement on MSVC and Minix.
38727         * lib/math.in.h (cbrt): New declaration.
38728         * lib/cbrt.c: New file.
38729         * m4/cbrt.m4: New file.
38730         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
38731         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
38732         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
38733         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
38734         (Depends-on): Add dependencies.
38735         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
38736         * tests/test-math-c++.cc: Check the declaration of cbrt.
38737         * doc/posix-functions/cbrt.texi: Mention that the module provides a
38738         replacement.
38740 2012-02-29  Bruno Haible  <bruno@clisp.org>
38742         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
38743         * m4/hypotl-ieee.m4: New file.
38744         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
38745         test whether hypotl works with mixed NaN and Infinity arguments.
38746         Replace it if not.
38747         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
38748         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
38749         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
38750         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
38751         (Depends-on): Update conditions.
38752         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
38753         (Depends-on): Add hypot-ieee.
38754         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
38755         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
38757         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
38758         * m4/hypotf-ieee.m4: New file.
38759         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
38760         test whether hypotf works with mixed NaN and Infinity arguments.
38761         Replace it if not.
38762         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
38763         (Depends-on): Add hypot-ieee.
38764         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
38765         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
38767         hypot-ieee: Work around test failure on OSF/1 and native Windows.
38768         * lib/math.in.h (hypot): New declaration.
38769         * lib/hypot.c: New file.
38770         * m4/hypot-ieee.m4: New file.
38771         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
38772         whether hypot works with mixed NaN and Infinity arguments. Replace it
38773         if not.
38774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
38775         REPLACE_HYPOT.
38776         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
38777         * modules/hypot (Files): Add lib/hypot.c.
38778         (Depends-on): Add dependencies.
38779         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
38780         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
38781         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
38782         * tests/test-math-c++.cc: Check the declaration of hypot.
38783         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
38785         Tests for module 'hypotl-ieee'.
38786         * modules/hypotl-ieee-tests: New file.
38787         * tests/test-hypotl-ieee.c: New file.
38789         New module 'hypotl-ieee'.
38790         * modules/hypotl-ieee: New file.
38792         Tests for module 'hypot-ieee'.
38793         * modules/hypot-ieee-tests: New file.
38794         * tests/test-hypot-ieee.c: New file.
38796         New module 'hypot-ieee'.
38797         * modules/hypot-ieee: New file.
38799         Tests for module 'hypotf-ieee'.
38800         * modules/hypotf-ieee-tests: New file.
38801         * tests/test-hypotf-ieee.c: New file.
38802         * tests/test-hypot-ieee.h: New file.
38804         New module 'hypotf-ieee'.
38805         * modules/hypotf-ieee: New file.
38807 2012-02-29  Bruno Haible  <bruno@clisp.org>
38809         Remove unused variables.
38810         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
38811         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
38812         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
38813         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
38815 2012-02-29  Eric Blake  <eblake@redhat.com>
38817         termios: fix pid_t always, not just for tcgetsid
38818         * doc/posix-headers/termios.texi (termios.h): Mention problem.
38819         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
38820         just when building tcgetsid.
38822 2012-02-29  Bruno Haible  <bruno@clisp.org>
38824         Tests for module 'hypotl'.
38825         * modules/hypotl-tests: New file.
38826         * tests/test-hypotl.c: New file.
38828         New module 'hypotl'.
38829         * lib/math.in.h (hypotl): New declaration.
38830         * lib/hypotl.c: New file.
38831         * m4/hypotl.m4: New file.
38832         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
38834         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
38835         * modules/hypotl: New file.
38836         * tests/test-math-c++.cc: Check the hypotl declaration.
38837         * doc/posix-functions/hypotl.texi: Mention the new module.
38839 2012-02-29  Eric Blake  <eblake@redhat.com>
38841         tcgetsid: fix cygwin header bug
38842         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
38844         docs: update cygwin progress
38845         * doc/posix-functions/llround.texi (llround): Added in cygwin
38846         1.7.8.
38847         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
38848         * doc/glibc-functions/program_invocation_name.texi
38849         (program_invocation_name): Likewise.
38850         * doc/glibc-functions/program_invocation_short_name.texi
38851         (program_invocation_short_name): Likewise.
38852         * doc/glibc-functions/madvise.texi (madvise): Likewise.
38853         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
38854         Likewise.
38855         * doc/posix-functions/pthread_spin_destroy.texi
38856         (pthread_spin_destroy): Added in cygwin 1.7.10.
38857         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
38858         Likewise.
38859         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
38860         Likewise.
38861         * doc/posix-functions/pthread_spin_trylock.texi
38862         (pthread_spin_trylock): Likewise.
38863         * doc/posix-functions/pthread_spin_unlock.texi
38864         (pthread_spin_unlock): Likewise.
38865         * doc/posix-functions/pthread_setschedprio.texi
38866         (pthread_setschedprio): Likewise.
38867         * doc/posix-functions/pthread_attr_getstack.texi
38868         (pthread_attr_getstack): Likewise.
38869         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
38870         (pthread_attr_getstackaddr): Likewise.
38871         * doc/glibc-functions/pthread_getattr_np.texi
38872         (pthread_getattr_np): Likewise.
38873         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
38874         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
38875         * doc/posix-functions/clock_settime.texi (clock_settime):
38876         Likewise.
38877         * doc/posix-functions/pthread_attr_getguardsize.texi
38878         (pthread_attr_getguardsize): Likewise.
38879         * doc/posix-functions/pthread_attr_setguardsize.texi
38880         (pthread_attr_setguardsize): Likewise.
38881         * doc/posix-functions/pthread_attr_setstack.texi
38882         (pthread_attr_setstack): Likewise.
38883         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
38884         (pthread_attr_setstackaddr): Likewise.
38885         * doc/posix-functions/clock_getcpuclockid.texi
38886         (clock_getcpuclockid): Likewise.
38887         * doc/posix-functions/pthread_getcpuclockid.texi
38888         (pthread_getcpuclockid): Likewise.
38889         * doc/glibc-functions/error.texi (error): Likewise.
38890         * doc/glibc-functions/error_at_line.texi (error_at_line):
38891         Likewise.
38892         * doc/glibc-functions/error_message_count.texi
38893         (error_message_count): Likewise.
38894         * doc/glibc-functions/error_one_per_line.texi
38895         (error_one_per_line): Likewise.
38896         * doc/glibc-functions/error_print_progname.texi
38897         (error_print_progname): Likewise.
38898         * doc/posix-functions/pthread_condattr_getclock.texi
38899         (pthread_condattr_getclock): Likewise.
38900         * doc/posix-functions/pthread_condattr_setclock.texi
38901         (pthread_condattr_setclock): Likewise.
38902         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
38903         Likewise.
38904         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
38905         * doc/glibc-functions/getpt.texi (getpt): Likewise.
38906         * doc/glibc-functions/get_current_dir_name.texi
38907         (get_current_dir_name): Likewise.
38908         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
38909         Likewise.
38910         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
38911         wrong return type.
38912         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
38913         1.7.11.
38915 2012-02-29  Bruno Haible  <bruno@clisp.org>
38917         Tests for module 'hypotf'.
38918         * modules/hypotf-tests: New file.
38919         * tests/test-hypotf.c: New file.
38921         New module 'hypotf'.
38922         * lib/math.in.h (hypotf): New declaration.
38923         * lib/hypotf.c: New file.
38924         * m4/hypotf.m4: New file.
38925         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
38926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
38927         REPLACE_HYPOTF.
38928         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
38929         REPLACE_HYPOTF.
38930         * modules/hypotf: New file.
38931         * tests/test-math-c++.cc: Check the hypotf declaration.
38932         * doc/posix-functions/hypotf.texi: Mention the new module.
38934         hypot: Prepare for hypotf module.
38935         * m4/hypot.m4: New file.
38936         * modules/hypot (Files): Add m4/hypot.m4.
38937         (configure.ac): Invoke gl_FUNC_HYPOT.
38939 2012-02-29  Bruno Haible  <bruno@clisp.org>
38941         hypot tests: More tests.
38942         * tests/test-hypot.c: Include <float.h>.
38943         (main): Add tests about overflow and underflow.
38945 2012-02-29  Bruno Haible  <bruno@clisp.org>
38947         math code: Add comments.
38948         * lib/acosl.c: Add comment about related glibc source files.
38949         * lib/asinl.c: Likewise.
38950         * lib/atanl.c: Likewise.
38951         * lib/expl.c: Likewise.
38952         * lib/logl.c: Likewise.
38953         * lib/sincosl.c: Likewise.
38954         * lib/sinl.c: Likewise.
38955         * lib/tanl.c: Likewise.
38956         * lib/trigl.c: Likewise.
38957         * lib/cosl.c: Likewise. Fix comments.
38959 2012-02-28  Bruno Haible  <bruno@clisp.org>
38961         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
38962         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
38963         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
38964         HUGE_VALL are defined.
38965         (numeric_equald): Renamed from numeric_equal.
38966         (numeric_equalf, numeric_equall): New functions.
38967         (main): Check also HUGE_VALF, HUGE_VALL.
38968         * modules/math-tests (Files): Add tests/macros.h.
38969         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
38970         HUGE_VALL.
38972 2012-02-28  Bruno Haible  <bruno@clisp.org>
38974         doc: Move ISO C11 feature notes into POSIX chapters.
38975         * doc/posix-functions/aligned_alloc.texi: Renamed from
38976         doc/glibc-functions/aligned_alloc.texi.
38977         * doc/posix-functions/quick_exit.texi: Renamed from
38978         doc/glibc-functions/quick_exit.texi.
38979         * doc/posix-headers/uchar.texi: Renamed from
38980         doc/glibc-headers/uchar.texi.
38981         * doc/posix-functions/c16rtomb.texi: Renamed from
38982         doc/glibc-functions/c16rtomb.texi.
38983         * doc/posix-functions/c32rtomb.texi: Renamed from
38984         doc/glibc-functions/c32rtomb.texi.
38985         * doc/posix-functions/mbrtoc16.texi: Renamed from
38986         doc/glibc-functions/mbrtoc16.texi.
38987         * doc/posix-functions/mbrtoc32.texi: Renamed from
38988         doc/glibc-functions/mbrtoc32.texi.
38989         * doc/gnulib.texi: Update.
38990         (Glibc uchar.h): Remove section.
38991         Suggested by Eric Blake.
38993 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
38995         stdnoreturn: port to MSVC better
38996         MSVC standard headers use __declspec(noreturn), so #define noreturn
38997         to empty on that platform.  Reported by Bruno Haible in
38998         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
38999         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
39000         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
39002 2012-02-28  Bruno Haible  <bruno@clisp.org>
39004         doc: Mention new glibc headers and functions.
39005         * doc/glibc-headers/uchar.texi: New file.
39006         * doc/glibc-functions/aligned_alloc.texi: New file.
39007         * doc/glibc-functions/c16rtomb.texi: New file.
39008         * doc/glibc-functions/c32rtomb.texi: New file.
39009         * doc/glibc-functions/clock_adjtime.texi: New file.
39010         * doc/glibc-functions/fanotify_init.texi: New file.
39011         * doc/glibc-functions/fanotify_mark.texi: New file.
39012         * doc/glibc-functions/inet6_opt_append.texi: New file.
39013         * doc/glibc-functions/inet6_opt_find.texi: New file.
39014         * doc/glibc-functions/inet6_opt_finish.texi: New file.
39015         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
39016         * doc/glibc-functions/inet6_opt_init.texi: New file.
39017         * doc/glibc-functions/inet6_opt_next.texi: New file.
39018         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
39019         * doc/glibc-functions/inet6_rth_add.texi: New file.
39020         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
39021         * doc/glibc-functions/inet6_rth_init.texi: New file.
39022         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
39023         * doc/glibc-functions/inet6_rth_segments.texi: New file.
39024         * doc/glibc-functions/inet6_rth_space.texi: New file.
39025         * doc/glibc-functions/login.texi: New file.
39026         * doc/glibc-functions/mbrtoc16.texi: New file.
39027         * doc/glibc-functions/mbrtoc32.texi: New file.
39028         * doc/glibc-functions/name_to_handle_at.texi: New file.
39029         * doc/glibc-functions/ntp_gettimex.texi: New file.
39030         * doc/glibc-functions/open_by_handle_at.texi: New file.
39031         * doc/glibc-functions/prlimit.texi: New file.
39032         * doc/glibc-functions/process_vm_readv.texi: New file.
39033         * doc/glibc-functions/process_vm_writev.texi: New file.
39034         * doc/glibc-functions/recvmmsg.texi: New file.
39035         * doc/glibc-functions/scandirat.texi: New file.
39036         * doc/glibc-functions/sendmmsg.texi: New file.
39037         * doc/glibc-functions/setns.texi: New file.
39038         * doc/glibc-functions/timespec_get.texi: New file.
39039         * doc/gnulib.texi: Include them.
39040         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
39041         sections.
39042         Reported by Eric Blake.
39044 2012-02-28  Bruno Haible  <bruno@clisp.org>
39046         Avoid compilation errors with MSVC option -fp:strict.
39047         * lib/floor.c: Use MSVC specific pragma fenv_access.
39048         * lib/ceil.c: Likewise.
39049         * lib/trunc.c: Likewise.
39050         * lib/round.c: Likewise.
39051         * lib/rint.c: Likewise.
39052         * lib/fma.c: Likewise.
39053         * lib/integer_length.c: Likewise.
39054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39056         * tests/test-floor2.c: Likewise.
39057         * tests/test-floorf2.c: Likewise.
39058         * tests/test-ceil2.c: Likewise.
39059         * tests/test-ceilf2.c: Likewise.
39060         * tests/test-trunc2.c: Likewise.
39061         * tests/test-truncf2.c: Likewise.
39062         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39064 2012-02-27  Bruno Haible  <bruno@clisp.org>
39066         Tests for module 'sqrtl-ieee'.
39067         * modules/sqrtl-ieee-tests: New file.
39068         * tests/test-sqrtl-ieee.c: New file.
39070         New module 'sqrtl-ieee'.
39071         * modules/sqrtl-ieee: New file.
39073         Tests for module 'sqrt-ieee'.
39074         * modules/sqrt-ieee-tests: New file.
39075         * tests/test-sqrt-ieee.c: New file.
39077         New module 'sqrt-ieee'.
39078         * modules/sqrt-ieee: New file.
39080         Tests for module 'sqrtf-ieee'.
39081         * modules/sqrtf-ieee-tests: New file.
39082         * tests/test-sqrtf-ieee.c: New file.
39083         * tests/test-sqrt-ieee.h: New file.
39085         New module 'sqrtf-ieee'.
39086         * modules/sqrtf-ieee: New file.
39088 2012-02-27  Bruno Haible  <bruno@clisp.org>
39090         remainderl-ieee: Work around test failure on OSF/1.
39091         * m4/remainderl-ieee.m4: New file.
39092         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
39093         present, test whether remainderl works with a zero second argument.
39094         Replace it if not.
39095         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
39096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
39097         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
39098         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
39099         (Depends-on): Update conditions.
39100         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
39101         (Depends-on): Add remainder-ieee.
39102         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
39103         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
39104         module.
39106         remainderf-ieee: Work around test failure on OSF/1.
39107         * m4/remainderf-ieee.m4: New file.
39108         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
39109         present, test whether remainderf works with a zero second argument.
39110         Replace it if not.
39111         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
39112         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
39113         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
39114         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
39115         (Depends-on): Update conditions.
39116         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
39117         (Depends-on): Add remainder-ieee.
39118         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
39119         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
39120         module.
39122         remainder-ieee: Work around test failure on OSF/1.
39123         * m4/remainder-ieee.m4: New file.
39124         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
39125         present, test whether remainder works with a zero second argument.
39126         Replace it if not.
39127         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
39128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
39129         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
39130         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
39131         (Depends-on): Update dependencies.
39132         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
39133         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
39134         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
39136         Tests for module 'remainderl-ieee'.
39137         * modules/remainderl-ieee-tests: New file.
39138         * tests/test-remainderl-ieee.c: New file.
39140         New module 'remainderl-ieee'.
39141         * modules/remainderl-ieee: New file.
39143         Tests for module 'remainder-ieee'.
39144         * modules/remainder-ieee-tests: New file.
39145         * tests/test-remainder-ieee.c: New file.
39147         New module 'remainder-ieee'.
39148         * modules/remainder-ieee: New file.
39150         Tests for module 'remainderf-ieee'.
39151         * modules/remainderf-ieee-tests: New file.
39152         * tests/test-remainderf-ieee.c: New file.
39153         * tests/test-remainder-ieee.h: New file.
39155         New module 'remainderf-ieee'.
39156         * modules/remainderf-ieee: New file.
39158 2012-02-27  Bruno Haible  <bruno@clisp.org>
39160         modff, modfl: Fix configure syntax error.
39161         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
39162         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
39164 2012-02-27  Bruno Haible  <bruno@clisp.org>
39166         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
39167         * m4/fmodl-ieee.m4: New file.
39168         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
39169         whether fmodl works with zero arguments. Replace it if not.
39170         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
39171         (Depends-on): Add fmod-ieee.
39172         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
39173         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
39175         fmodf-ieee: Work around test failure on OSF/1.
39176         * m4/fmodf-ieee.m4: New file.
39177         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
39178         whether fmodf works with zero arguments. Replace it if not.
39179         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
39180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
39181         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
39182         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
39183         (Depends-on): Update dependencies.
39184         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
39185         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
39186         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
39188         fmodf-ieee: Work around test failure on MSVC 9.
39189         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
39190         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
39192         fmod-ieee: Work around test failures on OSF/1, mingw.
39193         * m4/fmod-ieee.m4: New file.
39194         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
39195         whether fmod works with zero arguments. Replace it if not.
39196         * lib/math.in.h (fmod): New declaration.
39197         * lib/fmod.c: New file.
39198         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
39199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
39200         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
39201         * modules/fmod (Files): Add lib/fmod.c.
39202         (Depends-on): Add math, isinf, trunc, fma.
39203         (configure.ac): Arrange to compile lib/fmod.c if needed.
39204         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
39205         m4/signbit.m4.
39206         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
39207         * tests/test-math-c++.cc: Check the declaration of fmod.
39208         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
39210         fmodl-ieee: Fix test failures.
39211         * lib/fmodl.c (fmodl): Treat Inf specially.
39212         * modules/fmodl (Depends-on): Add isinf.
39214         Tests for module 'fmodl-ieee'.
39215         * modules/fmodl-ieee-tests: New file.
39216         * tests/test-fmodl-ieee.c: New file.
39218         New module 'fmodl-ieee'.
39219         * modules/fmodl-ieee: New file.
39221         Tests for module 'fmod-ieee'.
39222         * modules/fmod-ieee-tests: New file.
39223         * tests/test-fmod-ieee.c: New file.
39225         New module 'fmod-ieee'.
39226         * modules/fmod-ieee: New file.
39228         Tests for module 'fmodf-ieee'.
39229         * modules/fmodf-ieee-tests: New file.
39230         * tests/test-fmodf-ieee.c: New file.
39231         * tests/test-fmod-ieee.h: New file.
39233         New module 'fmodf-ieee'.
39234         * modules/fmodf-ieee: New file.
39236 2012-02-27  Bruno Haible  <bruno@clisp.org>
39238         Tests for module 'rintl-ieee'.
39239         * modules/rintl-ieee-tests: New file.
39240         * tests/test-rintl-ieee.c: New file.
39242         New module 'rintl-ieee'.
39243         * modules/rintl-ieee: New file.
39245         Tests for module 'rint-ieee'.
39246         * modules/rint-ieee-tests: New file.
39247         * tests/test-rint-ieee.c: New file.
39249         New module 'rint-ieee'.
39250         * modules/rint-ieee: New file.
39252         Tests for module 'rintf-ieee'.
39253         * modules/rintf-ieee-tests: New file.
39254         * tests/test-rintf-ieee.c: New file.
39255         * tests/test-rint-ieee.h: New file.
39257         New module 'rintf-ieee'.
39258         * modules/rintf-ieee: New file.
39260 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
39262         regex: re_search etc. should return -2 when memory exhausted
39263         This bug was uncovered when testing 'grep'.  Without the fix,
39264         re_search and friends return -1 when memory is exhausted, but -1
39265         means no match, and this causes grep to falsely report no-match
39266         instead of memory-exhaustion.  See
39267         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
39268         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
39269         trouble; this can occur if re_search_internal ran out of memory.
39271 2012-02-26  Bruno Haible  <bruno@clisp.org>
39273         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
39274         * m4/modfl-ieee.m4: New file.
39275         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
39276         whether modfl works with Inf. Replace it if not.
39277         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
39278         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
39279         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
39280         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
39281         (Depends-on): Update dependencies.
39282         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
39283         m4/signbit.m4.
39284         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
39285         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
39287         modfl-ieee: Fix dependencies.
39288         * modules/modfl-ieee (Depends-on): Add modf-ieee.
39290         modfl-ieee: Fix test failures.
39291         * lib/modfl.c (modfl): Treat NaN and Inf specially.
39292         * modules/modfl (Depends-on): Add isfinite, isinf.
39294         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
39295         * m4/modff-ieee.m4: New file.
39296         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
39297         whether modff works with NaN and Inf. Replace it if not.
39298         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
39299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
39300         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
39301         * modules/modff (configure.ac): Consider REPLACE_MODFF.
39302         (Depends-on): Update dependencies.
39303         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
39304         m4/signbit.m4.
39305         (Depends-on): Add modf-ieee.
39306         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
39307         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
39309         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
39310         * m4/modf-ieee.m4: New file.
39311         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
39312         whether modf works with NaN and Inf. Replace it if not.
39313         * lib/math.in.h (modf): New declaration.
39314         * lib/modf.c: New file.
39315         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
39316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
39317         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
39318         * modules/modf (Files): Add lib/modf.c.
39319         (Depends-on): Add math, isfinite, trunc, isinf.
39320         (configure.ac): Addrange to compile lib/modf.c if needed.
39321         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
39322         m4/signbit.m4.
39323         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
39324         * tests/test-math-c++.cc: Check the declaration of modf.
39325         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
39327         Tests for module 'modfl-ieee'.
39328         * modules/modfl-ieee-tests: New file.
39329         * tests/test-modfl-ieee.c: New file.
39331         New module 'modfl-ieee'.
39332         * modules/modfl-ieee: New file.
39334         Tests for module 'modf-ieee'.
39335         * modules/modf-ieee-tests: New file.
39336         * tests/test-modf-ieee.c: New file.
39338         New module 'modf-ieee'.
39339         * modules/modf-ieee: New file.
39341         Tests for module 'modff-ieee'.
39342         * modules/modff-ieee-tests: New file.
39343         * tests/test-modff-ieee.c: New file.
39344         * tests/test-modf-ieee.h: New file.
39346         New module 'modff-ieee'.
39347         * modules/modff-ieee: New file.
39349 2012-02-26  Bruno Haible  <bruno@clisp.org>
39351         Tests for module 'fabsl-ieee'.
39352         * modules/fabsl-ieee-tests: New file.
39353         * tests/test-fabsl-ieee.c: New file.
39355         New module 'fabsl-ieee'.
39356         * modules/fabsl-ieee: New file.
39358         Tests for module 'fabs-ieee'.
39359         * modules/fabs-ieee-tests: New file.
39360         * tests/test-fabs-ieee.c: New file.
39362         New module 'fabs-ieee'.
39363         * modules/fabs-ieee: New file.
39365         Tests for module 'fabsf-ieee'.
39366         * modules/fabsf-ieee-tests: New file.
39367         * tests/test-fabsf-ieee.c: New file.
39368         * tests/test-fabs-ieee.h: New file.
39370         New module 'fabsf-ieee'.
39371         * modules/fabsf-ieee: New file.
39373 2012-02-26  Bruno Haible  <bruno@clisp.org>
39375         Tests for module 'fmal-ieee'.
39376         * modules/fmal-ieee-tests: New file.
39377         * tests/test-fmal-ieee.c: New file.
39379         New module 'fmal-ieee'.
39380         * modules/fmal-ieee: New file.
39382         Tests for module 'fma-ieee'.
39383         * modules/fma-ieee-tests: New file.
39384         * tests/test-fma-ieee.c: New file.
39386         New module 'fma-ieee'.
39387         * modules/fma-ieee: New file.
39389         Tests for module 'fmaf-ieee'.
39390         * modules/fmaf-ieee-tests: New file.
39391         * tests/test-fmaf-ieee.c: New file.
39392         * tests/test-fma-ieee.h: New file.
39394         New module 'fmaf-ieee'.
39395         * modules/fmaf-ieee: New file.
39397 2012-02-26  Bruno Haible  <bruno@clisp.org>
39399         Tests for module 'ldexpl-ieee'.
39400         * modules/ldexpl-ieee-tests: New file.
39401         * tests/test-ldexpl-ieee.c: New file.
39403         New module 'ldexpl-ieee'.
39404         * modules/ldexpl-ieee: New file.
39406         Tests for module 'ldexp-ieee'.
39407         * modules/ldexp-ieee-tests: New file.
39408         * tests/test-ldexp-ieee.c: New file.
39410         New module 'ldexp-ieee'.
39411         * modules/ldexp-ieee: New file.
39413         Tests for module 'ldexpf-ieee'.
39414         * modules/ldexpf-ieee-tests: New file.
39415         * tests/test-ldexpf-ieee.c: New file.
39416         * tests/test-ldexp-ieee.h: New file.
39418         New module 'ldexpf-ieee'.
39419         * modules/ldexpf-ieee: New file.
39421 2012-02-26  Bruno Haible  <bruno@clisp.org>
39423         Refactor frexp*-ieee tests.
39424         * tests/test-frexp-ieee.h: New file.
39425         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
39426         (main): Just call test_function.
39427         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
39428         (main): Just call test_function.
39429         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
39430         (main): Just call test_function.
39431         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
39432         * modules/frexp-ieee-tests (Files): Likewise.
39433         * modules/frexpl-ieee-tests (Files): Likewise.
39435         Tests for module 'frexpl-ieee'.
39436         * modules/frexpl-ieee-tests: New file.
39437         * tests/test-frexpl-ieee.c: New file.
39439         New module 'frexpl-ieee'.
39440         * modules/frexpl-ieee: New file.
39442         Tests for module 'frexp-ieee'.
39443         * modules/frexp-ieee-tests: New file.
39444         * tests/test-frexp-ieee.c: New file.
39446         New module 'frexp-ieee'.
39447         * modules/frexp-ieee: New file.
39449         Tests for module 'frexpf-ieee'.
39450         * modules/frexpf-ieee-tests: New file.
39451         * tests/test-frexpf-ieee.c: New file.
39453         New module 'frexpf-ieee'.
39454         * modules/frexpf-ieee: New file.
39456 2012-02-26  Bruno Haible  <bruno@clisp.org>
39458         roundl-ieee tests: More tests.
39459         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39460         (main): Add tests for [MX] shaded specification in POSIX.
39461         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39462         (Depends-on): Add isnanl-nolibm.
39464         round-ieee tests: More tests.
39465         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39466         (main): Add tests for [MX] shaded specification in POSIX.
39467         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39468         (Depends-on): Add isnand-nolibm.
39470         roundf-ieee tests: More tests.
39471         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39472         (main): Add tests for [MX] shaded specification in POSIX.
39473         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39474         (Depends-on): Add isnanf-nolibm.
39476         truncl-ieee tests: More tests.
39477         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39478         (main): Add tests for [MX] shaded specification in POSIX.
39479         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39480         (Depends-on): Add isnanl-nolibm.
39482         trunc-ieee tests: More tests.
39483         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39484         (main): Add tests for [MX] shaded specification in POSIX.
39485         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39486         (Depends-on): Add isnand-nolibm.
39488         truncf-ieee tests: More tests.
39489         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39490         (main): Add tests for [MX] shaded specification in POSIX.
39491         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39492         (Depends-on): Add isnanf-nolibm.
39494         ceill-ieee tests: More tests.
39495         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39496         (main): Add tests for [MX] shaded specification in POSIX.
39497         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39498         (Depends-on): Add isnanl-nolibm.
39500         ceil-ieee tests: More tests.
39501         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39502         (main): Add tests for [MX] shaded specification in POSIX.
39503         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39504         (Depends-on): Add isnand-nolibm.
39506         ceilf-ieee tests: More tests.
39507         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39508         (main): Add tests for [MX] shaded specification in POSIX.
39509         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39510         (Depends-on): Add isnanf-nolibm.
39512         floorl-ieee tests: More tests.
39513         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
39514         (main): Add tests for [MX] shaded specification in POSIX.
39515         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39516         (Depends-on): Add isnanl-nolibm.
39518         floor-ieee tests: More tests.
39519         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
39520         (main): Add tests for [MX] shaded specification in POSIX.
39521         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39522         (Depends-on): Add isnand-nolibm.
39524         floorf-ieee tests: More tests.
39525         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
39526         (main): Add tests for [MX] shaded specification in POSIX.
39527         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
39528         (Depends-on): Add isnanf-nolibm.
39530 2012-02-26  Bruno Haible  <bruno@clisp.org>
39532         fpieee: More comments.
39533         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
39535 2012-02-25  Bruno Haible  <bruno@clisp.org>
39537         Tests for module 'log10l'.
39538         * modules/log10l-tests: New file.
39539         * tests/test-log10l.c: New file.
39540         * tests/test-math-c++.cc: Check the declaration of log10l.
39542         New module 'log10l'.
39543         * lib/math.in.h (log10l): New declaration.
39544         * lib/log10l.c: New file.
39545         * m4/log10l.m4: New file.
39546         * modules/log10l: New file.
39547         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
39548         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
39549         HAVE_DECL_LOG10L.
39550         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
39551         HAVE_DECL_LOG10L.
39552         * doc/posix-functions/log10l.texi: Mention the new module.
39554 2012-02-25  Bruno Haible  <bruno@clisp.org>
39556         fmodl, remainder*: Avoid wrong results due to rounding errors.
39557         * lib/fmodl.c (fmodl): Correct the result if it is not within the
39558         expected bounds.
39559         * lib/remainderf.c (remainderf): Likewise.
39560         * lib/remainder.c (remainder): Likewise.
39561         * lib/remainderl.c (remainderl): Likewise.
39563 2012-02-25  Bruno Haible  <bruno@clisp.org>
39565         Tests for module 'remainderl'.
39566         * modules/remainderl-tests: New file.
39567         * tests/test-remainderl.c: New file.
39568         * tests/test-math-c++.cc: Check the declaration of remainderl.
39570         New module 'remainderl'.
39571         * lib/math.in.h (remainderl): New declaration.
39572         * lib/remainderl.c: New file.
39573         * m4/remainderl.m4: New file.
39574         * modules/remainderl: New file.
39575         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
39576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
39577         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
39578         HAVE_REMAINDERL.
39579         * doc/posix-functions/remainderl.texi: Mention the new module.
39581 2012-02-25  Bruno Haible  <bruno@clisp.org>
39583         Tests for module 'remainderf'.
39584         * modules/remainderf-tests: New file.
39585         * tests/test-remainderf.c: New file.
39586         * tests/test-math-c++.cc: Check the declaration of remainderf.
39588         New module 'remainderf'.
39589         * lib/math.in.h (remainderf): New declaration.
39590         * lib/remainderf.c: New file.
39591         * m4/remainderf.m4: New file.
39592         * modules/remainderf: New file.
39593         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
39594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
39595         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
39596         HAVE_REMAINDERF.
39597         * doc/posix-functions/remainderf.texi: Mention the new module.
39599 2012-02-25  Bruno Haible  <bruno@clisp.org>
39601         remainder: Support for MSVC.
39602         * lib/math.in.h (remainder): New declaration.
39603         * lib/remainder.c: New file.
39604         * m4/remainder.m4: New file.
39605         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
39606         (Depends-on): Add math, round, fma.
39607         (configure.ac): Use results of gl_FUNC_REMAINDER.
39608         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
39609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
39610         HAVE_DECL_REMAINDER.
39611         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
39612         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
39613         * tests/test-math-c++.cc: Check the declaration of remainder.
39614         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
39615         problems are fixed.
39617 2012-02-25  Bruno Haible  <bruno@clisp.org>
39619         Tests for module 'fmodl'.
39620         * modules/fmodl-tests: New file.
39621         * tests/test-fmodl.c: New file.
39622         * tests/test-math-c++.cc: Check the declaration of fmodl.
39624         New module 'fmodl'.
39625         * lib/math.in.h (fmodl): New declaration.
39626         * lib/fmodl.c: New file.
39627         * m4/fmodl.m4: New file.
39628         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
39629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
39630         REPLACE_FMODL.
39631         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
39632         REPLACE_FMODL.
39633         * modules/fmodl: New file.
39634         * doc/posix-functions/fmodl.texi: Mention the new module.
39636 2012-02-25  Bruno Haible  <bruno@clisp.org>
39638         Tests for module 'modfl'.
39639         * modules/modfl-tests: New file.
39640         * tests/test-modfl.c: New file.
39641         * tests/test-math-c++.cc: Check the declaration of modfl.
39643         New module 'modfl'.
39644         * lib/math.in.h (modfl): New declaration.
39645         * lib/modfl.c: New file.
39646         * m4/modfl.m4: New file.
39647         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
39648         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
39649         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
39650         * modules/modfl: New file.
39651         * doc/posix-functions/modfl.texi: Mention the new module.
39653 2012-02-25  Bruno Haible  <bruno@clisp.org>
39655         Tests for module 'fabsl'.
39656         * modules/fabsl-tests: New file.
39657         * tests/test-fabsl.c: New file.
39658         * tests/test-math-c++.cc: Check the declaration of fabsl.
39660         New module 'fabsl'.
39661         * lib/math.in.h (fabsl): New declaration.
39662         * lib/fabsl.c: New file.
39663         * m4/fabsl.m4: New file.
39664         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
39665         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
39666         REPLACE_FABSL.
39667         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
39668         REPLACE_FABSL.
39669         * modules/fabsl: New file.
39670         * doc/posix-functions/fabsl.texi: Mention the new module.
39672 2012-02-25  Bruno Haible  <bruno@clisp.org>
39674         fabs tests: More tests.
39675         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
39676         (zero): New variable.
39677         (main): Add tests for signed zero.
39678         * modules/fabs-tests (Files): Add tests/minus-zero.h.
39680         fabsf tests: More tests.
39681         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
39682         (zero): New variable.
39683         (main): Add tests for signed zero.
39684         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
39686 2012-02-24  Bruno Haible  <bruno@clisp.org>
39688         atanl: Provide function definition on MSVC.
39689         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
39690         function pointer.
39691         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
39693 2012-02-24  Bruno Haible  <bruno@clisp.org>
39695         acosl: Provide function definition on MSVC.
39696         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
39697         function pointer.
39698         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
39700 2012-02-24  Bruno Haible  <bruno@clisp.org>
39702         asinl: Provide function definition on MSVC.
39703         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
39704         function pointer.
39705         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
39707 2012-02-24  Bruno Haible  <bruno@clisp.org>
39709         tanl: Provide function definition on MSVC.
39710         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
39711         function pointer.
39712         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
39714 2012-02-24  Bruno Haible  <bruno@clisp.org>
39716         cosl: Provide function definition on MSVC.
39717         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
39718         function pointer.
39719         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
39721 2012-02-24  Bruno Haible  <bruno@clisp.org>
39723         sinl: Provide function definition on MSVC.
39724         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
39725         function pointer.
39726         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
39728 2012-02-24  Bruno Haible  <bruno@clisp.org>
39730         logl: Provide function definition on MSVC.
39731         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
39732         function pointer.
39733         * lib/math.in.h (logl): Undefine if it does not exist as a function.
39735 2012-02-24  Bruno Haible  <bruno@clisp.org>
39737         expl: Provide function definition on MSVC.
39738         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
39739         function pointer.
39740         * lib/math.in.h (expl): Undefine if it does not exist as a function.
39742 2012-02-24  Bruno Haible  <bruno@clisp.org>
39744         sqrtl: Provide function definition on MSVC.
39745         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
39746         a function pointer.
39747         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
39749 2012-02-24  Bruno Haible  <bruno@clisp.org>
39751         ceill: Provide function definition on MSVC.
39752         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
39753         used as a function pointer.
39754         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
39756 2012-02-24  Bruno Haible  <bruno@clisp.org>
39758         floorl: Provide function definition on MSVC.
39759         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
39760         used as a function pointer.
39761         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
39763 2012-02-24  Bruno Haible  <bruno@clisp.org>
39765         ceilf: Provide function definition on MSVC.
39766         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
39767         used as a function pointer.
39768         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
39770 2012-02-24  Bruno Haible  <bruno@clisp.org>
39772         floorf: Provide function definition on MSVC.
39773         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
39774         used as a function pointer.
39775         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
39777 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
39779         stdnoreturn: new module
39780         This implements a replacement for C11's <stdnoreturn.h>.
39781         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
39782         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
39783         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
39784         * tests/test-stdnoreturn.c: New files.
39786 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39788         regex: fix false multibyte matches in some regular expressions
39789         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
39790         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
39791         * lib/regex_internal.c (re_string_skip_chars):
39792         Fix miscomputation of remain_len that may cause incomplete
39793         multi-byte character and false match.
39795 2012-02-24  Jim Meyering  <meyering@redhat.com>
39797         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
39798         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
39799         uses with "==" *before* the call, e.g., 0 == strcmp (...)
39800         Remove now-unnecessary str''cmp obfuscation.
39801         Suggested by Akim Demaille.
39803 2012-02-24  Bruno Haible  <bruno@clisp.org>
39805         streq: Rename macro.
39806         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
39807         * NEWS: Mention the change.
39808         * lib/mbrtowc.c (mbrtowc): Update.
39809         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
39810         * lib/wcwidth.c (wcwidth): Update.
39811         Suggested by Akim Demaille and Jim Meyering.
39813 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
39815         regex: fix typo in definition of MIN
39816         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
39817         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
39819 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39820             Bruno Haible  <bruno@clisp.org>
39822         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
39823         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39824         entries into a stack-allocated buffer directly.
39825         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
39827 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
39828             Bruno Haible  <bruno@clisp.org>
39830         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
39832          - There were several instances of this pattern:
39834              for (;;) {
39835                n = acl (f, GETACLCNT, 0, NULL);
39836                [ allocate an array A of size N ]
39837                if (acl (f, GETACL, n, a) == n)
39838                  break;
39839              }
39841            This loop might never terminate if some other process is constantly
39842            manipulating the file's ACL.  The loop should be rewritten to
39843            terminate.
39845          - The acl (... GETACLNT ...) call is merely an optimization; its value
39846            is merely a hint as to how big to make the array.  A better
39847            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
39848            and just guess a reasonably-big size, growing the size and trying
39849            again if it's not large enough.  This guarantees termination, and
39850            saves a system call.
39852         * lib/acl-internal.h: Include <limits.h>.
39853         (MIN, SIZE_MAX): New macros.
39854         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
39855         a stack-allocated buffer, and use malloc if it does not fit. Don't
39856         use GETACLCNT.
39857         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39859 2012-02-19  Bruno Haible  <bruno@clisp.org>
39861         acl: Fix endless loop on Solaris with vxfs.
39862         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
39863         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
39864         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
39865         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
39866         * tests/test-sameacls.c (main)[Solaris]: Likewise.
39867         Reported by Bill Jones in
39868         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
39870 2012-02-19  Bruno Haible  <bruno@clisp.org>
39872         acl: Fix copy-acl test failure on Solaris 11.0.
39873         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
39874         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
39875         that this function returns 0 in some more cases.
39877 2012-02-19  Bruno Haible  <bruno@clisp.org>
39879         acl: Update doc references.
39880         * doc/acl-resources.txt: Update links to Solaris documentation.
39882 2012-02-19  Bruno Haible  <bruno@clisp.org>
39884         Fix test failure in many locales on Solaris 11.
39885         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
39886         'tr' arguments.
39887         * tests/test-pipe-filter-ii1.c (main): Likewise.
39888         * build-aux/bootstrap (check_versions): Run 'tr' command with range
39889         expressions in the C locale.
39890         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
39891         * m4/host-os.m4 (gl_HOST_OS): Likewise.
39893 2012-02-19  Bruno Haible  <bruno@clisp.org>
39895         gnulib-tool: Improve usage message.
39896         * gnulib-tool (func_usage): Move doc of --help and --version to the
39897         section "Operation modes".
39899 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
39901         README-release: make it easier to execute commands
39902         * top/README-release: break commands out on to separate lines.
39904 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
39906         GNUmakefile: simplify detection of unconfigured trees
39907         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
39908         whether the tree make is being run from is already configured or
39909         not.  Related simplifications.
39911 2012-02-13  Simon Josefsson  <simon@josefsson.org>
39913         * gnulib-tool (func_usage): Document --help and --version.
39915 2012-02-11  Jim Meyering  <meyering@redhat.com>
39917         bootstrap: don't exit 0 upon gnulib-tool failure
39918         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
39919         its exit status, not 0.
39921 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
39923         README-release: various improvements
39924         * top/README-release: Give a command to push changes for the
39925         release.  Add "distcheck" to list of other pre-release checks.
39926         Fix instance of "make stable" which should be "make TYPE".
39928 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
39930         maint: replace FSF snail-mail addresses with URLs
39931         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
39932         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
39933         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
39934         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
39935         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
39936         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
39937         * lib/check-version.c, lib/check-version.h, lib/config.charset:
39938         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
39939         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
39940         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
39941         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
39942         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
39943         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
39944         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
39945         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
39946         * lib/glthread/thread.c, lib/glthread/thread.h:
39947         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
39948         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
39949         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
39950         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
39951         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
39952         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
39953         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
39954         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
39955         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
39956         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
39957         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
39958         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
39959         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
39960         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
39961         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
39962         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
39963         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
39964         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
39965         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
39966         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
39967         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
39968         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
39969         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
39970         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
39971         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
39972         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
39973         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
39974         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
39975         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
39976         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
39977         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
39978         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
39979         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
39980         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
39981         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
39982         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
39983         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
39984         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
39985         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
39986         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
39987         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
39988         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
39989         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
39990         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
39991         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
39992         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
39993         * tests/test-poll.c, tests/test-quotearg-simple.c:
39994         * tests/test-quotearg.c, tests/test-quotearg.h:
39995         * tests/test-round-ieee.c, tests/test-round1.c:
39996         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
39997         * tests/test-roundl-ieee.c, tests/test-roundl.c:
39998         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
39999         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
40000         * tests/test-strerror.c, tests/test-strerror_r.c:
40001         * tests/test-strsignal.c, tests/test-strverscmp.c:
40002         * tests/test-xmemdup0.c:
40003         Replace FSF snail mail addresses with URLs, as per GNU coding
40004         standards.  See glibc bug
40005         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
40007 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
40009         README-release: capitalize a word and split a line
40010         * top/README-release: Fix punctuation and spacing.
40012 2012-02-08  Akim Demaille  <demaille@gostai.com>
40014         fatal-signal: use C prototypes (with explicit void).
40015         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
40016         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
40018 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40020         regex: spelling fix
40021         * lib/regexec.c: spelling fix
40023         regex: rely on stdint.h for SIZE_MAX
40024         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
40026 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
40028         regex: merge glibc changes
40030         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
40031         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
40032         (init_word_char): Work even if bitset words are not exactly 32 or
40033         64 bits wide.  Don't assume there are no padding bits.
40034         * lib/regex.c [_LIBC]: Do not include <config.h>.
40035         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
40036         and -Wtype-limits.
40037         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
40038         needless disagreement with glibc.  All uses changed.  Define it to
40039         1 only if _GNU_SOURCE, to match glibc.
40040         (_REG_RM_NAME): Remove; no longer needed, since the names in
40041         question are now all protected by __USE_GNU.
40042         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
40043         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
40044         * lib/regex_internal.h (MIN): New macro.
40046         2012-01-03 Ulrich Drepper <drepper@gmail.com>
40047         * lib/regcomp.c (init_word_char): Optimize regex a bit.
40049         2011-12-30 Jakub Jelinek <jakub@redhat.com>
40050         * lib/regex_internal.c (re_string_fetch_byte_case):
40051         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
40052         is miscompiled, and it turns out it is because of an incorrect
40053         attribute on re_string_fetch_byte_case.  Unlike
40054         re_string_peek_byte_case, this one is really not pure, it modifies
40055         memory (increments pstr->cur_idx), and with the pure attribute GCC
40056         assumed it doesn't and it cached the presumed value of
40057         regexp->cur_idx in a variable across the
40058          for (;; ++i)
40059            {
40060              if (i >= BRACKET_NAME_BUF_SIZE)
40061                return REG_EBRACK;
40062              if (token->type == OP_OPEN_CHAR_CLASS)
40063                ch = re_string_fetch_byte_case (regexp);
40064              else
40065                ch = re_string_fetch_byte (regexp);
40066              if (re_string_eoi(regexp))
40067                return REG_EBRACK;
40068              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
40069                break;
40070              elem->opr.name[i] = ch;
40071            }
40073         2011-11-29 Andreas Schwab <schwab@redhat.com>
40074         * lib/regcomp.c (build_equiv_class):
40075         Fix access after end of search string in regex matcher.
40077         2011-11-12 Ulrich Drepper <drepper@redhat.com>
40078         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
40080         2011-10-12 Ulrich Drepper <drepper@redhat.com>
40081         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
40083         2011-10-11 Ulrich Drepper <drepper@redhat.com>
40084         * lib/regcomp.c (parse_branch, parse_sub_exp):
40085         More regex memory leak fixes and tests.
40086         (parse_sub_exp, parse_bracket_exp):
40087         Fix memory leak for some invalid regular expressions.
40089         2011-05-28 Ulrich Drepper <drepper@gmail.com>
40090         * lib/regex_internal.c, lib/regexec.c:
40091         Fix unnecessary overallocation due to incomplete character.  When
40092         incomplete characters are found at the end of a string the code
40093         ran amok and allocated lots of memory.  Stricter limits are now in
40094         place.
40096         2011-05-20 Reuben Thomas <rrt@sc3d.org>
40097         * lib/regex.h: Update documentation.
40099         2011-05-16 Aharon Robbins <arnold@skeeve.com>
40100         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
40102         2010-05-05 Andreas Schwab <schwab@redhat.com>
40103         * lib/regexec.c (find_collation_sequence_value):
40104         Fix lookup of collation sequence value during regexp matching.
40106         2010-01-22 Ulrich Drepper <drepper@redhat.com>
40107         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
40109         2008-01-16 Ulrich Drepper <drepper@redhat.com>
40110         * lib/regex.h: Cleanup namespace.
40112         2007-11-26 Ulrich Drepper <drepper@redhat.com>
40113         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
40115         2007-08-26 Ulrich Drepper <drepper@redhat.com>
40116         * lib/regex_internal.h: Prevent some declarations and definitions
40117         to be seen when used in tests.
40119         2005-05-06 Ulrich Drepper <drepper@redhat.com>
40120         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
40121         __libc_lock_* macros if not _LIBC.
40122         (struct re_dfa_t): Add lock.
40124 2012-02-07  Eric Blake  <eblake@redhat.com>
40126         maint.mk: also prohibit lower-case @var@
40127         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
40128         lower case, like @top_srcdir@.
40130 2012-02-04  Eric Blake  <eblake@redhat.com>
40132         canonicalize: avoid uninitialized memory use
40133         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
40134         random '/' left in dest.
40135         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
40137 2012-02-04  Bruno Haible  <bruno@clisp.org>
40139         isatty: Fix test failure of ptsname_r on native Windows.
40140         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
40141         and don't set errno.
40142         (isatty): Test first whether fd is valid. Set errno when returning 0.
40144 2012-02-04  Bruno Haible  <bruno@clisp.org>
40146         spawn-pipe tests: Fix a NULL program name in a diagnostic.
40147         * tests/test-spawn-pipe-main.c: Include progname.h.
40148         (main): Invoke set_program_name.
40149         * modules/spawn-pipe-tests (Depends-on): Add progname.
40151         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
40152         * tests/test-nonblocking-socket-main.c: Include progname.h.
40153         (main): Invoke set_program_name.
40154         * modules/nonblocking-socket-tests (Depends-on): Add progname.
40156         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
40157         * tests/test-nonblocking-pipe-main.c: Include progname.h.
40158         (main): Invoke set_program_name.
40159         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
40161 2012-02-04  Eric Blake  <eblake@redhat.com>
40163         canonicalize-lgpl: fix // handling
40164         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
40166         canonicalize: fix // handling
40167         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
40168         /// to //, since only // is special.
40170 2012-02-04  Bruno Haible  <bruno@clisp.org>
40172         ioctl: Fix test failure on native Windows.
40173         * lib/ioctl.c: Include msvc-nothrow.h.
40174         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
40176 2012-02-04  Bruno Haible  <bruno@clisp.org>
40178         fsync: Avoid test failure on native Windows.
40179         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
40180         read-only.
40182 2012-02-04  Bruno Haible  <bruno@clisp.org>
40184         sys_select: Avoid syntax error on OpenBSD 5.0.
40185         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
40186         currently being included, just include the system's <sys/select.h>.
40188 2012-02-04  Bruno Haible  <bruno@clisp.org>
40190         sys_select: Avoid syntax error on OpenBSD 5.0.
40191         * lib/sys_select.in.h: Include <signal.h> only after the include_next
40192         <sys/select.h>, not before.
40193         Reported by Jiri B <jirib@devio.us>.
40195 2012-02-04  Bruno Haible  <bruno@clisp.org>
40197         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
40198         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
40199         global variables.
40200         * tests/test-get-rusage-data.c (main): Likewise.
40201         Reported by Jim Meyering.
40203 2012-02-04  Bruno Haible  <bruno@clisp.org>
40205         stdioext: Fix last commit.
40206         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
40208 2012-02-03  Bruno Haible  <bruno@clisp.org>
40210         stdioext: Add tentative support for Plan9.
40211         * lib/stdio-impl.h: Include <errno.h>.
40212         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
40213         * lib/freadable.c (freadable): Likewise.
40214         * lib/fwritable.c (fwritable): Likewise.
40215         * lib/fbufmode.c (fbufmode): Likewise.
40216         * lib/freading.c (freading): Likewise.
40217         * lib/fwriting.c (fwriting): Likewise.
40218         * lib/freadptr.c (freadptr): Likewise.
40219         * lib/freadseek.c (freadptrinc): Likewise.
40220         * lib/freadahead.c (freadahead): Likewise.
40221         * lib/fpurge.c (fpurge): Likewise.
40222         * lib/fseeko.c (rpl_fseeko): Likewise.
40223         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
40224         Reported by Jens Staal <staal1978@gmail.com>.
40226 2012-02-02  Jim Meyering  <meyering@redhat.com>
40228         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
40229         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
40230         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
40231         not even to try to add the attribute.  Instead, add a pragma to suppress
40232         the suggestion/warning.
40234 2012-01-31  Karl Berry  <karl@gnu.org>
40236         setstate doc: typo.
40237         * doc/posix-functions/setstate.texi (setstate): { not (.
40239 2012-01-31  Bruno Haible  <bruno@clisp.org>
40241         popen: Make more robust on Windows.
40242         * lib/popen.c: On native Windows, use the _popen based code even if
40243         HAVE_POPEN is set.
40244         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
40245         environment variable on native Windows.
40247 2012-01-30  Bruno Haible  <bruno@clisp.org>
40249         pclose: Fix typo.
40250         * lib/stdio.in.h (pclose): Fix typo in warning message.
40252 2012-01-30  Bruno Haible  <bruno@clisp.org>
40254         doc about getlogin_r, setstate.
40255         * doc/posix-functions/getlogin_r.texi: List the incompatible
40256         declaration problem under "not fixed by gnulib".
40257         * doc/posix-functions/setstate.texi: Mention incompatible declaration
40258         problem on Solaris 11 and other platforms.
40260 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
40261             Bruno Haible  <bruno@clisp.org>
40263         poll tests: Make test more robust.
40264         * tests/test-poll.c: Include macros.h.
40265         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
40266         return value of various I/O operations.
40267         * modules/poll-tests (Files): Add tests/macros.h.
40269 2012-01-30  Bruno Haible  <bruno@clisp.org>
40271         sys_stat: Fix support for mingw64 and MSVC.
40272         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
40273         header files already do it.
40274         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
40275         stat itself.
40276         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40278 2012-01-30  Bruno Haible  <bruno@clisp.org>
40280         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
40281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
40282         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
40284 2012-01-29  Bruno Haible  <bruno@clisp.org>
40286         quotearg: Fix test failure on MacOS X 10.5.
40287         * tests/test-quotearg-simple.c: Include localcharset.h.
40288         (main): If the locale encoding is not ASCII, bypass the tests of
40289         locale_quoting_style and clocale_quoting_style.
40290         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
40292 2012-01-29  Jim Meyering  <meyering@redhat.com>
40294         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
40295         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
40296         detect uses of canonicalize_file_name.
40298 2012-01-28  Bruno Haible  <bruno@clisp.org>
40300         test-framework-sh: Fix test failure with AIX 7.1 diff.
40301         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
40302         in column 1, like 'diff -c' does.
40303         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
40304         whether 'diff -u' is used. Instead, test whether the output contains
40305         some '@' character.
40307 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
40309         strtoimax: eliminate need for stdint.h, inttypes.h checks
40310         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
40311         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
40312         the prerequisites for a recently-introduced strtoimax test.
40313         I guess this might cause strtoimax to be replaced when not
40314         strictly necessary on older hosts, but this shouldn't introduce
40315         any bugs and it should make Emacs 'configure' faster on typical
40316         modern hosts.  Problem discovered when importing the latest gnulib
40317         to an Emacs test version.
40318         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
40320 2012-01-28  Bruno Haible  <bruno@clisp.org>
40322         sys_time: Override 'struct timeval' on some native Windows platforms.
40323         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
40324         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
40325         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
40326         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
40327         needs to be overridden.
40328         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
40329         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
40330         * tests/test-sys_select.c: Check that the tv_sec member has the same
40331         size as a 'time_t'.
40332         * tests/test-sys_time.c: Likewise.
40333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
40334         is set, set also REPLACE_GETTIMEOFDAY.
40335         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
40336         convert the resulting 'struct timeval' before returning.
40337         * lib/select.c: Include <sys/time.h>.
40338         (select, timeval): Undefine at the right place.
40339         * modules/select (Depends-on): Add sys_time.
40340         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
40341         some Windows platforms.
40342         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
40344 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40346         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
40347         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
40348         an integer.
40349         * lib/fcntl.c (dupfd): Likewise.
40350         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
40352 2012-01-28  Bruno Haible  <bruno@clisp.org>
40354         fcntl: Avoid compilation error on native Windows.
40355         * modules/fcntl (Depends-on): Add 'close'.
40357 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40359         select, poll, isatty: Avoid warnings on x86_64 mingw64.
40360         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
40361         pointer to an integer.
40362         * lib/poll.c (IsConsoleHandle): Likewise.
40363         * lib/isatty.c (IsConsoleHandle): Likewise.
40365 2012-01-28  Jim Meyering  <meyering@redhat.com>
40367         doc: clarify README-release
40368         * top/README-release: Clarify: you should make a point to have
40369         the latest stable versions of build tools in your PATH, and the
40370         reference to buildreq is solely for its list of tool names, not
40371         for its minimal-functional version numbers.
40372         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
40374         maint.mk: use more readable (yet functionally equivalent) quoting
40375         It is common to quote a single quote in a single quoted string like
40376         this:  '...'\''...'.  Unless you know the idiom, that looks like
40377         gibberish, so prefer to double-quote the string when possible.
40378         Then you can use a more readable, lone single quote: "...'..."
40379         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
40380         "don't" is more readable than the equivalent 'don'\''t'.
40381         (sc_cast_of_x_alloc_return_value): Likewise.
40382         (sc_cast_of_alloca_return_value): Likewise.
40383         (sc_makefile_path_separator_check): Similar: use ":" in '...',
40384         rather than '\'':'\''.
40386 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40388         stdalign: relax _Alignof and tighten _Alignas test
40389         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
40390         as it was too strict: alignof must divide offsetof, but it need
40391         not equal offsetof.  Inspired by Joseph S. Myers's comment
40392         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
40393         Conversely, tighten the _Alignas test a bit, as the resulting
40394         alignment must be exactly 8.
40396 2012-01-27  Bruno Haible  <bruno@clisp.org>
40398         stdalign: Document the last change.
40399         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
40401 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
40403         stdalign: check that alignof and offsetof are consistent
40404         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
40405         Problem reported for gnulib by Richard W.M. Jones in
40406         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
40408 2012-01-27  Jim Meyering  <meyering@redhat.com>
40410         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
40411         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
40412         convert a sequence with gaps to the minimal containing range.
40413         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
40414         * tests/test-update-copyright.sh: Test for this.
40415         The FSF confirmed it is ok to do this, assuming there is at
40416         least one significant change per year in the affected range:
40417         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
40419 2012-01-26  Bruno Haible  <bruno@clisp.org>
40421         pipe2: refine doc about thread-safety
40422         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
40423         multithread-safety problem.
40424         * doc/glibc-functions/accept4.texi: Likewise.
40426 2012-01-26  Bruno Haible  <bruno@clisp.org>
40428         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
40429         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
40430         In the test program, include <fcntl.h>, for O_RDONLY.
40432 2012-01-26  Eric Blake  <eblake@redhat.com>
40434         pipe2: document lack of thread-safety in replacement
40435         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
40436         issue in replacement.
40437         * doc/glibc-functions/accept4.texi (accept4): Likewise.
40438         Based on a report by Eric Wong.
40440 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
40441             Bruno Haible  <bruno@clisp.org>
40443         malloca: Avoid warnings on x86_64 mingw64.
40444         * lib/malloca.c: Include <stdint.h>.
40445         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
40446         * modules/malloca (Depends-on): Add stdint.
40447         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
40449 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
40451         obstack: remove __STDC__ conditionals
40452         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
40453         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
40454         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
40455         m4/include_next.m4 as the only gnulib-maintained places that still
40456         refer to __STDC__.
40458 2012-01-24  Bruno Haible  <bruno@clisp.org>
40460         havelib: Modern quoting.
40461         * build-aux/config.rpath: Quote 'like this', not `like this', as per
40462         the recent change to the GNU coding standards.
40464 2012-01-24  Bruno Haible  <bruno@clisp.org>
40466         stdint: Improve support for Android.
40467         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
40468         Reported by Simon Josefsson <simon@josefsson.org>.
40470 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
40472         doc: omit trailing empty lines from INSTALL etc.
40473         * doc/Makefile (INSTALL): Omit trailing empty lines.
40474         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
40475         omit trailing empty lines.  This simplifies the build procedure.
40477 2012-01-23  Jim Meyering  <meyering@redhat.com>
40479         tests: avoid spurious warnings about gl_sockets_startup
40480         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
40481         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
40482         reporting a "statement with no effect".
40483         * tests/test-accept.c (main): Mark as "(void)".
40484         * tests/test-accept4.c (main): Likewise.
40485         * tests/test-bind.c (main): Likewise.
40486         * tests/test-connect.c (main): Likewise.
40487         * tests/test-getpeername.c (main): Likewise.
40488         * tests/test-getsockname.c (main): Likewise.
40489         * tests/test-getsockopt.c (main): Likewise.
40490         * tests/test-listen.c (main): Likewise.
40491         * tests/test-recv.c (main): Likewise.
40492         * tests/test-recvfrom.c (main): Likewise.
40493         * tests/test-send.c (main): Likewise.
40494         * tests/test-sendto.c (main): Likewise.
40495         * tests/test-setsockopt.c (main): Likewise.
40496         * tests/test-shutdown.c (main): Likewise.
40498 2012-01-21  Bruno Haible  <bruno@clisp.org>
40500         locale-fr.m4: Fix for Android.
40501         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
40502         failure of the test program on Bionic libc.
40504 2012-01-21  Jim Meyering  <meyering@redhat.com>
40506         bootstrap: fail when bootstrap_post_import_hook fails
40507         Otherwise, it's far too easy to miss diagnostics emitted
40508         between gnulib-tool's output and that of running configure.
40509         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
40511 2012-01-17  Jim Meyering  <meyering@redhat.com>
40513         maint: enable sc_trailing_blank
40514         * build-aux/pmccabe.css: Remove trailing blanks.
40515         * doc/acl-cygwin.txt: Likewise.
40516         * doc/gnu-oids.texi: Likewise
40517         * cfg.mk: Enable sc_trailing_blank.
40518         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
40520 2012-01-17  Jim Meyering  <meyering@redhat.com>
40522         maint: enable sc_prohibit_openat_without_use
40523         * cfg.mk: Enable sc_prohibit_openat_without_use.
40524         Exempt lib/selinux-at.c.
40526 2012-01-17  Jim Meyering  <meyering@redhat.com>
40528         maint: enable sc_prohibit_cloexec_without_use
40529         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
40530         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
40532 2012-01-17  Jim Meyering  <meyering@redhat.com>
40534         maint: enable sc_prohibit_intprops_without_use
40535         * cfg.mk: Enable sc_prohibit_intprops_without_use
40536         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
40538 2012-01-17  Jim Meyering  <meyering@redhat.com>
40540         maint: enable sc_prohibit_hash_pjw_without_use
40541         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
40542         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
40543         to match any use of \<hash_pjw\>, i.e., not necessarily with a
40544         following " (".
40546 2012-01-17  Jim Meyering  <meyering@redhat.com>
40548         maint: enable double-word-prohibiting rule
40549         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
40550         Exempt three files.
40552 2012-01-17  Jim Meyering  <meyering@redhat.com>
40554         maint: remove empty lines at EOF, but excluding modules/*
40555         Apply syntax rules at home as well as abroad.  Most changes
40556         were induced by running this:
40557           make srcdir=. _build-aux=build-aux -f top/maint.mk \
40558             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
40559             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
40560         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
40561         Exempt modules/* and two binary files.
40562         Also exempt doc/INSTALL*, per request from Bruno Haible.
40563         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
40564         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
40565         * doc/Copyright/request-assign.future: Likewise.
40566         * doc/Copyright/request-disclaim.changes: Likewise.
40567         * doc/INSTALL: Likewise.
40568         * doc/INSTALL.ISO: Likewise.
40569         * doc/INSTALL.UTF-8: Likewise.
40570         * doc/acl-cygwin.txt: Likewise.
40571         * doc/acl-resources.txt: Likewise.
40572         * doc/fdl-1.2.texi: Likewise.
40573         * doc/fdl-1.3.texi: Likewise.
40574         * doc/fdl.texi: Likewise.
40575         * lib/argp-pin.c: Likewise.
40576         * lib/round.c: Likewise.
40577         * lib/unicase/u16-totitle.c: Likewise.
40578         * lib/unictype/block_test.c: Likewise.
40579         * lib/uninorm/canonical-decomposition.c: Likewise.
40580         * m4/README: Likewise.
40581         * m4/relocatable-lib.m4: Likewise.
40582         * tests/test-isnand-nolibm.c: Likewise.
40583         * tests/test-isnand.c: Likewise.
40584         * tests/uninorm/NormalizationTest.txt: Likewise.
40586 2012-01-17  Jim Meyering  <meyering@redhat.com>
40588         maint: add framework to run syntax-check rules against gnulib sources
40589         * cfg.mk: New file, to disable all currently-failing tests.
40590         We'll enable them one by one, as they are made to pass.
40591         * Makefile (sc_maint): New rule.
40593 2012-01-21  Bruno Haible  <bruno@clisp.org>
40595         stdint: Add support for Android.
40596         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
40597         include the system's <stdint.h>.
40598         Reported by Simon Josefsson <simon@josefsson.org>.
40600 2012-01-19  Jim Meyering  <meyering@redhat.com>
40602         bootstrap: add bootstrap_post_import_hook
40603         Bison does still need something like the gnulib_mk_hook whose
40604         invocation I had to remove along with slurp in commit 767ccd40.
40605         Technically, we could get along without it, but doing so would
40606         have required living with a warning and a mandatory post-bootstrap
40607         automake rerun.
40608         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
40609         (bootstrap_post_import_hook): New function.
40610         Invoke it after gnulib-tool --import and before autoreconf.
40612 2012-01-18  Jim Meyering  <meyering@redhat.com>
40614         gitlog-to-changelog: don't use "no_"-prefixed variable name
40615         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
40616         to enable both --cluster and --no-cluster.  Change variable name,
40617         s/\$no_cluster/$cluster/, and reverse usage to match.
40619         gitlog-to-changelog: use "||", not "or" in expressions
40620         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
40621         expressions.
40623 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
40625         gitlog-to-changelog: new option --no-cluster
40626         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
40627         clustering of adjacent commit messages.
40629 2012-01-17  Jim Meyering  <meyering@redhat.com>
40631         maint: spell file systems with two words, not one
40632         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
40633         two words, not one.
40635 2012-01-16  Jim Meyering  <meyering@redhat.com>
40637         bootstrap: add a FIXME comment to ensure we eventually remove the hack
40638         * build-aux/bootstrap (gnulib_tool_options): Add comment.
40640 2012-01-16  Eric Blake  <eblake@redhat.com>
40642         bootstrap: cater to autoconf 2.59
40643         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
40644         is not available.
40646         bootstrap: properly check for libtool
40647         * build-aux/bootstrap (libtoolize): Also run libtool when older
40648         usage is detected.
40650 2012-01-15  Bruno Haible  <bruno@clisp.org>
40652         Improve support for MSVC 9.
40653         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
40654         clashes on MSVC.
40655         * lib/fcntl.in.h: Likewise.
40656         * lib/stdlib.in.h: Likewise.
40657         * lib/sys_stat.in.h: Likewise.
40659 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
40661         gnupload: we hold the master copy of this script now
40662         For motivation and more information, see:
40663         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
40664         * build-aux/gnupload: Make it clear in the heading comments that the
40665         master copy of this file is maintained by gnulib.  Since we are at
40666         it, bump its copyright year and ...
40667         ($scriptversion): ... the date in its version.
40668         ($usage): Patches and bug reports should be sent to the gnulib list,
40669         not the automake one.
40670         * config/srclist.txt: Don't try to sync 'gnupload' from automake
40671         anymore.
40673 2012-01-15  Bruno Haible  <bruno@clisp.org>
40675         Fix module 'random'.
40676         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
40677         initstate, setstate are declared.
40679 2012-01-14  Bruno Haible  <bruno@clisp.org>
40681         Tests for module 'random'.
40682         * modules/random-tests: New file.
40683         * tests/test-random.c: New file, based on tests/test-random_r.c.
40685         New module 'random'.
40686         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
40687         declarations.
40688         * lib/random.c: New file, based on glibc/stdlib/random.c.
40689         * m4/random.m4: New file.
40690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
40691         HAVE_RANDOM.
40692         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
40693         * modules/random: New file.
40694         * config/srclist.txt: Add an entry for random.c.
40695         * doc/posix-functions/random.texi: Mention the 'random' module.
40696         * doc/posix-functions/initstate.texi: Likewise.
40697         * doc/posix-functions/setstate.texi: Likewise.
40698         * doc/posix-functions/srandom.texi: Likewise.
40700 2012-01-12  Bruno Haible  <bruno@clisp.org>
40702         random_r: Use common idioms.
40703         * lib/random_r.c: Include <stdlib.h> first.
40705         random_r: Override incompatible API on AIX, OSF/1.
40706         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
40707         Override the system function if REPLACE_RANDOM_R is 1.
40708         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
40709         and OSF/1, set REPLACE_RANDOM_R.
40710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
40711         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
40712         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
40713         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
40714         * doc/glibc-functions/random_r.texi: Likewise.
40715         * doc/glibc-functions/setstate_r.texi: Likewise.
40717         random_r: Support for MSVC 9.
40718         * lib/random_r.c: Include stdint.h, not inttypes.h.
40720 2012-01-12  Eric Blake  <eblake@redhat.com>
40722         inet_ntop: guard extra work by IF_LINT
40723         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
40724         better code generation when not checking for warnings.
40725         Suggested by Paul Eggert and Jim Meyering.
40727         strptime: fix regression on mingw
40728         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
40729         Fix regression.  Reported by Bruno Haible.
40731 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
40732             Bruno Haible  <bruno@clisp.org>
40734         copy-file: add error-code-returning variant.
40735         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
40736         (qcopy_file_preserving): New declaration.
40737         * lib/copy-file.c (qcopy_file_preserving): Renamed from
40738         copy_file_preserving. Change return type to 'int'. Don't emit an error
40739         message here.
40740         (copy_file_preserving): New function.
40741         * tests/test-copy-file.c: Include <stdlib.h>.
40742         (main): Test qcopy_file_preserving if the environment variable
40743         NO_STDERR_OUTPUT is set.
40744         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
40745         with NO_STDERR_OUTPUT
40746         * tests/test-copy-file-2.sh: Likewise.
40748 2012-01-10  Bruno Haible  <bruno@clisp.org>
40750         copy-file: Use 'quote' module consistently.
40751         * lib/copy-file.c (copy_file_preserving): Use quote().
40753         copy-file: Refactor.
40754         * lib/copy-file.c: Include quote.h.
40755         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
40756         message here.
40757         * modules/copy-file (Depends-on): Add quote.
40759         acl: Export qcopy_acl.
40760         * lib/acl.h (qcopy_acl): New declaration.
40761         * lib/copy-acl.c (qcopy_acl): Make non-static.
40763         acl: Rename a local variable.
40764         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
40766         acl: Align return values of copy_acl and qcopy_acl.
40767         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
40768         maybe < -1.
40770 2012-01-11  Eric Blake  <eblake@redhat.com>
40772         strptime: silence gcc warnings
40773         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
40774         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
40775         Reported by Daniel P. Berrange.
40777         inet_ntop: silence gcc warning
40778         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
40779         Reported by Daniel P. Berrange.
40781 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
40783         getloadavg test: skip the test on GNU/Linux without /proc mounted
40784         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
40785         file.  When /proc is not mounted, it always fails with ENOENT.
40786         * tests/test-getloadavg.c (main): Treat ENOENT return code from
40787         getloadavg(3) the same way as ENOSYS and ENOTSUP.
40789 2012-01-10  Bruno Haible  <bruno@clisp.org>
40791         regex: Avoid link error on MSVC 9.
40792         * modules/regex (Depends-on): Add wctype.
40794 2012-01-10  Bruno Haible  <bruno@clisp.org>
40796         doc: Mention --with-tests option.
40797         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
40798         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
40799         --with-tests.
40800         Reported by Reuben Thomas.
40802 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
40804         users.txt: order package names lexicographically.
40805         * users.txt: Order package names lexicographically.
40807 2012-01-10  Jim Meyering  <meyering@redhat.com>
40809         maint.mk: fix description in comment
40810         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
40812         ignore-value: remove deprecated ignore_ptr function
40813         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
40814         * NEWS: Note this.
40816 2012-01-09  Jim Meyering  <meyering@redhat.com>
40818         test-init.sh: avoid a subshell
40819         * tests/test-init.sh: Remove protective subshell.
40820         Suggested by Bernhard Voelker.  While a subshell is normally
40821         required to protect against older shells (Solaris, FreeBSD) that
40822         warn about a missing program before performing redirection, the
40823         shell-selection tests performed by init.sh probably exclude any
40824         offending shell.
40826 2012-01-08  Bruno Haible  <bruno@clisp.org>
40828         setlocale tests: Avoid test failure on Solaris 11.0.
40829         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
40830         variable.
40832 2012-01-08  Bruno Haible  <bruno@clisp.org>
40834         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
40835         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40836         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40837         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
40838         macro.
40839         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
40840         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40841         * lib/spawn_faction_addopen.c: Add workaround implementation if
40842         HAVE_WORKING_POSIX_SPAWN.
40843         * modules/spawn (Makefile): Substitute
40844         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
40845         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
40846         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
40847         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
40848         (Depends-on): Update conditions.
40849         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
40850         the Solaris 11 bug.
40852 2012-01-08  Bruno Haible  <bruno@clisp.org>
40854         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
40855         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40856         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40857         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
40858         macro.
40859         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
40860         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40861         * lib/spawn_faction_adddup2.c: Add workaround implementation if
40862         HAVE_WORKING_POSIX_SPAWN.
40863         * modules/spawn (Makefile): Substitute
40864         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
40865         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
40866         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
40867         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
40868         (Depends-on): Update conditions.
40869         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
40870         the Solaris 11 bug.
40872 2012-01-08  Bruno Haible  <bruno@clisp.org>
40874         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
40875         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
40876         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40877         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
40878         HAVE_WORKING_POSIX_SPAWN.
40879         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
40880         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
40881         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40882         * lib/spawn_faction_addclose.c: Add workaround implementation if
40883         HAVE_WORKING_POSIX_SPAWN.
40884         * modules/spawn (Makefile): Substitute
40885         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
40886         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
40887         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
40888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
40889         (Depends-on): Update conditions.
40890         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
40891         the Solaris 11 bug.
40893 2012-01-08  Bruno Haible  <bruno@clisp.org>
40895         doc: Update for Solaris 11.0.
40896         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
40897         * m4/printf.m4: Update comments.
40899 2012-01-08  Bruno Haible  <bruno@clisp.org>
40901         mktime: Avoid compilation error on Solaris 11.
40902         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
40904 2012-01-08  Bruno Haible  <bruno@clisp.org>
40906         doc: Small fix.
40907         * doc/posix-headers/nl_types.texi: Correct platforms list.
40909 2012-01-08  Simon Josefsson  <simon@josefsson.org>
40911         Add lgpl-3.0 module.
40912         * MODULES.html.sh (Support for building documentation): Add
40913         lgpl-3.0.
40914         * modules/lgpl-3.0: New file.
40916 2012-01-08  Jim Meyering  <meyering@redhat.com>
40918         select.c: indent with spaces, not TABs
40919         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
40921 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40923         quotearg: do not use grave accent for left quote
40924         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
40925         locale_quoting_style.
40926         (quotearg_buffer_restyled): Fix example.
40927         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
40929 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40931         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
40932         Most programs do not have translation catalogs for English and much
40933         less separate catalogs for British and American English.  Drop the
40934         suggestion to translators about these two, and provide it
40935         automatically for Unicode locales.  Like most programs, even those
40936         using American English, we use single quotation marks.  This conflicts
40937         with the American typographic convention, but works better when you
40938         cite the entire error message within double quotes.  It also tries not
40939         to clash with established practice and with what non-gnulib programs
40940         will usually do.
40941         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
40942         using an UTF-8 or GB-18030 locale.  The list of other locales with
40943         quotes was provided by Bruno Haible.
40944         (quotearg_buffer_restyled): Adjust instructions to translators.
40945         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
40946         text, since this would be wrong when using Unicode.
40947         * modules/quotearg: Depend on c-strcaseeq.
40949 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
40951         quotearg: fix Wikipedia link
40952         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
40954 2012-01-07  Simon Josefsson  <simon@josefsson.org>
40956         Fix for mingw with MSVC9.
40957         * m4/ld-version-script.m4: Check that compiler rejects version
40958         scripts with syntax errors.  Reported by Bruno Haible
40959         <bruno@clisp.org>.
40961 2012-01-06  Bruno Haible  <bruno@clisp.org>
40963         Talk about "native Windows API", not "Woe32".
40964         * lib/accept4.c: Update comments to mention native Windows.
40965         * lib/execute.c: Likewise.
40966         * lib/fatal-signal.c: Likewise.
40967         * lib/localcharset.c: Likewise.
40968         * lib/nanosleep.c: Likewise.
40969         * lib/nl_langinfo.c: Likewise.
40970         * lib/pclose.c: Likewise.
40971         * lib/pipe-filter-gi.c: Likewise.
40972         * lib/pipe-filter-ii.c: Likewise.
40973         * lib/pipe.c: Likewise.
40974         * lib/pipe2.c: Likewise.
40975         * lib/popen.c: Likewise.
40976         * lib/progreloc.c: Likewise.
40977         * lib/relocatable.c: Likewise.
40978         * lib/sigaction.c: Likewise.
40979         * lib/sigprocmask.c: Likewise.
40980         * lib/spawn-pipe.h: Likewise.
40981         * lib/spawn-pipe.c: Likewise.
40982         * lib/spawni.c: Likewise.
40983         * lib/stat-time.h: Likewise.
40984         * lib/w32spawn.h: Likewise.
40985         * tests/test-isatty.c: Likewise.
40986         * lib/config.charset: More comments.
40987         * doc/gnulib-intro.texi: Mention native Windows.
40988         * doc/posix-functions/_Exit_C99.texi: Likewise.
40989         * doc/posix-headers/fcntl.texi: Likewise.
40991 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
40993         argp: Avoid crash if translator uses % characters in a translation.
40994         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
40995         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
40997 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
40999         doc: C11 and C++11 are now official
41000         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
41001         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
41002         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
41003         * modules/stdalign:
41004         Replace references to draft C1X to C11, and to draft C++0X to C++11.
41006 2012-01-06  Bruno Haible  <bruno@clisp.org>
41008         uc-is-grapheme-break tests: Tweak.
41009         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
41010         message.
41012 2012-01-06  Bruno Haible  <bruno@clisp.org>
41014         test-init.sh: correct the test for diff -u
41015         * tests/test-init.sh: Also redirect stdout to /dev/null.
41017 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
41019         Use ', not `, for quoting output.
41020         * build-aux/announce-gen (usage, sizes, print_news_deltas)
41021         (print_changelog_deltas, get_tool_versions, main program):
41022         * build-aux/git-version-gen:
41023         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
41024         * build-aux/move-if-change (help):
41025         * build-aux/useless-if-before-free (usage, main program):
41026         * check-module (parse_module_file, usage)
41027         (find_included_lib_files, check_module):
41028         * lib/argmatch.c (main) [TEST]:
41029         * lib/argp-help.c (_help):
41030         * lib/getopt1.c (main) [TEST]:
41031         * lib/git-merge-changelog.c (usage):
41032         * lib/xstrtol-error.c (xstrtol_error):
41033         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
41034         * m4/argz.m4 (gl_FUNC_ARGZ):
41035         * m4/bison.m4 (gl_BISON):
41036         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
41037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
41038         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
41039         * m4/fpending.m4 (gl_PREREQ_FPENDING):
41040         * m4/gc-random.m4 (gl_GC_RANDOM):
41041         * m4/intl.m4 (gt_CHECK_DECL):
41042         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
41043         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
41044         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
41045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
41046         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
41047         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
41048         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
41049         * tests/test-dirname.c (main):
41050         * tests/test-getpass.c (main):
41051         * tests/test-iconvme.c (main):
41052         * tests/test-parse-datetime.c (LOG):
41053         * tests/test-xstrtoimax.sh:
41054         * tests/test-xstrtol.sh:
41055         * tests/test-xstrtoll.sh:
41056         * tests/test-xstrtoumax.sh:
41057         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
41058         * top/GNUmakefile (abort-due-to-no-makefile):
41059         Quote 'like this', not `like this', as per the recent change to
41060         the GNU coding standards.
41062 2012-01-05  Bruno Haible  <bruno@clisp.org>
41064         strtoimax: Don't force a replacement on systems where intmax_t is int.
41065         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
41066         'intmax_t' is not larger than 'int'.
41067         Reported by Pádraig Brady <P@draigBrady.com>.
41069 2012-01-05  Bruno Haible  <bruno@clisp.org>
41071         doc: Mention NetBSD bugs.
41072         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
41073         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
41075 2012-01-05  Bruno Haible  <bruno@clisp.org>
41077         strtoumax tests: Enhance tests.
41078         * tests/test-strtoumax.c (main): Add tests for large values.
41080 2012-01-05  Bruno Haible  <bruno@clisp.org>
41082         strtoimax: Work around AIX 5.1 bug.
41083         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
41084         definition.
41085         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
41086         Set HAVE_STRTOIMAX.
41087         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
41088         REPLACE_STRTOIMAX.
41089         * modules/inttypes-incomplete (Makefile.am): Substitute
41090         REPLACE_STRTOIMAX.
41091         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
41092         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
41093         (Depends-on): Update conditions.
41094         * tests/test-strtoimax.c (main): Add tests for large values.
41095         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
41097 2012-01-05  Bruno Haible  <bruno@clisp.org>
41099         inttypes: Modernize.
41100         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
41101         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
41102         (Makefile.am): Update inttypes.h rule.
41104 2012-01-05  Jim Meyering  <meyering@redhat.com>
41106         init.sh: don't waste a subshell just to redirect stderr
41107         * tests/init.sh: In testing for diff -u and diff -c, use a
41108         stderr-redirecting exec inside `...` rather than a subshell.
41110         test-init.sh: avoid failure on HP-UX 11.00
41111         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
41112         resolves to diff -c or cmp.  Reported by Bruno Haible.
41114 2012-01-05  Bruno Haible  <bruno@clisp.org>
41116         Tests for module 'strtoull'.
41117         * modules/strtoull-tests: New file.
41118         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
41120 2012-01-05  Bruno Haible  <bruno@clisp.org>
41122         Tests for module 'strtoll'.
41123         * modules/strtoll-tests: New file.
41124         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
41126 2012-01-05  Bruno Haible  <bruno@clisp.org>
41128         Tests for module 'strtoul'.
41129         * modules/strtoul-tests: New file.
41130         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
41132 2012-01-05  Bruno Haible  <bruno@clisp.org>
41134         Tests for module 'strtol'.
41135         * modules/strtol-tests: New file.
41136         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
41138 2012-01-04  Jim Meyering  <meyering@redhat.com>
41140         test-init.sh: accommodate Solaris 5.10's different diff -u output
41141         * tests/test-init.sh: Also exempt @@ lines from the comparison
41142         of diff output, since Solaris 5.10 and GNU diff formats differ.
41143         Reported by Stefano Lattarini.
41145 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
41147         test-posixtm: don't assume signed integer wraparound
41148         * tests/test-posixtm.c (main): Don't assume wraparound semantics
41149         after signed integer overflow.  Inspired by (though it may not
41150         fix) Bruno Haible's bug report in
41151         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
41153         Spell out "Windows 9x" and "Windows XP".
41154         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
41155         "Windows 9x" and "WinXP" with "Windows XP".
41157 2012-01-04  Jim Meyering  <meyering@redhat.com>
41159         test-vc-list-files-cvs.sh: remove obsolete comment
41160         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
41161         double exit.  Now that's all encapsulated via skip_ and Exit.
41163 2012-01-04  Bruno Haible  <bruno@clisp.org>
41165         Talk about "native Windows API", not "Win32".
41166         * lib/classpath.c: Update comments to mention native Windows.
41167         * lib/csharpexec.c: Likewise.
41168         * lib/dup2.c: Likewise.
41169         * lib/error.c: Likewise.
41170         * lib/fcntl.c: Likewise.
41171         * lib/filename.h: Likewise.
41172         * lib/findprog.c: Likewise.
41173         * lib/get-rusage-as.c: Likewise.
41174         * lib/get-rusage-data.c: Likewise.
41175         * lib/getpagesize.c: Likewise.
41176         * lib/javaexec.c: Likewise.
41177         * lib/msvc-inval.c: Likewise.
41178         * lib/msvc-nothrow.c: Likewise.
41179         * lib/nanosleep.c: Likewise.
41180         * lib/nonblocking.c: Likewise.
41181         * lib/printf-parse.c: Likewise.
41182         * lib/setlocale.c: Likewise.
41183         * lib/sigaction.c: Likewise.
41184         * lib/strerror_r.c: Likewise.
41185         * lib/tmpdir.c: Likewise.
41186         * lib/vasnprintf.c: Likewise.
41187         * lib/w32spawn.h: Likewise.
41188         * lib/waitpid.c: Likewise.
41189         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
41190         * m4/locale-ar.m4: Likewise.
41191         * m4/locale-fr.m4: Likewise.
41192         * m4/locale-ja.m4: Likewise.
41193         * m4/locale-tr.m4: Likewise.
41194         * m4/locale-zh.m4: Likewise.
41195         * m4/printf.m4: Likewise.
41196         * tests/test-cloexec.c: Likewise.
41197         * tests/test-copy-acl.sh: Likewise.
41198         * tests/test-copy-file.sh: Likewise.
41199         * tests/test-file-has-acl.sh: Likewise.
41200         * tests/test-set-mode-acl.sh: Likewise.
41201         * tests/test-dup-safer.c: Likewise.
41202         * tests/test-dup2.c: Likewise.
41203         * tests/test-dup3.c: Likewise.
41204         * tests/test-fcntl.c: Likewise.
41205         * tests/test-nonblocking-pipe.h: Likewise.
41206         * tests/test-nonblocking-socket.h: Likewise.
41207         * tests/test-pipe.c: Likewise.
41208         * tests/test-pipe2.c: Likewise.
41209         * tests/test-spawn-pipe-child.c: Likewise.
41210         * doc/acl-resources.txt: Likewise.
41211         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41212         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
41213         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
41214         * lib/localcharset.c: Update comments to mention native Windows.
41215         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41216         * lib/localename.c: Likewise.
41217         * lib/progreloc.c: Likewise.
41218         * lib/relocatable.c: Likewise.
41219         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
41220         (windows_compute_revents): Renamed from win32_compute_revents.
41221         (windows_compute_revents_socket): Renamed from
41222         win32_compute_revents_socket.
41223         * lib/select.c: Update comments to mention native Windows.
41224         (windows_poll_handle): Renamed from win32_poll_handle.
41225         * m4/threadlib.m4: Update comments to mention native Windows.
41226         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
41227         --enable-threads=windows instead of --enable-threads=win32. Set
41228         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
41229         * lib/glthread/lock.h: Update comments to mention native Windows.
41230         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
41231         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
41232         USE_WIN32_THREADS.
41233         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
41234         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
41235         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
41236         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
41237         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
41238         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
41239         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
41240         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
41241         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
41242         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
41243         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
41244         * tests/test-tls.c: Likewise.
41245         Rationale:
41246         Microsoft renamed the "Win32 API" to "Windows API", as it is available
41247         on both 32-bit and 64-bit Windows systems.
41248         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
41249         line of distinction is between "native Windows" on one side and Unix/
41250         POSIX systems on the other side. More details in
41251         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
41252         Suggested by Paul Eggert.
41254 2012-01-03  Bruno Haible  <bruno@clisp.org>
41256         isatty: Support for MSVC 9.
41257         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
41258         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
41259         (_isatty_nothrow): New function.
41260         (isatty): Use it instead of _isatty.
41261         (IsConsoleHandle): Add comment, from Paolo Bonzini.
41262         * lib/poll.c (IsConsoleHandle): Likewise.
41263         * lib/select.c (IsConsoleHandle): Likewise.
41264         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
41265         (gl_PREREQ_ISATTY): New macro.
41266         * modules/isatty (Depends-on): Add msvc-inval.
41267         (configure.ac): Invoke gl_PREREQ_ISATTY.
41269 2012-01-03  Jim Meyering  <meyering@redhat.com>
41271         maint.mk: remove temporary transition aid from over 1.5 years ago
41272         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
41273         purpose was to aid in the transition (avoiding silent malfunction)
41274         from that old name to the new _sc_search_regexp.  This shim was
41275         added by commit 219c504b.
41277         init.sh: do not try to accommodate compare arguments starting with "-"
41278         * tests/init.sh (compare_dev_null_): Do not try to accommodate
41279         compare arguments that start with "-".  Besides, we do not worry
41280         about this when invoking diff or cmp; why start now with sed?
41281         Using "--" to separate options from argument would trigger sed
41282         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
41283         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
41285 2012-01-02  Bruno Haible  <bruno@clisp.org>
41287         Enhance tests for module 'isatty'.
41288         * modules/isatty-tests (Depends-on): Add pipe-posix.
41289         * tests/test-isatty.c: Include <fcntl.h>.
41290         (DEV_NULL): New macro.
41291         (main): Test the resut of isatty() also on regular files, pipes, and
41292         /dev/null.
41294         New module 'isatty'.
41295         * lib/unistd.in.h (isatty): New declaration.
41296         * lib/isatty.c: New file, based on an idea of
41297         Bastien Roucariès <roucaries.bastien@gmail.com>.
41298         * m4/isatty.m4: New file.
41299         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
41300         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
41301         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
41302         REPLACE_ISATTY.
41303         * modules/isatty: New file.
41304         * doc/posix-functions/isatty.texi: Mention the new module.
41305         Suggested by Paolo Bonzini.
41307 2012-01-02  Bruno Haible  <bruno@clisp.org>
41309         canonicalize: Tweak 2011-12-29 commit.
41310         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
41311         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
41313 2012-01-02  Jim Meyering  <meyering@redhat.com>
41315         gitlog-to-changelog: describe input syntax in --help output
41316         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
41318         gitlog-to-changelog: fix typo in --help: show backslash before email @
41319         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
41320         in sources, but not in actual output.
41322 2011-12-30  Jim Meyering  <meyering@redhat.com>
41324         gitlog-to-changelog: don't malfunction when name contains %-directive
41325         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
41326         in a name string cause trouble.  E.g., with a user name of "%s",
41327         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
41329 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
41331         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
41332         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
41333         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
41334         the "  (tiny change)" notation that is appended to the standard
41335         ChangeLog "date  name  email" header line.
41337 2012-01-01  Jim Meyering  <meyering@redhat.com>
41339         test-framework-sh: init.sh: fix "make dist" failure
41340         When using gnulib-tool's --with-tests option and any module that
41341         depends on test-framework-sh, "make dist" would fail due to the
41342         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
41343         in the gltests directory, and not in the gllib/ directory.
41344         One way to work around that is to move the EXTRA_DIST += init.sh
41345         from the primary module to the -tests one:
41346         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
41347         * modules/test-framework-sh (Makefile.am): ...not here.
41348         Reported by Tom G. Christensen in
41349         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
41351         version-etc: update copyright year reported by --version
41352         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
41354 2011-12-31  Pádraig Brady  <P@draigBrady.com>
41356         canonicalize: only stat() if required
41357         * lib/canonicalize.c (canonicalize_filename_mode):
41358         Avoid calling l?stat() when both CAN_MISSING,
41359         and CAN_NOLINKS are set, as we neither need
41360         to resolve symlinks or test component existence.
41362 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
41364         doc: cover st_ino issues once; add OpenVMS etc.
41365         * doc/posix-functions/stat.texi (stat):
41366         * doc/posix-functions/lstat.texi (lstat):
41367         * doc/posix-functions/fstatat.texi (fstatat):
41368         * doc/posix-functions/fstat.texi (fstat):
41369         Move general 'struct stat' stuff to sys_stat.texi,
41370         leaving behind a pointer.
41371         * doc/posix-headers/sys_stat.texi (sys/stat.h):
41372         Merge duplicate info about 'struct stat' problems into here.
41373         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
41374         and suggest partial workarounds.
41376         same-inode: port to OpenVMS
41377         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
41378         three st_ino values.
41380 2011-12-30  Pádraig Brady  <P@draigBrady.com>
41382         canonicalize: fix references to stat() and lstat()
41383         * lib/canonicalize.c (canonicalize_filename_mode):
41384         Ensure references always resolve to a replacement
41385         function if required (even via a macro).
41387 2011-12-30  Jim Meyering  <meyering@redhat.com>
41389         gitlog-to-changelog: remove a little duplication
41390         * build-aux/gitlog-to-changelog (main): Grep @lines once,
41391         rather than twice.
41393 2011-12-29  Pádraig Brady  <P@draigBrady.com>
41395         canonicalize: add support for not resolving symlinks
41396         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
41397         indicate we don't want to follow symlinks.  Also
41398         provide CAN_MODE_MASK to aid setting these existing
41399         mutually exclusive values.
41400         * lib/canonicalize.c (canonicalize_filename_mode):
41401         Extract the flags from can_mode parameter, which
41402         are currently just used to select between stat()
41403         and lstat().  Also ensure that mutually exclusive
41404         values are flagged immediately as invalid.
41405         * tests/test-canonicalize.c: Verify symlinks are
41406         not followed, and that invalid flag combinations
41407         are diagnosed.
41409 2011-12-25  Jim Meyering  <meyering@redhat.com>
41411         gitlog-to-changelog: do not clump multi-paragraph entries
41412         Identical header lines (date,name,email+coauthors) are suppressed,
41413         thus putting all entries with those same characteristics under
41414         a single header.  However, when a log entry consists of two or
41415         more paragraphs, it may not be clear where it starts and ends.
41416         This change makes it so that such an entry is always separated
41417         from others by a header line, even when that header would
41418         otherwise be suppressed.
41419         * build-aux/gitlog-to-changelog: Implement the above.
41420         Inspired by a related request from Stefano Lattarini in
41421         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
41423 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41425         announce-gen: fix `cmd' typo in diagnostic
41426         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
41427         diagnostic: a missing '$' meant that the command was not output.
41429 2011-12-23  Jim Meyering  <meyering@redhat.com>
41431         test-framework-sh: distribute init.sh
41432         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
41433         Otherwise, "make -C gnulib-tests check" (at least in grep) would
41434         fail due to the lack of init.sh.
41436         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
41437         * modules/atexit-tests: Rather than listing tests/init.sh,
41438         now that there's a module for it, simply depend on that new module.
41439         * modules/closein-tests: Likewise.
41440         * modules/exclude-tests: Likewise.
41441         * modules/getcwd-tests: Likewise.
41442         * modules/perror-tests: Likewise.
41443         * modules/pread-tests: Likewise.
41444         * modules/pwrite-tests: Likewise.
41445         * modules/vc-list-files-tests: Likewise.
41446         * modules/verify-tests: Likewise.
41447         * modules/xalloc-die-tests: Likewise.
41448         * modules/xstrtoimax-tests: Likewise.
41449         * modules/xstrtol-tests: Likewise.
41450         * modules/xstrtoll-tests: Likewise.
41451         * modules/xstrtoumax-tests: Likewise.
41452         * modules/yesno-tests: Likewise.
41454 2011-12-22  Jim Meyering  <meyering@redhat.com>
41456         test-framework-sh: add minimal tests of init.sh's compare function
41457         * modules/test-framework-sh-tests: New file.
41458         * tests/test-init.sh: New file.
41460         test-framework-sh: new module
41461         * modules/test-framework-sh: New file.
41462         * MODULES.html.sh (Support for maintaining and releasing projects):
41463         List it.
41465         init.sh: do not emit simulated diff output to stderr
41466         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
41468 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
41470         .gitignore: ignore gnulib.dvi and regex.info
41471         * doc/.gitignore:add gnulib.dvi and regex.info
41473 2011-12-22  Jim Meyering  <meyering@redhat.com>
41475         init.sh: correct previous change
41476         * tests/init.sh (compare): My previous change was wrong.
41477         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
41479         init.sh: avoid unwarranted test failure when using "set -e"
41480         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
41481         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
41482         a use like "compare exp out" would get evoke an unconditional failure.
41484 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
41486         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
41487         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
41488         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
41489         autoreconf that did not.
41490         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
41491         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
41493 2011-12-17  Jim Meyering  <meyering@redhat.com>
41495         bootstrap: remove some now-unneeded code
41496         This script arose back when gnulib-tool was young.
41497         Since then, it has seen improvements that render much of this
41498         script unnecessary.  In particular, it can now make symlinks
41499         to the files it uses.  Also, I no longer see as much value in
41500         marking files as read-only via comments.
41501         If you relied on the symlink-creation feature of the preceding
41502         version of this script, you can get most of that functionality
41503         by adding the --symlink option to the definition of
41504         gnulib_tool_option_extras in your bootstrap.conf file.
41505         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
41506         Run autopoint and libtoolize *before* gnulib-tool.
41507         After it, run an abbreviated autoreconf, rather than a loop around
41508         all tools.
41509         (slirp, bt_mark_as_generated): Remove functions.
41511 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
41513         ftoastr: fix typo
41514         * lib/ftoastr.h: Fix misspelling in comment.
41516 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
41518         * top/README-release: fix punctuation.
41520 2011-12-17  Jim Meyering  <meyering@redhat.com>
41522         bootstrap: correct the recent buildreq change
41523         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
41524         had no effect.
41525         * build-aux/bootstrap (buildreq): Bracket each search term with
41526         "*...*", so that the shell "case" statement works as intended.
41527         Add comments.
41529 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
41531         build: let bootstrap resort to wget when downloading .po files
41532         * build-aux/bootstrap (download_po_files): Fallback to wget when
41533         downloading the .po files via rsync fails.  This is necessary to
41534         bootstrap from behind a strict firewall.
41536 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41538         stdint: don't assume C++11 when compiling with g++
41539         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
41540         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
41541         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
41542         work also in C++ before C++11, as that improperly inhibits
41543         generating a substitute stdint.h for that case.
41545 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
41547         alloca: protect comment from gnulib-tool
41548         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
41549         that gnulib-tool doesn't think it's a license, and munge it to
41550         say "GCC version 3".
41552 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
41554         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
41555         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41556         $(abs_top_builddir) instead of $(top_builddir).
41558 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
41560         strftime-tests: also test nanoseconds
41561         * tests/test-strftime.c (T): Add a test of %N.
41563 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
41565         inttypes, stdint: add C++11 support
41566         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
41567         when including inttypes.h and stdint.h.  Support this change to
41568         the standard.
41569         * doc/posix-headers/inttypes.texi (inttypes.h):
41570         * doc/posix-headers/stdint.texi (stdint.h): Document this.
41571         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
41572         Define if not defined already, for the benefit of pre-C++11 hosts.
41573         Define the standard format macros (e.g., PRId8) always.
41574         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
41575         Likewise, if __cpluspus.  Define the standard constant and limit
41576         macros (e.g., INT8_C, INT8_MAX) always.
41577         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
41578         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
41579         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
41580         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
41581         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
41582         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
41583         Likewise.
41585 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
41587         nonblocking tests: Fix test failure on Linux/PPC.
41588         Suggested by Prerna Saxena in
41589         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
41590         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
41591         Set to 1100000.
41593 2011-12-12  Jim Meyering  <meyering@redhat.com>
41595         argmatch: don't hard-code `' when listing valid option arguments
41596         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
41597         use the quote function to add quotes.  Use fputs rather than
41598         fprintf for the format string with no format directive.
41600 2011-12-07  Eric Blake  <eblake@redhat.com>
41602         bootstrap: detect tools required by gnulib-tool
41603         * build-aux/bootstrap (buildreq): Provide minimum implicit
41604         dependencies.
41605         * DEPENDENCIES: Mention patch as a prereq.
41607 2011-12-04  Bruno Haible  <bruno@clisp.org>
41609         sethostname: Port to Windows platforms.
41610         * lib/sethostname.c: Provide an alternate implementation for Windows
41611         platforms.
41612         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
41613         (main): Skip the test if sethostname() fails with EPERM. On Windows
41614         platforms, don't check the result of gethostname().
41616 2011-12-04  Bruno Haible  <bruno@clisp.org>
41617             Jim Meyering  <meyering@redhat.com>
41619         tests: Avoid spurious error message on platforms without mktemp program.
41620         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
41622 2011-12-04  Bruno Haible  <bruno@clisp.org>
41624         sethostname: Fix documentation.
41625         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
41626         "not fixed" section.
41628 2011-12-03  Bruno Haible  <bruno@clisp.org>
41630         gnulib-tool: Verify that the License field is present and non-empty.
41631         * gnulib-tool (func_get_license_raw): New function, extracted from
41632         func_get_license.
41633         (func_get_license): Use it. Warn if the module is not a test module and
41634         has no license.
41635         Suggested by Jim Meyering.
41637 2011-12-03  Bruno Haible  <bruno@clisp.org>
41639         sethostname tests: Fix link error on mingw.
41640         * tests/test-sethostname1.c: New file, extracted from
41641         tests/test-sethostname.c.
41642         * tests/test-sethostname2.c: New file, extracted from
41643         tests/test-sethostname.c.
41644         * tests/test-sethostname.c: Remove file.
41645         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
41646         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
41647         (Depends-on): Add gethostname.
41648         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
41649         Link the latter with $(GETHOSTNAME_LIB).
41651         sethostname tests: Fix compilation error on mingw.
41652         * tests/test-sethostname.c: Don't include <sys/types.h>.
41653         (geteuid): Use a dummy value without uid_t.
41654         * modules/sethostname-tests (Depends-on): Remove sys_types.
41656         sethostname tests: Avoid a gcc warning.
41657         * tests/test-sethostname.c (main): Remove an unused variable.
41659         Tweak last commit.
41660         * modules/sethostname-tests (Files): Sort by decreasing importance.
41661         (configure.ac): Check for geteuid.
41662         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
41663         the test when there's nothing to test. Drop an unnecessary cast.
41664         Improve an error message. Verify that the final sethostname() call
41665         succeeds.
41667 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41669         Add a test suite for the sethostname module.
41670         * modules/sethostname-tests: New file.  A test program
41671         for the sethostname module.
41672         * tests/test-sethostname.c: Likewise.
41674 2011-12-03  Bruno Haible  <bruno@clisp.org>
41676         Tweak last commit.
41677         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
41678         Fix preprocessor directives indentation. Fix typos.
41679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
41680         * modules/unistd (Makefile): Likewise.
41682 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41684         Integrate the sethostname module into unistd.
41685         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
41686         into the unistd.h header.
41687         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
41688         preprocessor directives.
41689         * modules/unistd: Setup the Makefile substitutions of the
41690         SETHOSTNAME preprocessor directives.
41692 2011-12-03  Bruno Haible  <bruno@clisp.org>
41694         Tweak last commit.
41695         * lib/sethostname.c: Don't include <string.h>.
41696         (sethostname): No need to copy the argument string to the stack. Don't
41697         call clearerr. Preserve errno when fprintf failed.
41698         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
41699         Don't invoke AC_REPLACE_FUNCS.
41700         * modules/sethostname (Link): Remove empty section.
41701         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
41702         failure problem.
41704 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41706         New module 'sethostname'.
41707         * lib/sethostname.c (sethostname): New file.  Provide sethostname
41708         for systems that lack it.
41709         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
41710         sethostname declaration and function.
41711         * modules/sethostname: New file.  Define the sethostname module.
41713 2011-12-03  Bruno Haible  <bruno@clisp.org>
41715         Tweak last commit.
41716         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
41718 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
41720         Split the HOST_NAME_MAX detection into a separate m4 macro.
41721         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
41722         macro so it can be used by the pending sethostname module.
41724 2011-12-03  Bruno Haible  <bruno@clisp.org>
41726         Fix module descriptions syntax.
41727         * modules/argv-iter (License): Fix syntax.
41728         * modules/di-set (License): Likewise.
41729         * modules/ino-map (License): Likewise.
41730         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
41732 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
41734         stdalign: port to Clang 3.0
41735         Problem reported by Simon Josefsson in
41736         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
41737         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
41738         which has <stdalign.h> but which does not define alignof.
41739         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
41741 2011-12-01  Eric Blake  <eblake@redhat.com>
41743         mktempd: silence dd usage
41744         * build-aux/mktempd (rand_bytes): Silence dd.
41746 2011-11-30  Simon Josefsson  <simon@josefsson.org>
41748         manywarnings: Don't mention gcc version in docstring.
41749         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
41750         Jim Meyering <meyering@redhat.com>.
41752 2011-11-30  Jim Meyering  <meyering@redhat.com>
41754         hash: mark a few floating point constants with "f" suffix
41755         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
41756         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
41757         floating point constants with "f", since they're destined to be
41758         saved/used as "float"s.
41760 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
41762         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
41763         * tests/test-float.c (test_long_double): Correct and re-enable the
41764         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
41766 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
41768         Avoid subtracting two pointers that don't point into the same block.
41769         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
41770         only pointers into the same memory block are subtracted. We cannot
41771         assume that sizeof (ptrdiff_t) == sizeof (void *).
41773 2011-11-29  Eric Blake  <eblake@redhat.com>
41775         maint.mk: add syntax check for use of compare from init.sh
41776         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
41777         moved here from coreutils.
41779         manywarnings: drop -Wunsuffixed-float-constants
41780         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
41781         '1.0D', which is the only way to silence this warning for 'double'.
41783 2011-11-29  Jim Meyering  <meyering@redhat.com>
41785         hash: mark compute_bucket_size with the pure attribute
41786         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
41788         quotearg, propername: correct pragma guard expression
41789         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
41790         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
41792 2011-11-28  Jim Meyering  <meyering@redhat.com>
41794         propername: do not mark proper_name with the const attribute
41795         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
41796         since it examines data pointed to by its parameter.
41797         * lib/propername.c (proper_name): Instead, add a pragma to suppress
41798         the suggestion from -Wsuggest-attribute=const.
41800         propername: mark one more function as const
41801         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
41803 2011-11-27  Jim Meyering  <meyering@redhat.com>
41805         mark functions with const and pure attributes
41807         Mark functions per suggestions from gcc-4.6 when using these options:
41808         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
41809         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
41810         Follow these guidelines: when possible, apply the attribute to
41811         an extern declaration, not to its definition.  Apply it to the
41812         definition only when the definition is static.
41813         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
41814         * lib/argv-iter.h (argv_iter_n_args): Likewise.
41815         * lib/base64.h (isbase64): Likewise.
41816         * lib/basename-lgpl.c (last_component, base_len): Likewise.
41817         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
41818         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
41819         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
41820         (c_tolower, c_toupper): Likewise.
41821         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
41822         * lib/chdir-long.c (find_non_slash): Likewise.
41823         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
41824         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
41825         * lib/file-type.h (file_type): Likewise.
41826         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
41827         * lib/filevercmp.c (verrevcmp): Likewise.
41828         * lib/freadahead.h (freadahead): Likewise.
41829         * lib/fts.c (fts_maxarglen): Likewise.
41830         * lib/hash-pjw.h (hash_pjw): Likewise.
41831         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
41832         * lib/hash.c (is_prime, next_prime): Likewise.
41833         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
41834         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
41835         (hash_table_ok, hash_get_first, hash_string): Likewise.
41836         (compute_bucket_size): Likewise.
41837         * lib/i-ring.h (i_ring_empty): Likewise.
41838         * lib/isnan.c (isnanl): Likewise.
41839         * lib/math.h (isnanl, rpl_isnanl): Likewise.
41840         * lib/memcasecmp.h (memcasecmp): Likewise.
41841         * lib/memchr2.h (memchr2): Likewise.
41842         * lib/memcmp2.h (memcmp2): Likewise.
41843         * lib/parse-datetime.y (lookup_zone): Likewise.
41844         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
41845         [!WINDOWS_SOCKETS]: Likewise.
41846         * lib/strnlen1.h (strnlen1): Likewise.
41847         * lib/uniwidth.in.h (uc_width): Likewise.
41848         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
41849         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
41850         (quoting_options_from_style): Add a comment.
41851         * lib/propername.h (proper_name): Add a comment.
41853 2011-11-27  Bruno Haible  <bruno@clisp.org>
41855         Remove unused macros from !_LIBC code in glibc-borrowed files.
41856         * lib/fnmatch.c (STRCOLL): Remove macro.
41857         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
41858         * lib/glob.c (__stat, __readdir64): Remove macros.
41859         * lib/tempname.c (__open64, __xstat64): Remove macros.
41860         Suggested by Paul Eggert.
41862 2011-11-27  Bruno Haible  <bruno@clisp.org>
41864         getcwd: Fix link error on MSVC 9.
41865         * modules/getcwd (Depends-on): Add readdir, rewinddir.
41867 2011-11-27  Bruno Haible  <bruno@clisp.org>
41869         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
41870         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
41871         HAVE_OPENDIR is 0.
41872         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
41873         HAVE_CLOSEDIR is 0.
41874         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
41875         is 0.
41876         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
41878 2011-11-27  Bruno Haible  <bruno@clisp.org>
41880         getcwd: Fix bug from 2011-08-17.
41881         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
41882         platforms that need it.
41883         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
41884         code of 4 to be a failure, not a success. This ensures that
41885         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
41887 2011-11-27  Bruno Haible  <bruno@clisp.org>
41889         binary-io tests: Avoid test failure on mingw when libtool is used.
41890         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
41891         Don't verify the size of t-bin-out1.tmp here.
41892         * tests/test-binary-io.sh: Verify it here.
41893         Reported by Simon Josefsson.
41895 2011-11-26  Bruno Haible  <bruno@clisp.org>
41897         Fix conflict between two instantiations of module 'unistd'.
41898         * gnulib-tool (func_emit_autoconf_snippet): Substitute
41899         ${include_guard_prefix} also in the autoconf snippet.
41900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
41901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
41902         GNULIB_UNISTD_H_GETOPT.
41903         * modules/getopt-posix (configure.ac): Set the
41904         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
41905         * modules/getopt-gnu (configure.ac): Likewise.
41906         * modules/unistd (Makefile.am): Change the substitution value of
41907         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
41908         Reported by Simon Josefsson.
41910 2011-11-25  Bruno Haible  <bruno@clisp.org>
41912         pagealign_alloc: Doc and comments.
41913         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
41914         module.
41915         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
41917 2011-11-25  Jim Meyering  <meyering@redhat.com>
41919         test-update-copyright.sh: avoid false-positive failure
41920         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
41921         around false positive failure on Cygwin/Windows.  The latter was
41922         matching erroneously-created files with names like
41923         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
41925 2011-11-25  Simon Josefsson  <simon@josefsson.org>
41927         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
41928         * m4/valgrind-tests.m4: Check that the parameters that will be
41929         used works, not just a subset of them.  Reported by Bruno Haible
41930         <bruno@clisp.org>.
41932 2011-11-24  Jim Meyering  <meyering@redhat.com>
41934         test-stdalign.c: comment out long double tests
41935         * tests/test-stdalign.c: Don't try to reduce alignment of long double
41936         variables.  That provokes errors like this from gcc-4.7.0 20111124:
41937         error: '_Alignas' specifiers cannot reduce alignment of \
41938         'static_longdouble_alignas'.
41940 2011-11-22  Jim Meyering  <meyering@redhat.com>
41942         init.sh: make "compare /dev/null FILE" output more readable
41943         * tests/init.sh (compare_): Document the preferred order of arguments.
41944         (emit_diff_u_header_): New function.
41945         (compare_dev_null_): Emit a simulated diff, rather than just the
41946         contents of the unexpected file.  Suggestion from Bruno Haible.
41948 2011-11-21  Jim Meyering  <meyering@redhat.com>
41949             Eric Blake  <eblake@redhat.com>
41951         init.sh: work around OSF/1 5.1's mishandling of /dev/null
41952         * tests/init.sh: Make our compare function slightly more portable.
41953         Reported by Bruno Haible in
41954         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
41956 2011-11-21  Simon Josefsson  <simon@josefsson.org>
41958         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
41959         before using it, in code that ends up in config.h.
41961 2011-11-20  Bruno Haible  <bruno@clisp.org>
41963         getcwd: Work around getcwd bug on AIX 5..7.
41964         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
41965         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
41966         Use a different value for gl_cv_func_getcwd_path_max. Move the
41967         definition of HAVE_PARTLY_WORKING_GETCWD from here...
41968         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
41969         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
41970         Define HAVE_MINIMALLY_WORKING_GETCWD.
41971         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
41972         where it is not even minimally working, that is, on AIX.
41973         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
41974         m4/getcwd-path-max.m4.
41975         (main): Update exit code computation.
41976         * doc/posix-functions/getcwd.texi: Mention list of platforms where
41977         getcwd does not handle long file names.
41979 2011-11-20  Bruno Haible  <bruno@clisp.org>
41981         getcwd: Fix bug from 2009-09-10.
41982         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
41983         like "no".
41985 2011-11-20  Simon Josefsson  <simon@josefsson.org>
41987         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
41989 2011-11-20  Bruno Haible  <bruno@clisp.org>
41991         fma tests: Avoid shadowing local variables.
41992         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
41993         expected.
41995 2011-11-20  Bruno Haible  <bruno@clisp.org>
41997         copysignf tests: Fix.
41998         * tests/test-copysignf.c: Fix signature check.
42000 2011-11-20  Bruno Haible  <bruno@clisp.org>
42002         fma: Remove unused code.
42003         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
42004         unused macros.
42006 2011-11-20  Bruno Haible  <bruno@clisp.org>
42008         sethostname: Fix doc about AIX.
42009         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
42010         sethostname; it has it.
42012         sethostname: Mention more portability problems.
42013         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
42014         problem.
42015         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
42017 2011-11-19  Bruno Haible  <bruno@clisp.org>
42019         Depend on module fcntl-h when AT_FDCWD is used.
42020         * modules/utimens (Depends-on): Add fcntl-h.
42021         * modules/areadlinkat (Depends-on): Likewise.
42022         * modules/areadlinkat-with-size (Depends-on): Likewise.
42023         * modules/faccessat (Depends-on): Likewise.
42024         * modules/fchmodat (Depends-on): Likewise.
42025         * modules/fchownat (Depends-on): Likewise.
42026         * modules/getcwd (Depends-on): Likewise.
42027         * modules/mkdirat (Depends-on): Likewise.
42028         * modules/mkfifoat (Depends-on): Likewise.
42029         * modules/readlinkat (Depends-on): Likewise.
42030         * modules/symlinkat (Depends-on): Likewise.
42031         * modules/dup2-tests (Depends-on): Likewise.
42032         * modules/fdutimensat-tests (Depends-on): Likewise.
42033         * modules/futimens-tests (Depends-on): Likewise.
42035 2011-11-19  Bruno Haible  <bruno@clisp.org>
42037         euidaccess: Update a comment.
42038         * lib/euidaccess.c: Update comment about platforms with faccessat.
42040 2011-11-19  Bruno Haible  <bruno@clisp.org>
42042         openat: Fix file list.
42043         * modules/openat (Files): Remove lib/at-func.c.
42045 2011-11-19  Bruno Haible  <bruno@clisp.org>
42047         fstatat: Simplify.
42048         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
42049         gnulib should define rpl_fstatat, there is a
42050         "#define fstatat rpl_fstatat" in <sys/stat.h>.
42052 2011-11-19  Bruno Haible  <bruno@clisp.org>
42054         Ensure 'inline' can be used in tests/test-utimens-common.h.
42055         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
42056         * modules/futimens-tests (configure.ac): Likewise.
42057         * modules/utimens-tests (configure.ac): Likewise.
42058         * modules/utimensat-tests (configure.ac): Likewise.
42060 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42062         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
42063         not hash_insert0.
42064         (hash_insert_if_absent): Doc fix.
42066 2011-11-19  Simon Josefsson  <simon@josefsson.org>
42068         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
42070 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
42072         test-getcwd: disambiguate exit status
42073         * tests/test-getcwd.c (test_long_name): Return 0..7.
42074         (main): Exit with an unambiguous exit status.  The old
42075         code yielded a mysterious mixture of two failure codes.
42077         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
42078         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
42079         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
42080         rpl_fstatat or fstatat.  This should fix the other problem
42081         reported by Kai Habel in
42082         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42083         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
42084         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
42085         and I reproduced it on a Solaris 8 host we still have in production.
42087 2011-11-18  Jim Meyering  <meyering@redhat.com>
42089         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
42090         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
42091         Add a sentence to the comment.
42092         (hash_insert0): New function that simply calls hash_insert_if_absent.
42093         * lib/hash.h (hash_insert_if_absent): Declare it.
42094         (hash_insert0): Add deprecation attribute.
42095         (_GL_ATTRIBUTE_DEPRECATED): Define.
42096         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
42097         not hash_insert0.
42098         * NEWS: Mention it, even though it's not really an incompatible change.
42100 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
42102         openat: avoid compilation failure due to lack of <errno.h> inclusion
42103         * lib/openat.c: Include <errno.h>.
42105 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42107         * modules/getcwd (Depends-on): Add fdopendir.
42108         This fixes one of the two problems reported by Kai Habel in
42109         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
42111         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
42112         stdalign problem reported by Ian Beckwith in
42113         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
42114         * modules/crypto/gc-arcfour (Depends-on):
42115         Depend conditionally on crypto/arcfour.
42116         * modules/crypto/gc-arctwo (Depends-on):
42117         Depend conditionally on crypto/arctwo.
42118         * modules/crypto/gc-des (Depends-on):
42119         Depend conditionally on crypto/des.
42120         * modules/crypto/gc-hmac-md5 (Depends-on):
42121         Depend conditionally on crypto/hmac-md5.
42122         * modules/crypto/gc-hmac-sha1 (Depends-on):
42123         Depend conditionally on crypto/hmac-sha1.
42124         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
42125         * modules/crypto/gc-md4 (Depends-on):
42126         Depend conditionally on crypto/md4.
42127         * modules/crypto/gc-md5 (Depends-on):
42128         Depend conditionally on crypto/md5.
42129         * modules/crypto/gc-rijndael (Depends-on):
42130         Depend conditionally on crypto/rijndael.
42131         * modules/crypto/gc-sha1 (Depends-on):
42132         Depend conditionally on crypto/sha1.
42133         * modules/crypto/gc-arcfour:
42134         * modules/crypto/gc-arctwo:
42135         * modules/crypto/gc-des:
42136         * modules/crypto/gc-hmac-md5:
42137         * modules/crypto/gc-hmac-sha1:
42138         * modules/crypto/gc-md2:
42139         * modules/crypto/gc-md4:
42140         * modules/crypto/gc-md5:
42141         * modules/crypto/gc-rijndael:
42142         * modules/crypto/gc-sha1:
42143         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
42144         now that the conditional dependencies do the work for us.
42146 2011-11-17  Jim Meyering  <meyering@redhat.com>
42148         tests: factor st_ctime-comparison out of two headers
42149         * tests/test-utimens-common.h (ctime_compare): Define.
42150         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
42151         * tests/test-lutimens.h (test_lutimens): Likewise.
42152         * tests/test-utimens.h (test_utimens): Likewise.
42154         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
42155         Invoke the test program via an init.sh-using wrapper.
42156         * tests/test-getcwd.sh: New file.
42157         * modules/getcwd-tests (Files): Add it.
42158         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
42160 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
42162         gitlog-to-changelog: support multi-author commits.
42163         The FSF cares about keeping track of all authors of patches to its
42164         projects, but Git doesn't provide obvious support for multi-author
42165         changesets. Consensus seems to be forming around the use of extra
42166         Signed-off-by inspired lines in the log message formatted as
42167         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
42168         multi-author commits between version control systems.
42169         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
42170         log message and output in standard ChangeLog multi-author format.
42171         Reported by Peter Rosin <peda@lysator.liu.se>
42173 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
42174             Bruno Haible  <bruno@clisp.org>
42176         Fix some modules' file list.
42177         * modules/fstatat (Files): Add m4/lstat.m4.
42178         * modules/openat (Files): Likewise.
42179         * modules/unlinkat (Files): Likewise.
42181 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
42183         maint.mk: fix tight-scope.mk generation in VPATH builds.
42184         * top/maint.mk (tight-scope.mk): Make sure to prefix file
42185         reference with $(srcdir) so that the file is found correctly even
42186         when running `make syntax-check' in a VPATH build.
42188 2011-11-13  Bruno Haible  <bruno@clisp.org>
42189             Jim Meyering  <meyering@redhat.com>
42191         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
42192         * tests/init.sh (compare): Remove "No differences encountered" or
42193         synonymous output from the 'diff' program.
42195 2011-11-13  Bruno Haible  <bruno@clisp.org>
42197         Makefile: Tweak indentation.
42198         * Makefile: Use tab as first character in every line that contains rule
42199         commands.
42201 2011-11-13  Bruno Haible  <bruno@clisp.org>
42203         Syntax check for copyright statements.
42204         * check-copyright: New file.
42205         * Makefile (sc_check_copyright): New rule.
42207 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42209         * build-aux/git-version-gen: Add --prefix to configure the tag
42210         match string.
42212 2011-11-13  Simon Josefsson  <simon@josefsson.org>
42214         * build-aux/git-version-gen: Add --help and --version.
42216 2011-11-12  Jim Meyering  <meyering@redhat.com>
42218         revamp the other test-exclude?.sh scripts to use init.sh, too
42219         * tests/test-exclude1.sh: Use init.sh.
42220         * tests/test-exclude2.sh: Likewise.
42221         * tests/test-exclude3.sh: Likewise.
42222         * tests/test-exclude4.sh: Likewise.
42223         * tests/test-exclude5.sh: Likewise.
42224         * tests/test-exclude6.sh: Likewise.
42225         * tests/test-exclude7.sh: Likewise.
42226         * tests/test-exclude8.sh: Likewise.
42227         * modules/exclude-tests (Files): List init.sh.
42229         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
42230         These shell scripts ignored failure of the binary test-exclude,
42231         so making the latter return 77 didn't cause them to be skipped.
42232         * tests/test-exclude5.sh: Exit with test-exclude's error status
42233         when that program fails.  Revamp to use init.sh.
42234         * tests/test-exclude2.sh: Likewise.
42236         test-exclude: fix a typo
42237         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
42239 2011-11-11  Bruno Haible  <bruno@clisp.org>
42241         obstack: Fix compilation error on MSVC 9.
42242         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
42244 2011-11-11  Jim Meyering  <meyering@redhat.com>
42246         test-exclude: skip tests rather than failing on deficient systems
42247         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
42248         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
42249         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
42250         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
42252 2011-11-10  Bruno Haible  <bruno@clisp.org>
42254         ptsname_r test: Avoid gcc warning on glibc systems.
42255         * tests/test-ptsname_r.c (null_ptr): New function.
42256         (test_errors): Use it.
42258 2011-11-10  Bruno Haible  <bruno@clisp.org>
42260         ptsname_r: Avoid compilation error on OSF/1 5.1.
42261         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
42262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
42263         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
42264         function is not declared or incompatibly declared.
42265         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
42266         * modules/ptsname_r (Depends-on, configure.ac): Update.
42267         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
42269 2011-11-10  Bruno Haible  <bruno@clisp.org>
42271         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
42272         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
42273         When cross-compiling, guess yes on all platforms except AIX.
42274         Reported by Ludovic Courtès <ludo@gnu.org>.
42276 2011-11-09  Bruno Haible  <bruno@clisp.org>
42278         ptsname_r tests: Fix bugs.
42279         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
42280         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
42282 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
42284         fstatat: work with cross-compilation
42285         Problem reported by Ludovic Courtès in
42286         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
42287         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
42288         "cross-compiling" and assume the bug is present.  Replace
42289         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
42290         an inverted sense, to be more conservative about our assumptions.
42291         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
42293 2011-11-09  Bruno Haible  <bruno@clisp.org>
42295         Improve MODULES.html output.
42296         * modules/mkfifoat (Description): Use the word "function".
42297         * modules/readlinkat (Description): Likewise.
42298         * modules/symlinkat (Description): Likewise.
42300 2011-11-09  Eric Blake  <eblake@redhat.com>
42302         ptsname_r-tests: new test module
42303         * modules/ptsname_r-tests: New module.
42304         * tests/test-ptsname_r.c: New file.
42306         ptsname_r: new module
42307         * modules/ptsname_r: New module.
42308         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
42309         * lib/ptsname.c (__ptsname_r): Split...
42310         * lib/ptsname_r.c: ...into new file.
42311         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
42312         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
42313         * modules/stdlib (Makefile.am): Substitute witnesses.
42314         * lib/stdlib.in.h (ptsname_r): Declare it.
42315         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
42316         * MODULES.html.sh (Misc): Likewise.
42317         * modules/ptsname (Depends-on): Alter dependency.
42318         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
42320 2011-11-09  Jim Meyering  <meyering@redhat.com>
42322         announce-gen: be more concise when there's only one URL+tarball
42323         * build-aux/announce-gen (get_tool_versions): When you distribute
42324         only one type of tarball, combine the first two "Here are..."
42325         sections and make the key-checking grammar independent of
42326         how many tarballs there are.
42328 2011-11-09  Eric Blake  <eblake@redhat.com>
42330         openpty: provide a stub on mingw
42331         * lib/pty.in.h (includes): Provide forward declarations.
42332         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
42334         raise: fix mingw handling of SIGPIPE
42335         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
42337 2011-11-08  Bruno Haible  <bruno@clisp.org>
42339         More conditional dependencies.
42340         * modules/faccessat (Depends-on): Add conditions.
42341         * modules/fchmodat (Depends-on): Likewise.
42342         * modules/fchownat (Depends-on): Likewise.
42343         * modules/fstatat (Depends-on): Likewise.
42344         * modules/mkfifoat (Depends-on): Likewise.
42345         * modules/readlinkat (Depends-on): Likewise.
42346         * modules/symlinkat (Depends-on): Likewise.
42347         * modules/unlinkat (Depends-on): Likewise.
42348         * modules/utimensat (Depends-on): Likewise.
42349         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
42350         * modules/linkat (Depends-on): Refine the conditions.
42351         * modules/renameat (Depends-on): Likewise.
42353 2011-11-08  Bruno Haible  <bruno@clisp.org>
42355         faccessat: Move AC_LIBOBJ invocation to module description.
42356         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
42357         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
42358         invocation from here...
42359         * modules/faccessat (configure.ac): ... to here. Invoke
42360         gl_PREREQ_FACCESSAT.
42362 2011-11-08  Bruno Haible  <bruno@clisp.org>
42364         faccessat: Simplify autoconf macro.
42365         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
42366         gl_FUNC_EUIDACCESS.
42368 2011-11-08  Bruno Haible  <bruno@clisp.org>
42370         renameat: Fix dependencies.
42371         * modules/renameat (Depends-on): Add stdbool.
42373 2011-11-08  Bruno Haible  <bruno@clisp.org>
42375         mkfifoat: Fix module description.
42376         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
42377         not gl_UNISTD_MODULE_INDICATOR.
42379 2011-11-08  Bruno Haible  <bruno@clisp.org>
42381         fstatat: Remove unused dependency.
42382         * modules/fstatat (Depends-on): Remove fstat.
42384 2011-11-08  Simon Josefsson  <simon@josefsson.org>
42386         GNUmakefile: behave when Makefile is missing.
42387         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
42389 2011-11-08  Bruno Haible  <bruno@clisp.org>
42391         openat: Conditionalize dependencies.
42392         * lib/openat.c: Reduce the scope of some #includes.
42393         * modules/openat (Depends-on): Add conditions.
42395 2011-11-07  Jim Meyering  <meyering@redhat.com>
42397         maint.mk: extract GPG key ID without using a temporary file
42398         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
42399         without using a temporary file.  Based on a suggestion from Werner Koch
42400         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
42402 2011-11-07  Eric Blake  <eblake@redhat.com>
42404         grantpt: fix typo
42405         * lib/stdlib.in.h (grantpt): Check correct function.
42407         maint.mk: silence new syntax check
42408         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
42410 2011-11-06  Bruno Haible  <bruno@clisp.org>
42412         Doc about floating-point and math API.
42413         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
42414         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
42416 2011-11-06  Bruno Haible  <bruno@clisp.org>
42418         stdalign tests: Skip the test when compiled by Sun C.
42419         * tests/test-stdalign.c (main): Skip the test on Sun C.
42421 2011-11-06  Bruno Haible  <bruno@clisp.org>
42423         ansi-c++-opt: Complete the 2011-06-05 change.
42424         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
42425         does not support namespaces, set the variable to "no", not to ":".
42427 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
42429         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
42431 2011-11-06  Bruno Haible  <bruno@clisp.org>
42433         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
42434         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
42435         (minus_zerol) [HP-UX]: New macro.
42436         (unary_minus) [HP-UX]: New function.
42437         (copysignl) [HP-UX]: Use unary_minus function.
42439 2011-11-06  Bruno Haible  <bruno@clisp.org>
42441         ldexp, ldexpf, ldexpl: Enhance tests.
42442         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
42443         and tests/test-ldexpl.c.
42444         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
42445         LDEXP, MIN_EXP, MAX_EXP): New macros.
42446         Include test-ldexp.h.
42447         (main): Just call test_function.
42448         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
42449         infinity.h, nan.h.
42450         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42451         MAX_EXP): New macros.
42452         Include test-ldexp.h.
42453         (x, y): Remove variables.
42454         (main): Just call test_function.
42455         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
42456         infinity.h, nan.h.
42457         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
42458         MAX_EXP): New macros.
42459         Include test-ldexp.h.
42460         (x, y): Remove variables.
42461         (main): Just call test_function.
42462         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
42463         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
42464         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42465         (Depends-on): Add isnand-nolibm, signbit, float.
42466         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
42467         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
42468         (Depends-on): Add isnanf-nolibm, signbit, float.
42470 2011-11-06  Bruno Haible  <bruno@clisp.org>
42472         math tests: Cosmetics.
42473         * tests/test-math-c++.cc: Reorder declarations.
42475 2011-11-05  Bruno Haible  <bruno@clisp.org>
42477         fma*: Simplify test.
42478         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
42479         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
42481         Tests for module 'fmal'.
42482         * modules/fmal-tests: New file.
42483         * tests/test-fmal1.c: New file.
42484         * tests/test-fmal2.c: New file.
42486         New module 'fmal'.
42487         * lib/math.in.h (fmal): New declaration.
42488         * lib/fmal.c: New file.
42489         * m4/fmal.m4: New file.
42490         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
42491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
42492         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
42493         REPLACE_FMAL.
42494         * modules/fmal: New file.
42495         * doc/posix-functions/fmal.texi: Mention the new module and the various
42496         bugs.
42498         Tests for module 'fmaf'.
42499         * modules/fmaf-tests: New file.
42500         * tests/test-fmaf1.c: New file.
42501         * tests/test-fmaf2.c: New file.
42503         New module 'fmaf'.
42504         * lib/math.in.h (fmaf): New declaration.
42505         * lib/fmaf.c: New file.
42506         * m4/fmaf.m4: New file.
42507         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
42508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
42509         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
42510         REPLACE_FMAF.
42511         * modules/fmaf: New file.
42512         * doc/posix-functions/fmaf.texi: Mention the new module and the various
42513         bugs.
42515         Tests for module 'fma'.
42516         * modules/fma-tests: New file.
42517         * tests/test-fma1.c: New file.
42518         * tests/test-fma1.h: New file.
42519         * tests/test-fma2.c: New file.
42520         * tests/test-fma2.h: New file.
42522         New module 'fma'.
42523         * lib/math.in.h (fma): New declaration.
42524         * lib/fma.c: New file.
42525         * m4/fma.m4: New file.
42526         * m4/fegetround.m4: New file.
42527         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
42528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
42529         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
42530         REPLACE_FMA.
42531         * modules/fma: New file.
42532         * doc/posix-functions/fma.texi: Mention the new module and the various
42533         bugs.
42535         Extend gl_MATHFUNC.
42536         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
42537         Support 'void' as argument type.
42538         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
42540 2011-11-05  Jim Meyering  <meyering@redhat.com>
42542         maint.mk: also prohibit inclusion of dirent.h without use
42543         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
42545 2011-11-05  Bruno Haible  <bruno@clisp.org>
42547         ldexpl tests: Avoid test failure on MSVC 9.
42548         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
42549         value. Needed in order to enforce the conversion from a value greater
42550         than LDBL_MAX to Infinity.
42552 2011-11-05  Bruno Haible  <bruno@clisp.org>
42554         New modules 'at-internal', 'openat-h', split off from module 'openat'.
42555         * modules/at-internal: New file, extracted from modules/openat.
42556         * modules/openat-h: New file.
42557         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
42558         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
42559         * modules/openat (Description): Add reference to POSIX function.
42560         (Files): Remove lib/openat.h, lib/openat-proc.c.
42561         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
42562         intprops, unistd.
42563         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
42564         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
42565         gl_FCNTL_MODULE_INDICATOR.
42566         (Include): Remove unistd.h, openat.h.
42567         * modules/areadlinkat (Files): Add lib/at-func.c.
42568         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42569         openat-die, openat-h, save-cwd.
42570         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
42571         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42572         openat-die, openat-h, save-cwd, unistd.
42573         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
42574         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42575         openat-h, save-cwd. Remove fcntl-h, openat.
42576         * modules/fchmodat (Files): Remove lib/openat.h.
42577         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42578         openat, stdbool, unistd.
42579         * modules/fchownat (Files): Remove lib/openat.h.
42580         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42581         openat, stdbool, sys_stat.
42582         * modules/fdopendir (Files): Remove lib/openat-priv.h,
42583         lib/openat-proc.c.
42584         (Depends-on): Add at-internal.
42585         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
42586         * modules/fstatat (Files): Remove lib/openat.h.
42587         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42588         stdbool, unistd.
42589         * modules/fts (Depends-on): Add openat-h.
42590         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
42591         openat.
42592         * modules/mkdirat (Files): Remove lib/openat.h.
42593         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
42594         openat, stdbool, sys_stat.
42595         * modules/mkfifoat (Files): Add lib/at-func.c.
42596         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42597         openat-h, save-cwd. Remove fcntl-h, openat.
42598         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
42599         * modules/readlinkat (Files): Add lib/at-func.c.
42600         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42601         openat-h, save-cwd. Remove fcntl-h, openat.
42602         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
42603         openat.
42604         * modules/selinux-at (Files): Add lib/at-func.c.
42605         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
42606         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
42607         * modules/symlinkat (Files): Add lib/at-func.c.
42608         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
42609         openat-h, save-cwd. Remove fcntl-h, openat.
42610         * modules/unlinkat (Files): Remove lib/openat.h.
42611         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
42612         stdbool.
42613         * modules/utimensat (Files): Add lib/at-func.c.
42614         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
42615         openat-die, openat-h, save-cwd.
42616         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
42617         * modules/fdutimensat-tests (Depends-on): Add openat.
42618         * modules/fstatat-tests (Depends-on): Add openat-h.
42619         * modules/readlinkat-tests (Depends-on): Add openat.
42620         * modules/symlinkat-tests (Depends-on): Add openat.
42622 2011-11-05  Bruno Haible  <bruno@clisp.org>
42624         openat: Include <stdbool.h>.
42625         * lib/openat.c: Include <stdbool.h>.
42627 2011-11-04  Bruno Haible  <bruno@clisp.org>
42629         fchownat, renameat, unlinkat: Fix dependencies.
42630         * modules/fchownat (Depends-on): Add fstatat.
42631         * modules/renameat (Depends-on): Likewise.
42632         * modules/unlinkat (Depends-on): Likewise.
42634 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
42636         openat: remove direct dependency on dirent
42637         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
42638         and hasn't been needed ever since fdopendir was split into its own
42639         module on 2009-08-31.
42640         * modules/openat (Depends-on): Remove dirent.
42642 2011-11-04  Bruno Haible  <bruno@clisp.org>
42644         renameat: Optimize code size.
42645         * modules/renameat (configure.ac): Don't compile at-func2.c if
42646         REPLACE_RENAMEAT is 1.
42648 2011-11-04  Bruno Haible  <bruno@clisp.org>
42650         openat tests: Fix file list.
42651         * modules/openat-tests (Files): Add tests/test-open.h.
42653 2011-11-04  Bruno Haible  <bruno@clisp.org>
42655         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
42656         * modules/fchmodat (Depends-on): Add openat-die.
42657         * modules/fchownat (Depends-on): Likewise.
42658         * modules/linkat (Depends-on): Likewise.
42659         * modules/renameat (Depends-on): Likewise.
42660         * modules/openat (Depends-on): Add dirent.
42662 2011-11-04  Jim Meyering  <meyering@redhat.com>
42664         at-func*.c: fix comments
42665         * lib/at-func2.c: Correct/improve first-line comment.
42666         * lib/at-func.c: Correct grammar in first-line comment.
42668 2011-11-04  Bruno Haible  <bruno@clisp.org>
42670         New module 'mkdirat', split off from module 'openat'.
42671         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
42672         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
42673         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
42674         * modules/mkdirat: New file, extracted from modules/openat.
42675         * modules/openat (Files): Remove lib/mkdirat.c.
42676         (Depends-on): Remove mkdir.
42677         (configure.ac): Remove AC_LIBOBJ of mkdirat.
42678         (Include): Remove <sys/stat.h>.
42679         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
42680         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
42681         tests/test-mkdir.h.
42682         (Depends-on): Remove ignore-value.
42683         (Makefile.am): Remove rules for test-mkdirat.
42684         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
42685         of module 'openat'.
42686         * NEWS: Mention the change.
42688 2011-11-04  Bruno Haible  <bruno@clisp.org>
42690         closedir: Avoid warning on mingw.
42691         * lib/closedir.c: Include <unistd.h>.
42693 2011-11-04  Bruno Haible  <bruno@clisp.org>
42695         New module 'fstatat', split off from module 'openat'.
42696         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
42697         defined.
42698         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
42699         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
42700         gl_FUNC_FSTATAT.
42701         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
42702         * modules/fstatat: New file, extracted from modules/openat.
42703         * modules/openat (Files): Remove lib/fstatat.c.
42704         (Depends-on): Remove lstat.
42705         (configure.ac): Remove AC_LIBOBJ of fstatat.
42706         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
42707         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
42708         tests/test-lstat.h, tests/test-stat.h.
42709         (Depends-on): Remove getcwd-lgpl.
42710         (Makefile.am): Remove rules for test-fstatat.
42711         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
42712         of module 'openat'.
42713         * NEWS: Mention the change.
42714         * modules/getcwd (Depends-on): Add fstatat.
42715         * modules/linkat (Depends-on): Likewise.
42716         * modules/mkfifoat-tests (Depends-on): Likewise.
42717         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
42719 2011-11-03  Bruno Haible  <bruno@clisp.org>
42721         New module 'unlinkat', split off from module 'openat'.
42722         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
42723         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
42724         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
42725         * modules/unlinkat: New file, extracted from modules/openat. Correct
42726         the dependency conditions.
42727         * modules/openat (Files): Remove lib/unlinkat.c.
42728         (Depends-on): Remove rmdir, unlink.
42729         (configure.ac): Remove AC_LIBOBJ of unlinkat.
42730         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
42731         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
42732         tests/test-rmdir.h, tests/test-unlink.h.
42733         (Depends-on): Remove unlinkdir.
42734         (Makefile.am): Remove rules for test-unlinkat.
42735         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
42736         of module 'openat'.
42737         * NEWS: Mention the change.
42738         * modules/linkat-tests (Depends-on): Add unlinkat.
42739         * modules/mkfifoat-tests (Depends-on): Likewise.
42740         * modules/readlinkat-tests (Depends-on): Likewise.
42742 2011-11-02  Bruno Haible  <bruno@clisp.org>
42744         New module 'fchmodat', split off from module 'openat'.
42745         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
42746         defined.
42747         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
42748         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
42749         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
42750         * modules/fchmodat: New file, extracted from modules/openat.
42751         * modules/openat (Files): Remove lib/fchmodat.c.
42752         (configure.ac): Remove AC_LIBOBJ of fchmodat.
42753         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
42754         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
42755         (Makefile.am): Remove rules for test-fchmodat.
42756         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
42757         of module 'openat'.
42758         * NEWS: Mention the change.
42760 2011-11-02  Jim Meyering  <meyering@redhat.com>
42762         putenv: indent #definition of "environ" to placate cppi
42763         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
42765         gitlog-to-changelog: provide a ChangeLog-repair mechanism
42766         Git logs are often treated as immutable, because editing them
42767         changes the SHA1 checksums of all descendants.  Thus, errors in
42768         git logs tend to stay there forever.  However, when we generate
42769         a ChangeLog file -- typically for distribution -- from that git log,
42770         we can actually make corrections in the generated file.  The key
42771         lies in recording in machine-readable/applicable form the desired
42772         corrections.  See --help for description and an example.
42773         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
42774         (usage): Describe it; alphabetize option descriptions.
42775         (main): Honor the new option, carefully.
42777 2011-11-01  Jim Meyering  <meyering@redhat.com>
42779         gitlog-to-changelog: avoid an infloop
42780         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
42781         that ends up being empty.
42783 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42785         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
42786         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
42787         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
42788         contains (possibly-quoted) backslashes.  This should avoid
42789         all-too-common shell bugs if COMPLICATED contains backslashes in
42790         the "wrong" places.  Reported by David Evans in
42791         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
42792         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
42793         because we want ASCII ranges.  Is there some reason we don't use
42794         the C locale everywhere in this script?
42795         (func_module, top level): Avoid unwanted pathname expansion when
42796         $repo_url_prefix or $repo_url_suffix_repl contain shell
42797         metacharacters like '?' and '*'.
42799 2011-11-01  Bruno Haible  <bruno@clisp.org>
42801         fchownat: Improve description.
42802         * modules/fchownat (Description): Add link to function.
42804 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
42806         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
42807         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
42808         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
42809         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
42811 2011-11-01  Bruno Haible  <bruno@clisp.org>
42813         alignof: Avoid collision with stdalign module.
42814         * lib/alignof.h (alignof): Remove macro.
42815         * NEWS: Mention the change.
42816         Reported by Paul Eggert.
42818 2011-11-01  Bruno Haible  <bruno@clisp.org>
42820         New module 'fchownat', split off from module 'openat'.
42821         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
42822         defined.
42823         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
42824         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
42825         invoke gl_FUNC_FCHOWNAT.
42826         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
42827         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
42828         * modules/fchownat: New file, extracted from modules/openat.
42829         * modules/openat (Files): Remove lib/fchownat.c.
42830         (Depends-on): Remove lchown.
42831         (configure.ac): Remove AC_LIBOBJ of fchownat.
42832         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
42833         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
42834         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
42835         (Depends-on): Remove mgetgroups, usleep, stat-time.
42836         (configure.ac): Remove test for getegid.
42837         (Makefile.am): Remove rules for test-fchownat.
42838         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
42839         of module 'openat'.
42840         * NEWS: Mention the change.
42842 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
42844         stdalign: port better to MSVC and to Sun C 5.11
42845         This fixes some of the problems reported by Bruno Haible in
42846         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
42847         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
42848         shortcomings of MSVC and of Sun C 5.11.
42849         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
42850         around __declspec arg.
42851         * modules/stdalign-tests (Files): Add tests/macros.h.
42852         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
42853         Include macros.h, for ASSERT.
42854         (DECLARE_ALIGNED): Remove.
42855         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
42856         to catch bug), and to 1 if not (simplifies the rest of the code).
42857         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
42858         (CHECK_AUTO): Remove.
42859         (CHECK_ALIGNED): Check only the alignment of the static vars,
42860         since auto var alignment isn't supported by Sun C 5.11.
42861         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
42862         ASSERT failures are easier to diagnose.
42864 2011-10-31  Bruno Haible  <bruno@clisp.org>
42866         doc about some IRIX 5.3 problems.
42867         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
42868         on IRIX 5.3.
42869         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
42870         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
42871         5.3.
42872         * doc/posix-functions/grantpt.texi: Likewise.
42873         * doc/posix-functions/unlockpt.texi: Likewise.
42874         * doc/posix-functions/lgamma.texi: Likewise.
42875         * doc/posix-functions/nextafter.texi: Likewise.
42876         * doc/posix-functions/remainder.texi: Likewise.
42877         * doc/posix-functions/select.texi: Mention misplaced declaration on
42878         IRIX 5.3.
42879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42881 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
42883         gitlog-to-changelog: fix git-log invocation.
42884         git-log mishandles date strings before 1970-01-01 UTC, and there is
42885         no use to specify --since=1970-01-01 by default anyway.
42886         * build-aux/gitlog-to-changelog: By default, when no --since option
42887         was given, do not specify explicit --since option to git-log.
42889 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
42891         gitlog-to-changelog: new option --append-dot.
42892         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
42893         first non-blank line of each commit message terminated with a dot.
42895 2011-10-30  Bruno Haible  <bruno@clisp.org>
42897         ffsl, ffsll: Avoid compilation error due to 'restrict'.
42898         * lib/ffsl.h: Include <config.h>.
42899         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
42901 2011-10-30  Jim Meyering  <meyering@redhat.com>
42903         GNUmakefile: reenable "make syntax-check" for most projects
42904         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
42905         build-aux variable", "syntax-check" would do nothing but succeed with
42906         the "No version control files detected..." diagnostic (unless you
42907         happened to override _build-aux via cfg.mk).
42908         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
42909         to precede inclusion of maint.mk.  Otherwise, these variables would
42910         be used undefined in any project that does not override the default.
42912 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
42914         gitlog-to-changelog: treat a message with only blank lines as empty.
42915         * build-aux/gitlog-to-changelog: Move the code that removes leading and
42916         trailing blank lines before the code that issues a warning about an
42917         empty commit message.
42919 2011-10-30  Jim Meyering  <meyering@redhat.com>
42921         test-parse-datetime.c: avoid new DST-related false positive test failure
42922         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
42923         based on the time/date we'll convert, not the current time.
42924         Otherwise, the moment we cross a DST boundary like today's in
42925         Europe, (CEST to CET), that offset ends up being one hour off.
42927 2011-10-27  Bruno Haible  <bruno@clisp.org>
42929         fstat: Tweak documentation.
42930         * modules/fstat (Description): More precise description.
42932 2011-10-27  Bruno Haible  <bruno@clisp.org>
42934         Update documentation regarding 'largefile' module.
42935         * doc/posix-functions/fstat.texi: Tweak wording.
42936         * doc/posix-functions/opendir.texi: Mention that the module fixes the
42937         problems with huge directories and/or small ino_t types.
42938         * doc/posix-functions/readdir.texi: Likewise.
42939         * doc/posix-functions/rewinddir.texi: Likewise.
42941 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
42943         maint.mk: don't maintain a second build-aux variable.
42944         * maint.mk (build_aux): Removed.  The maintainer-makefile module
42945         depends on GNUmakefile, which already maintains a cfg.mk
42946         overridable $(_build-aux) for projects with a non-standard
42947         build-aux directory location, although without the $(srcdir)
42948         prefix.  Use that variable consistently instead of introducing a
42949         second one.  Adjust all call sites.
42951 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
42953         Add stdalign module and use it in other modules.
42954         This is based on a previous proposal by Bruno Haible
42955         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
42957         stdalign: new module
42958         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
42959         * modules/stdalign: New files.
42960         * MODULES.html.sh (c1x_core_properties): Add stdalign.
42961         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
42963         stdalign-tests: new module
42964         * modules/stdalign-tests, tests/test-stdalign.c: New files.
42966         argp: use stdalign
42967         * lib/argp-parse.c: Include <stdalign.h>.
42968         (alignof): Remove.
42969         * modules/argp (Depends-on): Add stdalign.
42971         crypto libraries: use stdalign
42972         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
42973         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
42974         Do not include <stdlib.h> twice, in md4.c.
42975         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
42976         because we are accessing a pointer's bit-pattern, not a size.
42977         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
42978         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
42979         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
42980         * modules/crypto/sha512: Likewise.
42982         sys_socket: use stdalign, not alignof
42983         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
42984         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
42986 2011-10-27  Bruno Haible  <bruno@clisp.org>
42988         raise test: Avoid a test failure on Linux/MIPS.
42989         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
42990         because 99 is a valid signal on Linux/MIPS.
42992 2011-10-27  Bruno Haible  <bruno@clisp.org>
42994         nonblocking tests: Fix test failure on Linux/MIPS.
42995         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
42996         Set to 270000.
42998 2011-10-27  Bruno Haible  <bruno@clisp.org>
43000         utimensat: Work around problem on Linux/hppa.
43001         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
43002         values.
43003         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
43005 2011-10-25  Jim Meyering  <meyering@redhat.com>
43007         maint.mk: fix a bug in sc_prohibit_stddef_without_use
43008         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
43009         after symbols like NULL, size_t, etc.
43010         Reported by Alfred M. Szmidt.
43012         maint.mk: exempt ENODATA from a syntax-check rule
43013         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
43014         from the sc_prohibit_always-defined_macros syntax-check rule.
43015         Add a comment.  See this for more details:
43016         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
43018 2011-10-23  Jim Meyering  <meyering@redhat.com>
43020         fts: close parent dir FD before returning from post-traversal fts_read
43021         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
43022         unlink A, even though an FD open on A remained.  This is suboptimal
43023         (holding a file descriptor open longer than needed), but otherwise not
43024         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
43025         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
43026         that represents a real problem: it causes the removal of A to fail
43027         with e.g., "rm: cannot remove `A': Device or resource busy"
43029         fts visits each directory twice and keeps a cache (fts_fd_ring) of
43030         directory file descriptors.  After completing the final, FTS_DP,
43031         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
43032         cache, but then proceeded to add a new FD to it via the subsequent
43033         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
43034         final file descriptor would be closed only via fts_close's call to
43035         fd_ring_clear.  Now, it is usually closed earlier, via the final
43036         FTS_DP-returning fts_read call.
43037         * lib/fts.c (restore_initial_cwd): New function, converted from
43038         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
43039         Update callers.
43040         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
43041         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
43043 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
43044             Bruno Haible  <bruno@clisp.org>
43045             Jim Meyering  <jim@meyering.net>
43047         readme-release: improve safety of release prep instructions.
43048         * README-release: Don't git pull all branches when only master
43049         is needed for the release process.
43050         Run make maintainer-clean before changing trees and merging.
43051         Don't try to run ./configure right after git pull in case files
43052         that influence the bootstrap process have changed, move the
43053         ./configure step to after running ./bootstrap.
43054         Don't bootstrap "one last time"... it's the first time!
43056 2011-10-22  Bruno Haible  <bruno@clisp.org>
43058         errno, strerror-override: Support for MSVC 10.
43059         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
43060         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
43061         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
43062         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
43063         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
43064         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
43065         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
43066         Assign values compatible with MSVC 10.
43067         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
43068         New macros.
43069         (GNULIB_defined_EWINSOCK): New macro.
43070         * lib/strerror-override.c (strerror_override): Update accordingly.
43071         * lib/strerror-override.h: Likewise.
43072         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
43073         longer equal to the corresponding errno value.
43074         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43076 2011-10-22  Bruno Haible  <bruno@clisp.org>
43078         perror: Recognize when test program crashes.
43079         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
43080         strerror, set gl_cv_func_perror_works to no.
43081         Reported by Daniel Richard G. <skunk@iskunk.org>.
43083         perror: Fix indentation.
43084         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
43086 2011-10-22  Bruno Haible  <bruno@clisp.org>
43088         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
43089         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
43090         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
43091         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
43092         functions, not as a macro.
43093         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
43094         macros.
43095         (isfinite, isinf, isnan, signbit): Check overloaded functions and
43096         absence of macro.
43097         Suggested by Eric Blake.
43098         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
43100 2011-10-21  Bruno Haible  <bruno@clisp.org>
43102         relocatable-prog-wrapper: Don't leave object files behind.
43103         * build-aux/install-reloc: Re-synchronize list of .o files to be
43104         removed with list of compilation units.
43106 2011-10-20  Bruno Haible  <bruno@clisp.org>
43108         openpty, posix_openpt: Remove code duplication.
43109         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
43110         * lib/openpty.c: Include <stdlib.h>.
43111         (openpty): Use posix_openpt on all platforms except IRIX.
43112         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
43114 2011-10-20  Bruno Haible  <bruno@clisp.org>
43116         unlockpt: Detect invalid argument.
43117         * lib/unlockpt.c: Include <fcntl.h>.
43118         (unlockpt): Check whether fd is valid, using fcntl().
43119         * modules/unlockpt (Depends-on): Add fcntl-h.
43121 2011-10-20  Bruno Haible  <bruno@clisp.org>
43123         openpty: Avoid compilation error on AIX 6.1.
43124         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
43126 2011-10-20  Bruno Haible  <bruno@clisp.org>
43128         posix_openpt: Support for OpenBSD.
43129         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
43130         (posix_openpt) [OpenBSD]: New code.
43131         * lib/grantpt.c: Include <fcntl.h>.
43132         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
43133         * modules/grantpt (Depends-on): Add fcntl-h.
43135 2011-10-20  Bruno Haible  <bruno@clisp.org>
43137         posix_openpt test: Coding style.
43138         * tests/test-posix_openpt.c: Use GNU coding style.
43140 2011-10-20  Bruno Haible  <bruno@clisp.org>
43142         grantpt: Support --avoid=pt_chown.
43143         * modules/grantpt (Files): Add lib/pty-private.h.
43145 2011-10-20  Bruno Haible  <bruno@clisp.org>
43147         posix_openpt: Fix autoconf macro.
43148         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
43149         unneeded check for _getpty.
43151 2011-10-20  Bruno Haible  <bruno@clisp.org>
43153         openpty: Update comments.
43154         * lib/openpty.c: Add comments about Minix.
43156 2011-10-19  Eric Blake  <eblake@redhat.com>
43158         openpty: relax license
43159         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
43161         pt_chown: use configmake to simplify build
43162         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
43164         ptsname and others: relax license
43165         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
43166         * modules/unlockpt (License): Likewise.
43167         * modules/pt_chown (License): Likewise.
43168         * modules/ptsname (License): Likewise.
43169         * modules/ttyname_r (License): Likewise.
43171 2011-10-19  Jim Meyering  <meyering@redhat.com>
43173         posix_openpt: remove spurious #endif
43174         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
43176 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
43178         maint.mk: Respect $(build_aux) in web-manual rule.
43179         * top/maint.mk (web-manual): Find gen-announce script in user's
43180         $(build_aux) directory instead of hard-coding 'build-aux'.
43182 2011-10-19  Bruno Haible  <bruno@clisp.org>
43184         posix_openpt: Fix compilation error.
43185         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
43186         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
43187         Mention the openpty module as an alternative.
43189 2011-10-19  Bruno Haible  <bruno@clisp.org>
43191         Support for old NeXTstep 3.3 frexp().
43192         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
43193         execution time of the test to 5 seconds.
43194         Reported by Daniel Richard G. <skunk@iskunk.org>.
43196 2011-10-19  Bruno Haible  <bruno@clisp.org>
43198         Support for old NeXTstep 3.3 sed.
43199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
43200         part, use /.../, not \|...|. Escape periods in the header file name.
43201         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
43202         Reported by Daniel Richard G. <skunk@iskunk.org>.
43204 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43206         Support for old NeXTstep 3.3 gcc.
43207         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
43208         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
43209         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
43210         * lib/spawn.in.h (_Restrict_arr_): Likewise.
43211         * lib/regex.h (_Restrict_arr_): Likewise.
43212         * lib/regex_internal.h (re_token_t): Likewise.
43213         * lib/regexec.c (check_node_accept_bytes): Likewise.
43214         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
43216 2011-10-18  Eric Blake  <eblake@redhat.com>
43218         posix_openpt: new module
43219         * modules/posix_openpt: New module.
43220         * m4/posix_openpt.m4: New file.
43221         * lib/posix_openpt.c: Likewise.
43222         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
43223         (gl_STDLIB_H_DEFAULTS): Set defaults.
43224         * modules/stdlib (Makefile.am): Substitute macros.
43225         * lib/stdlib.in.h (posix_openpt): Declare.
43226         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
43227         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
43228         * modules/posix_openpt-tests: New test module.
43229         * tests/test-posix_openpt.c: New test.
43231 2011-10-15  Bruno Haible  <bruno@clisp.org>
43233         xstrtoll: Fix compilation failure.
43234         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
43235         from lib/strtol.c.
43236         * doc/posix-headers/limits.texi: Mention missing numerical limits on
43237         some platforms.
43238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43240 2011-10-15  Bruno Haible  <bruno@clisp.org>
43242         vasnprintf: Optimize bit search operation.
43243         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
43244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
43245         gl_DOUBLE_EXPONENT_LOCATION.
43246         * modules/vasnprintf (Files): Add m4/exponentd.m4.
43247         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43248         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43249         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43250         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43251         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43252         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43253         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43254         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
43256 2011-10-15  Bruno Haible  <bruno@clisp.org>
43258         vasnprintf: Fix comments.
43259         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
43261 2011-10-14  Bruno Haible  <bruno@clisp.org>
43263         Tests for module 'integer_length_ll'.
43264         * modules/integer_length_ll-tests: New file.
43265         * tests/test-integer_length_ll.c: New file.
43267         New module 'integer_length_ll'.
43268         * lib/integer_length_ll.c: New file.
43269         * modules/integer_length_ll: New file.
43271 2011-10-14  Bruno Haible  <bruno@clisp.org>
43273         Tests for module 'integer_length_l'.
43274         * modules/integer_length_l-tests: New file.
43275         * tests/test-integer_length_l.c: New file.
43277         New module 'integer_length_l'.
43278         * lib/integer_length_l.c: New file.
43279         * modules/integer_length_l: New file.
43281 2011-10-14  Bruno Haible  <bruno@clisp.org>
43283         Tests for module 'integer_length'.
43284         * modules/integer_length-tests: New file.
43285         * tests/test-integer_length.c: New file.
43287         New module 'integer_length'.
43288         * lib/integer_length.h: New file.
43289         * lib/integer_length.c: New file.
43290         * modules/integer_length: New file.
43292 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43294         popen: Fix dependency conditions.
43295         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
43297 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
43299         perror: Fix autoconf test.
43300         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
43301         <stdlib.h> and <string.h>.
43303 2011-10-14  Bruno Haible  <bruno@clisp.org>
43305         ffsl: Optimize on 64-bit platforms.
43306         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
43307         unrolling.
43309 2011-10-13  Bruno Haible  <bruno@clisp.org>
43311         ffsl: Optimize on 32-bit platforms.
43312         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
43313         use ffs() without a loop.
43315         ffsl, ffsll: Optimize for GCC.
43316         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
43317         * lib/ffsl.c (GCC_BUILTIN): New macro.
43318         * lib/ffsll.c (GCC_BUILTIN): Likewise.
43320 2011-10-13  Bruno Haible  <bruno@clisp.org>
43322         ffs, bcopy, memset: Support symbol renaming via config.h.
43323         * lib/ffs.c: Include <config.h>.
43324         * lib/bcopy.c: Likewise.
43325         * lib/memset.c: Likewise.
43327 2011-10-10  Bruno Haible  <bruno@clisp.org>
43329         atanl: Simplify for platforms where 'long double' == 'double'.
43330         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43331         alternative implementation.
43332         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43333         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43334         * modules/atanl (Depends-on): Add atan. Update conditions.
43336 2011-10-10  Bruno Haible  <bruno@clisp.org>
43338         acosl: Simplify for platforms where 'long double' == 'double'.
43339         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43340         alternative implementation.
43341         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43342         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43343         * modules/acosl (Depends-on): Add acos. Update conditions.
43345 2011-10-10  Bruno Haible  <bruno@clisp.org>
43347         asinl: Simplify for platforms where 'long double' == 'double'.
43348         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43349         alternative implementation.
43350         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43351         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43352         * modules/asinl (Depends-on): Add asin. Update conditions.
43354 2011-10-10  Bruno Haible  <bruno@clisp.org>
43356         tanl: Simplify for platforms where 'long double' == 'double'.
43357         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43358         implementation.
43359         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43360         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43361         * modules/tanl (Depends-on): Add tan. Update conditions.
43362         (configure.ac): Don't compile trigl.c if
43363         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43365 2011-10-10  Bruno Haible  <bruno@clisp.org>
43367         cosl: Simplify for platforms where 'long double' == 'double'.
43368         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43369         implementation.
43370         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43371         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43372         * modules/cosl (Depends-on): Add cos. Update conditions.
43373         (configure.ac): Don't compile sincosl.c and trigl.c if
43374         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43376 2011-10-10  Bruno Haible  <bruno@clisp.org>
43378         sinl: Simplify for platforms where 'long double' == 'double'.
43379         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43380         implementation.
43381         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43382         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43383         * modules/sinl (Depends-on): Add sin. Update conditions.
43384         (configure.ac): Don't compile sincosl.c and trigl.c if
43385         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43387 2011-10-10  Bruno Haible  <bruno@clisp.org>
43389         logl: Simplify for platforms where 'long double' == 'double'.
43390         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43391         implementation.
43392         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43393         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43394         * modules/logl (Depends-on): Add log. Update conditions.
43396 2011-10-10  Bruno Haible  <bruno@clisp.org>
43398         expl: Simplify for platforms where 'long double' == 'double'.
43399         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
43400         implementation.
43401         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43402         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43403         * modules/expl (Depends-on): Add exp. Update conditions.
43405 2011-10-10  Bruno Haible  <bruno@clisp.org>
43407         sqrtl: Simplify for platforms where 'long double' == 'double'.
43408         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43409         alternative implementation.
43410         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43411         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43412         * modules/sqrtl (Depends-on): Update conditions.
43414 2011-10-10  Bruno Haible  <bruno@clisp.org>
43416         ldexpl: Simplify for platforms where 'long double' == 'double'.
43417         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43418         alternative implementation.
43419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43420         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43421         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
43423 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
43425         ffsll: set correct witness
43426         * modules/ffsll (configure.ac): Fix typo.
43428 2011-10-10  Bruno Haible  <bruno@clisp.org>
43430         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
43431         * lib/printf-frexpl.c: Include <config.h>.
43432         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43433         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
43434         second time.
43435         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
43436         gl_LONG_DOUBLE_VS_DOUBLE.
43437         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
43438         conditions.
43440 2011-10-10  Bruno Haible  <bruno@clisp.org>
43442         frexpl: Simplify for platforms where 'long double' == 'double'.
43443         * lib/frexpl.c: Include <config.h>.
43444         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43445         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43446         time.
43447         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43448         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43449         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
43450         * modules/frexpl (Depends-on): Add frexp. Update conditions.
43451         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
43452         conditions.
43454 2011-10-10  Jim Meyering  <meyering@redhat.com>
43456         test-renameat: don't leave behind a temporary file
43457         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
43458           ERROR: files left in build directory after distclean:
43459           ./gltests/test-renameat.too
43460           make[1]: *** [distcleancheck] Error 1
43461         Reported by Tom G. Christensen.
43463 2011-10-09  Bruno Haible  <bruno@clisp.org>
43465         rint: Determine RINT_LIBM correctly on AIX 7.
43466         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
43467         directly, not only through a function pointer. Also accept an optional
43468         4th argument with extra code.
43469         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
43470         rintf() call by gcc when optimizing.
43472         mathfunc.m4: Refactor.
43473         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
43474         m4 variable.
43476 2011-10-09  Bruno Haible  <bruno@clisp.org>
43478         rintl: Simplify for platforms where 'long double' == 'double'.
43479         * lib/rintl.c: Include <config.h>.
43480         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43481         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43482         time.
43483         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43484         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43485         * modules/rintl (Depends-on): Add rint. Update conditions.
43487 2011-10-09  Bruno Haible  <bruno@clisp.org>
43489         roundl: Simplify for platforms where 'long double' == 'double'.
43490         * lib/roundl.c: Include <config.h>.
43491         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43492         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43493         time.
43494         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43495         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43496         * modules/roundl (Depends-on): Add round. Update conditions.
43498 2011-10-09  Bruno Haible  <bruno@clisp.org>
43500         truncl: Simplify for platforms where 'long double' == 'double'.
43501         * lib/truncl.c: Include <config.h>.
43502         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43503         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43504         time.
43505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43506         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43507         * modules/truncl (Depends-on): Add trunc. Update conditions.
43509 2011-10-09  Bruno Haible  <bruno@clisp.org>
43511         ceill: Simplify for platforms where 'long double' == 'double'.
43512         * lib/ceill.c: Include <config.h>.
43513         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43514         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43515         time.
43516         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43517         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43518         * modules/ceill (Depends-on): Add ceil. Update conditions.
43520 2011-10-09  Bruno Haible  <bruno@clisp.org>
43522         floorl: Simplify for platforms where 'long double' == 'double'.
43523         * lib/floorl.c: Include <config.h>.
43524         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
43525         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
43526         time.
43527         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43528         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43529         * modules/floorl (Depends-on): Add floor. Update conditions.
43531 2011-10-09  Bruno Haible  <bruno@clisp.org>
43533         rint: Fix ordering constraints.
43534         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
43535         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
43536         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
43538 2011-10-09  Bruno Haible  <bruno@clisp.org>
43540         copysignl: Simplify for platforms where 'long double' == 'double'.
43541         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
43542         alternative.
43543         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43544         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
43545         * modules/copysignl (Depends-on): Add copysign. Update conditions.
43547 2011-10-09  Bruno Haible  <bruno@clisp.org>
43549         Tests for module 'rintl'.
43550         * modules/rintl-tests: New file.
43551         * tests/test-rintl.c: New file.
43553         New module 'rintl'.
43554         * lib/math.in.h (rintl): New declaration.
43555         * lib/rintl.c: New file.
43556         * m4/rintl.m4: New file.
43557         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
43558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
43559         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
43560         * modules/rintl: New file.
43561         * tests/test-math-c++.cc: Check the declaration of rintl.
43562         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43563         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
43564         * doc/posix-functions/rintl.texi: Mention the new module.
43566 2011-10-09  Bruno Haible  <bruno@clisp.org>
43568         Tests for module 'rintf'.
43569         * modules/rintf-tests: New file.
43570         * tests/test-rintf.c: New file.
43572         New module 'rintf'.
43573         * lib/math.in.h (rintf): New declaration.
43574         * lib/rintf.c: New file.
43575         * m4/rintf.m4: New file.
43576         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
43577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
43578         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
43579         * modules/rintf: New file.
43580         * tests/test-math-c++.cc: Check the declaration of rintf.
43581         * doc/posix-functions/rintf.texi: Mention the new module.
43583 2011-10-09  Bruno Haible  <bruno@clisp.org>
43585         rint: Support for MSVC.
43586         * lib/math.in.h (rint): New declaration.
43587         * lib/rint.c: New file.
43588         * m4/rint.m4: New file.
43589         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
43590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
43591         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
43592         * modules/rint (Description): Fix.
43593         (Files): Add lib/rint.c, m4/rint.m4.
43594         (Depends-on): Add math.
43595         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
43596         gl_MATH_MODULE_INDICATOR.
43597         * tests/test-math-c++.cc: Check the declaration of rint.
43598         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43599         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
43600         * doc/posix-functions/rint.texi: Mention the replacement provided by
43601         the module.
43603         rint tests: More tests.
43604         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
43605         minus-zero.h, infinity.h, nan.h.
43606         (main): Skip the test if the current rounding mode is not standard. Add
43607         tests for negative numbers, minus zero, infinity, NaN.
43608         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
43609         tests/nan.h.
43610         (Depends-on): Add isnand-nolibm.
43612 2011-10-09  Bruno Haible  <bruno@clisp.org>
43614         Tests for module 'copysignl'.
43615         * modules/copysignl-tests: New file.
43616         * tests/test-copysignl.c: New file.
43618         New module 'copysignl'.
43619         * lib/math.in.h (copysignl): New declaration.
43620         * lib/copysignl.c: New file.
43621         * m4/copysignl.m4: New file.
43622         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
43623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
43624         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
43625         HAVE_COPYSIGNL.
43626         * modules/copysignl: New file.
43627         * tests/test-math-c++.cc: Check the declaration of copysignl.
43628         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
43629         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
43630         * doc/posix-functions/copysignl.texi: Mention the new module.
43632 2011-10-09  Bruno Haible  <bruno@clisp.org>
43634         Tests for module 'copysignf'.
43635         * modules/copysignf-tests: New file.
43636         * tests/test-copysignf.c: New file.
43638         New module 'copysignf'.
43639         * lib/math.in.h (copysignf): New declaration.
43640         * lib/copysignf.c: New file.
43641         * m4/copysignf.m4: New file.
43642         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
43643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
43644         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
43645         HAVE_COPYSIGNF.
43646         * modules/copysignf: New file.
43647         * tests/test-math-c++.cc: Check the declaration of copysignf.
43648         * doc/posix-functions/copysignf.texi: Mention the new module.
43650 2011-10-09  Bruno Haible  <bruno@clisp.org>
43652         Ensure that HAVE_* variables are set to 1 before they are set to 0.
43653         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
43654         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
43655         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
43656         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
43657         gl_SIGNAL_H_DEFAULTS.
43659 2011-10-09  Bruno Haible  <bruno@clisp.org>
43661         poll: Make macro safer.
43662         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
43663         ac_cv_header_poll_h is not set.
43665 2011-10-09  Bruno Haible  <bruno@clisp.org>
43667         copysign: Provide replacement.
43668         * lib/math.in.h (copysign): New declaration.
43669         * lib/copysign.c: New file.
43670         * m4/copysign.m4: New file.
43671         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
43672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
43673         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
43674         HAVE_COPYSIGN.
43675         * modules/copysign (Description): Clarify.
43676         (Files): Add lib/copysign.c, m4/copysign.m4.
43677         (Depends-on): Add math, signbit.
43678         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
43679         gl_MATH_MODULE_INDICATOR.
43680         * tests/test-math-c++.cc: Check the declaration of copysign.
43681         * doc/posix-functions/copysign.texi: Mention the effects of the module
43682         on Minix and MSVC.
43684 2011-10-09  Bruno Haible  <bruno@clisp.org>
43686         isinf: Ensure macro on AIX 5.1.
43687         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
43688         macro.
43689         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
43691 2011-10-09  Bruno Haible  <bruno@clisp.org>
43693         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
43694         * modules/snprintf-posix-tests (configure.ac): Require
43695         gl_LONG_DOUBLE_VS_DOUBLE.
43696         * modules/sprintf-posix-tests (configure.ac): Likewise.
43697         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
43698         * modules/vasprintf-posix-tests (configure.ac): Likewise.
43699         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
43700         * modules/vsprintf-posix-tests (configure.ac): Likewise.
43701         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
43702         tests on platforms where 'long double' is the same as 'double'.
43703         * tests/test-sprintf-posix.h (test_function): Likewise.
43704         * tests/test-vasnprintf-posix.c (test_function): Likewise.
43705         * tests/test-vasprintf-posix.c (test_function): Likewise.
43707         *printf: Fix for platforms where 'long double' == 'double'.
43708         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
43709         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
43710         * modules/dprintf-posix (Files): Add m4/math_h.m4.
43711         * modules/fprintf-posix (Files): Likewise.
43712         * modules/obstack-printf-posix (Files): Likewise.
43713         * modules/snprintf-posix (Files): Likewise.
43714         * modules/sprintf-posix (Files): Likewise.
43715         * modules/vasnprintf (Files): Likewise.
43716         * modules/vasnprintf-posix (Files): Likewise.
43717         * modules/vasprintf-posix (Files): Likewise.
43718         * modules/vdprintf-posix (Files): Likewise.
43719         * modules/vfprintf-posix (Files): Likewise.
43720         * modules/vsnprintf-posix (Files): Likewise.
43721         * modules/vsprintf-posix (Files): Likewise.
43722         * modules/unistdio/u8-vasnprintf (Files): Likewise.
43723         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
43724         * modules/unistdio/u16-vasnprintf (Files): Likewise.
43725         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
43726         * modules/unistdio/u32-vasnprintf (Files): Likewise.
43727         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
43728         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
43730         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
43731         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
43732         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
43733         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
43734         'long double'.
43735         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
43737         isinf: Fix for platforms where 'long double' == 'double'.
43738         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43739         Don't blindly assume 80-bit 'long double'.
43741         isfinite: Fix for platforms where 'long double' == 'double'.
43742         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
43743         Don't blindly assume 80-bit 'long double'.
43745         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
43746         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
43747         * modules/isfinite-tests (configure.ac): Require
43748         gl_LONG_DOUBLE_VS_DOUBLE.
43749         * modules/isinf-tests (configure.ac): Likewise.
43750         * modules/isnan-tests (configure.ac): Likewise.
43751         * modules/isnanl-tests (configure.ac): Likewise.
43752         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
43753         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
43754         tests on platforms where 'long double' is the same as 'double'.
43755         * tests/test-isinf.c (test_isinfl): Likewise.
43756         * tests/test-isnan.c (test_long_double): Likewise.
43757         * tests/test-isnanl.h (main): Likewise.
43759 2011-10-08  Bruno Haible  <bruno@clisp.org>
43761         Tests for module 'tanhf'.
43762         * modules/tanhf-tests: New file.
43763         * tests/test-tanhf.c: New file.
43765         New module 'tanhf'.
43766         * lib/math.in.h (tanhf): New declaration.
43767         * lib/tanhf.c: New file.
43768         * m4/tanhf.m4: New file.
43769         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
43770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
43771         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
43772         * modules/tanhf: New file.
43773         * tests/test-math-c++.cc: Check the declaration of tanhf.
43774         * doc/posix-functions/tanhf.texi: Mention the new module.
43776         tanh: Use a .m4 file.
43777         * m4/tanh.m4: New file.
43778         * modules/tanh (Files): Add it.
43779         (configure.ac): Just invoke gl_FUNC_TANH.
43781 2011-10-08  Bruno Haible  <bruno@clisp.org>
43783         Tests for module 'coshf'.
43784         * modules/coshf-tests: New file.
43785         * tests/test-coshf.c: New file.
43787         New module 'coshf'.
43788         * lib/math.in.h (coshf): New declaration.
43789         * lib/coshf.c: New file.
43790         * m4/coshf.m4: New file.
43791         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
43792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
43793         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
43794         * modules/coshf: New file.
43795         * tests/test-math-c++.cc: Check the declaration of coshf.
43796         * doc/posix-functions/coshf.texi: Mention the new module.
43798         cosh: Use a .m4 file.
43799         * m4/cosh.m4: New file.
43800         * modules/cosh (Files): Add it.
43801         (configure.ac): Just invoke gl_FUNC_COSH.
43803 2011-10-08  Bruno Haible  <bruno@clisp.org>
43805         Tests for module 'sinhf'.
43806         * modules/sinhf-tests: New file.
43807         * tests/test-sinhf.c: New file.
43809         New module 'sinhf'.
43810         * lib/math.in.h (sinhf): New declaration.
43811         * lib/sinhf.c: New file.
43812         * m4/sinhf.m4: New file.
43813         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
43814         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
43815         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
43816         * modules/sinhf: New file.
43817         * tests/test-math-c++.cc: Check the declaration of sinhf.
43818         * doc/posix-functions/sinhf.texi: Mention the new module.
43820         sinh: Use a .m4 file.
43821         * m4/sinh.m4: New file.
43822         * modules/sinh (Files): Add it.
43823         (configure.ac): Just invoke gl_FUNC_SINH.
43825 2011-10-08  Bruno Haible  <bruno@clisp.org>
43827         Tests for module 'atan2f'.
43828         * modules/atan2f-tests: New file.
43829         * tests/test-atan2f.c: New file.
43831         New module 'atan2f'.
43832         * lib/math.in.h (atan2f): New declaration.
43833         * lib/atan2f.c: New file.
43834         * m4/atan2f.m4: New file.
43835         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
43836         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
43837         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
43838         * modules/atan2f: New file.
43839         * tests/test-math-c++.cc: Check the declaration of atan2f.
43840         * doc/posix-functions/atan2f.texi: Mention the new module.
43842         atan2: Use a .m4 file.
43843         * m4/atan2.m4: New file.
43844         * modules/atan2 (Files): Add it.
43845         (configure.ac): Just invoke gl_FUNC_ATAN2.
43847 2011-10-08  Bruno Haible  <bruno@clisp.org>
43849         Tests for module 'atanf'.
43850         * modules/atanf-tests: New file.
43851         * tests/test-atanf.c: New file.
43853         New module 'atanf'.
43854         * lib/math.in.h (atanf): New declaration.
43855         * lib/atanf.c: New file.
43856         * m4/atanf.m4: New file.
43857         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
43858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
43859         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
43860         * modules/atanf: New file.
43861         * tests/test-math-c++.cc: Check the declaration of atanf.
43862         * doc/posix-functions/atanf.texi: Mention the new module.
43864         atan: Use a .m4 file.
43865         * m4/atan.m4: New file.
43866         * modules/atan (Files): Add it.
43867         (configure.ac): Just invoke gl_FUNC_ATAN.
43869 2011-10-08  Bruno Haible  <bruno@clisp.org>
43871         Tests for module 'acosf'.
43872         * modules/acosf-tests: New file.
43873         * tests/test-acosf.c: New file.
43875         New module 'acosf'.
43876         * lib/math.in.h (acosf): New declaration.
43877         * lib/acosf.c: New file.
43878         * m4/acosf.m4: New file.
43879         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
43880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
43881         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
43882         * modules/acosf: New file.
43883         * tests/test-math-c++.cc: Check the declaration of acosf.
43884         * doc/posix-functions/acosf.texi: Mention the new module.
43886         acos: Use a .m4 file.
43887         * m4/acos.m4: New file.
43888         * modules/acos (Files): Add it.
43889         (configure.ac): Just invoke gl_FUNC_ACOS.
43891 2011-10-08  Bruno Haible  <bruno@clisp.org>
43893         Tests for module 'asinf'.
43894         * modules/asinf-tests: New file.
43895         * tests/test-asinf.c: New file.
43897         New module 'asinf'.
43898         * lib/math.in.h (asinf): New declaration.
43899         * lib/asinf.c: New file.
43900         * m4/asinf.m4: New file.
43901         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
43902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
43903         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
43904         * modules/asinf: New file.
43905         * tests/test-math-c++.cc: Check the declaration of asinf.
43906         * doc/posix-functions/asinf.texi: Mention the new module.
43908         asin: Use a .m4 file.
43909         * m4/asin.m4: New file.
43910         * modules/asin (Files): Add it.
43911         (configure.ac): Just invoke gl_FUNC_ASIN.
43913 2011-10-08  Bruno Haible  <bruno@clisp.org>
43915         Tests for module 'tanf'.
43916         * modules/tanf-tests: New file.
43917         * tests/test-tanf.c: New file.
43919         New module 'tanf'.
43920         * lib/math.in.h (tanf): New declaration.
43921         * lib/tanf.c: New file.
43922         * m4/tanf.m4: New file.
43923         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
43924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
43925         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
43926         * modules/tanf: New file.
43927         * tests/test-math-c++.cc: Check the declaration of tanf.
43928         * doc/posix-functions/tanf.texi: Mention the new module.
43930         tan: Use a .m4 file.
43931         * m4/tan.m4: New file.
43932         * modules/tan (Files): Add it.
43933         (configure.ac): Just invoke gl_FUNC_TAN.
43935 2011-10-08  Bruno Haible  <bruno@clisp.org>
43937         Tests for module 'cosf'.
43938         * modules/cosf-tests: New file.
43939         * tests/test-cosf.c: New file.
43941         New module 'cosf'.
43942         * lib/math.in.h (cosf): New declaration.
43943         * lib/cosf.c: New file.
43944         * m4/cosf.m4: New file.
43945         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
43946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
43947         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
43948         * modules/cosf: New file.
43949         * tests/test-math-c++.cc: Check the declaration of cosf.
43950         * doc/posix-functions/cosf.texi: Mention the new module.
43952         cos: Use a .m4 file.
43953         * m4/cos.m4: New file.
43954         * modules/cos (Files): Add it.
43955         (configure.ac): Just invoke gl_FUNC_COS.
43957 2011-10-08  Bruno Haible  <bruno@clisp.org>
43959         Tests for module 'sinf'.
43960         * modules/sinf-tests: New file.
43961         * tests/test-sinf.c: New file.
43963         New module 'sinf'.
43964         * lib/math.in.h (sinf): New declaration.
43965         * lib/sinf.c: New file.
43966         * m4/sinf.m4: New file.
43967         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
43968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
43969         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
43970         * modules/sinf: New file.
43971         * tests/test-math-c++.cc: Check the declaration of sinf.
43972         * doc/posix-functions/sinf.texi: Mention the new module.
43974         sin: Use a .m4 file.
43975         * m4/sin.m4: New file.
43976         * modules/sin (Files): Add it.
43977         (configure.ac): Just invoke gl_FUNC_SIN.
43979 2011-10-08  Bruno Haible  <bruno@clisp.org>
43981         Tests for module 'powf'.
43982         * modules/powf-tests: New file.
43983         * tests/test-powf.c: New file.
43985         New module 'powf'.
43986         * lib/math.in.h (powf): New declaration.
43987         * lib/powf.c: New file.
43988         * m4/powf.m4: New file.
43989         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
43990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
43991         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
43992         * modules/powf: New file.
43993         * tests/test-math-c++.cc: Check the declaration of powf.
43994         * doc/posix-functions/powf.texi: Mention the new module.
43996         pow: Use a .m4 file.
43997         * m4/pow.m4: New file.
43998         * modules/pow (Files): Add it.
43999         (configure.ac): Just invoke gl_FUNC_POW.
44001 2011-10-08  Bruno Haible  <bruno@clisp.org>
44003         Tests for module 'log10f'.
44004         * modules/log10f-tests: New file.
44005         * tests/test-log10f.c: New file.
44007         New module 'log10f'.
44008         * lib/math.in.h (log10f): New declaration.
44009         * lib/log10f.c: New file.
44010         * m4/log10f.m4: New file.
44011         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
44012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
44013         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
44014         * modules/log10f: New file.
44015         * tests/test-math-c++.cc: Check the declaration of log10f.
44016         * doc/posix-functions/log10f.texi: Mention the new module.
44018         log10: Use a .m4 file.
44019         * m4/log10.m4: New file.
44020         * modules/log10 (Files): Add it.
44021         (configure.ac): Just invoke gl_FUNC_LOG10.
44023 2011-10-08  Bruno Haible  <bruno@clisp.org>
44025         Tests for module 'logf'.
44026         * modules/logf-tests: New file.
44027         * tests/test-logf.c: New file.
44029         New module 'logf'.
44030         * lib/math.in.h (logf): New declaration.
44031         * lib/logf.c: New file.
44032         * m4/logf.m4: New file.
44033         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
44034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
44035         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
44036         * modules/logf: New file.
44037         * tests/test-math-c++.cc: Check the declaration of logf.
44038         * doc/posix-functions/logf.texi: Mention the new module.
44040         log: Use a .m4 file.
44041         * m4/log.m4: New file.
44042         * modules/log (Files): Add it.
44043         (configure.ac): Just invoke gl_FUNC_LOG.
44045 2011-10-08  Bruno Haible  <bruno@clisp.org>
44047         Tests for module 'expf'.
44048         * modules/expf-tests: New file.
44049         * tests/test-expf.c: New file.
44051         New module 'expf'.
44052         * lib/math.in.h (expf): New declaration.
44053         * lib/expf.c: New file.
44054         * m4/expf.m4: New file.
44055         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
44056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
44057         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
44058         * modules/expf: New file.
44059         * tests/test-math-c++.cc: Check the declaration of expf.
44060         * doc/posix-functions/expf.texi: Mention the new module.
44062         exp: Use a .m4 file.
44063         * m4/exp.m4: New file.
44064         * modules/exp (Files): Add it.
44065         (configure.ac): Just invoke gl_FUNC_EXP.
44067 2011-10-08  Bruno Haible  <bruno@clisp.org>
44069         Tests for module 'sqrtf'.
44070         * modules/sqrtf-tests: New file.
44071         * tests/test-sqrtf.c: New file.
44073         New module 'sqrtf'.
44074         * lib/math.in.h (sqrtf): New declaration.
44075         * lib/sqrtf.c: New file.
44076         * m4/sqrtf.m4: New file.
44077         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
44078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
44079         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
44080         * modules/sqrtf: New file.
44081         * tests/test-math-c++.cc: Check the declaration of sqrtf.
44082         * doc/posix-functions/sqrtf.texi: Mention the new module.
44084 2011-10-08  Bruno Haible  <bruno@clisp.org>
44086         Tests: Avoid link failures w.r.t. libintl.
44087         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
44088         $(LIBINTL).
44089         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
44090         $(LIBINTL).
44091         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
44092         against $(LIBINTL).
44093         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
44094         $(LIBINTL).
44095         * modules/openat-tests (Makefile.am): Link test-fchmodat against
44096         $(LIBINTL).
44097         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
44099 2011-10-08  Bruno Haible  <bruno@clisp.org>
44101         pow tests: Defeat compiler optimizations.
44102         * tests/test-pow.c (main): Assign arguments to x and y before use.
44104 2011-10-08  Bruno Haible  <bruno@clisp.org>
44106         gnulib-tool: Improve last commit.
44107         * gnulib-tool (func_modules_transitive_closure): Simplify code.
44108         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
44109         ignore dependencies that are not among the modules list.
44111 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
44113         gnulib-tool: don't follow dependencies to avoided modules
44114         This fixes a bug that is related to the previous one.
44115         * gnulib-tool (func_modules_transitive_closure)
44116         (func_emit_autoconf_snippets):
44117         Check whether a dependency is acceptable before using it.
44118         (--extract-dependencies): Report an error if --avoid is also used,
44119         since this combination of options is not yet supported.
44121         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
44122         Problem reported by Peter Dyballa in
44123         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
44124         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
44125         when echoing "$condition".
44127 2011-10-07  Bruno Haible  <bruno@clisp.org>
44129         Fix documentation about math functions on MacOS X.
44130         * doc/posix-functions/exp2.texi: Don't say the function is missing on
44131         MacOS X 10.5.
44132         * doc/posix-functions/fdim.texi: Likewise.
44133         * doc/posix-functions/feclearexcept.texi: Likewise.
44134         * doc/posix-functions/fegetenv.texi: Likewise.
44135         * doc/posix-functions/fegetround.texi: Likewise.
44136         * doc/posix-functions/feholdexcept.texi: Likewise.
44137         * doc/posix-functions/feraiseexcept.texi: Likewise.
44138         * doc/posix-functions/fesetenv.texi: Likewise.
44139         * doc/posix-functions/fesetround.texi: Likewise.
44140         * doc/posix-functions/fetestexcept.texi: Likewise.
44141         * doc/posix-functions/feupdateenv.texi: Likewise.
44142         * doc/posix-functions/fmax.texi: Likewise.
44143         * doc/posix-functions/fmin.texi: Likewise.
44144         * doc/posix-functions/log2.texi: Likewise.
44145         * doc/posix-functions/modff.texi: Likewise.
44146         * doc/posix-functions/nan.texi: Likewise.
44147         * doc/posix-functions/nanf.texi: Likewise.
44148         * doc/posix-functions/nextafterf.texi: Likewise.
44149         * doc/posix-functions/remquo.texi: Likewise.
44151 2011-10-07  Bruno Haible  <bruno@clisp.org>
44153         modff: Drop assumption about library that defines modff.
44154         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
44155         AC_CHECK_FUNCS.
44156         * modules/modff (Files): Add m4/mathfunc.m4.
44158 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
44160         raise tests: Avoid a GCC warning.
44161         * tests/test-raise.c (handler): Use _Noreturn.
44163 2011-10-07  Bruno Haible  <bruno@clisp.org>
44165         Tests for module 'ldexpf'.
44166         * modules/ldexpf-tests: New file.
44167         * tests/test-ldexpf.c: New file.
44169         New module 'ldexpf'.
44170         * lib/math.in.h (ldexpf): New declaration.
44171         * lib/ldexpf.c: New file.
44172         * m4/ldexpf.m4: New file.
44173         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
44174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
44175         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
44176         * modules/ldexpf: New file.
44177         * tests/test-math-c++.cc: Check the declaration of ldexpf.
44178         * doc/posix-functions/ldexpf.texi: Mention the new module.
44180 2011-10-06  Bruno Haible  <bruno@clisp.org>
44182         frexpf: Work around problems on IRIX and mingw.
44183         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
44184         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
44185         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
44186         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
44187         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
44188         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
44189         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
44191 2011-10-06  Bruno Haible  <bruno@clisp.org>
44193         fabsf: Drop assumption about library that defines fabsf.
44194         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
44195         AC_CHECK_FUNCS.
44196         * modules/fabsf (Files): Add m4/mathfunc.m4.
44198 2011-10-06  Bruno Haible  <bruno@clisp.org>
44200         frexpf: Drop assumption about library that defines frexpf.
44201         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
44202         'int *', 'float *', 'long double *', 'float', 'long double'.
44203         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
44204         AC_CHECK_FUNCS.
44205         * modules/frexpf (Files): Add m4/mathfunc.m4.
44207         Tests for module 'frexpf'.
44208         * modules/frexpf-tests: New file.
44209         * tests/test-frexpf.c: New file.
44211         New module 'frexpf'.
44212         * lib/math.in.h (frexpf): New declaration.
44213         * lib/frexpf.c: New file.
44214         * m4/frexpf.m4: New file.
44215         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
44216         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
44217         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
44218         * modules/frexpf: New file.
44219         * tests/test-math-c++.cc: Check the declaration of frexpf.
44220         * doc/posix-functions/frexpf.texi: Mention the new module.
44222 2011-10-06  Bruno Haible  <bruno@clisp.org>
44224         math: Sort function declarations of math.in.h.
44225         * lib/math.in.h (frexp, logb): Move declarations.
44227 2011-10-05  Bruno Haible  <bruno@clisp.org>
44229         Tests for module 'modff'.
44230         * modules/modff-tests: New file.
44231         * tests/test-modff.c: New file.
44233         New module 'modff'.
44234         * lib/math.in.h (modff): New declaration.
44235         * lib/modff.c: New file.
44236         * m4/modff.m4: New file.
44237         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
44238         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
44239         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
44240         * modules/modff: New file.
44241         * tests/test-math-c++.cc: Check the declaration of modff.
44242         * doc/posix-functions/modff.texi: Mention the new module.
44244         modf tests: Make test sharper.
44245         * tests/test-modf.c (main): Strengthen upper bound.
44247         modf: Use a .m4 file.
44248         * m4/modf.m4: New file.
44249         * modules/modf (Files): Add it.
44250         (configure.ac): Just invoke gl_FUNC_MODF.
44252 2011-10-05  Bruno Haible  <bruno@clisp.org>
44254         Tests for module 'fmodf'.
44255         * modules/fmodf-tests: New file.
44256         * tests/test-fmodf.c: New file.
44258         New module 'fmodf'.
44259         * lib/math.in.h (fmodf): New declaration.
44260         * lib/fmodf.c: New file.
44261         * m4/fmodf.m4: New file.
44262         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
44263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
44264         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
44265         * modules/fmodf: New file.
44266         * tests/test-math-c++.cc: Check the declaration of fmodf.
44267         * doc/posix-functions/fmodf.texi: Mention the new module.
44269         fmod: Use a .m4 file.
44270         * m4/fmod.m4: New file.
44271         * modules/fmod (Files): Add it.
44272         (configure.ac): Just invoke gl_FUNC_FMOD.
44274 2011-10-05  Bruno Haible  <bruno@clisp.org>
44276         Tests for module 'fabsf'.
44277         * modules/fabsf-tests: New file.
44278         * tests/test-fabsf.c: New file.
44280         New module 'fabsf'.
44281         * lib/math.in.h (fabsf): New declaration.
44282         * lib/fabsf.c: New file.
44283         * m4/fabsf.m4: New file.
44284         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
44285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
44286         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
44287         * modules/fabsf: New file.
44288         * tests/test-math-c++.cc: Check the declaration of fabsf.
44289         * doc/posix-functions/fabsf.texi: Mention the new module.
44291         fabs: Use a .m4 file.
44292         * m4/fabs.m4: New file.
44293         * modules/fabs (Files): Add it.
44294         (configure.ac): Just invoke gl_FUNC_FABS.
44296 2011-10-05  Jim Meyering  <meyering@redhat.com>
44298         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
44299         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
44300         ls -lL regression introduced in coreutils-8.12, it does so at the
44301         cost of an additional stat call in the common case.  Besides, now
44302         that the kernel change that prompted commit 95f7c57f has been reverted
44303         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
44304         we have no use for commit 95f7c57f, "file-has-acl: use
44305         acl_extended_file_nofollow if available".
44307 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
44309         file-has-acl: revert unintended change in behavior of ls -L
44310         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
44311         derived from...
44312         (file_has_acl): ...code here.  Call it.
44313         This problem was introduced with 2011-07-22 commit 95f7c57f,
44314         "file-has-acl: use acl_extended_file_nofollow if available".
44315         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
44317 2011-10-03  Bruno Haible  <bruno@clisp.org>
44319         poll: Avoid link errors on MSVC.
44320         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
44321         * modules/poll (Depends-on): Add sockets.
44322         (Link): New section.
44323         * NEWS: Mention the change.
44324         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
44325         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
44326         $(LIB_POLL) instead of $(LIBSOCKET).
44328 2011-10-03  Bruno Haible  <bruno@clisp.org>
44330         sys_select tests: Fix link error on MSVC 9.
44331         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
44332         with $(LIB_SELECT) instead of $(LIBSOCKET).
44334 2011-10-03  Bruno Haible  <bruno@clisp.org>
44336         sys_select: Fix compilation error on mingw.
44337         * lib/sys_select.in.h: On native Windows, include <io.h>.
44339 2011-10-03  Bruno Haible  <bruno@clisp.org>
44341         wmemset: Support for MSVC.
44342         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
44343         whether wmemset() exists.
44345 2011-10-03  Bruno Haible  <bruno@clisp.org>
44347         wmemmove: Support for MSVC.
44348         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
44349         whether wmemmove() exists.
44351 2011-10-03  Bruno Haible  <bruno@clisp.org>
44353         wmemcpy: Support for MSVC.
44354         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
44355         whether wmemcpy() exists.
44357 2011-10-03  Bruno Haible  <bruno@clisp.org>
44359         wmemcmp: Support for MSVC.
44360         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
44361         whether wmemcmp() exists.
44363 2011-10-03  Bruno Haible  <bruno@clisp.org>
44365         wmemchr: Support for MSVC.
44366         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
44367         whether wmemchr() exists.
44369 2011-10-03  Bruno Haible  <bruno@clisp.org>
44371         glthread/*, strsignal: Support for MSVC.
44372         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
44373         including <winsock.h> on MSVC 9.
44374         * lib/glthread/lock.h: Likewise.
44375         * lib/glthread/thread.h: Likewise.
44376         * lib/glthread/tls.h: Likewise.
44377         * lib/glthread/yield.h: Likewise.
44378         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
44379         if HAVE_UNISTD_H is false.
44380         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
44382 2011-10-03  Bruno Haible  <bruno@clisp.org>
44384         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
44385         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
44386         Set to 100000.
44388 2011-10-03  Bruno Haible  <bruno@clisp.org>
44390         acl: Fix specification.
44391         * lib/file-has-acl.c (file_has_acl): Fix specification.
44393 2011-10-03  Bruno Haible  <bruno@clisp.org>
44395         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
44396         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
44397         (compute_curr_prefix, shared_library_fullname,
44398         find_shared_library_fullname, get_shared_library_fullname, relocate):
44399         Use it together with PIC && INSTALLDIR.
44400         Reported by <jojelino@gmail.com>
44401         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
44403 2011-10-01  Jim Meyering  <meyering@redhat.com>
44405         maint.mk: adjust a release-related rule not to require use of gzip
44406         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
44407         Instead, check each file in $(DIST_ARCHIVES).  This is better for
44408         projects that build only .tar.xz files.  Also fix an erroneous test.
44410         test-linkat: don't leave behind a temporary file
44411         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
44412         Otherwise, coreutils' "make distcheck" would fail with this:
44413           Only in /c/cu/tests/torture/coreutils/test/\
44414             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
44415           make[2]: *** [my-distcheck] Error 1
44417         float, math: add omitted file
44418         * lib/itold.c: Add file, required for yesterday's float change.
44420 2011-10-01  Bruno Haible  <bruno@clisp.org>
44422         isinf: Fix for OpenBSD/x86.
44423         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
44424         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
44425         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
44427 2011-10-01  Bruno Haible  <bruno@clisp.org>
44429         isfinite: Fix syntax error in configure test.
44430         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
44432         isfinite: Fix typo.
44433         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
44434         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
44436 2011-10-01  Bruno Haible  <bruno@clisp.org>
44438         nonblocking tests: Fix test failure on Linux/IA-64.
44439         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
44440         Set to 270000.
44442 2011-10-01  Bruno Haible  <bruno@clisp.org>
44444         mkfifoat tests: Fix a test failure on mingw.
44445         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
44446         with error ENOSYS.
44448 2011-09-30  Bruno Haible  <bruno@clisp.org>
44450         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
44451         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
44452         'long double'. Set REPLACE_ITOLD.
44453         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
44454         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
44455         * lib/itold.c: New file.
44456         * modules/float (Files): Add lib/itold.c.
44457         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
44458         (Makefile.am): Substitute REPLACE_ITOLD.
44459         * modules/math (Depends-on): Add float.
44460         (Makefile.am): Substitute REPLACE_ITOLD.
44461         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
44462         * doc/posix-headers/math.texi: Likewise.
44463         * doc/posix-functions/logl.texi: Likewise.
44465 2011-09-30  Bruno Haible  <bruno@clisp.org>
44467         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
44468         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
44469         Set to 140000.
44471 2011-09-30  Bruno Haible  <bruno@clisp.org>
44473         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
44474         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
44475         invocation, say "right after AC_PROG_CC_STDC", not "right after
44476         AC_PROG_CC".
44477         Reported by Gary V. Vaughan <gary@gnu.org>.
44479 2011-09-30  Bruno Haible  <bruno@clisp.org>
44481         Centralize C99 requirement.
44482         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
44483         * modules/stdarg (configure.ac-early): Invoke it instead of
44484         AC_PROG_CC_STDC.
44485         Reported by Gary V. Vaughan and Paul Eggert.
44487 2011-09-29  Bruno Haible  <bruno@clisp.org>
44489         float: Fix LDBL_MAX value on Linux/PowerPC.
44490         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
44491         on Linux/PowerPC.
44492         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
44493         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
44494         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
44495         platform.
44496         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
44498 2011-09-29  Bruno Haible  <bruno@clisp.org>
44500         doc: Improve doc about gl_EARLY.
44501         * doc/gnulib-tool.texi (Initial import): Mention where to place an
44502         AC_PROG_CC_STDC invocation.
44503         Reported by Gary V. Vaughan <gary@gnu.org>.
44505 2011-09-28  Bruno Haible  <bruno@clisp.org>
44507         fgetc, fputc, fread, fwrite tests: Fix link error.
44508         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
44509         on non-MSVC platforms.
44510         * tests/test-fputc.c (main): Likewise.
44511         * tests/test-fread.c (main): Likewise.
44512         * tests/test-fwrite.c (main): Likewise.
44513         Reported by Jim Meyering.
44515 2011-09-27  Bruno Haible  <bruno@clisp.org>
44517         fputc, fwrite tests: Avoid test failure on MSVC.
44518         * tests/test-fgetc.c: Include msvc-inval.h.
44519         (main): Invoke gl_msvc_inval_ensure_handler.
44520         * tests/test-fputc.c: Include msvc-inval.h.
44521         (main): Invoke gl_msvc_inval_ensure_handler.
44522         * tests/test-fread.c: Include msvc-inval.h.
44523         (main): Invoke gl_msvc_inval_ensure_handler.
44524         * tests/test-fwrite.c: Include msvc-inval.h.
44525         (main): Invoke gl_msvc_inval_ensure_handler.
44526         * modules/fgetc-tests (Depends-on): Add msvc-inval.
44527         * modules/fputc-tests (Depends-on): Likewise.
44528         * modules/fread-tests (Depends-on): Likewise.
44529         * modules/fwrite-tests (Depends-on): Likewise.
44531 2011-09-27  Bruno Haible  <bruno@clisp.org>
44533         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
44534         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
44535         (raise): Remove older, duplicated declaration.
44536         (_gl_raise_SIGPIPE): New declaration.
44537         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
44538         (rpl_raise): Remove function.
44539         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
44540         a gnulib-defined SIGPIPE here.
44541         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
44542         'sigprocmask' has detected missing signal-blocking and the module
44543         'sigpipe' is enabled.
44544         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
44546 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
44548         base64-tests: avoid memory leak
44549         * tests/test-base64.c (main): Plug memory leak.
44551         base32: new module
44552         * modules/base32: New module.
44553         * lib/base32.c: New file.
44554         * lib/base32.h: Likewise.
44555         * m4/base32.m4: Likewise.
44556         * modules/base32-tests: New test.
44557         * tests/test-base32.c: Likewise.
44558         * MODULES.html.sh (Misc): Mention it.
44560 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
44562         gnulib: use more-standard license notice wording
44563         * gnulib-tool (func_emit_copyright_notice): When emitting a
44564         license notice into a file, use the standard wording as suggested
44565         by the current information for GNU maintainers, except say "file"
44566         rather than "program".  The new wording gives a license version
44567         number, which addresses an issue raised by Glenn Morris in
44568         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
44569         * m4/onceonly.m4: Use that same wording here, too.
44571         dup2: minor simplification
44572         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
44573         as lib/dup2.c no longer uses 'inline'.
44575 2011-09-25  Bruno Haible  <bruno@clisp.org>
44577         strings: Fix compilation error on MSVC.
44578         * lib/strings.in.h: Include <stddef.h> for size_t.
44580 2011-09-25  Bruno Haible  <bruno@clisp.org>
44582         fflush et al.: Document limitation on MSVC.
44583         * doc/posix-functions/fflush.texi: Document possible crash in handling
44584         mode other than DEFAULT_HANDLING.
44585         * doc/posix-functions/fgetc.texi: Likewise.
44586         * doc/posix-functions/fputc.texi: Likewise.
44587         * doc/posix-functions/fread.texi: Likewise.
44588         * doc/posix-functions/fwrite.texi: Likewise.
44590 2011-09-25  Bruno Haible  <bruno@clisp.org>
44592         msvc-inval: Allow three invalid parameter handling modes.
44593         * lib/msvc-inval.h: Don't include <stdlib.h> here.
44594         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
44595         macros.
44596         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
44597         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
44598         SANE_LIBRARY_HANDLING as a no-op.
44599         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
44600         <stdlib.h>.
44601         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
44603 2011-09-25  Bruno Haible  <bruno@clisp.org>
44605         msvc-inval: Make handler multithread-safe.
44606         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
44607         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
44608         declarations.
44609         (gl_msvc_inval_current): New declaration.
44610         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44611         Operate on the structure returned by gl_msvc_inval_current().
44612         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
44613         Remove varaiables.
44614         (tls_index, tls_initialized): New variables.
44615         (not_per_thread): New variable.
44616         (gl_msvc_inval_current): New function.
44617         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
44618         returned by gl_msvc_inval_current().
44620 2011-09-25  Bruno Haible  <bruno@clisp.org>
44622         msvc-inval: Install handler globally.
44623         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
44624         !_MSC_VER.
44625         (gl_msvc_invalid_parameter_handler): Remove declaration.
44626         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
44627         declarations.
44628         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
44629         Install the handler globally, don't uninstall it.
44630         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
44631         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
44632         currently valid, call RaiseException instead.
44633         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
44634         for !_MSC_VER.
44636 2011-09-25  Bruno Haible  <bruno@clisp.org>
44638         strerror_r-posix: Fix for MSVC 9.
44639         * lib/strerror_r.c (local_snprintf): New function.
44640         (snprintf): Define to local_snprintf, not to _snprintf.
44642 2011-09-25  Bruno Haible  <bruno@clisp.org>
44644         ftruncate: Support for MSVC 9.
44645         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
44646         (chsize_nothrow): New function.
44647         (chsize): Redefine as a macro.
44648         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
44649         * modules/ftruncate (Depends-on): Add msvc-inval.
44651 2011-09-25  Bruno Haible  <bruno@clisp.org>
44653         New module 'fstat'.
44654         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
44655         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
44656         * lib/fchdir.c (rpl_fstat): Remove function.
44657         * m4/fstat.m4: New file.
44658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
44659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
44660         declared.
44661         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
44662         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
44663         * modules/fstat: New file.
44664         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
44665         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
44666         is set.
44667         * doc/posix-functions/fstat.texi: Mention the new module and the
44668         problem on MSVC.
44669         * NEWS: Mention the change.
44670         * modules/acl (Depends-on): Add fstat.
44671         * modules/chdir-safer (Depends-on): Likewise.
44672         * modules/chown (Depends-on): Likewise.
44673         * modules/copy-file (Depends-on): Likewise.
44674         * modules/fchdir (Depends-on): Likewise.
44675         * modules/fdopendir (Depends-on): Likewise.
44676         * modules/fopen (Depends-on): Likewise.
44677         * modules/fts (Depends-on): Likewise.
44678         * modules/getcwd (Depends-on): Likewise.
44679         * modules/isapipe (Depends-on): Likewise.
44680         * modules/linkat (Depends-on): Likewise.
44681         * modules/lseek (Depends-on): Likewise.
44682         * modules/mkdir-p (Depends-on): Likewise.
44683         * modules/open (Depends-on): Likewise.
44684         * modules/openat (Depends-on): Likewise.
44685         * modules/read-file (Depends-on): Likewise.
44686         * modules/renameat (Depends-on): Likewise.
44687         * modules/utimens (Depends-on): Likewise.
44689 2011-09-25  Bruno Haible  <bruno@clisp.org>
44691         linkat: Fix compilation on MSVC 9.
44692         * lib/linkat.c: Don't include <stdint.h>.
44694 2011-09-25  Bruno Haible  <bruno@clisp.org>
44696         fclose: Support for MSVC 9.
44697         * lib/fclose.c: Include msvc-inval.h.
44698         (fclose_nothrow): New function.
44699         (rpl_fclose): Use it.
44700         * modules/fclose (Depends-on): Add msvc-inval.
44701         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
44703 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
44705         dup2: minor simplifications
44706         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
44707         that it's a performance win.
44708         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
44709         ! defined __CYGWIN__)" to "ifdef F_GETFL".
44711 2011-09-24  Jim Meyering  <meyering@redhat.com>
44713         test-futimens: avoid a warning from gcc -Wshadow
44714         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
44715         to avoid a shadowing warning.
44717 2011-09-24  Bruno Haible  <bruno@clisp.org>
44719         fdopen: Support for MSVC 9.
44720         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
44721         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
44722         * lib/fdopen.c: Include msvc-inval.h.
44723         (fdopen_nothrow): New function.
44724         (rpl_fdopen): Use it.
44725         * modules/fdopen (Depends-on): Add msvc-inval.
44726         * modules/fclose-tests (Depends-on): Add fdopen.
44727         * modules/fflush-tests (Depends-on): Likewise.
44728         * modules/fgetc-tests (Depends-on): Likewise.
44729         * modules/fputc-tests (Depends-on): Likewise.
44730         * modules/fread-tests (Depends-on): Likewise.
44731         * modules/freopen-tests (Depends-on): Likewise.
44732         * modules/fseeko-tests (Depends-on): Likewise.
44733         * modules/ftello-tests (Depends-on): Likewise.
44734         * modules/fwrite-tests  (Depends-on): Likewise.
44735         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
44737 2011-09-24  Bruno Haible  <bruno@clisp.org>
44739         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
44740         * modules/fgetc-tests (Depends-on): Add unistd.
44741         * modules/fputc-tests (Depends-on): Likewise.
44742         * modules/fread-tests (Depends-on): Likewise.
44743         * modules/fwrite-tests (Depends-on): Likewise.
44745 2011-09-24  Bruno Haible  <bruno@clisp.org>
44747         dup: Simplify autoconf test.
44748         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
44749         on gl_MSVC_INVAL's result.
44751 2011-09-24  Bruno Haible  <bruno@clisp.org>
44753         Tests for function fwrite().
44754         * modules/fwrite-tests: New file.
44755         * tests/test-fwrite.c: New file.
44756         * modules/stdio-tests (Depends-on): Add fwrite-tests.
44758         Tests for function fread().
44759         * modules/fread-tests: New file.
44760         * tests/test-fread.c: New file.
44761         * modules/stdio-tests (Depends-on): Add fread-tests.
44763         Activate fputc tests.
44764         * modules/stdio-tests (Depends-on): Add fputc-tests.
44766         Enhance fgetc, fputc tests.
44767         * tests/test-fgetc.c (main): Also test the stream's error indicator.
44768         * tests/test-fputc.c (main): Likewise.
44770 2011-09-24  Bruno Haible  <bruno@clisp.org>
44772         write: Support for MSVC 9.
44773         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44774         is not 1.
44775         * lib/write.c (write_nothrow): New function.
44776         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
44777         not 1. Use write_nothrow.
44778         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
44779         invalid parameter handler.
44780         (gl_PREREQ_WRITE): New macro.
44781         * modules/write (Depends-on): Add msvc-inval.
44782         (configure.ac): Invoke gl_PREREQ_WRITE.
44783         * doc/posix-functions/write.texi: Mention the problem on MSVC.
44785 2011-09-24  Bruno Haible  <bruno@clisp.org>
44787         read: Fix last commit.
44788         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
44790 2011-09-24  Bruno Haible  <bruno@clisp.org>
44792         dup2: Fix last commit.
44793         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
44794         (rpl_dup2): Disable fcntl workaround on native Windows.
44796         sigprocmask: Make code safer.
44797         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
44798         section that changes macro definitions for this compilation unit.
44800 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
44802         dup2: clarify by coalescing Windows-specific material
44803         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
44804         "msvc-nothrow.h"' to the Windows-specific section, so that the
44805         Emacs source need not contain these include files.
44806         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
44807         Windows-specific fixes into this function rather than just the
44808         nothrow fix, as this shortens and clarifies the code.  Always
44809         define as a function, as that's a bit cleaner than having it be
44810         sometimes a function and sometimes a macro.
44811         (rpl_dup2): Move the Windows-specific stuff out of here and into
44812         ms_windows_dup2.  Don't protect the Haiku-related fix with
44813         "#if !defined __linux__", as the same code also works around
44814         a Linux kernel bug, and it doesn't add any system calls on any
44815         platform.  Add comment about FreeBSD 6.1.
44817         sigprocmask: move #include directive
44818         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
44819         Windows-specific section, so that the Emacs source need not
44820         contain msvc-inval.h.
44822 2011-09-23  Bruno Haible  <bruno@clisp.org>
44824         read: Support for MSVC 9.
44825         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
44826         is not 1.
44827         * lib/read.c (read_nothrow): New function.
44828         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
44829         read_nothrow.
44830         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
44831         invalid parameter handler.
44832         (gl_PREREQ_READ): New macro.
44833         * modules/read (Depends-on): Add msvc-inval.
44834         (configure.ac): Invoke gl_PREREQ_READ.
44835         * doc/posix-functions/read.texi: Mention the problem on MSVC.
44837 2011-09-23  Bruno Haible  <bruno@clisp.org>
44839         close: Support for MSVC 9.
44840         * lib/close.c: Include <errno.h>, msvc-inval.h.
44841         (close_nothrow): New function.
44842         (rpl_close): Use it.
44843         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
44844         invalid parameter handler.
44845         * modules/close (Depends-on): Add msvc-inval.
44846         * modules/dup2-tests (Depends-on): Add close.
44847         * modules/dup3-tests (Depends-on): Likewise.
44848         * modules/fcntl-tests (Depends-on): Likewise.
44849         * modules/spawn-pipe-tests (Depends-on): Likewise.
44850         * modules/unistd-safer-tests (Depends-on): Likewise.
44851         * doc/posix-functions/close.texi: Mention the problem on MSVC.
44853 2011-09-23  Bruno Haible  <bruno@clisp.org>
44855         New module 'dup'.
44856         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
44857         Allow replacement.
44858         * lib/dup.c: New file.
44859         * lib/fchdir.c (rpl_dup): Remove function.
44860         * m4/dup.m4: New file.
44861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
44862         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
44863         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
44864         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
44865         * modules/dup: New file.
44866         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
44867         'dup' module is in use.
44868         * modules/fdopendir (Depends-on): Add dup.
44869         * modules/fdutimensat-tests (Depends-on): Likewise.
44870         * modules/fts (Depends-on): Likewise.
44871         * modules/futimens-tests (Depends-on): Likewise.
44872         * modules/posix_spawnp-tests (Depends-on): Likewise.
44873         * modules/unistd-safer-tests (Depends-on): Likewise.
44874         * modules/utimens-tests (Depends-on): Likewise.
44875         * doc/posix-functions/dup.texi: Mention the new module and the problem
44876         on MSVC.
44878 2011-09-23  Bruno Haible  <bruno@clisp.org>
44880         getdtablesize: Support for MSVC 9.
44881         * lib/getdtablesize.c: Include msvc-inval.h.
44882         (_setmaxstdio_nothrow): New function.
44883         (_setmaxstdio): Redefine it.
44884         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
44885         * modules/getdtablesize (Depends-on): Add msvc-inval.
44886         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
44888 2011-09-23  Bruno Haible  <bruno@clisp.org>
44890         signal-h: Rename from signal.
44891         * modules/signal-h: Renamed from modules/signal.
44892         * modules/pthread_sigmask (Depends-on): Update.
44893         * modules/raise (Depends-on): Likewise.
44894         * modules/sigaction (Depends-on): Likewise.
44895         * modules/sigpipe (Depends-on): Likewise.
44896         * modules/sigprocmask (Depends-on): Likewise.
44897         * modules/sys_select (Depends-on): Likewise.
44898         * modules/signal-h-tests: Renamed from modules/signal-tests.
44899         (Files, Depends-on, Makefile.am): Update.
44900         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
44901         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
44902         (Files, Makefile.am): Update.
44903         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
44904         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
44905         * modules/signal: New placeholder file.
44906         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
44907         * doc/posix-headers/signal.texi: Update.
44908         * NEWS: Mention the change.
44910 2011-09-23  Bruno Haible  <bruno@clisp.org>
44912         sigprocmask: Avoid crashes through signal() on MSVC 9.
44913         * lib/sigprocmask.c: Include msvc-inval.h.
44914         (signal_nothrow): New function.
44915         (signal): Redefine it.
44916         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
44917         * modules/sigprocmask (Depends-on): Add msvc-inval.
44918         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
44920 2011-09-23  Bruno Haible  <bruno@clisp.org>
44922         Tests for module 'raise'.
44923         * modules/raise-tests: New file.
44924         * tests/test-raise.c: New file.
44926         raise: Support for MSVC.
44927         * lib/signal.in.h (raise): New declaration.
44928         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
44929         for native Windows platforms.
44930         * m4/raise.m4: New file.
44931         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
44932         HAVE_RAISE, REPLACE_RAISE.
44933         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
44934         REPLACE_RAISE.
44935         * modules/raise (Status, Notice): Remove fields.
44936         (Files): Add m4/raise.m4.
44937         (Depends-on): Add signal, msvc-inval.
44938         (configure.ac): Use the common idioms.
44939         (Maintainer): Add me.
44940         * tests/test-signal-c++.cc: Check the signature of raise.
44941         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
44943 2011-09-23  Bruno Haible  <bruno@clisp.org>
44945         pipe2: Fix compilation on pre-C99 compilers.
44946         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
44948 2011-09-23  Bruno Haible  <bruno@clisp.org>
44950         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
44951         * lib/msvc-nothrow.h: New file.
44952         * lib/msvc-nothrow.c: New file.
44953         * m4/msvc-nothrow.m4: New file.
44954         * modules/msvc-nothrow: New file.
44955         * lib/dup2.c: Include msvc-nothrow.h.
44956         (rpl_dup2): No need to protect _get_osfhandle call here.
44957         * lib/accept4.c: Include msvc-nothrow.h.
44958         * lib/error.c: Likewise.
44959         * lib/fcntl.c: Likewise.
44960         * lib/lseek.c: Likewise.
44961         * lib/nonblocking.c: Likewise.
44962         * lib/poll.c: Likewise.
44963         * lib/read.c: Likewise.
44964         * lib/select.c: Likewise.
44965         * lib/sockets.h: Likewise.
44966         * lib/sockets.c: Likewise.
44967         * lib/stdio-read.c: Likewise.
44968         * lib/stdio-write.c: Likewise.
44969         * lib/write.c: Likewise.
44970         * lib/w32sock.h: Likewise.
44971         * lib/w32spawn.h: Likewise.
44972         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
44973         * lib/fsync.c: Likewise.
44974         * lib/isapipe.c: Likewise.
44975         * modules/dup2 (Depends-on): Add msvc-nothrow.
44976         * modules/accept4 (Depends-on): Likewise.
44977         * modules/error (Depends-on): Likewise.
44978         * modules/fcntl (Depends-on): Likewise.
44979         * modules/lseek (Depends-on): Likewise.
44980         * modules/nonblocking (Depends-on): Likewise.
44981         * modules/poll (Depends-on): Likewise.
44982         * modules/read (Depends-on): Likewise.
44983         * modules/select (Depends-on): Likewise.
44984         * modules/sockets (Depends-on): Likewise.
44985         * modules/sigpipe (Depends-on): Likewise.
44986         * modules/write (Depends-on): Likewise.
44987         * modules/accept (Depends-on): Likewise.
44988         * modules/bind (Depends-on): Likewise.
44989         * modules/connect (Depends-on): Likewise.
44990         * modules/gethostname (Depends-on): Likewise.
44991         * modules/getpeername (Depends-on): Likewise.
44992         * modules/getsockname (Depends-on): Likewise.
44993         * modules/getsockopt (Depends-on): Likewise.
44994         * modules/ioctl (Depends-on): Likewise.
44995         * modules/listen (Depends-on): Likewise.
44996         * modules/recv (Depends-on): Likewise.
44997         * modules/recvfrom (Depends-on): Likewise.
44998         * modules/send (Depends-on): Likewise.
44999         * modules/sendto (Depends-on): Likewise.
45000         * modules/setsockopt (Depends-on): Likewise.
45001         * modules/shutdown (Depends-on): Likewise.
45002         * modules/socket (Depends-on): Likewise.
45003         * modules/execute (Depends-on): Likewise.
45004         * modules/spawn-pipe (Depends-on): Likewise.
45005         * modules/flock (Depends-on): Likewise.
45006         * modules/fsync (Depends-on): Likewise.
45007         * modules/isapipe (Depends-on): Likewise.
45008         * tests/test-cloexec.c: Include msvc-nothrow.h.
45009         * tests/test-dup-safer.c: Likewise.
45010         * tests/test-dup2.c: Likewise.
45011         * tests/test-dup3.c: Likewise.
45012         * tests/test-fcntl.c: Likewise.
45013         * tests/test-pipe.c: Likewise.
45014         * tests/test-pipe2.c: Likewise.
45015         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
45016         * modules/unistd-safer-tests (Depends-on): Likewise.
45017         * modules/dup2-tests (Depends-on): Likewise.
45018         * modules/dup3-tests (Depends-on): Likewise.
45019         * modules/fcntl-tests (Depends-on): Likewise.
45020         * modules/pipe-posix-tests (Depends-on): Likewise.
45021         * modules/pipe2-tests (Depends-on): Likewise.
45023 2011-09-23  Bruno Haible  <bruno@clisp.org>
45025         dup2: Make code more maintainable.
45026         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
45027         (rpl_dup2): Use it.
45028         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
45029         * modules/dup2 (configure.ac): Invoke it.
45030         Reported by Paul Eggert.
45032 2011-09-23  Bruno Haible  <bruno@clisp.org>
45034         msvc-inval: Fix compilation error.
45035         * lib/msvc-inval.h: Include <excpt.h>.
45037 2011-09-23  Bruno Haible  <bruno@clisp.org>
45039         mkdir: Tweak for MSVC 9.
45040         * lib/sys_stat.in.h: Update comments.
45041         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
45043         Tests for module 'chdir'.
45044         * modules/chdir-tests: New file.
45045         * tests/test-chdir.c: New file.
45047         New module 'chdir'.
45048         * modules/chdir: New file.
45049         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
45050         (chdir): New declaration.
45051         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
45052         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
45053         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
45054         * tests/test-unistd-c++.cc: Check signature of chdir.
45055         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
45056         * modules/chdir-long (Depends-on): Add chdir.
45057         * modules/fchdir (Depends-on): Likewise.
45058         * modules/rename (Depends-on): Likewise.
45059         * modules/savewd (Depends-on): Likewise.
45061         rmdir: Support for mingw, MSVC 9.
45062         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
45063         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
45065         getcwd: Tweak for MSVC 9.
45066         * lib/unistd.in.h: Update comments.
45067         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
45069 2011-09-22  Bruno Haible  <bruno@clisp.org>
45071         strerror_r-posix: Avoid a link error on MSVC.
45072         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
45073         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
45075 2011-09-22  Bruno Haible  <bruno@clisp.org>
45077         select: Avoid link errors on MSVC.
45078         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
45079         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
45080         * modules/pselect (Link): Likewise.
45081         * NEWS: Mention the change.
45082         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
45083         test-select-stdin against $(LIB_SELECT).
45084         * modules/pselect-tests (Makefile.am): Link test-pselect against
45085         $(LIB_SELECT).
45087 2011-09-22  Bruno Haible  <bruno@clisp.org>
45089         select: Avoid compilation error on MSVC.
45090         * lib/select.c: Don't include <stdbool.h>.
45092 2011-09-21  Bruno Haible  <bruno@clisp.org>
45094         Consolidate all uses of PATH_MAX in *.m4 files.
45095         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
45096         macros.
45097         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
45098         and gl_PATHMAX_SNIPPET.
45099         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
45100         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45101         * modules/chdir-long (Files): Add m4/pathmax.m4.
45102         * modules/getcwd (Files): Likewise.
45104 2011-09-21  Bruno Haible  <bruno@clisp.org>
45106         ftruncate: Un-deprecate, concentrate on Win32 support.
45107         * modules/ftruncate (Status, Notice): Remove sections.
45108         (Depends-on): Add largefile.
45109         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
45110         non-mingw platforms.
45111         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
45112         include <io.h>.
45113         * modules/perror-tests (Depends-on): Add ftruncate.
45114         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
45115         'ftruncate' module.
45117 2011-09-21  Bruno Haible  <bruno@clisp.org>
45119         Add dependencies to new dirent related modules.
45120         * modules/opendir (Depends-on): Add closedir.
45121         * modules/getcwd (Depends-on): Add opendir, closedir.
45122         * modules/dirent-safer-tests (Depends-on): Likewise.
45123         * modules/fdopendir-tests (Depends-on): Likewise.
45124         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
45125         * modules/renameat-tests (Depends-on): Likewise.
45127 2011-09-21  Bruno Haible  <bruno@clisp.org>
45129         opendir: Avoid compilation error on mingw.
45130         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
45131         * modules/opendir (Depends-on): Add unistd.
45133 2011-09-21  Bruno Haible  <bruno@clisp.org>
45135         ftruncate tests: Avoid a test failure on mingw.
45136         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
45138 2011-09-21  Bruno Haible  <bruno@clisp.org>
45140         select tests: Avoid test failures on OSF/1 5.1 and mingw.
45141         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
45142         native Windows.
45144 2011-09-21  Bruno Haible  <bruno@clisp.org>
45146         New module 'fdopen'.
45147         * lib/stdio.in.h (fdopen): New declaration.
45148         * lib/fdopen.c: New file.
45149         * m4/fdopen.m4: New file.
45150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
45151         REPLACE_FDOPEN.
45152         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
45153         REPLACE_FDOPEN.
45154         * modules/fdopen: New file.
45155         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
45156         * tests/test-stdio-c++.cc: Check signature of fdopen.
45157         * doc/posix-functions/fdopen.texi: Mention the new module.
45159 2011-09-21  Bruno Haible  <bruno@clisp.org>
45161         unlockpt tests: Avoid test failure on NetBSD 5.1.
45162         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
45163         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
45165 2011-09-21  Bruno Haible  <bruno@clisp.org>
45167         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
45168         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
45169         * tests/test-getlogin_r.c (main): Likewise.
45171 2011-09-20  Bruno Haible  <bruno@clisp.org>
45173         time tests: Don't require pid_t.
45174         * doc/posix-headers/time.texi: Revert last change.
45175         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
45176         * tests/test-time.c: Comment out the check for pid_t.
45178 2011-09-20  Bruno Haible  <bruno@clisp.org>
45180         fsync tests: Avoid a test failure on mingw.
45181         * tests/test-fsync.c (main): Allow a failure with EIO.
45183 2011-09-20  Bruno Haible  <bruno@clisp.org>
45185         euidaccess: Update comments.
45186         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
45188 2011-09-20  Bruno Haible  <bruno@clisp.org>
45190         Ensure EBADF returns for socket functions on mingw.
45191         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
45192         descriptor is invalid.
45193         * lib/bind.c (rpl_bind): Likewise.
45194         * lib/connect.c (rpl_connect): Likewise.
45195         * lib/getpeername.c (rpl_getpeername): Likewise.
45196         * lib/getsockname.c (rpl_getsockname): Likewise.
45197         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45198         * lib/listen.c (rpl_listen): Likewise.
45199         * lib/recv.c (rpl_recv): Likewise.
45200         * lib/recvfrom.c (rpl_recvfrom): Likewise.
45201         * lib/send.c (rpl_send): Likewise.
45202         * lib/sendto.c (rpl_sendto): Likewise.
45203         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45204         * lib/shutdown.c (rpl_shutdown): Likewise.
45206 2011-09-20  Bruno Haible  <bruno@clisp.org>
45208         select tests: EBADF tests.
45209         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
45210         test_bad_fd): New functions.
45211         (test_function): Invoke also test_bad_fd.
45213 2011-09-20  Bruno Haible  <bruno@clisp.org>
45215         Tests for module 'posix_spawn_file_actions_addopen.
45216         * modules/posix_spawn_file_actions_addopen-tests: New file.
45217         * tests/test-posix_spawn_file_actions_addopen.c: New file.
45219         Tests for module 'posix_spawn_file_actions_adddup2'.
45220         * modules/posix_spawn_file_actions_adddup2-tests: New file.
45221         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
45223         Tests for module 'posix_spawn_file_actions_addclose'.
45224         * modules/posix_spawn_file_actions_addclose-tests: New file.
45225         * tests/test-posix_spawn_file_actions_addclose.c: New file.
45227 2011-09-20  Bruno Haible  <bruno@clisp.org>
45229         Tests for module 'unlockpt'.
45230         * modules/unlockpt-tests: New file.
45231         * tests/test-unlockpt.c: New file.
45232         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
45234         Tests for module 'grantpt'.
45235         * modules/grantpt-tests: New file.
45236         * tests/test-grantpt.c: New file.
45237         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
45239 2011-09-20  Bruno Haible  <bruno@clisp.org>
45241         freopen tests: EBADF tests.
45242         * tests/test-freopen.c: Include errno.h, unistd.h.
45243         (main): Add tests for EBADF, commented out for the moment.
45245         fclose tests: EBADF tests.
45246         * tests/test-fclose.c (main): Add tests for EBADF.
45248         fflush tests: EBADF tests.
45249         * tests/test-fflush.c: Include errno.h, macros.h.
45250         (main): Add tests for EBADF.
45252         ftello tests: EBADF tests.
45253         * tests/test-ftello4.sh: New file.
45254         * tests/test-ftello4.c: New file.
45255         * modules/ftello-tests (Files): Add them.
45256         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
45258         fseeko tests: EBADF tests.
45259         * tests/test-fseeko4.sh: New file.
45260         * tests/test-fseeko4.c: New file.
45261         * modules/fseeko-tests (Files): Add them.
45262         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
45264         Tests for function fputc().
45265         * modules/fputc-tests: New file.
45266         * tests/test-fputc.c: New file.
45267         * modules/stdio-tests (Depends-on): Add fputc-tests.
45269         Tests for function fgetc().
45270         * modules/fgetc-tests: New file.
45271         * tests/test-fgetc.c: New file.
45272         * modules/stdio-tests (Depends-on): Add fgetc-tests.
45274         Tests for function fdopen().
45275         * modules/fdopen-tests: New file.
45276         * tests/test-fdopen.c: New file.
45277         * modules/stdio-tests (Depends-on): Add fdopen-tests.
45279         Tests for module 'vdprintf'.
45280         * modules/vdprintf-tests: New file.
45281         * tests/test-vdprintf.c: New file.
45283         Tests for module 'dprintf'.
45284         * modules/dprintf-tests: New file.
45285         * tests/test-dprintf.c: New file.
45287 2011-09-20  Bruno Haible  <bruno@clisp.org>
45289         Tests for module 'ioctl'.
45290         * modules/ioctl-tests: New file.
45291         * tests/test-ioctl.c: New file.
45293 2011-09-20  Bruno Haible  <bruno@clisp.org>
45295         fcntl tests: EBADF tests.
45296         * tests/test-fcntl.c (main): Add more tests for EBADF.
45298 2011-09-20  Bruno Haible  <bruno@clisp.org>
45300         utimensat tests: EBADF tests.
45301         * tests/test-utimensat.c (main): Add tests for EBADF.
45303         renameat tests: EBADF tests.
45304         * tests/test-renameat.c (main): Add tests for EBADF.
45306         mkfifoat tests: EBADF tests.
45307         * tests/test-mkfifoat.c (main): Add tests for EBADF.
45309         readlinkat tests: EBADF tests.
45310         * tests/test-readlinkat.c (main): Add tests for EBADF.
45312         symlinkat tests: EBADF tests.
45313         * tests/test-symlinkat.c (main): Add tests for EBADF.
45315         linkat tests: EBADF tests.
45316         * tests/test-linkat.c (main): Add tests for EBADF.
45318         Tests for module 'faccessat'.
45319         * modules/faccessat-tests: New file.
45320         * tests/test-faccessat.c: New file.
45322         fdopendir tests: EBADF tests.
45323         * tests/test-fdopendir.c (main): Add more tests for EBADF.
45325         openat tests: EBADF tests.
45326         * tests/test-fchownat.c (main): Add tests for EBADF.
45327         * tests/test-fstatat.c (main): Likewise.
45328         * tests/test-mkdirat.c (main): Likewise.
45329         * tests/test-openat.c (main): Likewise.
45330         * tests/test-unlinkat.c (main): Likewise.
45331         * tests/test-fchmodat.c: New file.
45332         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
45333         (Makefile.am): Also run 'test-fchmodat'.
45335 2011-09-20  Bruno Haible  <bruno@clisp.org>
45337         utimens, futimens, fdutimensat tests: EBADF tests.
45338         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
45340         Tests for function fstat().
45341         * modules/fstat-tests: New file.
45342         * tests/test-fstat.c: New file.
45343         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
45345 2011-09-20  Bruno Haible  <bruno@clisp.org>
45347         test-ttyname_r tests: EBADF tests.
45348         * tests/test-ttyname_r.c (main): Add tests for EBADF.
45350         Tests for module 'isatty'.
45351         * modules/isatty-tests: New file.
45352         * tests/test-isatty.c: New file.
45354         Tests for module 'write'.
45355         * modules/write-tests: New file.
45356         * tests/test-write.c: New file.
45358         Tests for module 'read'.
45359         * modules/read-tests: New file.
45360         * tests/test-read.c: New file.
45362         pwrite tests: EBADF tests.
45363         * tests/test-pwrite.c (main): Add tests for EBADF.
45365         pread tests: EBADF tests.
45366         * tests/test-pread.c (main): Add tests for EBADF.
45368         lseek tests: EBADF tests.
45369         * tests/test-lseek.c (main): Add more tests for EBADF.
45371         Tests for module 'ftruncate'.
45372         * modules/ftruncate-tests: New file.
45373         * tests/test-ftruncate.sh: New file.
45374         * tests/test-ftruncate.c: New file.
45376         fsync tests: EBADF tests.
45377         * tests/test-fsync.c (main): Add more tests for EBADF.
45379         fdatasync tests: EBADF tests.
45380         * tests/test-fdatasync.c (main): Add more tests for EBADF.
45382         Tests for module 'fchown'.
45383         * modules/fchown-tests: New file.
45384         * tests/test-fchown.c: New file.
45386         Tests for module 'fchmod'.
45387         * modules/fchmod-tests: New file.
45388         * tests/test-fchmod.c: New file.
45390         fchdir tests: EBADF tests.
45391         * tests/test-fchdir.c (main): Add more tests for EBADF.
45393         dup2 tests: EBADF tests.
45394         * tests/test-dup2.c (main): Add more tests for EBADF.
45396         Tests for module 'dup'.
45397         * modules/dup-tests: New file.
45398         * tests/test-dup.c: New file.
45400         Tests for module 'close'.
45401         * modules/close-tests: New file.
45402         * tests/test-close.c: New file.
45404 2011-09-20  Bruno Haible  <bruno@clisp.org>
45406         Tests for module 'shutdown'.
45407         * modules/shutdown-tests: New file.
45408         * tests/test-shutdown.c: New file.
45410         Tests for module 'setsockopt'.
45411         * modules/setsockopt-tests: New file.
45412         * tests/test-setsockopt.c: New file.
45414         Tests for module 'sendto'.
45415         * modules/sendto-tests: New file.
45416         * tests/test-sendto.c: New file.
45418         Tests for module 'send'.
45419         * modules/send-tests: New file.
45420         * tests/test-send.c: New file.
45422         Tests for module 'recvfrom'.
45423         * modules/recvfrom-tests: New file.
45424         * tests/test-recvfrom.c: New file.
45426         Tests for module 'recv'.
45427         * modules/recv-tests: New file.
45428         * tests/test-recv.c: New file.
45430         Tests for module 'listen'.
45431         * modules/listen-tests: New file.
45432         * tests/test-listen.c: New file.
45434         Tests for module 'getsockopt'.
45435         * modules/getsockopt-tests: New file.
45436         * tests/test-getsockopt.c: New file.
45438         Tests for module 'getsockname'.
45439         * modules/getsockname-tests: New file.
45440         * tests/test-getsockname.c: New file.
45442         Tests for module 'getpeername'.
45443         * modules/getpeername-tests: New file.
45444         * tests/test-getpeername.c: New file.
45446         Tests for module 'connect'.
45447         * modules/connect-tests: New file.
45448         * tests/test-connect.c: New file.
45450         Tests for module 'bind'.
45451         * modules/bind-tests: New file.
45452         * tests/test-bind.c: New file.
45454         accept4 tests: Fix for native Windows.
45455         * tests/test-accept4.c: Include sockets.h.
45456         (main): Invoke gl_sockets_startup.
45457         * modules/accept4-tests (Depends-on): Add sockets.
45459         accept tests: Fix for native Windows.
45460         * tests/test-accept.c: Include sockets.h.
45461         (main): Invoke gl_sockets_startup.
45462         * modules/accept-tests (Depends-on): Add sockets.
45464 2011-09-19  Bruno Haible  <bruno@clisp.org>
45466         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
45467         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
45468         do...while(0).
45469         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
45470         Suggested by Paul Eggert.
45472 2011-09-19  Bruno Haible  <bruno@clisp.org>
45474         sched: Ensure pid_t is defined.
45475         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
45476         not define pid_t.
45477         * lib/sched.in.h: Include <sys/types.h>.
45478         * doc/posix-headers/sched.texi: Mention the pid_t problem.
45479         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45481 2011-09-19  Bruno Haible  <bruno@clisp.org>
45483         msvc-inval: Ensure the entire expansion is a single statement.
45484         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
45485         of braces.
45487 2011-09-19  Jim Meyering  <meyering@redhat.com>
45489         tests: use printf, not echo in init.sh's warn_ function
45490         * tests/init.sh (warn_): Use printf, not echo.  The latter would
45491         misbehave when given strings containing a backslash or starting
45492         with e.g., -n.  James Youngman suggested setting IFS.
45494 2011-09-19  Eric Blake  <eblake@redhat.com>
45496         futimens: enhance test
45497         * tests/test-futimens.h (test_futimens): Also check for EBADF on
45498         closed non-negative fd.
45500         date: accept 'hence' as opposite of 'ago'
45501         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
45502         * tests/test-parse-datetime.c (main): Enhance test.
45503         Suggested by Jesse Wilson.
45505 2011-09-19  Jim Meyering  <meyering@redhat.com>
45507         getcwd: don't fail in a deep directory on a system without openat
45508         Before this change, getcwd would fail when called from a directory
45509         of depth PATH_MAX / 3 or greater.  That was due to the fact that
45510         the non-openat implementation used "..", "../..", "../../..", etc.
45511         to access ancestor directories.  With too many, that string would
45512         be longer than PATH_MAX.
45513         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
45514         using gnulib's openat replacement.
45515         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
45516         we're using the replacement function.
45518 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
45520         maint.mk: avoid warnings from perl about missing files
45521         * top/maint.mk (def_sym_regex): Ignore files listed in
45522         $(gl_other_headers_) that do not exist, say because a project
45523         does not use a corresponding module.
45525 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
45527         stat: use pathmax.h only if needed
45528         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
45529         This is better for Emacs, which does not have a mingw port and
45530         therefore can avoid the pathmax module.
45532         utimens: remove dependency on dup2
45533         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
45534         to work around the Linux kernel bug.
45535         * modules/utimens (Depends-on): Remove dup2.
45537 2011-09-18  Bruno Haible  <bruno@clisp.org>
45539         inet_ntop, inet_pton: Look for it also in libresolv.
45540         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
45541         libnsl, search for it in libresolv.
45542         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45543         Needed on Solaris 7.
45545 2011-09-18  Bruno Haible  <bruno@clisp.org>
45547         accept, accept4 tests: Avoid link error on Solaris.
45548         * modules/accept-tests (Makefile.am): Link test-accept against
45549         $(LIBSOCKET).
45550         * modules/accept4-tests (Makefile.am): Link test-accept4 against
45551         $(LIBSOCKET).
45553         accept4: Avoid link error on Solaris.
45554         * modules/accept4 (Link): New section.
45556         socket functions: Avoid link errors on Solaris.
45557         * modules/accept (Depends-on): Add socketlib.
45558         (Link): New section.
45559         * modules/bind (Depends-on): Add socketlib.
45560         (Link): New section.
45561         * modules/connect (Depends-on): Add socketlib.
45562         (Link): New section.
45563         * modules/getpeername (Depends-on): Add socketlib.
45564         (Link): New section.
45565         * modules/getsockname (Depends-on): Add socketlib.
45566         (Link): New section.
45567         * modules/getsockopt (Depends-on): Add socketlib.
45568         (Link): New section.
45569         * modules/listen (Depends-on): Add socketlib.
45570         (Link): New section.
45571         * modules/recv (Depends-on): Add socketlib.
45572         (Link): New section.
45573         * modules/recvfrom (Depends-on): Add socketlib.
45574         (Link): New section.
45575         * modules/send (Depends-on): Add socketlib.
45576         (Link): New section.
45577         * modules/sendto (Depends-on): Add socketlib.
45578         (Link): New section.
45579         * modules/setsockopt (Depends-on): Add socketlib.
45580         (Link): New section.
45581         * modules/shutdown (Depends-on): Add socketlib.
45582         (Link): New section.
45583         * modules/socket (Depends-on): Add socketlib.
45584         (Link): New section.
45586 2011-09-18  Bruno Haible  <bruno@clisp.org>
45588         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
45589         * tests/test-ptsname.c (main): Terminate the test if it takes longer
45590         than 5 seconds.
45591         * modules/ptsname-tests (configure.ac): Test for alarm.
45593 2011-09-18  Bruno Haible  <bruno@clisp.org>
45595         posix_spawn_file_actions_add*: Fix module dependencies.
45596         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
45597         posix_spawn_file_actions_init.
45598         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
45599         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
45601 2011-09-18  Bruno Haible  <bruno@clisp.org>
45603         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
45604         * tests/test-rename.h (test_rename): Allow error code EEXIST.
45605         * tests/test-renameat.c (main): Likewise.
45607 2011-09-18  Bruno Haible  <bruno@clisp.org>
45609         Tests for module 'accept4'.
45610         * modules/accept4-tests: New file.
45611         * tests/test-accept4.c: New file.
45613 2011-09-18  Bruno Haible  <bruno@clisp.org>
45615         Tests for module 'accept'.
45616         * modules/accept-tests: New file.
45617         * tests/test-accept.c: New file.
45619 2011-09-18  Bruno Haible  <bruno@clisp.org>
45621         dup2: Support for MSVC.
45622         * lib/dup2.c: Include msvc-inval.h.
45623         (rpl_dup2): Handle invalid parameter notifications during dup2 and
45624         _get_osfhandle calls.
45625         * modules/dup2 (Depends-on): Add msvc-inval.
45626         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
45628         New module 'msvc-inval'.
45629         * lib/msvc-inval.h: New file.
45630         * lib/msvc-inval.c: New file.
45631         * m4/msvc-inval.m4: New file.
45632         * modules/msvc-inval: New file.
45634 2011-09-17  Bruno Haible  <bruno@clisp.org>
45636         Tests for module 'pclose'.
45637         * modules/pclose-tests: New file.
45639         New module 'pclose'.
45640         * lib/stdio.in.h (pclose): New declaration.
45641         * lib/pclose.c: New file.
45642         * m4/pclose.m4: New file.
45643         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
45644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
45645         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
45646         * modules/pclose: New file.
45647         * modules/popen-tests (Depends-on): Add pclose.
45648         * modules/popen-safer-tests (Depends-on): Likewise.
45649         * doc/posix-functions/pclose.texi: Mention the new module.
45651 2011-09-17  Bruno Haible  <bruno@clisp.org>
45653         popen: Support for MSVC.
45654         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
45655         * lib/popen.c (popen): Provide alternate definition for native Windows.
45656         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
45657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
45658         * modules/popen (Depends-on, configure.ac): Update condition.
45659         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
45660         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
45661         fixed.
45663 2011-09-17  Bruno Haible  <bruno@clisp.org>
45665         isnanl, isnand, isnanf: Work around MSVC bug.
45666         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
45668 2011-09-17  Bruno Haible  <bruno@clisp.org>
45670         sys_socket tests: Fix recent mistake.
45671         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
45673 2011-09-17  Bruno Haible  <bruno@clisp.org>
45675         putenv: Support for MSVC.
45676         * modules/putenv (Depends-on): Add environ.
45677         * lib/putenv.c (environ): Disable declaration.
45678         * lib/unistd.in.h: Update comment.
45680 2011-09-17  Bruno Haible  <bruno@clisp.org>
45682         math: Avoid macro redefinition warnings on MSVC.
45683         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
45684         Undefine before redefining.
45686 2011-09-17  Bruno Haible  <bruno@clisp.org>
45688         doc: Mention functions which are declared as macros.
45689         * doc/posix-functions/*[fl].texi: Mention that some functions are
45690         defined as macros with arguments only.
45692 2011-09-17  Bruno Haible  <bruno@clisp.org>
45694         Add dependencies to new dirent related modules.
45695         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
45696         * modules/fts (Depends-on): Likewise.
45697         * modules/glob (Depends-on): Likewise.
45698         * modules/savedir (Depends-on): Likewise.
45699         * modules/scandir (Depends-on): Likewise.
45700         * modules/dirent-safer (Depends-on): Add opendir, closedir.
45701         * modules/fdopendir (Depends-on): Add opendir.
45703 2011-09-17  Bruno Haible  <bruno@clisp.org>
45705         inet_pton: Support for MSVC on Windows Vista or newer.
45706         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
45707         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
45708         HAVE_DECL_INET_PTON is defined.
45709         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45710         On platforms with <winsock2.h>, test whether inet_pton is declared in
45711         <ws2tcpip.h>. If so, arrange to replace it.
45712         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45713         REPLACE_INET_PTON.
45714         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
45715         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
45716         (Depends-on, configure.ac): Update condition.
45717         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
45719 2011-09-17  Bruno Haible  <bruno@clisp.org>
45721         inet_ntop: Support for MSVC on Windows Vista or newer.
45722         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
45723         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
45724         HAVE_DECL_INET_NTOP is defined.
45725         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
45726         On platforms with <winsock2.h>, test whether inet_ntop is declared in
45727         <ws2tcpip.h>. If so, arrange to replace it.
45728         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
45729         REPLACE_INET_NTOP.
45730         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
45731         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
45732         (Depends-on, configure.ac): Update condition.
45733         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
45735 2011-09-16  Eric Blake  <eblake@redhat.com>
45737         test-fsync: yet another enhancement
45738         * tests/test-fsync.c (main): Also test behavior on read-only text
45739         file.
45741 2011-09-16  Bruno Haible  <bruno@clisp.org>
45743         Enhance fsync, fdatasync tests.
45744         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
45745         * tests/test-fdatasync.c (main): Likewise.
45747 2011-09-16  Bruno Haible  <bruno@clisp.org>
45749         Support for MSVC compiler: Ensure mode_t gets defined.
45750         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
45751         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
45752         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
45753         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
45754         * tests/test-fcntl-h.c: Check that mode_t is defined.
45755         * tests/test-sys_stat.c: Likewise.
45756         * tests/test-sys_types.c: Likewise.
45757         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
45758         * doc/posix-headers/sys_stat.texi: Likewise.
45759         * doc/posix-headers/sys_types.texi: Likewise.
45761 2011-09-16  Bruno Haible  <bruno@clisp.org>
45763         sys_stat: Support for MSVC.
45764         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
45765         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
45766         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
45767         MSVC.
45769 2011-09-16  Bruno Haible  <bruno@clisp.org>
45771         Support for MSVC compiler: Ensure off_t gets defined.
45772         * lib/unistd.in.h: Include <sys/types.h>.
45773         * tests/test-fcntl-h.c: Check that off_t is defined.
45774         * tests/test-sys_stat.c: Likewise.
45775         * tests/test-sys_types.c: Likewise.
45777 2011-09-16  Eric Blake  <eblake@redhat.com>
45779         fdatasync: port to Solaris
45780         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
45781         * modules/fdatasync (Link): Document it.
45782         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
45784         fdatasync: port to MacOS X 10.7
45785         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
45786         declared.
45787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
45788         * modules/unistd (Makefile.am): Substitute it.
45789         * lib/unistd.in.h (fdatasync): Declare on MacOS.
45790         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
45792         fdatasync: minor improvements
45793         * modules/fdatasync (Depends-on): Add condition for fsync.
45794         * lib/fdatasync.c (fdatasync): Add comment.
45795         * tests/test-unistd-c++.cc: Test fdatasync.
45797         unistd: update refs to newer POSIX
45798         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
45799         Suggested by Bruno Haible.
45801         fdatasync: new module
45802         * modules/fsync (Description): Document difference to fdatasync.
45803         * modules/fdatasync: New module.
45804         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
45805         * lib/fdatasync.c (fdatasync): Likewise.
45806         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
45807         defaults.
45808         * modules/unistd (Makefile.am): Set witnesses.
45809         * lib/unistd.in.h (fdatasync): Declare.
45810         * MODULES.html.sh: Document it.
45811         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
45812         * modules/fdatasync-tests: New test.
45813         * tests/test-fdatasync.c: Likewise.
45815 2011-09-16  Eric Blake  <eblake@redhat.com>
45817         test-fsync: enhance tests
45818         * modules/fsync-tests (Depends-on): Add errno, for mingw.
45819         * tests/test-fsync.c (main): Enhance test.
45821 2011-09-15  Bruno Haible  <bruno@clisp.org>
45823         Support for MSVC compiler: Ensure ssize_t gets defined.
45824         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
45825         * doc/posix-headers/stdio.texi: Likewise.
45826         * modules/stdio (Depends-on): Add ssize_t.
45827         * modules/sys_socket (Depends-on): Likewise.
45828         * modules/sys_types (Depends-on): Likewise.
45829         * modules/sys_uio (Depends-on): Likewise.
45830         * modules/unistd (Depends-on): Likewise.
45831         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
45832         * tests/test-sys_types.c: Check that ssize_t is defined.
45834 2011-09-14  Bruno Haible  <bruno@clisp.org>
45836         Avoid using #, the m4 comment starter character, near brackets.
45837         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
45838         delimiter character in sed expressions.
45839         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45840         Suggested by Eric Blake.
45842         Properly quote AC_CHECK_DECLS' 4th argument.
45843         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
45844         argument.
45845         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45846         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
45847         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45848         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
45849         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45850         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
45851         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
45852         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
45853         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
45854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45855         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
45856         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45857         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45858         * m4/isinf.m4 (gl_ISINF): Likewise.
45859         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45860         * m4/readutmp.m4 (gl_READUTMP): Likewise.
45861         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
45862         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
45863         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
45864         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
45865         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45866         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
45867         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
45868         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45869         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45870         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
45872         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45874         Reported by Eric Blake.
45876         Properly quote AC_CHECK_DECL's 4th argument.
45877         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
45878         argument.
45879         * m4/argp.m4 (gl_ARGP): Likewise.
45880         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45881         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45882         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45883         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45884         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
45885         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
45886         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
45887         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45888         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45889         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45890         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45891         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45892         Reported by Eric Blake.
45894 2011-09-14  Eric Blake  <eblake@redhat.com>
45896         opendir: avoid compile warning
45897         * lib/opendir.c (includes): Always include errno.h.
45898         Reported by Tatsuro MATSUOKA.
45900 2011-09-14  Jim Meyering  <meyering@redhat.com>
45902         maint.mk: sc_tight_scope: propagate failure from sub-make
45903         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
45904         Reported by Martin von Gagern.
45906 2011-09-13  Bruno Haible  <bruno@clisp.org>
45908         tempname: Support for MSVC.
45909         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
45910         MSVC.
45911         * modules/tempname (Depends-on): Add fcntl-h.
45913 2011-09-13  Bruno Haible  <bruno@clisp.org>
45915         sys_time: Support for MSVC.
45916         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
45917         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
45918         include <winsock2.h>.
45919         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
45920         function declarations that collide with POSIX.
45921         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
45922         (Makefile.am): Substitute HAVE_WINSOCK2_H.
45924 2011-09-13  Bruno Haible  <bruno@clisp.org>
45926         stat: Support for MSVC.
45927         * lib/stat.c: Include pathmax.h.
45928         * modules/stat (Depends-on): Add pathmax.
45930         pathmax: Support for native Windows.
45931         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
45933 2011-09-12  Bruno Haible  <bruno@clisp.org>
45935         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
45936         * lib/dirent.in.h (struct dirent): New type.
45937         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
45938         DT_WHT): New macros.
45939         (DIR): New type.
45940         (opendir, closedir): Declare only if the module 'opendir' is enabled.
45941         (readdir, rewinddir): New declarations.
45942         * lib/dirent-private.h: New file.
45943         * lib/opendir.c: New file.
45944         * lib/readdir.c: New file.
45945         * lib/rewinddir.c: New file.
45946         * lib/closedir.c: New file.
45947         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
45948         * m4/opendir.m4: New file.
45949         * m4/readdir.m4: New file.
45950         * m4/rewinddir.m4: New file.
45951         * m4/closedir.m4: New file.
45952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
45953         REPLACE_CLOSEDIR here.
45954         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
45955         readdir, rewinddir are declared.
45956         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
45957         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
45958         HAVE_REWINDDIR, HAVE_CLOSEDIR.
45959         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
45960         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
45961         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
45962         * modules/opendir: New file.
45963         * modules/readdir: New file.
45964         * modules/rewinddir: New file.
45965         * modules/closedir: New file.
45966         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
45967         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
45968         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
45969         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
45970         * NEWS: Mention the 'fchdir' change.
45972 2011-09-11  Bruno Haible  <bruno@clisp.org>
45974         asm-underscore.m4: Support for MSVC.
45975         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
45976         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
45978 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
45980         Doc about crypt functions.
45981         * doc/posix-functions/crypt.texi: Expand range of glibc versions
45982         needing for _GNU_SOURCE to get crypt.
45983         * doc/posix-functions/encrypt.texi: Likewise.
45984         * doc/posix-functions/setkey.texi: Likewise.
45986 2011-09-11  Bruno Haible  <bruno@clisp.org>
45988         doc: Update regarding MSVC 9.
45989         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
45990         tested".
45991         * doc/posix-functions/*.texi: Update with info about MSVC 9.
45992         * doc/posix-headers/*.texi: Likewise.
45993         * doc/pastposix-functions/*.texi: Likewise.
45994         * doc/glibc-functions/*.texi: Likewise.
45995         * doc/glibc-headers/*.texi: Likewise.
45997 2011-09-11  Bruno Haible  <bruno@clisp.org>
45999         unistd et al.: Don't assume <unistd.h> exists.
46000         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
46001         does not exist.
46002         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
46003         exist. But include <stdlib.h>.
46004         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
46005         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
46006         symlink() does not exist.
46007         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
46008         include <io.h> instead.
46009         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
46010         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
46011         include <direct.h> instead.
46012         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
46013         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
46014         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
46015         <io.h> instead.
46016         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
46017         correctly if the system does not have hard links.
46018         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
46019         <direct.h> instead.
46020         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
46021         it when looking for function declarations.
46022         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
46023         <direct.h> and <io.h> instead.
46024         * doc/posix-headers/unistd.texi: More details about MSVC problem.
46026 2011-09-11  Bruno Haible  <bruno@clisp.org>
46028         strcase: Support for MSVC.
46029         * modules/strcase (Status, Notice): Remove obsoletion mark.
46030         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
46031         * doc/posix-functions/strncasecmp.texi: Likewise.
46033         strings: Don't assume <strings.h> exists.
46034         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
46035         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
46036         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
46037         * doc/posix-headers/strings.texi: Mention the MSVC problem.
46039 2011-09-11  Bruno Haible  <bruno@clisp.org>
46041         dirent: Don't assume <dirent.h> exists.
46042         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
46043         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
46044         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
46045         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
46047 2011-09-11  Bruno Haible  <bruno@clisp.org>
46049         Fix wint_t on MSVC.
46050         * lib/wchar.in.h (wint_t): On MSVC, override it.
46051         * lib/wctype.in.h (wint_t): Likewise.
46052         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
46053         MSVC.
46054         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
46055         * doc/posix-headers/wctype.texi: Likewise.
46057 2011-09-11  Bruno Haible  <bruno@clisp.org>
46059         sys_types: Fix typo.
46060         * lib/sys_types.in.h: Fix typo in comment.
46061         Reported by Paul Eggert.
46063         Support for MSVC compiler: Ensure size_t gets defined.
46064         * modules/strings (Depends-on): Add 'sys_types'.
46065         * modules/sys_uio (Depends-on): Likewise.
46066         * lib/sys_uio.in.h: Update comment.
46068         C++ tests for module 'sys_types'.
46069         * modules/sys_types-c++-tests: New file.
46070         * tests/test-sys_types-c++.cc: New file.
46072         Tests for module 'sys_types'.
46073         * modules/sys_types-tests: New file.
46074         * tests/test-sys_types.c: New file.
46076         New module 'sys_types'.
46077         * lib/sys_types.in.h: New file.
46078         * m4/sys_types_h.m4: New file.
46079         * modules/sys_types: New file.
46080         * doc/posix-headers/sys_types.texi: Mention the new module and the
46081         size_t problem on MSVC 9.
46083 2011-09-11  Bruno Haible  <bruno@clisp.org>
46085         Support for MSVC compiler: Avoid division by a literal 0.
46086         * lib/math.in.h (NAN): Define through a function call also on MSVC.
46087         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
46088         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
46089         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
46090         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
46091         * tests/infinity.h: New file.
46092         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
46093         on MSVC.
46094         * tests/test-ceilf1.c: Include infinity.h.
46095         (main): Use Infinityf.
46096         * tests/test-ceil1.c: Include infinity.h.
46097         (main): Use Infinityd.
46098         * tests/test-ceill.c: Include infinity.h.
46099         (main): Use Infinityl.
46100         * tests/test-dprintf-posix.c: Include infinity.h.
46101         (test_function): Use Infinityd.
46102         * tests/test-floorf1.c: Include infinity.h.
46103         (main): Use Infinityf.
46104         * tests/test-floor1.c: Include infinity.h.
46105         (main): Use Infinityd.
46106         * tests/test-floorl.c: Include infinity.h.
46107         (main): Use Infinityl.
46108         * tests/test-fprintf-posix.c: Include infinity.h.
46109         (test_function): Use Infinityd.
46110         * tests/test-frexp.c: Include infinity.h.
46111         (main): Use Infinityd.
46112         * tests/test-frexpl.c: Include infinity.h.
46113         (main): Use Infinityl.
46114         * tests/test-isfinite.c: Include infinity.h.
46115         (test_isfinitef): Use Infinityf.
46116         (test_isfinited): Use Infinityd.
46117         (test_isfinitel): Use Infinityl.
46118         * tests/test-isinf.c: Include infinity.h.
46119         (test_isinff): Use Infinityf.
46120         (test_isinfd): Use Infinityd.
46121         (test_isinfl): Use Infinityl.
46122         * tests/test-isnan.c: Include infinity.h.
46123         (test_float): Use Infinityf.
46124         (test_double): Use Infinityd.
46125         (test_long_double): Use Infinityl.
46126         * tests/test-isnanf.h: Include infinity.h.
46127         (main): Use Infinityf.
46128         * tests/test-isnand.h: Include infinity.h.
46129         (main): Use Infinityd.
46130         * tests/test-isnanl.h: Include infinity.h.
46131         (main): Use Infinityl.
46132         * tests/test-ldexpl.c: Include infinity.h.
46133         (main): Use Infinityl.
46134         * tests/test-printf-posix.h: Include infinity.h.
46135         (test_function): Use Infinityd.
46136         * tests/test-roundf1.c: Include infinity.h.
46137         (main): Use Infinityf.
46138         * tests/test-round1.c: Include infinity.h.
46139         (main): Use Infinityd.
46140         * tests/test-roundl.c: Include infinity.h.
46141         (main): Use Infinityl.
46142         * tests/test-signbit.c: Include infinity.h.
46143         (test_signbitf): Use Infinityf.
46144         (test_signbitd): Use Infinityd.
46145         (test_signbitl): Use Infinityl.
46146         * tests/test-snprintf-posix.h: Include infinity.h.
46147         (test_function): Use Infinityd, Infinityl.
46148         * tests/test-sprintf-posix.h: Include infinity.h.
46149         (test_function): Use Infinityd, Infinityl.
46150         * tests/test-truncf1.c: Include infinity.h.
46151         (main): Use Infinityf.
46152         * tests/test-trunc1.c: Include infinity.h.
46153         (main): Use Infinityd.
46154         * tests/test-truncl.c: Include infinity.h.
46155         (main): Use Infinityl.
46156         * tests/test-vasnprintf-posix.c: Include infinity.h.
46157         (test_function): Use Infinityd, Infinityl.
46158         * tests/test-vasprintf-posix.c: Include infinity.h.
46159         (test_function): Use Infinityd, Infinityl.
46160         * modules/ceilf-tests (Files): Add tests/infinity.h.
46161         * modules/ceil-tests (Files): Likewise.
46162         * modules/ceill-tests (Files): Likewise.
46163         * modules/dprintf-posix-tests (Files): Likewise.
46164         * modules/floorf-tests (Files): Likewise.
46165         * modules/floor-tests (Files): Likewise.
46166         * modules/floorl-tests (Files): Likewise.
46167         * modules/fprintf-posix-tests (Files): Likewise.
46168         * modules/frexp-tests (Files): Likewise.
46169         * modules/frexp-nolibm-tests (Files): Likewise.
46170         * modules/frexpl-tests (Files): Likewise.
46171         * modules/frexpl-nolibm-tests (Files): Likewise.
46172         * modules/isfinite-tests (Files): Likewise.
46173         * modules/isinf-tests (Files): Likewise.
46174         * modules/isnan-tests (Files): Likewise.
46175         * modules/isnanf-tests (Files): Likewise.
46176         * modules/isnanf-nolibm-tests (Files): Likewise.
46177         * modules/isnand-tests (Files): Likewise.
46178         * modules/isnand-nolibm-tests (Files): Likewise.
46179         * modules/isnanl-tests (Files): Likewise.
46180         * modules/isnanl-nolibm-tests (Files): Likewise.
46181         * modules/ldexpl-tests (Files): Likewise.
46182         * modules/printf-posix-tests (Files): Likewise.
46183         * modules/roundf-tests (Files): Likewise.
46184         * modules/round-tests (Files): Likewise.
46185         * modules/roundl-tests (Files): Likewise.
46186         * modules/signbit-tests (Files): Likewise.
46187         * modules/snprintf-posix-tests (Files): Likewise.
46188         * modules/sprintf-posix-tests (Files): Likewise.
46189         * modules/truncf-tests (Files): Likewise.
46190         * modules/trunc-tests (Files): Likewise.
46191         * modules/truncl-tests (Files): Likewise.
46192         * modules/vasnprintf-posix-tests (Files): Likewise.
46193         * modules/vasprintf-posix-tests (Files): Likewise.
46194         * modules/vdprintf-posix-tests (Files): Likewise.
46195         * modules/vfprintf-posix-tests (Files): Likewise.
46196         * modules/vprintf-posix-tests (Files): Likewise.
46197         * modules/vsnprintf-posix-tests (Files): Likewise.
46198         * modules/vsprintf-posix-tests (Files): Likewise.
46199         * modules/xprintf-posix-tests (Files): Likewise.
46201 2011-09-11  Bruno Haible  <bruno@clisp.org>
46203         Ensure pid_t gets defined.
46204         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
46205         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
46206         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
46207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
46208         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
46209         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
46210         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
46211         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
46212         * tests/test-fcntl-h.c: Check that pid_t is defined.
46213         * tests/test-sched.c: Likewise.
46214         * tests/test-termios.c: Likewise.
46215         * tests/test-time.c: Likewise.
46216         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
46217         * doc/posix-headers/signal.texi: Likewise.
46218         * doc/posix-headers/sys_types.texi: Likewise.
46219         * doc/posix-headers/time.texi: Likewise.
46221 2011-09-11  Bruno Haible  <bruno@clisp.org>
46223         acl: Fix compilation on Solaris 10 (older version).
46224         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
46225         of ACE_EVERYONE.
46226         * lib/set-mode-acl.c (qset_acl): Likewise.
46227         Reported by Christian Jullien <eligis@orange.fr>.
46229 2011-09-10  Bruno Haible  <bruno@clisp.org>
46231         iconv, unsetenv: Add support for MSVC compiler.
46232         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
46233         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
46235 2011-09-10  Bruno Haible  <bruno@clisp.org>
46237         *printf: Add support for MSVC compiler.
46238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
46239         handles the exception caused by the %n directive. When cross-compiling,
46240         guess no on native Windows.
46241         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
46242         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
46243         emulate it through vsnprintf.
46244         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
46245         * doc/posix-functions/dprintf.texi: Update documentation regarding
46246         MSVC 9.
46247         * doc/posix-functions/fprintf.texi: Likewise.
46248         * doc/posix-functions/printf.texi: Likewise.
46249         * doc/posix-functions/snprintf.texi: Likewise.
46250         * doc/posix-functions/sprintf.texi: Likewise.
46251         * doc/posix-functions/swprintf.texi: Likewise.
46252         * doc/posix-functions/vdprintf.texi: Likewise.
46253         * doc/posix-functions/vfprintf.texi: Likewise.
46254         * doc/posix-functions/vprintf.texi: Likewise.
46255         * doc/posix-functions/vsnprintf.texi: Likewise.
46256         * doc/posix-functions/vsprintf.texi: Likewise.
46257         * doc/glibc-functions/asprintf.texi: Likewise.
46258         * doc/glibc-functions/obstack_printf.texi: Likewise.
46259         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46260         * doc/glibc-functions/vasprintf.texi: Likewise.
46262 2011-09-10  Bruno Haible  <bruno@clisp.org>
46264         nocrash: Add support for native Windows.
46265         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
46267 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
46268             Bruno Haible  <bruno@clisp.org>
46270         absolute-header, include-next: Add support for MSVC compiler.
46271         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
46272         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
46273         directory separator in #line directives.
46274         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
46275         recognize also backslash as directory separator in #line directives.
46277 2011-09-08  Jim Meyering  <meyering@redhat.com>
46279         maint.mk: mark the post-release commit log with "maint: " prefix
46280         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
46281         one-line commit-log summary.
46283 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
46284             Bruno Haible  <bruno@clisp.org>
46286         Doc about crypt functions.
46287         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
46288         systems.
46289         * doc/posix-functions/encrypt.texi: Likewise.
46290         * doc/posix-functions/setkey.texi: Likewise.
46292 2011-09-08  Simon Josefsson  <simon@josefsson.org>
46294         * lib/gc.h: Fix copyright header.
46296 2011-09-07  Bruno Haible  <bruno@clisp.org>
46298         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
46299         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
46300         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
46302 2011-09-07  Bruno Haible  <bruno@clisp.org>
46304         openat: Work around compilation error with OSF/1 5.1 DTK cc.
46305         * lib/fopen.c: Use different syntax for include of <stdio.h>.
46306         * lib/freopen.c: Likewise.
46307         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
46308         * lib/lstat.c: Likewise.
46309         * lib/stat.c: Likewise.
46310         * lib/open.c: Use different syntax for include of <fcntl.h>.
46311         * lib/openat.c: Include fcntl.h again, explicitly.
46313 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
46315         parse-datetime: document the newly accepted format
46316         * doc/parse-datetime.texi (Combined date and time of day items):
46317         New section.
46319 2011-09-06  Bruno Haible  <bruno@clisp.org>
46321         acl: Fix a test failure on newer Solaris 10 with ZFS.
46322         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
46323         ENOSYS as no ACL.
46324         Reported by Jim Meyering.
46326 2011-09-06  Bruno Haible  <bruno@clisp.org>
46328         acl: Update for AIX >= 5.3 with NFS.
46329         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
46330         ENOSYS as no ACL.
46332         acl: Fix a test failure on AIX >= 5.3 with NFS.
46333         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
46334         as no ACL.
46336 2011-09-06  Bruno Haible  <bruno@clisp.org>
46338         acl: Fix a test failure on IRIX 6.5 with NFS.
46339         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
46340         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
46341         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
46342         * lib/copy-acl.c (qcopy_acl): Likewise.
46344 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46346         openat: port to AIX 7.1 with large files
46347         AIX 7.1 does a "#define openat open64at" if large files are in use,
46348         so we can't simply #undef openat.  Use the orig_openat trick (similar
46349         to orig_open in lib/open.c) to work around the problem.  Problem
46350         reported by Kevin Brott for GNU tar, in the thread containing
46351         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
46352         * lib/openat.c (__need_system_fcntl_h): Define first.
46353         Include <fcntl.h> and <sys/types.h> before undefining.
46354         (orig_openat) [HAVE_OPENAT]: New inline function.
46355         (openat) [HAVE_OPENAT]: Do not undef.
46356         (rpl_openat): Use orig_openat, not openat.
46358 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46359             Bruno Haible  <bruno@clisp.org>
46361         acl: Avoid errors on NonStop Kernel.
46362         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
46363         ENOTSUP errors.
46365 2011-09-05  Bruno Haible  <bruno@clisp.org>
46367         acl: Clean up Solaris code.
46368         * lib/acl-internal.h: Remove no-op #if.
46369         * lib/file-has-acl.c: Likewise.
46370         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
46371         * lib/copy-acl.c (qcopy_acl): Likewise.
46373 2011-09-05  Bruno Haible  <bruno@clisp.org>
46375         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
46376         binaries built on the original Solaris 10.
46377         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
46378         trivial.
46380 2011-09-05  Bruno Haible  <bruno@clisp.org>
46382         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46383         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
46384         10.
46385         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
46386         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
46387         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
46388         instead of acl_get, facl_get, acl_set, facl_set.
46390 2011-09-05  Bruno Haible  <bruno@clisp.org>
46392         copy-file: Try unit tests on more file systems.
46393         * tests/test-copy-file-1.sh: New file.
46394         * tests/test-copy-file-2.sh: New file.
46395         * modules/copy-file-tests (Files): Add them.
46396         (Makefile.am): Add them to TESTS.
46398         acl: Try unit tests on more file systems.
46399         * tests/test-file-has-acl-1.sh: New file.
46400         * tests/test-file-has-acl-2.sh: New file.
46401         * tests/test-set-mode-acl-1.sh: New file.
46402         * tests/test-set-mode-acl-2.sh: New file.
46403         * tests/test-copy-acl-1.sh: New file.
46404         * tests/test-copy-acl-2.sh: New file.
46405         * modules/acl-tests (Files): Add them.
46406         (Makefile.am): Add them to TESTS.
46408 2011-09-04  Bruno Haible  <bruno@clisp.org>
46410         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
46411         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
46412         10.
46413         (OLD_ALLOW, OLD_DENY): New macros.
46414         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
46415         ACE_ACCESS_ALLOWED_ACE_TYPE.
46416         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
46417         ACE_ACCESS_DENIED_ACE_TYPE.
46418         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
46419         (NEW_ACE_EXECUTE): Fix value.
46420         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
46421         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
46422         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
46423         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
46424         NEW_ACE_SYNCHRONIZE): New macros.
46425         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
46426         instead of acl_fromtext, acl_set, facl_set.
46427         Fixes a coreutils/tests/cp/perm failure.
46429 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
46431         openat: test for fstatat (..., 0) bug
46432         Further testing with tar suggests that fstatat (..., 0)
46433         does not work in general, on AIX 7.1; see
46434         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
46435         So, give up entirely on AIX 7.1's fstatat, and fall back on our
46436         replacement fstatat (which is what older AIX releases were using
46437         anyway).
46438         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
46439         use is now changed to orig_fstatat.  This was probably the right
46440         thing to do anyway.
46441         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
46442         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
46443         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
46444         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
46445         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
46446         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
46447         if the bug is found.
46449         openat: test for fstatat (AT_FDCWD, ..., 0) bug
46450         This tests for another fstatat bug on AIX 7.1:
46451         fstatat (AT_FDCWD, ..., 0) does not work.  See
46452         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
46453         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
46454         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
46455         (rpl_fstatat): Adjust so that it works around either (or both)
46456         bugs if present.
46457         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
46459 2011-09-03  Karl Berry  <karl@gnu.org>
46461         * doc/regex.texi (Character Class Operators): Avoid literal ":"
46462         in index entries.
46464 2011-09-02  Bruno Haible  <bruno@clisp.org>
46466         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
46467         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
46468         values of AR, ARFLAGS, RANLIB.
46469         Reported by John W. Eaton <jwe@gnu.org> for Octave.
46471 2011-09-02  Bruno Haible  <bruno@clisp.org>
46473         Find 'ar' program that fits with --host argument.
46474         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
46476 2011-09-02  Bruno Haible  <bruno@clisp.org>
46478         tests: init.sh: Support any non-GNU diff.
46479         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
46480         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
46481         Solaris 8.
46483 2011-09-02  Bruno Haible  <bruno@clisp.org>
46485         tests: init.sh: work also with any non-GNU diff that supports -u
46486         * tests/init.sh: Relax check for diff -u support.
46487         Rather than checking for GNU diff via --version, simply check
46488         for support for -u itself.  Useful at least on OpenBSD 4.9,
46489         AIX 7.1, IRIX 6.5, and Solaris 10.
46491 2011-09-01  Bruno Haible  <bruno@clisp.org>
46493         strtoimax, strtoumax: Document problem on HP-UX 11.
46494         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
46495         * doc/posix-functions/strtoumax.texi: Likewise.
46497 2011-09-01  Bruno Haible  <bruno@clisp.org>
46499         strtoumax: Avoid link error on OSF/1 with DTK cc.
46500         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
46501         defined as a function.
46502         * modules/strtoumax (Depends-on, configure.ac): Test only whether
46503         strtoumax is defined, not whether it is declared.
46505 2011-09-01  Bruno Haible  <bruno@clisp.org>
46507         strtoimax: Avoid link error on OSF/1 with DTK cc.
46508         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
46509         defined as a function.
46510         * modules/strtoimax (Depends-on, configure.ac): Test only whether
46511         strtoimax is defined, not whether it is declared.
46513 2011-09-01  Bruno Haible  <bruno@clisp.org>
46515         imaxdiv: Avoid link error on OSF/1 with DTK cc.
46516         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
46517         as a function.
46518         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
46519         whether it is declared.
46521 2011-09-01  Bruno Haible  <bruno@clisp.org>
46523         imaxabs: Avoid link error on OSF/1 with DTK cc.
46524         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
46525         as a function.
46526         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
46527         whether it is declared.
46529 2011-09-01  Bruno Haible  <bruno@clisp.org>
46531         Tests for module 'strtoumax'.
46532         * modules/strtoumax-tests: New file.
46533         * tests/test-strtoumax.c: New file.
46535         Tests for module 'strtoimax'.
46536         * modules/strtoimax-tests: New file.
46537         * tests/test-strtoimax.c: New file.
46539         Tests for module 'imaxdiv'.
46540         * modules/imaxdiv-tests: New file.
46541         * tests/test-imaxdiv.c: New file.
46543         Tests for module 'imaxabs'.
46544         * modules/imaxabs-tests: New file.
46545         * tests/test-imaxabs.c: New file.
46547 2011-09-01  Bruno Haible  <bruno@clisp.org>
46549         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
46550         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
46551         pthread_create.
46553 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46555         openat: work around AIX 7.1 fstatat issue
46556         This should fix the problem that was not properly fixed
46557         in the previous change, dated 2011-08-30.
46558         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
46559         __need_system_stat_h defined.
46560         (orig_fstatat) [HAVE_FSTATAT]: New function.
46561         (rpl_fstatat): Go back to the old way of doing things,
46562         except call orig_fstatat instead of fstatat.
46563         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
46564         Remove unnecessary check whether fstatat fills in st_size etc.
46566 2011-09-01  Bruno Haible  <bruno@clisp.org>
46568         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
46569         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
46570         just include the system's header.
46572 2011-08-31  Jim Meyering  <meyering@redhat.com>
46574         tests: avoid spurious assertion failure in test-float.c on ppc64
46575         * tests/test-float.c (test_long_double): Comment out an assertion,
46576         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
46577         with gcc-4.4.4.
46579         maint: indent with spaces, not TABs
46580         I need to get in the habit of running gnulib's "make check".
46581         Both of these would have been caught.
46582         * m4/largefile.m4: Indent with spaces, not TABs.
46583         * lib/parse-datetime.y (iso_8601_time): Likewise.
46584         Spotted by Pádraig Brady.
46586         test-parse-datetime.c: accommodate a relatively strict gcc warning
46587         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
46588         to avoid a warning from gcc's -Werror=missing-declarations.
46589         Insert a few spaces-before-funcall-parenthesis.
46591 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
46593         parse-datetime: accept ISO 8601 date and time rep with "T" separator
46594         The parser now accepts ISO 8601 date-time strings with "T" as the
46595         separator.  It has long parsed dates like "2004-02-29 16:21:42"
46596         with a space between the date and time strings.  Now it also parses
46597         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
46598         variants like "2004-02-29T16:21:42.333-07:00"
46599         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
46600         of day representation using the 'T' separator character.
46601         * doc/parse-datetime.texi (General date syntax): replace use of
46602         deprecated --iso-8601 option with --rfc-3339 in example of date
46603         command output formats that can be parsed.
46604         * tests/test-parse-datetime.c (tm_diff): New function, taken from
46605         lib/parse-datetime.y.
46606         (gmt_offset): New function.
46607         (main): Add additional test cases to validate ISO8601 extended
46608         date and time of day parsing.
46610 2011-08-31  Bruno Haible  <bruno@clisp.org>
46612         freopen: Documentation.
46613         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
46614         name.
46615         Reported by Claudio Bley <claudio.bley@gmail.com>.
46617 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
46619         freopen: Don't crash if the filename argument is NULL.
46620         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
46621         NULL.
46623 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
46625         openat: work around AIX 7.1 fstatat bug
46626         Problem reported by Kevin Brott for GNU tar, in the thread containing
46627         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
46628         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
46629         FSTATAT_ST_SIZE_ETC_BROKEN.
46630         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
46631         rpl_fstatat.
46632         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
46633         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
46634         AC_CHECK_FUNCS_ONCE for fstatat.
46635         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
46636         fchmodat, mkdirat, openat and unlinkat.
46638 2011-08-30  Bruno Haible  <bruno@clisp.org>
46640         Avoid endless recursions if config.h includes some header files.
46641         * lib/fopen.c (__need_FILE): Define already before including config.h.
46642         * lib/freopen.c (__need_FILE): Likewise.
46643         * lib/open.c (__need_system_fcntl_h): Likewise.
46644         * lib/stat.c (__need_system_sys_stat_h): Likewise.
46645         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
46646         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46648 2011-08-25  Karl Berry  <karl@gnu.org>
46650         * config/srclist.txt (ylwrap): new try.
46651         * build-aux/ylwrap: new file.
46653 2011-08-23  Bruno Haible  <bruno@clisp.org>
46655         tmpdir: Use a good default directory on native Windows.
46656         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
46657         (P_tmpdir): Default to _P_tmpdir on native Windows.
46658         (path_search): On native Windows, try the value returned by GetTempPath
46659         before trying P_tmpdir.
46660         * modules/tmpdir (Depends-on): Add pathmax.
46661         Suggested by John Darrington <john@darrington.wattle.id.au>.
46663 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
46665         doc: fix typo in README-release
46666         * top/README-release: Capitalize first word of a sentence.
46668 2011-08-19  Jim Meyering  <meyering@redhat.com>
46670         fts: do not exhaust memory when processing million-entry directories
46671         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
46672         directory would require about 256*N bytes of memory.  Thus, it was
46673         easy to construct a directory too large to be processed by any of
46674         those tools.  With this change, fts' maximum memory utilization is
46675         now limited to around 30MB.
46676         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
46677         (fts_read): When we've processed the final entry (i.e., when
46678         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
46679         using the parent entry to read any remaining entries.  Dispatch
46680         depending on what fts_build returns:
46681         - NULL+stop, aka failure: stop
46682         - NULL otherwise: move up in the dir hierarchy
46683         - non-NULL: handle this new entry
46684         (fts_build): Declare and use new local, continue_readdir.
46685         Prepare to be called from fts_read, when the entries
46686         from a partially-read directory have just been exhausted.
46687         In that case, we'll skip the opendir and instead use the parent's
46688         fts_dirp and derive dir_fd from that.
46689         Finally, in the readdir loop, if we read max_entries entries,
46690         exit the loop ensuring *not* to call closedir.  This is required
46691         so that fts_dirp can be reused on a subsequent call.
46692         Prompted by Ben England's report of memory exhaustion in find
46693         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
46695         maint: fts: move decl of `dp' down into while loop; split a long line
46696         * lib/fts.c (fts_build): No semantic change.
46698         fts: add/use new struct member, fts_dirp
46699         We are about to use this to manage any directory with
46700         too many entries to read all of them into memory at once.
46701         To do that, we'll need to save the DIR* pointer in each
46702         affected FTSENT struct.
46703         * lib/fts_.h: Include <dirent.h>.
46704         (struct FTSENT) [fts_dirp]: New member.
46705         * lib/fts.c (closedir_and_clear): Define.
46706         Use it in place of closedir so that we are sure to
46707         clear the new fts_dirp member when done with it.
46708         (fts_alloc): Initialize the new member.
46709         (fts_lfree): Free, if needed.
46711         maint: fts: give __opendir2 a new parameter and rename
46712         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
46713         than surreptitiously using sole caller's "dir_fd".
46714         (fts_opendir): Rename from __opendir2.
46716         maint: fts.c: remove __opendir2's now-unused parameter, oflag
46717         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
46719         maint: fts.c: correct off-by-one indentation
46720         * lib/fts.c (fts_build): Correct indentation, change style
46721         of a couple of block comments, and bracing style.
46723         maint: fts.c: move __opendir2 #define "up" out of function body
46724         * lib/fts.c (__opendir2): Move "up".  No semantic change.
46726         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
46727         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
46728         out for a long time and besides was useful only on BSD systems.
46730 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
46732         regex: port to Stratus OpenVOS
46733         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
46734         define to empty, rather than attempting nonportable optimizations.
46735         Problem reported by Paul Green in:
46736         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
46737         and fix suggested by Eric Blake in:
46738         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
46740 2011-08-17  Eric Blake  <eblake@redhat.com>
46742         getcwd: fix test failures on mingw
46743         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
46744         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
46745         test if long directory cannot be created, and allow mingw errno.
46747         getcwd-lgpl: fix m4 to match relaxed test for BSD
46748         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
46749         (gl_FUNC_GETCWD_SIGNATURE): New macro.
46750         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
46751         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
46752         signature problem.
46754         getcwd: fix compilation on mingw64
46755         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
46756         getcwd.
46757         Reported by Marc-André Lureau.
46759         pipe2: silence compiler warning
46760         * lib/pipe2.c (pipe2): Hide label if it is not used.
46762 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
46764         relocatable-prog: fix link error
46765         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
46766         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
46767         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
46768         into modules/relocatable-lib without noticing that
46769         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
46770         also needs to build relocatable.c.
46772 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46774         getaddrinfo: fix sh typo in gai_strerrorA decl checking
46775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
46776         shell code: it contained a 'break' that was not in a loop.
46777         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
46778         via a shell-language loop; this may have been true in old Autoconf
46779         versions, but it's not true in Autoconf 2.68.  I found this bug
46780         when testing coreutils git on Solaris 8, whose shell complains
46781         about the syntax error.
46783 2011-08-12  Simon Josefsson  <simon@josefsson.org>
46785         * lib/base64.c: Fix comment to reference RFC 4648.
46786         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
46787         <gvtulder@gmail.com>.
46789 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46791         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
46793         po/Makefile.in.in: fix make -q problem
46794         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
46795         rule, since there's no file named 'check-macro-version' and its
46796         use as a file breaks make -q.
46797         (all): Don't depend on check-macro-version.
46798         (CHECK_MACRO_VERSION): New macro.
46799         (stamp-po): Use it.
46801         configmake: fix make -q problem
46802         * modules/configmake (configmake.h): Update configmake.h's time stamp
46803         even if the file does not change.  Otherwise, 'make -q' fails.
46804         Problem reported by Simon Josefsson in
46805         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
46807 2011-08-11  Jim Meyering  <meyering@redhat.com>
46809         git-version-gen: correct the advice in a comment
46810         * build-aux/git-version-gen: Correct comment.
46811         Don't recommend to list .tarball-version in .gitignore.
46813 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
46815         base64: fix off-by-one buffer size bug
46816         Problem and (trivial) fix reported by Gijs van Tulder in
46817         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
46818         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
46819         * tests/test-base64.c (main): Catch the bug.
46821 2011-08-10  Eric Blake  <eblake@redhat.com>
46823         closein: correct comments
46824         * lib/closein.c (close_stdin): Improve comments.
46826 2011-08-09  Bruno Haible  <bruno@clisp.org>
46828         More tests for 'fseeko'.
46829         * tests/test-fseeko3.c: New file, from Eric Blake.
46830         * tests/test-fseeko3.sh: New file.
46831         * modules/fseeko-tests (Files): Add them.
46832         (TESTS): Add test-fseeko3.sh.
46833         (check_PROGRAMS): Add test-fseeko3.
46835 2011-08-09  Eric Blake  <eblake@redhat.com>
46837         fseeko: remove unneeded hack
46838         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
46840         fseeko: fix bug on glibc
46841         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
46842         Reported by John W. Eaton.
46844 2011-08-08  Bruno Haible  <bruno@clisp.org>
46846         unictype/base: Fix interoperability with preinstalled libunistring.
46847         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
46848         Reported by Simon Josefsson.
46850 2011-08-08  Bruno Haible  <bruno@clisp.org>
46852         iswblank: Detect declaration correctly.
46853         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
46854         AC_CHECK_DECLS invocation.
46856 2011-08-08  Bruno Haible  <bruno@clisp.org>
46858         tcgetsid: Detect declaration correctly.
46859         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
46860         AC_CHECK_DECLS invocation.
46861         Reported by Simon Josefsson.
46863 2011-08-08  Eric Blake  <eblake@redhat.com>
46865         largefile: fix typo that regressed large file support
46866         * modules/largefile (configure.ac-early): Fix section name.
46868 2011-08-06  Karl Berry  <karl@gnu.org>
46870         * MODULES.html.sh (func_all_files): _Noreturn is no longer
46871         a separate module.
46873 2011-08-05  Simon Josefsson  <simon@josefsson.org>
46875         openat: Fix warnings and commens when building unlinkat.c on Hurd.
46876         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
46877         get prototype for free.
46879 2011-08-04  Bruno Haible  <bruno@clisp.org>
46881         Tests for module 'pathmax'.
46882         * modules/pathmax-tests: New file.
46883         * tests/test-pathmax.c: New file.
46885         canonicalize-lgpl: Support larger filenames on the Hurd.
46886         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
46887         Reported by Paul Eggert.
46889         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
46890         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
46891         * lib/chdir-long.h: Include pathmax.h.
46892         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
46893         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
46894         (PATH_MAX): Remove code that is done by pathmax.h.
46895         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
46896         * lib/tmpfile.c: Add a comment.
46897         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
46898         * modules/chdir-long (Depends-on): Add pathmax.
46899         * modules/getcwd (Depends-on): Add pathmax.
46900         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
46901         is not defined.
46902         * doc/posix-headers/limits.texi: Mention the pathmax module.
46903         * NEWS: Mention the change.
46905 2011-08-02  Bruno Haible  <bruno@clisp.org>
46907         pthread_sigmask: Actually use results of gl_THREADLIB.
46908         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
46909         gl_THREADLIB, not gl_[]THREADLIB.
46910         Reported by Eric Blake.
46912 2011-08-02  Jim Meyering  <meyering@redhat.com>
46914         maint.mk: relax the default _gl_TS_function_match regexp
46915         * top/maint.mk (_gl_TS_function_match): Don't require at least one
46916         space between function name and "(" in an "extern" declaration.
46917         That would fail to match a decl with no space there: extern void foo();
46919 2011-07-31  Iain Nicol  <iain@thenicols.net>
46921         git-version-gen: document that EXTRA_DIST must include .version
46922         * build-aux/git-version-gen: In the how-to-use comment, document
46923         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
46924         will fail when run from an unpacked distribution tarball.
46926 2011-08-01  Bruno Haible  <bruno@clisp.org>
46928         wctype-h: Fix last change.
46929         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
46930         REPLACE_TOWLOWER to 0.
46931         Reported by Sam Steingold <sds@gnu.org>.
46933 2011-07-31  Bruno Haible  <bruno@clisp.org>
46935         frexpl: Update autoconf test.
46936         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
46937         according to changes of 2011-06-20.
46939 2011-07-31  Bruno Haible  <bruno@clisp.org>
46941         sys_utsname: Add support for Minix.
46942         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
46943         <sys/utsname.h>.
46944         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
46945         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
46947 2011-07-31  Bruno Haible  <bruno@clisp.org>
46949         strings: Add support for Minix.
46950         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
46951         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
46952         * doc/posix-headers/strings.texi: Document the Minix problem.
46954 2011-07-31  Bruno Haible  <bruno@clisp.org>
46956         wctype-h: Add support for Minix.
46957         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
46958         REPLACE_TOWLOWER.
46959         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
46960         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
46961         REPLACE_ISWCNTRL.
46963 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
46965         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
46966         This is a performance improvement for 64-bit hosts: it causes the
46967         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
46969 2011-07-31  Bruno Haible  <bruno@clisp.org>
46971         stdioext: Add support for Minix.
46972         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
46973         * lib/fpurge.c (fpurge): Likewise.
46974         * lib/freadahead.c (freadahead): Likewise.
46975         * lib/freadable.c (freadable): Likewise.
46976         * lib/freading.c (freading): Likewise.
46977         * lib/freadptr.c (freadptr): Likewise.
46978         * lib/freadseek.c (freadptrinc): Likewise.
46979         * lib/fseeko.c (rpl_fseeko): Likewise.
46980         * lib/fseterr.c (fseterr): Likewise.
46981         * lib/fwritable.c (fwritable): Likewise.
46982         * lib/fwriting.c (fwriting): Likewise.
46983         * lib/fflush.c (clear_ungetc_buffer): Update comment.
46984         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
46986 2011-07-31  Bruno Haible  <bruno@clisp.org>
46988         errno: Port to Minix.
46989         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
46990         ECONNABORTED are defined.
46991         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
46992         GNULIB_defined_ECONNABORTED): New macros.
46993         * lib/strerror-override.h (strerror_override): Test also
46994         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
46995         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
46996         ECONNABORTED.
46997         * doc/posix-headers/errno.texi: Mention the Minix problem.
46999 2011-07-31  Bruno Haible  <bruno@clisp.org>
47001         Work around declaration collisions on Minix.
47002         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
47003         defined, set REPLACE_MBSINIT.
47004         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
47005         defined, set REPLACE_MBRTOWC.
47006         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
47007         set REPLACE_MBRLEN.
47008         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
47009         defined, set REPLACE_MBSRTOWCS.
47010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
47011         defined, set REPLACE_WCRTOMB.
47012         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
47013         defined, set REPLACE_WCSRTOMBS.
47015 2011-07-31  Bruno Haible  <bruno@clisp.org>
47017         Add support for Minix with ACK compiler.
47018         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
47019         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
47020         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
47022 2011-07-31  Bruno Haible  <bruno@clisp.org>
47024         Documentation about Minix.
47025         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
47026         * doc/glibc-headers/*.texi: Likewise.
47027         * doc/posix-functions/*.texi: Likewise.
47028         * doc/glibc-functions/*.texi: Likewise.
47030 2011-07-31  Bruno Haible  <bruno@clisp.org>
47032         snippet/warn-on-use: Fix indentation.
47033         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
47035 2011-07-25  Jim Meyering  <meyering@redhat.com>
47037         tests: test-update-copyright.sh: remove unnecessary "rm" commands
47038         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
47039         commands.
47041 2011-07-27  Jim Meyering  <meyering@redhat.com>
47043         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
47044         * top/maint.mk (gl_extract_significant_defines_): Now that
47045         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
47046         gnulib/lib/signal.in.h, and now that we recommend to
47047         define-if-undefined those two symbols in application code,
47048         we must filter them out of the "significant" list.
47049         This avoids a "make syntax-check" failure in coreutils.
47051 2011-07-26  Eric Blake  <eblake@redhat.com>
47053         warnings: add comments about previous patch
47054         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
47055         * m4/include_next.m4: Likewise.
47056         * m4/warn-on-use.m4: Likewise.
47057         * m4/warnings.m4: Likewise, and simplify use.
47058         Suggested by Stefano Lattarini.
47060         include-next, warnings: support older autoconf
47061         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
47062         AS_VAR_PUSHDEF in a way that works with older autoconf.
47063         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
47064         Reported by Daniel P. Berrange.
47066 2011-07-25  Bruno Haible  <bruno@clisp.org>
47068         fseek, ftell: Fix doc.
47069         * doc/posix-functions/fseek.texi: Reword statement about
47070         AC_SYS_LARGEFILE.
47071         * doc/posix-functions/ftell.texi: Likewise.
47073 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47074             Bruno Haible  <bruno@clisp.org>
47076         Add dependencies to the 'largefile' module.
47077         * modules/fopen (Depends-on): Add 'largefile'.
47078         * modules/freopen (Depends-on): Likewise.
47079         * modules/fseeko (Depends-on): Likewise.
47080         * modules/ftello (Depends-on): Likewise.
47081         * modules/glob (Depends-on): Likewise.
47082         * modules/lseek (Depends-on): Likewise.
47083         * modules/lstat (Depends-on): Likewise.
47084         * modules/mkostemp (Depends-on): Likewise.
47085         * modules/mkostemps (Depends-on): Likewise.
47086         * modules/mkstemp (Depends-on): Likewise.
47087         * modules/mkstemps (Depends-on): Likewise.
47088         * modules/open (Depends-on): Likewise.
47089         * modules/openat (Depends-on): Likewise.
47090         * modules/pread (Depends-on): Likewise.
47091         * modules/pwrite (Depends-on): Likewise.
47092         * modules/scandir (Depends-on): Likewise.
47093         * modules/stat (Depends-on): Likewise.
47094         * modules/tmpfile (Depends-on): Likewise.
47095         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
47096         since the containing module now depends on the largefile module.
47097         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
47098         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
47099         off_t is fixed by gnulib.
47100         * doc/posix-functions/freopen.texi: Likewise.
47101         * doc/posix-functions/fseeko.texi: Likewise.
47102         * doc/posix-functions/fstatat.texi: Likewise.
47103         * doc/posix-functions/ftello.texi: Likewise.
47104         * doc/posix-functions/glob.texi: Likewise.
47105         * doc/posix-functions/lseek.texi: Likewise.
47106         * doc/posix-functions/lstat.texi: Likewise.
47107         * doc/posix-functions/mkstemp.texi: Likewise.
47108         * doc/posix-functions/open.texi: Likewise.
47109         * doc/posix-functions/openat.texi: Likewise.
47110         * doc/posix-functions/pread.texi: Likewise.
47111         * doc/posix-functions/pwrite.texi: Likewise.
47112         * doc/posix-functions/scandir.texi: Likewise.
47113         * doc/posix-functions/stat.texi: Likewise.
47114         * doc/posix-functions/tmpfile.texi: Likewise.
47115         * doc/glibc-functions/mkostemp.texi: Likewise.
47116         * doc/glibc-functions/mkostemps.texi: Likewise.
47117         * doc/glibc-functions/mkstemps.texi: Likewise.
47119 2011-07-25  Bruno Haible  <bruno@clisp.org>
47121         fcntl: Move AC_LIBOBJ invocation to module description.
47122         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
47123         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
47125         fcntl: Remove call-in from fchdir.m4.
47126         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
47127         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
47129         dup3: Remove potential call-in from fchdir.m4.
47130         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
47131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
47133         dup2: Move AC_LIBOBJ invocation to module description.
47134         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
47135         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
47136         Don't invoke AC_LIBOBJ.
47137         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
47139         dup2: Remove call-in from fchdir.m4.
47140         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
47141         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
47143         fclose: Move AC_LIBOBJ invocation to module description.
47144         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
47145         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
47146         to 1.
47147         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
47149         fclose: Remove call-in from close.m4.
47150         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
47151         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
47153         close: Move AC_LIBOBJ invocation to module description.
47154         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
47155         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
47156         1.
47157         * modules/close (configure.ac): Invoke AC_LIBOBJ.
47159         close: Remove call-in from fchdir.m4.
47160         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
47161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
47163         open: Move AC_LIBOBJ invocation to module description.
47164         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
47165         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
47166         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
47168         open: Remove call-in from fchdir.m4.
47169         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
47170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
47172         fchdir: Start to remove gl_REPLACE_* idiom.
47173         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
47174         (gl_FUNC_FCHDIR): Invoke it.
47176 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47178         * lib/ftell.c (ftell): Comment out cast.
47180         close: use gl_REPLACE_FCLOSE only if defined
47181         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
47182         is defined.  The close module doesn't depend on the fclose module
47183         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
47184         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
47185         I reproduced the problem with "./gnulib-tool --test close sys_socket".
47187 2011-07-24  Jim Meyering  <meyering@redhat.com>
47189         test-select.h: avoid warning when using gcc's -Wmissing-declarations
47190         * tests/test-select.h (test_function): Declare as "static".
47192 2011-07-24  Bruno Haible  <bruno@clisp.org>
47194         doc: Mention the effects of AC_SYS_LARGEFILE.
47195         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
47196         on this function.
47197         * doc/posix-functions/aio_error.texi: Likewise.
47198         * doc/posix-functions/aio_fsync.texi: Likewise.
47199         * doc/posix-functions/aio_read.texi: Likewise.
47200         * doc/posix-functions/aio_return.texi: Likewise.
47201         * doc/posix-functions/aio_suspend.texi: Likewise.
47202         * doc/posix-functions/aio_write.texi: Likewise.
47203         * doc/posix-functions/fgetpos.texi: Likewise.
47204         * doc/posix-functions/fopen.texi: Likewise.
47205         * doc/posix-functions/freopen.texi: Likewise.
47206         * doc/posix-functions/fsetpos.texi: Likewise.
47207         * doc/posix-functions/fstatvfs.texi: Likewise.
47208         * doc/posix-functions/ftruncate.texi: Likewise.
47209         * doc/posix-functions/ftw.texi: Likewise.
47210         * doc/posix-functions/getrlimit.texi: Likewise.
47211         * doc/posix-functions/glob.texi: Likewise.
47212         * doc/posix-functions/lio_listio.texi: Likewise.
47213         * doc/posix-functions/lockf.texi: Likewise.
47214         * doc/posix-functions/mkstemp.texi: Likewise.
47215         * doc/posix-functions/mmap.texi: Likewise.
47216         * doc/posix-functions/nftw.texi: Likewise.
47217         * doc/posix-functions/openat.texi: Likewise.
47218         * doc/posix-functions/opendir.texi: Likewise.
47219         * doc/posix-functions/posix_fadvise.texi: Likewise.
47220         * doc/posix-functions/posix_fallocate.texi: Likewise.
47221         * doc/posix-functions/pread.texi: Likewise.
47222         * doc/posix-functions/pwrite.texi: Likewise.
47223         * doc/posix-functions/readdir.texi: Likewise.
47224         * doc/posix-functions/readdir_r.texi: Likewise.
47225         * doc/posix-functions/rewinddir.texi: Likewise.
47226         * doc/posix-functions/scandir.texi: Likewise.
47227         * doc/posix-functions/seekdir.texi: Likewise.
47228         * doc/posix-functions/setrlimit.texi: Likewise.
47229         * doc/posix-functions/statvfs.texi: Likewise.
47230         * doc/posix-functions/telldir.texi: Likewise.
47231         * doc/posix-functions/tmpfile.texi: Likewise.
47232         * doc/posix-functions/truncate.texi: Likewise.
47233         * doc/glibc-functions/fallocate.texi: Likewise.
47234         * doc/glibc-functions/fstatfs.texi: Likewise.
47235         * doc/glibc-functions/fts_children.texi: Likewise.
47236         * doc/glibc-functions/fts_read.texi: Likewise.
47237         * doc/glibc-functions/getdirentries.texi: Likewise.
47238         * doc/glibc-functions/mkostemp.texi: Likewise.
47239         * doc/glibc-functions/mkostemps.texi: Likewise.
47240         * doc/glibc-functions/mkstemps.texi: Likewise.
47241         * doc/glibc-functions/preadv.texi: Likewise.
47242         * doc/glibc-functions/pwritev.texi: Likewise.
47243         * doc/glibc-functions/sendfile.texi: Likewise.
47244         * doc/glibc-functions/statfs.texi: Likewise.
47246 2011-07-24  Bruno Haible  <bruno@clisp.org>
47248         doc: Fix typo.
47249         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
47251 2011-07-24  Bruno Haible  <bruno@clisp.org>
47253         doc: Mention fsusage.
47254         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
47256 2011-07-24  Bruno Haible  <bruno@clisp.org>
47258         doc: Mention new glibc headers and functions.
47259         * doc/glibc-headers/gshadow.texi: New file.
47260         * doc/glibc-functions/endsgent.texi: New file.
47261         * doc/glibc-functions/fgetsgent.texi: New file.
47262         * doc/glibc-functions/fgetsgent_r.texi: New file.
47263         * doc/glibc-functions/getsgent.texi: New file.
47264         * doc/glibc-functions/getsgent_r.texi: New file.
47265         * doc/glibc-functions/getsgnam.texi: New file.
47266         * doc/glibc-functions/getsgnam_r.texi: New file.
47267         * doc/glibc-functions/putsgent.texi: New file.
47268         * doc/glibc-functions/setsgent.texi: New file.
47269         * doc/glibc-functions/sgetsgent.texi: New file.
47270         * doc/glibc-functions/sgetsgent_r.texi: New file.
47271         * doc/glibc-functions/malloc_info.texi: New file.
47272         * doc/glibc-functions/preadv.texi: New file.
47273         * doc/glibc-functions/pwritev.texi: New file.
47274         * doc/glibc-functions/register_printf_modifier.texi: New file.
47275         * doc/glibc-functions/register_printf_specifier.texi: New file.
47276         * doc/glibc-functions/register_printf_type.texi: New file.
47277         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
47278         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
47279         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
47280         * doc/glibc-functions/pthread_getname_np.texi: New file.
47281         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
47282         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
47283         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
47284         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
47285         * doc/glibc-functions/pthread_setname_np.texi: New file.
47286         * doc/glibc-functions/pthread_sigqueue.texi: New file.
47287         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
47288         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
47289         * doc/glibc-functions/qsort_r.texi: New file.
47290         * doc/glibc-functions/quick_exit.texi: New file.
47291         * doc/glibc-functions/syncfs.texi: New file.
47292         * doc/gnulib.texi: Include them.
47293         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
47294         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
47295         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
47296         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
47297         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
47298         * doc/glibc-functions/execvpe.texi: Likewise.
47300 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47302         ftell: don't include <unistd.h>
47303         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
47304         guaranteed to define off_t, and the ftell module depends on the
47305         stdio module.
47307         ftell: do not assume wraparound signed arithmetic
47308         * lib/ftell.c: Include <limits.h>.
47309         (ftell): Don't assume wraparound signed arithmetic.
47311 2011-07-24  Bruno Haible  <bruno@clisp.org>
47313         close: No longer depend on module 'fclose'.
47314         * modules/close (Depends-on): Remove fclose.
47315         * NEWS: Mention the change.
47316         Suggested by Sam Steingold <sds@gnu.org>.
47318 2011-07-24  Bruno Haible  <bruno@clisp.org>
47320         fsusage: Enable large volume support on AIX >= 5.2.
47321         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
47322         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
47323         instead of STAT_STATVFS.
47324         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
47326         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
47327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
47328         f_blocks field only on MacOS X.
47330         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
47331         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
47332         * modules/fsusage (Depends-on): Add largefile.
47334 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
47336         * README: Modernize discussion of signed integers.
47337         Assuming overflow wraparound is no longer safe.
47338         Mention ones' complement and signed magnitude.
47340 2011-07-22  Bruno Haible  <bruno@clisp.org>
47342         select tests, pselect tests: Refactor.
47343         * tests/test-select.h: New file, extracted from tests/test-select.c.
47344         (select_fn): New type.
47345         (test, do_select, do_select_nowait, do_select_wait, test_tty,
47346         test_connect_first, test_accept_first, test_pair, test_socket_pair,
47347         test_pipe): Add my_select argument.
47348         (test_function): Renamed from main. Add my_select argument.
47349         * tests/test-select.c: Move most code to tests/test-select.h. Include
47350         test-select.h.
47351         * modules/select-tests (Files): Add tests/test-select.h.
47352         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
47353         (my_select, main): New functions.
47354         * modules/pselect-tests (Files): Add tests/test-select.h,
47355         tests/macros.h, tests/signature.h.
47356         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
47357         (configure.ac): Check for <sys/wait.h>.
47359 2011-07-22  Bruno Haible  <bruno@clisp.org>
47361         sys_select tests: Check the signature of FD_*.
47362         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
47363         signature tests from here...
47364         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
47365         here.
47366         * modules/sys_select-tests (Files): Add tests/signature.h.
47368 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47370         largefile: new module, replacing large-inode
47371         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
47372         * MODULES.html.sh: Add largefile, remove large-inode.
47373         * modules/largefile, m4/largefile.m4: New files.
47374         * modules/large-inode, m4/large-inode.m4: Remove.
47376         fsusage: port to MacOS X 10.7 with 4 TiB file systems
47377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
47378         implementations that use only 32 bits to count blocks.
47379         On typical hosts with 1024-byte blocks, this fails with file
47380         systems as small as 4 TiB.  Problem reported by Herb Wartens
47381         <http://debbugs.gnu.org/9140> and this should also fix a similar
47382         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
47384         large-inode: New module
47385         * MODULES.html.sh: Add it.
47386         * modules/large-inode, m4/large-inode.m4: New files.
47388         extensions: Enable extensions on MacOS X 10.5 and later.
47389         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
47391 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
47393         file-has-acl: use acl_extended_file_nofollow if available
47394         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
47395         (acl_extended_file): New macro.
47396         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
47397         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
47399 2011-07-21  Bruno Haible  <bruno@clisp.org>
47401         Declare system functions in a way that works with C++.
47402         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
47403         declare fdopendir as extern "C".
47404         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
47405         declare frexpl as extern "C".
47406         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
47407         declare gai_strerror as extern "C".
47408         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
47409         programs, declare gai_strerror as extern "C".
47410         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
47411         declare getlogin_r as extern "C".
47412         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
47413         as extern "C".
47414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
47415         declare ldexpl as extern "C".
47416         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
47417         as extern "C".
47418         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
47419         program, declare getmntinfo as extern "C".
47420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
47421         stpncpy as extern "C".
47422         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
47423         program, declare __xpg_strerror_r as extern "C".
47424         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
47425         strndup as extern "C".
47426         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
47427         declare memset and bzero as extern "C".
47428         Reported by Sam Steingold <sds@gnu.org>.
47430 2011-07-12  Jim Meyering  <meyering@redhat.com>
47432         maint.mk: prohibit inclusion of "verify.h" without use
47433         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
47435 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47437         timer-time: A new module to check for timer_settime()
47438         * m4/timer_time.m4: Check for the posix function.
47439         * modules/timer-time: Add the new module.
47440         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
47441         Mention it.
47443 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
47444             Bruno Haible  <bruno@clisp.org>
47446         pthread_sigmask: assume POSIX threads if --avoid=threadlib
47447         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
47448         not defined, assume POSIX threads and look for pthread_sigmask in
47449         $LIBS, without changing $CPPFLAGS.
47451 2011-07-19  Bruno Haible  <bruno@clisp.org>
47453         strstr: Update cross-compilation guess.
47454         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
47455         CPUs, guess no, in view of glibc
47456         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
47457         Suggested by Eric Blake. Reported by Reuben Thomas.
47459 2011-07-19  Pádraig Brady  <P@draigBrady.com>
47461         getopt-gnu: suppress core dumps from detection code
47462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
47463         to suppress core dumps that may well occur on glibc systems.
47464         * modules/getopt-gnu: Depend on nocrash.
47466 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
47468         pthread_sigmask: ensure usleep is declared
47469         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
47470         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
47472 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47474         doc: Document NonStop portability issues.
47475         * doc/posix-functions/sigaction.texi (sigaction):
47476         * doc/posix-headers/signal.texi (signal.h):
47477         Document NonStop.  See Joachim Schmitz in
47478         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
47480 2011-07-15  Bruno Haible  <bruno@clisp.org>
47482         ffsl, ffsll: Avoid unportable behaviour.
47483         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
47485 2011-07-15  Bruno Haible  <bruno@clisp.org>
47487         ffs: More tests.
47488         * tests/test-ffs.c (NBITS): New macro.
47489         (main): Add more tests.
47490         * tests/test-ffsl.c (NBITS): New macro.
47491         (main): Add more tests.
47492         * tests/test-ffsll.c (NBITS): New macro.
47493         (main): Add more tests.
47495 2011-07-15  Eric Blake  <eblake@redhat.com>
47497         ffsl, ffsll: new modules
47498         * modules/ffsl: New file.
47499         * modules/ffsll: Likewise.
47500         * m4/ffsl.m4: Likewise.
47501         * m4/ffsll.m4: Likewise.
47502         * lib/ffsl.c: Likewise.
47503         * lib/ffsl.h: Likewise.
47504         * lib/ffsll.c: Likewise.
47505         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
47506         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
47507         * modules/string (Makefile.am): Substitute witnesses.
47508         * lib/strings.in.h (ffsl, ffsll): Declare.
47509         * modules/ffsl-tests: New test file.
47510         * modules/ffsll-tests: Likewise.
47511         * tests/test-ffsl.c: Likewise.
47512         * tests/test-ffsll.c: Likewise.
47513         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47514         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
47515         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
47517         ffs: fix m4 prerequisite
47518         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
47520         ffs: avoid undefined behavior
47521         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
47522         * tests/test-ffs.c (naive, main): Avoid signed shifts.
47523         Reported by Bruno Haible.
47525 2011-07-12  Bruno Haible  <bruno@clisp.org>
47527         pthread_sigmask: Rely on module 'threadlib'.
47528         * modules/pthread_sigmask (Depends-on): Add threadlib.
47529         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
47530         is defined.
47532 2011-07-12  Bruno Haible  <bruno@clisp.org>
47534         regex: Depend on module 'strcase'.
47535         * modules/regex (Depends-on): Add strcase, for strcasecmp().
47537 2011-07-12  Jim Meyering  <meyering@redhat.com>
47539         warn-on-use: fix typo in file name
47540         * modules/snippet/warn-on-use (Files): Correct file name:
47541         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
47543 2011-07-12  Bruno Haible  <bruno@clisp.org>
47545         strings: Document module.
47546         * doc/posix-headers/strings.texi: Mention module 'strings'.
47548 2011-07-12  Bruno Haible  <bruno@clisp.org>
47550         Rename module '_Noreturn' to 'snippet/_Noreturn'.
47551         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
47552         (Files, Makefile.am): Update.
47553         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
47554         * modules/stdlib (Depends-on): Update.
47556 2011-07-12  Bruno Haible  <bruno@clisp.org>
47558         * NEWS: Mention the changes.
47560         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
47561         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
47562         (Files, Makefile.am): Update.
47563         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
47564         * modules/arpa_inet (Depends-on): Update.
47565         * modules/ctype (Depends-on): Update.
47566         * modules/dirent (Depends-on): Update.
47567         * modules/fcntl-h (Depends-on): Update.
47568         * modules/glob (Depends-on): Update.
47569         * modules/iconv-h (Depends-on): Update.
47570         * modules/inttypes-incomplete (Depends-on): Update.
47571         * modules/langinfo (Depends-on): Update.
47572         * modules/locale (Depends-on): Update.
47573         * modules/math (Depends-on): Update.
47574         * modules/netdb (Depends-on): Update.
47575         * modules/poll-h (Depends-on): Update.
47576         * modules/pty (Depends-on): Update.
47577         * modules/search (Depends-on): Update.
47578         * modules/signal (Depends-on): Update.
47579         * modules/spawn (Depends-on): Update.
47580         * modules/stdio (Depends-on): Update.
47581         * modules/stdlib (Depends-on): Update.
47582         * modules/string (Depends-on): Update.
47583         * modules/strings (Depends-on): Update.
47584         * modules/sys_file (Depends-on): Update.
47585         * modules/sys_ioctl (Depends-on): Update.
47586         * modules/sys_select (Depends-on): Update.
47587         * modules/sys_socket (Depends-on): Update.
47588         * modules/sys_stat (Depends-on): Update.
47589         * modules/sys_time (Depends-on): Update.
47590         * modules/sys_times (Depends-on): Update.
47591         * modules/sys_utsname (Depends-on): Update.
47592         * modules/sys_wait (Depends-on): Update.
47593         * modules/termios (Depends-on): Update.
47594         * modules/time (Depends-on): Update.
47595         * modules/unistd (Depends-on): Update.
47596         * modules/wchar (Depends-on): Update.
47597         * modules/wctype-h (Depends-on): Update.
47598         * MODULES.html.sh (Support for building libraries and executables):
47599         Update.
47601         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
47602         * modules/snippet/unused-parameter: Renamed from
47603         modules/unused-parameter.
47604         (Files, Makefile.am): Update.
47605         * build-aux/snippet/unused-parameter.h: Renamed from
47606         build-aux/unused-parameter.h.
47607         * modules/selinux-h (Depends-on): Update.
47608         * modules/unistr/base (Depends-on): Update.
47609         * MODULES.html.sh (Core language properties): Update.
47611         Rename module 'link-warning' to 'snippet/link-warning'.
47612         * modules/snippet/link-warning: Renamed from modules/link-warning.
47613         (Files, Makefile.am): Update.
47614         * build-aux/snippet/link-warning.h: Renamed from
47615         build-aux/link-warning.h.
47616         * MODULES.html.sh (Support for building libraries and executables):
47617         Update.
47619         Rename module 'c++defs' to 'snippet/c++defs'.
47620         * modules/snippet/c++defs: Renamed from modules/c++defs.
47621         (Files, Makefile.am): Update.
47622         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
47623         * modules/arpa_inet (Depends-on): Update.
47624         * modules/ctype (Depends-on): Update.
47625         * modules/dirent (Depends-on): Update.
47626         * modules/fcntl-h (Depends-on): Update.
47627         * modules/glob (Depends-on): Update.
47628         * modules/iconv-h (Depends-on): Update.
47629         * modules/langinfo (Depends-on): Update.
47630         * modules/locale (Depends-on): Update.
47631         * modules/math (Depends-on): Update.
47632         * modules/netdb (Depends-on): Update.
47633         * modules/poll-h (Depends-on): Update.
47634         * modules/pty (Depends-on): Update.
47635         * modules/search (Depends-on): Update.
47636         * modules/signal (Depends-on): Update.
47637         * modules/spawn (Depends-on): Update.
47638         * modules/stdio (Depends-on): Update.
47639         * modules/stdlib (Depends-on): Update.
47640         * modules/string (Depends-on): Update.
47641         * modules/strings (Depends-on): Update.
47642         * modules/sys_ioctl (Depends-on): Update.
47643         * modules/sys_select (Depends-on): Update.
47644         * modules/sys_socket (Depends-on): Update.
47645         * modules/sys_stat (Depends-on): Update.
47646         * modules/sys_time (Depends-on): Update.
47647         * modules/sys_wait (Depends-on): Update.
47648         * modules/termios (Depends-on): Update.
47649         * modules/time (Depends-on): Update.
47650         * modules/unistd (Depends-on): Update.
47651         * modules/wchar (Depends-on): Update.
47652         * modules/wctype-h (Depends-on): Update.
47654         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
47655         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
47656         (Files, Makefile.am): Update.
47657         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
47658         * modules/argv-iter (Depends-on): Update.
47659         * modules/arpa_inet (Depends-on): Update.
47660         * modules/dirent (Depends-on): Update.
47661         * modules/fcntl-h (Depends-on): Update.
47662         * modules/fnmatch (Depends-on): Update.
47663         * modules/getopt-posix (Depends-on): Update.
47664         * modules/glob (Depends-on): Update.
47665         * modules/iconv-h (Depends-on): Update.
47666         * modules/inttypes-incomplete (Depends-on): Update.
47667         * modules/locale (Depends-on): Update.
47668         * modules/math (Depends-on): Update.
47669         * modules/netdb (Depends-on): Update.
47670         * modules/search (Depends-on): Update.
47671         * modules/signal (Depends-on): Update.
47672         * modules/spawn (Depends-on): Update.
47673         * modules/stdio (Depends-on): Update.
47674         * modules/stdlib (Depends-on): Update.
47675         * modules/string (Depends-on): Update.
47676         * modules/strings (Depends-on): Update.
47677         * modules/sys_socket (Depends-on): Update.
47678         * modules/sys_stat (Depends-on): Update.
47679         * modules/sys_time (Depends-on): Update.
47680         * modules/sys_times (Depends-on): Update.
47681         * modules/sys_utsname (Depends-on): Update.
47682         * modules/time (Depends-on): Update.
47683         * modules/unistd (Depends-on): Update.
47684         * modules/wchar (Depends-on): Update.
47685         * MODULES.html.sh (Support for building libraries and executables):
47686         Update.
47688 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47690         Improvements on _Noreturn and related modules.
47692         modules/_Exit-tests: test _Noreturn too
47693         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
47694         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
47695         (main): Use them.
47697         stdnoreturn, stdnoreturn-tests: remove modules
47698         They're not needed here and a bit premature for use elsewhere.  See
47699         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
47700         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
47701         * tests/test-stdnoreturn.c: Remove files.
47702         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
47703         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
47704         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
47705         and using noreturn.
47706         * modules/openat, modules/sigpipe-die, modules/xalloc:
47707         * modules/xmemdup0, modules/xstrtol:
47708         Remove dependency on stdnoreturn.
47710         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
47711         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
47712         Reparenthesize to avoid GCC warning.
47713         Support Microsoft's syntax.
47714         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
47716         _Noreturn-tests: remove module
47717         * modules/_Noreturn-tests: Remove.
47718         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
47719         * tests/test-_Noreturn.c: Remove.
47720         * tests/test-stdnoreturn.c: Merge from the old
47721         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
47723 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
47725         _Noreturn, stdnoreturn, and related modules.
47727         * top/maint.mk: Adjust to new noreturn support.
47728         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
47729         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
47731         xalloc: use stdnoreturn.h
47732         * lib/xalloc.h: Include <stdnoreturn.h>.
47733         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47734         * modules/xalloc (Depends-on): Add stdnoreturn.
47736         xstrtol: use stdnoreturn.h
47737         * lib/xstrtol.h: Include <stdnoreturn.h>.
47738         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47739         * modules/xstrtol (Depends-on): Add stdnoreturn.
47741         xmemdup0: use stdnoreturn.h
47742         * lib/xmemdup0.h: Include <stdnoreturn.h>.
47743         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47744         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
47746         sigpipe-die: use stdnoreturn.h
47747         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
47748         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47749         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
47751         openat: use stdnoreturn.h
47752         * lib/openat.h: Include <stdnoreturn.h>.
47753         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
47754         * modules/openat (Depends-on): Add stdnoreturn.
47756         * lib/openat-die.c (openat_save_fail): Modernize comment.
47758         * lib/xalloc-die.c (xalloc_die): Modernize comment.
47760         * lib/glthread/thread.h: Modernize comment.
47762         obstack: use _Noreturn
47763         * lib/obstack.c (__attribute__): Remove macro.
47764         (print_and_abort): Use _Noreturn.
47766         c-stack: use _Noreturn
47767         * lib/c-stack.c (die, overflow_handler, segv_handler):
47768         Use _Noreturn rather than __attribute__((noreturn)).
47770         argmatch-tests, exclude_tests: use _Noreturn
47771         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
47772         Remove.
47773         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
47775         stdlib: use _Noreturn
47776         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
47777         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
47778         * modules/stdlib (Depends-on): Add _Noreturn.
47779         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
47781         stdnoreturn-tests: new module
47782         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
47784         stdnoreturn: new module
47785         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
47786         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
47788         _Noreturn-tests: new module
47789         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
47791         _Noreturn: new module
47792         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
47793         New section, mentioning it.
47794         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
47796         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
47798 2011-07-11  Eric Blake  <eblake@redhat.com>
47800         ffs: new module
47801         * modules/ffs: New file.
47802         * m4/ffs.m4: Likewise.
47803         * lib/ffs.c: Likewise.
47804         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
47805         * modules/strings (Makefile.am): Substitute witness.
47806         (Depends-on): Add c++defs.
47807         * lib/strings.in.h (ffs): Declare.
47808         * modules/ffs-tests: New test file.
47809         * tests/test-ffs.c: Test new module.
47810         * MODULES.html.sh (Integer arithmetic functions): Mention it.
47811         * doc/posix-functions/ffs.texi (ffs): Likewise.
47813         regex: avoid compiler warning
47814         * lib/regex.c (includes): Include <strings.h>, for use of
47815         strcasecmp in regcomp.c.
47816         Reported by Joachim Schmitz.
47818 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
47820         stdint: respect system's intmax_t if INTMAX_MAX
47821         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
47822         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
47823         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
47824         long but int64_t is long long, and where we will clash with the
47825         system intmax_t if we override it.  See
47826         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
47827         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
47828         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
47829         similarly for UINTMAX_C.
47831 2011-07-08  Bruno Haible  <bruno@clisp.org>
47833         pthread_sigmask tests: Avoid a compiler warning.
47834         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
47835         non-zero.
47837         sigprocmask tests: A better way to avoid a compiler warning.
47838         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
47839         (main): Complain if system() returns non-zero.
47840         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
47842 2011-07-08  Bruno Haible  <bruno@clisp.org>
47844         pthread_sigmask: Work around IRIX bug.
47845         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
47846         bug.
47847         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
47848         there may be unblocked pending signals.
47849         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
47851 2011-07-08  Bruno Haible  <bruno@clisp.org>
47853         pthread_sigmask: Work around Cygwin bug.
47854         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
47855         bug.
47856         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
47857         the system's pthread_sigmask function.
47858         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
47860 2011-07-08  Bruno Haible  <bruno@clisp.org>
47862         pthread_sigmask: Work around bug in single-threaded implementation.
47863         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
47864         FreeBSD, HP-UX, Solaris bug.
47865         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
47866         * lib/pthread_sigmask.c: Include <stddef.h>.
47867         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
47868         the system's pthread_sigmask function.
47869         * modules/pthread_sigmask (configure.ac): Invoke
47870         gl_PREREQ_PTHREAD_SIGMASK.
47871         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
47872         HP-UX, Solaris.
47874 2011-07-08  Eric Blake  <eblake@redhat.com>
47876         test-sigprocmask: avoid compiler warning
47877         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
47878         * tests/test-sigprocmask.c (main): Use it to silence warning.
47879         Reported by Jim Meyering.
47881         test-snprintf: avoid compiler warning
47882         * tests/test-snprintf.c (main): Avoid shadowed declaration.
47883         * tests/test-vsnprintf.c (main): Likewise.
47884         Reported by Jim Meyering.
47886 2011-07-08  Bruno Haible  <bruno@clisp.org>
47888         Tests for module 'pthread_sigmask'.
47889         * modules/pthread_sigmask-tests: New file.
47890         * tests/test-pthread_sigmask1.c: New file, based on
47891         tests/test-sigprocmask.c.
47892         * tests/test-pthread_sigmask2.c: New file.
47894 2011-07-08  Jim Meyering  <meyering@redhat.com>
47896         test-getopt.h: avoid warning about an unused variable
47897         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
47899 2011-07-07  Jim Meyering  <meyering@redhat.com>
47901         maint: reduce list of files exempt from sc_prohibit_leading_TABs
47902         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
47903         now that it no longer contains leading TABs.
47904         Remove unused "url=FIXME" statement.
47906 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47908         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
47909         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47910         When gl_THREADLIB is not in use, assume that the POSIX sematics
47911         are desired.  This is better for Emacs, which uses POSIX semantics
47912         on GNUish and/or POSIXish platforms, and does not use threads at
47913         all otherwise.
47915         pthread_sigmask: fix typo when testing for libraries
47916         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
47917         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
47919 2011-07-08  Eric Blake  <eblake@redhat.com>
47921         fts: introduce FTS_NOATIME
47922         * lib/fts_.h (FTS_NOATIME): New bit flag.
47923         (FTS_OPTIONMASK): Adjust.
47924         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
47925         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
47927 2011-07-08  Bruno Haible  <bruno@clisp.org>
47929         Tests for module 'thread'.
47930         * modules/thread-tests: New file.
47931         * tests/test-thread_self.c: New file.
47932         * tests/test-thread_create.cc: New file.
47934 2011-07-08  Bruno Haible  <bruno@clisp.org>
47936         thread: Avoid gcc warnings when using gl_thread_self().
47937         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
47938         'void *'.
47939         (gl_thread_self_pointer): Update.
47941 2011-07-07  Bruno Haible  <bruno@clisp.org>
47943         signal-c++-tests: Check declaration of pthread_sigmask.
47944         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
47945         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
47946         $(LIB_PTHREAD_SIGMASK).
47948 2011-07-07  Bruno Haible  <bruno@clisp.org>
47950         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
47951         * lib/signal.in.h (pthread_sigmask): Override if
47952         REPLACE_PTHREAD_SIGMASK is 1.
47953         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47954         REPLACE_PTHREAD_SIGMASK.
47955         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
47956         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
47957         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
47958         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47959         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
47961 2011-07-07  Bruno Haible  <bruno@clisp.org>
47963         pthread_sigmask: Ensure declaration in <signal.h>.
47964         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
47965         include <pthread.h>.
47966         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
47967         problem.
47969 2011-07-07  Bruno Haible  <bruno@clisp.org>
47971         pthread_sigmask: Document the module.
47972         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
47974 2011-07-07  Bruno Haible  <bruno@clisp.org>
47976         pthread_sigmask: Follow gnulib conventions.
47977         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
47978         gl_PTHREAD_SIGMASK.
47979         * modules/pthread_sigmask (configure.ac): Update.
47981 2011-07-07  Bruno Haible  <bruno@clisp.org>
47983         pthread_sigmask: Make declaration C++ safe.
47984         * lib/signal.in.h: In two special conditions, just do an #include_next.
47985         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47986         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
47987         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47988         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
47989         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
47990         not REPLACE_PTHREAD_MASK.
47991         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
47992         not REPLACE_PTHREAD_MASK.
47993         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
47995 2011-07-07  Bruno Haible  <bruno@clisp.org>
47997         pthread_sigmask: Fix return value.
47998         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
47999         * lib/pthread_sigmask.c: New file.
48000         * modules/pthread_sigmask (Files): Add it.
48001         (configure.ac): Invoke AC_LIBOBJ.
48003 2011-07-07  Eric Blake  <eblake@redhat.com>
48005         getopt: more portable argv creation
48006         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
48007         const, use char arrays rather than strings.
48008         Suggested by Paul Eggert.
48010 2011-07-07  Bruno Haible  <bruno@clisp.org>
48012         Tests for module 'sigprocmask'.
48013         * modules/sigprocmask-tests: New file.
48014         * tests/test-sigprocmask.c: New file.
48016 2011-07-07  Bruno Haible  <bruno@clisp.org>
48018         float tests: Tweak.
48019         * tests/test-float.c (main): Tweak skip message.
48021 2011-07-07  Eric Blake  <eblake@redhat.com>
48023         getopt: avoid compiler warning during configure
48024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
48025         assigning string literals to non-const pointer.
48027         getopt-gnu: avoid crash in glibc getopt
48028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
48029         * tests/test-getopt.h (test_getopt): Enhance test.
48030         * tests/test-getopt_long.h (test_getopt_long): Likewise.
48031         * doc/posix-functions/getopt.texi (getopt): Document it.
48032         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48033         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48034         Likewise.
48036 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
48038         getopt: handle W; without long options in getopt [BZ #12922]
48039         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
48040         but no long options are defined, just return 'W'.
48042 2011-07-07  Bruno Haible  <bruno@clisp.org>
48044         Avoid literal tabs.
48045         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
48046         variable containing a tab instead of a literal tab.
48047         Reported by Jim Meyering.
48049 2011-07-07  Bruno Haible  <bruno@clisp.org>
48051         Comments.
48052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
48054 2011-07-06  Bruno Haible  <bruno@clisp.org>
48056         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
48057         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
48058         <winsock2.h>.
48059         (rpl_fd_isset, FD_ISSET): New definitions, copied from
48060         lib/sys_socket.in.h.
48061         (close, gethostname): Hide declarations from <winsock2.h>.
48062         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48063         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
48064         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
48065         (select): Don't override if gnulib's <sys/select.h> was already
48066         included.
48067         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
48068         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
48069         setsockopt, shutdown, select): Tweak indentation.
48071 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48073         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
48074         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
48075         in an application that does not use the sys_select module.
48077 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
48079         poll: do not return 0 on timeout=-1
48080         * lib/poll.c: Loop with yield if no events occurred.
48082 2011-07-06  Eric Blake  <eblake@redhat.com>
48084         pthread_sigmask: always replace when not using pthread
48085         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
48086         replacement when using some threading other than pthread.  Fix
48087         logic bug.
48089 2011-07-06  Bruno Haible  <bruno@clisp.org>
48091         Comments.
48092         * m4/printf.m4: Update comments about mingw.
48094 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48096         sys_select: define sigset_t more portably
48097         * lib/sys_select.in.h: Always include <sys/types.h>, since
48098         we now need sigset_t and mingw defines it there.
48099         Include <signal.h> before split inclusion guard, to avoid
48100         mishaps on Solaris, whose <signal.h> eventually includes us.
48101         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
48102         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
48103         which come from ...
48104         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
48105         gl_CHECK_TYPE_SIGSET_T.
48106         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
48107         does the real work.
48108         * modules/sys_select (Depends-on): Add 'signal'.
48110         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
48111         Suggested by Bruno Haible.
48113         pselect: Use pthread_sigmask, not sigprocmask.
48114         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
48115         multithreaded apps better than sigprocmask does.
48116         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
48117         sigprocmask directly.
48119 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48121         * lib/pselect.c (pselect): Use plain name, without "rpl_".
48122         Don't #undef,  since we don't need any underlying pselect.
48123         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
48124         (Depends-on): Add select.
48125         (Link): Add $(LIBSOCKET).
48126         These changes suggested by Bruno Haible.
48128         pselect: document better
48129         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48130         * doc/posix-functions/pselect.texi (pselect): Document new module.
48132         pthread_sigmask: new module
48133         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
48134         * doc/posix-functions/pthread_sigmask.texi: Document new module.
48135         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
48136         This is done only as a macro; I don't know how well that'll
48137         work for C++.  Move <sys/types.h> include before the include_next,
48138         to avoid mishap on Solaris.
48139         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
48140         * modules/signal (Makefile.am): Substitute the check's results.
48141         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
48143         test-pselect: new module
48144         * modules/pselect-tests, tests/test-pselect.c: New files.
48145         * tests/test-select.c, tests/test-sys_select-c++.cc:
48146         If TEST_PSELECT is defined, test pselect instead of testing select.
48148         * tests/test-sys_select.c (sigset_t): Test for it, too.
48149         Suggested by Bruno Haible.
48151 2011-07-05  Eric Blake  <eblake@redhat.com>
48153         snprintf: guarantee %1$d, for libintl
48154         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
48155         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48156         * doc/posix-functions/snprintf.texi (snprintf): Update.
48157         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48158         * tests/test-snprintf.c (main): Enhance test.
48159         * tests/test-vsnprintf.c (main): Likewise.
48161 2011-07-05  Jim Meyering  <meyering@redhat.com>
48163         maint: exempt stdio-read.c and stdio-write.c from the cppi check
48164         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
48165         per Bruno's request, to accommodate this idiom (no space after "#")
48166         even when the function is inside an #if block:
48167         char *
48168         gets (char *s)
48169         #undef gets
48170         {
48171           ...
48172         }
48174 2011-07-04  Jim Meyering  <meyering@redhat.com>
48176         maint: indent with spaces, not TABs, and add a rule to check this
48177         * tests/test-userspec.c: Indent with spaces, not TABs.
48178         * tests/test-argp.c: Likewise.
48179         * tests/test-c-stack2.sh: Likewise.
48180         * tests/test-parse-duration.sh: Likewise
48181         * m4/strtod.m4: Likewise.
48182         * m4/alloca.m4: Likewise.
48183         * m4/pselect.m4: Likewise.
48184         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
48186 2011-07-03  Jim Meyering  <meyering@redhat.com>
48188         maint.mk: correct omissions in prohibit_argmatch_without_use check
48189         This rule would mistakenly report that argmatch.h is included without
48190         use even when both the argmatch and invalid_arg macro were used.
48191         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
48192         of argmatch and invalid_arg.
48194 2011-07-03  Bruno Haible  <bruno@clisp.org>
48196         Comments about EINTR.
48197         * lib/safe-read.h: Explain the purpose of this module.
48198         * lib/safe-write.h: Likewise.
48199         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
48200         module.
48201         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
48202         module.
48203         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48205 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
48207         xnanosleep: Rewrite to use new dtotimespec module.
48208         It has the conversion code that used to be in xnanosleep.
48209         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
48210         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
48211         (TIME_T_MAX): Remove.
48212         (xnanosleep): Rewrite in terms of dtotimespec.
48213         * modules/xnanosleep (Depends-on): Add dtotimespec.
48214         Remove intprops, stdbool.
48216         timespec-add, timespec-sub: new modules
48217         * lib/timespec.h (timespec_add, timespec_sub): New decls.
48218         * lib/timespec-add.c, lib/timespec-sub.c:
48219         * modules/timespec-add, modules/timespec-sub: New files.
48221         dtotimespec: new module
48222         * lib/timespec.h (dtotimespec): New decl.
48223         * lib/dtotimespec.c, modules/dtotimespec: New files.
48225         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
48227         pselect: new module
48228         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
48229         (pselect): New decls.
48230         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
48231         since the standard pselect decl uses 'restrict'.
48232         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
48233         HAVE_PSELECT, REPLACE_PSELECT.
48234         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
48235         HAVE_PSELECT, REPLACE_PSELECT.
48236         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
48238         sys_select: don't depend on sys_socket
48239         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
48240         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
48241         This fix works on GNU and GNU-like platforms, but has not been tested
48242         on native Windows.
48243         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
48244         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
48245         gl_HEADER_SYS_SOCKET.
48246         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
48247         gl_PREREQ_SYS_H_WINSOCK2.
48249 2011-06-29  Eric Blake  <eblake@redhat.com>
48251         pipe2: fix C89 compile problem
48252         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
48253         Reported by Bruno Haible.
48255         pipe, pipe2: don't corrupt fd on error
48256         * lib/pipe.c (pipe): Leave fd unchanged on error.
48257         * lib/pipe2.c (pipe2): Likewise.
48258         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
48259         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
48261 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
48263         mmap-anon: do not use regular expressions inadvertently
48264         * m4/mmap-anon.m4: Remove trailing period from strings sought
48265         in the output.
48267 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
48269         nanosleep: fix integer overflow problem
48270         * lib/nanosleep.c (my_usleep): Don't assume signed integer
48271         arithmetic wraps around on overflow.
48273         nanosleep: simplify carrying
48274         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
48275         first call to the underyling nanosleep, not for the last one.
48276         This doesn't fix any bugs, but it simplifies the computation of
48277         the remaining delay.  Found while auditing integer overflow issues.
48279         dup2: remove test for existence of fcntl
48280         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
48281         "#if HAVE_FCNTL", in the configure-time test program.
48282         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
48283         and therefore speeds up "configure" a bit.  Found while
48284         adding the dup2 module to Emacs.
48286 2011-06-24  Eric Blake  <eblake@redhat.com>
48288         maint.mk: enhance useless header checks
48289         * top/maint.mk (_sc_header_without_use): Check both include
48290         styles.
48291         (sc_prohibit_assert_without_use)
48292         (sc_prohibit_close_stream_without_use)
48293         (sc_prohibit_getopt_without_use)
48294         (sc_prohibit_quotearg_without_use)
48295         (sc_prohibit_quote_without_use)
48296         (sc_prohibit_long_options_without_use)
48297         (sc_prohibit_inttostr_without_use)
48298         (sc_prohibit_ignore_value_without_use)
48299         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
48300         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
48301         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
48302         (sc_prohibit_hash_pjw_without_use)
48303         (sc_prohibit_safe_read_without_use)
48304         (sc_prohibit_argmatch_without_use)
48305         (sc_prohibit_canonicalize_without_use)
48306         (sc_prohibit_root_dev_ino_without_use)
48307         (sc_prohibit_openat_without_use)
48308         (sc_prohibit_c_ctype_without_use)
48309         (sc_prohibit_signal_without_use)
48310         (sc_prohibit_stdio--_without_use)
48311         (sc_prohibit_stdio-safer_without_use)
48312         (sc_prohibit_strings_without_use)
48313         (sc_prohibit_intprops_without_use)
48314         (sc_prohibit_stddef_without_use)
48315         (sc_prohibit_xfreopen_without_use): Update clients.
48317 2011-06-24  Jim Meyering  <meyering@redhat.com>
48319         syntax-check: keep one maint.mk rule in sync with its header
48320         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
48321         of the bug Eric has just fixed, with today's commit 25e4c2ec.
48322         I prefer to avoid temporary files here, so use <(...), but that
48323         is not supported by /bin/sh, so...
48324         (SHELL): Define to /bin/bash.
48326 2011-06-24  Eric Blake  <eblake@redhat.com>
48328         maint.mk: update sc_prohibit_intprops_without_use
48329         * top/maint.mk (_intprops_names): Match recent changes.
48331 2011-06-24  Bruno Haible  <bruno@clisp.org>
48333         strerror-override: No-op tweak.
48334         * lib/strerror-override.h (strerror_override): Reorder conditions,
48335         for consistency with lib/strerror-override.c.
48337 2011-06-23  Eric Blake  <eblake@redhat.com>
48339         maint.mk: test further PATH_MAX issues
48340         * top/maint.mk (sc_prohibit_path_max_array): Rename...
48341         (sc_prohibit_path_max_allocation): ...and also test alloca.
48342         Suggested by Jim Meyering.
48344 2011-06-22  Eric Blake  <eblake@redhat.com>
48346         maint.mk: add syntax-check to avoid char[PATH_MAX]
48347         * top/maint.mk (sc_prohibit_path_max_array): New rule.
48349         stat: be robust to PATH_MAX definition
48350         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
48351         * modules/stat (Depends-on): Add verify.
48353         link: work around IRIX bug
48354         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
48355         * lib/link.c (rpl_link): Work around it.
48356         * tests/test-link.h (test_link): Enhance test.
48357         * doc/posix-functions/link.texi (link): Document the bug.
48359         getopt: silence clang warning
48360         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
48361         dereference.
48362         Reported by Gustavo Martin Domato.
48364 2011-06-22  Jim Meyering  <meyering@redhat.com>
48366         bootstrap: do not insert a blank line into each .gitignore file
48367         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
48369 2011-06-21  Eric Blake  <eblake@redhat.com>
48371         perror: test for output mismatch
48372         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
48373         perror on IRIX.
48375         strerror_r: fix OpenBSD behavior on out-of-range
48376         * lib/strerror_r.c (strerror_r): Always use maximal string.
48377         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
48379         strerror_r: fix OpenBSD behavior on 0
48380         * lib/strerror-override.c (strerror_override): Also override 0
48381         when needed.
48382         * lib/strerror-override.h (strerror_override): Likewise.
48383         * lib/strerror.c (strerror): Simplify, now that 0 override is done
48384         earlier.
48385         * lib/strerror_r.c (strerror_r): Likewise.
48386         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
48387         behavior...
48388         (gl_FUNC_STRERROR_0): ...into new macro.
48389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
48390         is overridden.
48391         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
48392         * modules/strerror-override (Files): Add strerror.m4.
48393         (configure.ac): Also provide override for 0 when needed.
48394         * doc/posix-functions/strerror.texi (strerror): Document this.
48395         * doc/posix-functions/perror.texi (perror): Likewise.
48397         perror: adjust array size
48398         * modules/perror (Depends-on): Add strerror-override.
48399         * lib/perror.c (perror): Use it to avoid magic number.
48401         strerror-override: reduce size
48402         * lib/strerror-override.c (strerror_override): Use fewer lines.
48404 2011-06-20  Bruno Haible  <bruno@clisp.org>
48406         pathmax: Ensure correct value for PATH_MAX on HP-UX.
48407         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
48409 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48411         alloca: port to compilers that can optimize like GCC 4.6.0
48412         * lib/alloca.c (find_stack_direction): New signature, taken from
48413         Autoconf git.  This works with GCC 4.6.0.  This code should never
48414         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
48415         be used with other compilers that optimize as well as GCC 4.6.0 does.
48416         (alloca): Adjust to new signature.
48417         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
48418         New macro, which patches Autoconf in a similar way.
48420         c-stack: stop worrying about stack direction
48421         * lib/c-stack.c (find_stack_direction): Remove.
48422         (segv_handler): Don't worry about stack direction growth, as it's
48423         too much of a pain to configure this correctly, given how compilers
48424         are optimizing-away our stack-growth detection code.  Instead, assume
48425         that any access to just before or just after the stack is OK.
48426         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
48427         Don't require AC_FUNC_ALLOCA; no longer needed.
48429 2011-06-20  Eric Blake  <eblake@redhat.com>
48431         test-stat: don't allocate PATH_MAX bytes
48432         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
48433         PATH_MAX-sized buffer.
48434         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
48435         * modules/stat-tests (Depends-on): Likewise.
48436         * tests/test-fstatat.c (includes): Drop pathmax.h.
48437         * tests/test-stat.c (includes): Likewise.
48438         Reported by Bruno Haible.
48440 2011-06-20  Bruno Haible  <bruno@clisp.org>
48442         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
48443         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
48444         * lib/float.c: New file.
48445         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
48446         REPLACE_FLOAT_LDBL.
48447         * modules/float (Files): Add lib/float.c.
48448         (configure.ac): Invoke AC_LIBOBJ.
48449         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
48451 2011-06-20  Bruno Haible  <bruno@clisp.org>
48453         Tests for module 'float'.
48454         * modules/float-tests: New file.
48455         * tests/test-float.c: New file.
48457 2011-06-19  Bruno Haible  <bruno@clisp.org>
48459         isinf: Coding style.
48460         * lib/isinf.c: Use GNU coding style.
48462 2011-06-19  Bruno Haible  <bruno@clisp.org>
48464         linkat test: Avoid test failure on AIX 7.1.
48465         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
48466         * tests/test-link.h (test_link): Likewise.
48468 2011-06-19  Bruno Haible  <bruno@clisp.org>
48470         pread test: Avoid test failure on OpenBSD 4.9.
48471         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
48473 2011-06-19  Bruno Haible  <bruno@clisp.org>
48475         sprintf-posix: Fix test failure on AIX 7.1.
48476         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
48477         * doc/posix-functions/dprintf.texi: Mention limited precision problem
48478         on AIX.
48479         * doc/posix-functions/fprintf.texi: Likewise.
48480         * doc/posix-functions/printf.texi: Likewise.
48481         * doc/posix-functions/snprintf.texi: Likewise.
48482         * doc/posix-functions/sprintf.texi: Likewise.
48483         * doc/posix-functions/vdprintf.texi: Likewise.
48484         * doc/posix-functions/vfprintf.texi: Likewise.
48485         * doc/posix-functions/vprintf.texi: Likewise.
48486         * doc/posix-functions/vsnprintf.texi: Likewise.
48487         * doc/posix-functions/vsprintf.texi: Likewise.
48489 2011-06-19  Bruno Haible  <bruno@clisp.org>
48491         roundl-ieee: Fix test failure on AIX 7.1.
48492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
48493         * doc/posix-functions/roundl.texi: Mention problem with negative
48494         arguments.
48496 2011-06-19  Bruno Haible  <bruno@clisp.org>
48498         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48499         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
48500         * doc/posix-functions/round.texi: Mention problem with negative
48501         arguments.
48502         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
48504 2011-06-19  Bruno Haible  <bruno@clisp.org>
48506         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
48507         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
48508         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
48509         * doc/posix-functions/roundf.texi: Mention problem with negative
48510         arguments.
48511         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
48513 2011-06-19  Bruno Haible  <bruno@clisp.org>
48515         ceilf-ieee: Work around bug on MacOS X 10.5.
48516         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
48518         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
48519         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
48520         IEEE compliant, avoid compiler optimizations.
48521         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
48522         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
48523         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
48524         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
48525         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
48526         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
48527         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
48528         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
48529         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
48530         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
48532 2011-06-19  Bruno Haible  <bruno@clisp.org>
48534         ceilf-ieee: Work around bug on AIX 7.1.
48535         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
48536         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
48538 2011-06-19  Bruno Haible  <bruno@clisp.org>
48540         ceil-ieee: Work around bug on AIX 7.1.
48541         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
48542         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
48544 2011-06-18  Bruno Haible  <bruno@clisp.org>
48546         fsync test: Avoid test failure on MacOS X and AIX.
48547         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
48548         EINVAL.
48550 2011-06-18  Bruno Haible  <bruno@clisp.org>
48552         openat, fdopendir tests: Fix link errors.
48553         * modules/openat-tests (Depends-on): Add progname.
48554         * modules/fdopendir-tests (Depends-on): Likewise.
48555         * tests/test-fchownat.c: Include progname.h.
48556         (main): Call set_program_name.
48557         * tests/test-fstatat.c: Include progname.h.
48558         (main): Call set_program_name.
48559         * tests/test-mkdirat.c: Include progname.h.
48560         (main): Call set_program_name.
48561         * tests/test-openat.c: Include progname.h.
48562         (main): Call set_program_name.
48563         * tests/test-unlinkat.c: Include progname.h.
48564         (main): Call set_program_name.
48565         * tests/test-fdopendir.c: Include progname.h.
48566         (main): Call set_program_name.
48568 2011-06-18  Bruno Haible  <bruno@clisp.org>
48570         Doc update.
48571         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
48572         HP-UX.
48573         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
48575 2011-06-18  Bruno Haible  <bruno@clisp.org>
48577         getcwd tests: Avoid compilation error on HP-UX 11.31.
48578         * modules/getcwd-tests (Depends-on): Add pathmax.
48579         * tests/test-getcwd.c: Include pathmax.h.
48581 2011-06-18  Bruno Haible  <bruno@clisp.org>
48583         isfinite, isinf: Fix link error on AIX 6 and 7.
48584         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
48585         needed, also test the macro with a 'float' argument.
48586         * m4/isinf.m4 (gl_ISINF): Likewise.
48588 2011-06-18  Bruno Haible  <bruno@clisp.org>
48590         getloadavg: Don't clobber LIBS. Regression from previous commit.
48591         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
48592         AC_CHECK_LIB from here...
48593         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
48594         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
48595         gl_func_getloadavg_done.
48596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48598 2011-06-18  Bruno Haible  <bruno@clisp.org>
48600         clean-temp: Improve documentation.
48601         * lib/clean-temp.h: Explain better how to use this module.
48602         Reported by John Darrington <john@darrington.wattle.id.au>.
48604 2011-06-17  Bruno Haible  <bruno@clisp.org>
48606         pread, pwrite: Avoid cc warning on AIX.
48607         * lib/unistd.in.h (pread): Undefine before defining as a macro.
48608         (pwrite): Likewise.
48610 2011-06-17  Bruno Haible  <bruno@clisp.org>
48612         spawn-pipe tests: Fix link error.
48613         * tests/test-spawn-pipe-child.c: Undefine fprintf.
48614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48616 2011-06-17  Bruno Haible  <bruno@clisp.org>
48618         Tests: Remove unnecessary dependency.
48619         * modules/canonicalize-tests (Depends-on): Remove progname.
48620         * modules/chown-tests (Depends-on): Likewise.
48621         * modules/dirname-tests (Depends-on): Likewise.
48622         * modules/fdopendir-tests (Depends-on): Likewise.
48623         * modules/fdutimensat-tests (Depends-on): Likewise.
48624         * modules/hash-tests (Depends-on): Likewise.
48625         * modules/lchown-tests (Depends-on): Likewise.
48626         * modules/linkat-tests (Depends-on): Likewise.
48627         * modules/renameat-tests (Depends-on): Likewise.
48628         * modules/spawn-pipe-tests (Depends-on): Likewise.
48629         * modules/utimensat-tests (Depends-on): Likewise.
48631 2011-06-17  Bruno Haible  <bruno@clisp.org>
48633         spawn-pipe tests: Fix link error.
48634         * tests/test-spawn-pipe-child.c: Undefine fflush.
48636 2011-06-17  Bruno Haible  <bruno@clisp.org>
48638         Fix tests link errors.
48639         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
48640         * modules/chown-tests (Makefile.am): Don't link test-chown with
48641         LIBINTL.
48642         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
48643         LIBINTL.
48644         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
48645         LIBINTL.
48646         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
48647         LIBINTL.
48649 2011-06-16  Bruno Haible  <bruno@clisp.org>
48651         crypto/gc-sha1: Fix recent regression.
48652         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
48653         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
48655         crypto/gc-md5: Fix recent regression.
48656         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
48658         crypto/gc-md4: Fix recent regression.
48659         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
48660         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
48662         crypto/gc-arctwo: Fix recent regression.
48663         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
48664         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
48666         crypto/gc-rijndael: Fix recent regression.
48667         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
48668         (configure.ac): Invoke AC_LIBOBJ here.
48669         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
48670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48672         crypto/gc-hmac-sha1: Fix recent regression.
48673         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
48674         (configure.ac): Invoke AC_LIBOBJ here.
48675         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
48676         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48678         crypto/gc-hmac-md5: Fix recent regression.
48679         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
48680         (configure.ac): Invoke AC_LIBOBJ here.
48681         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
48682         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48684         crypto/gc-des: Fix recent regression.
48685         * modules/crypto/gc-des (Files): Remove m4/des.m4.
48686         (configure.ac): Invoke AC_LIBOBJ here.
48687         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
48688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48690         crypto/gc-arcfour: Fix recent regression.
48691         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
48692         (configure.ac): Invoke AC_LIBOBJ here.
48693         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
48694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48696 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
48698         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
48699         After the 2011-05-21 change, this macro requires
48700         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
48701         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48703 2011-06-16  Bruno Haible  <bruno@clisp.org>
48705         fprintftime: Move AC_LIBOBJ invocations to module description.
48706         * m4/fprintftime.m4: Remove file.
48707         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
48708         (configure.ac): Remove gl_FPRINTFTIME call.
48709         (Makefile.am): Augment lib_SOURCES.
48710         Reported by Jim Meyering.
48712 2011-06-16  Bruno Haible  <bruno@clisp.org>
48714         tmpfile-safer: Finish 2011-05-23 commit.
48715         * m4/stdio-safer.m4: Really remove file.
48716         Reported by Jim Meyering.
48718 2011-06-16  Bruno Haible  <bruno@clisp.org>
48720         syntax-check: Fix typo.
48721         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
48722         printf-posix.m4.
48723         Reported by Jim Meyering.
48725 2011-06-13  Jim Meyering  <meyering@redhat.com>
48727         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
48728         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
48730 2011-05-23  Bruno Haible  <bruno@clisp.org>
48732         yesno: Move AC_LIBOBJ invocations to module description.
48733         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
48734         * modules/yesno (Makefile.am): Augment lib_SOURCES.
48736 2011-05-23  Bruno Haible  <bruno@clisp.org>
48738         xstrtol: Move AC_LIBOBJ invocations to module description.
48739         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
48740         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
48742 2011-05-23  Bruno Haible  <bruno@clisp.org>
48744         xstrtold: Move AC_LIBOBJ invocations to module description.
48745         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
48746         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
48748 2011-05-23  Bruno Haible  <bruno@clisp.org>
48750         xstrtod: Move AC_LIBOBJ invocations to module description.
48751         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
48752         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
48754 2011-05-23  Bruno Haible  <bruno@clisp.org>
48756         xnanosleep: Move AC_LIBOBJ invocations to module description.
48757         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
48758         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
48760 2011-05-23  Bruno Haible  <bruno@clisp.org>
48762         xgetcwd: Move AC_LIBOBJ invocations to module description.
48763         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
48764         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
48766 2011-05-23  Bruno Haible  <bruno@clisp.org>
48768         xalloc: Move AC_LIBOBJ invocations to module description.
48769         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
48770         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
48772 2011-05-23  Bruno Haible  <bruno@clisp.org>
48774         write-any-file: Move AC_LIBOBJ invocations to module description.
48775         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
48776         invocation.
48777         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
48779 2011-05-23  Bruno Haible  <bruno@clisp.org>
48781         utimens: Move AC_LIBOBJ invocations to module description.
48782         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
48783         * modules/utimens (Makefile.am): Augment lib_SOURCES.
48785 2011-05-23  Bruno Haible  <bruno@clisp.org>
48787         utimecmp: Move AC_LIBOBJ invocations to module description.
48788         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
48789         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
48791 2011-05-23  Bruno Haible  <bruno@clisp.org>
48793         userspec: Move AC_LIBOBJ invocations to module description.
48794         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
48795         * modules/userspec (Makefile.am): Augment lib_SOURCES.
48797 2011-05-23  Bruno Haible  <bruno@clisp.org>
48799         unlinkdir: Move AC_LIBOBJ invocations to module description.
48800         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
48801         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
48803 2011-05-23  Bruno Haible  <bruno@clisp.org>
48805         unistd-safer: Move AC_LIBOBJ invocations to module description.
48806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
48807         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
48809 2011-05-23  Bruno Haible  <bruno@clisp.org>
48811         tempname: Move AC_LIBOBJ invocations to module description.
48812         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
48813         * modules/tempname (Makefile.am): Augment lib_SOURCES.
48815 2011-05-23  Bruno Haible  <bruno@clisp.org>
48817         strftime: Move AC_LIBOBJ invocations to module description.
48818         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
48819         * modules/strftime (Makefile.am): Augment lib_SOURCES.
48821 2011-05-23  Bruno Haible  <bruno@clisp.org>
48823         stdlib-safer: Move AC_LIBOBJ invocations to module description.
48824         * m4/stdlib-safer.m4: Remove file.
48825         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
48826         (configure.ac): Remove gl_STDLIB_SAFER call.
48827         (Makefile.am): Augment lib_SOURCES.
48829 2011-05-23  Bruno Haible  <bruno@clisp.org>
48831         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
48832         * m4/stdio-safer.m4: Remove file.
48833         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
48834         (configure.ac): Remove gl_TMPFILE_SAFER call.
48835         (Makefile.am): Augment lib_SOURCES.
48837 2011-05-23  Bruno Haible  <bruno@clisp.org>
48839         popen-safer: Move AC_LIBOBJ invocations to module description.
48840         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
48841         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
48842         (configure.ac): Remove gl_POPEN_SAFER call.
48843         (Makefile.am): Augment lib_SOURCES.
48845 2011-05-23  Bruno Haible  <bruno@clisp.org>
48847         freopen-safer: Move AC_LIBOBJ invocations to module description.
48848         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
48849         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
48850         (configure.ac): Remove gl_FREOPEN_SAFER call.
48851         (Makefile.am): Augment lib_SOURCES.
48853 2011-05-23  Bruno Haible  <bruno@clisp.org>
48855         fopen-safer: Move AC_LIBOBJ invocations to module description.
48856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
48857         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
48858         (configure.ac): Remove gl_FOPEN_SAFER call.
48859         (Makefile.am): Augment lib_SOURCES.
48861 2011-05-23  Bruno Haible  <bruno@clisp.org>
48863         crypto/sha512: Move AC_LIBOBJ invocations to module description.
48864         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
48865         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
48867 2011-05-23  Bruno Haible  <bruno@clisp.org>
48869         crypto/sha256: Move AC_LIBOBJ invocations to module description.
48870         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
48871         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
48873 2011-05-23  Bruno Haible  <bruno@clisp.org>
48875         crypto/sha1: Move AC_LIBOBJ invocations to module description.
48876         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
48877         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
48879 2011-05-23  Bruno Haible  <bruno@clisp.org>
48881         settime: Move AC_LIBOBJ invocations to module description.
48882         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
48883         * modules/settime (Makefile.am): Augment lib_SOURCES.
48885 2011-05-23  Bruno Haible  <bruno@clisp.org>
48887         savedir: Move AC_LIBOBJ invocations to module description.
48888         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
48889         * modules/savedir (Makefile.am): Augment lib_SOURCES.
48891 2011-05-23  Bruno Haible  <bruno@clisp.org>
48893         save-cwd: Move AC_LIBOBJ invocations to module description.
48894         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
48895         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
48897 2011-05-23  Bruno Haible  <bruno@clisp.org>
48899         same: Move AC_LIBOBJ invocations to module description.
48900         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
48901         * modules/same (Makefile.am): Augment lib_SOURCES.
48903 2011-05-23  Bruno Haible  <bruno@clisp.org>
48905         safe-write: Move AC_LIBOBJ invocations to module description.
48906         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
48907         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
48908         instead of gl_SAFE_WRITE.
48909         (Makefile.am): Augment lib_SOURCES.
48911 2011-05-23  Bruno Haible  <bruno@clisp.org>
48913         safe-read: Move AC_LIBOBJ invocations to module description.
48914         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
48915         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
48916         of gl_SAFE_READ.
48917         (Makefile.am): Augment lib_SOURCES.
48919 2011-05-23  Bruno Haible  <bruno@clisp.org>
48921         safe-alloc: Move AC_LIBOBJ invocations to module description.
48922         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
48923         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
48925 2011-05-23  Bruno Haible  <bruno@clisp.org>
48927         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
48928         * m4/rijndael.m4: Remove file.
48929         * modules/crypto/rijndael (Files): Remove it.
48930         (configure.ac): Remove gl_RIJNDAEL call.
48931         (Makefile.am): Augment lib_SOURCES.
48933 2011-05-23  Bruno Haible  <bruno@clisp.org>
48935         readtokens: Move AC_LIBOBJ invocations to module description.
48936         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
48937         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
48939 2011-05-23  Bruno Haible  <bruno@clisp.org>
48941         read-file: Move AC_LIBOBJ invocations to module description.
48942         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
48943         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
48944         of gl_FUNC_READ_FILE.
48945         (Makefile.am): Augment lib_SOURCES.
48947 2011-05-23  Bruno Haible  <bruno@clisp.org>
48949         quotearg: Move AC_LIBOBJ invocations to module description.
48950         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
48951         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
48953 2011-05-23  Bruno Haible  <bruno@clisp.org>
48955         quote: Move AC_LIBOBJ invocations to module description.
48956         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
48957         * modules/quote (Makefile.am): Augment lib_SOURCES.
48959 2011-05-23  Bruno Haible  <bruno@clisp.org>
48961         posixver: Move AC_LIBOBJ invocations to module description.
48962         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
48963         * modules/posixver (Makefile.am): Augment lib_SOURCES.
48965 2011-05-23  Bruno Haible  <bruno@clisp.org>
48967         posixtm: Move AC_LIBOBJ invocations to module description.
48968         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
48969         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
48971 2011-05-23  Bruno Haible  <bruno@clisp.org>
48973         physmem: Move AC_LIBOBJ invocations to module description.
48974         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
48975         * modules/physmem (Makefile.am): Augment lib_SOURCES.
48977 2011-05-23  Bruno Haible  <bruno@clisp.org>
48979         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
48980         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
48981         invocation.
48982         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
48984 2011-05-23  Bruno Haible  <bruno@clisp.org>
48986         mpsort: Move AC_LIBOBJ invocations to module description.
48987         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
48988         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
48990 2011-05-23  Bruno Haible  <bruno@clisp.org>
48992         modechange: Move AC_LIBOBJ invocations to module description.
48993         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
48994         * modules/modechange (Makefile.am): Augment lib_SOURCES.
48996 2011-05-23  Bruno Haible  <bruno@clisp.org>
48998         mkdir-p: Move AC_LIBOBJ invocations to module description.
48999         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
49000         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
49002 2011-05-23  Bruno Haible  <bruno@clisp.org>
49004         mkancesdirs: Move AC_LIBOBJ invocations to module description.
49005         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
49006         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
49008 2011-05-23  Bruno Haible  <bruno@clisp.org>
49010         mgetgroups: Move AC_LIBOBJ invocations to module description.
49011         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
49012         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
49014 2011-05-23  Bruno Haible  <bruno@clisp.org>
49016         memxor: Move AC_LIBOBJ invocations to module description.
49017         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
49018         * modules/memxor (Makefile.am): Augment lib_SOURCES.
49020 2011-05-23  Bruno Haible  <bruno@clisp.org>
49022         memcoll: Move AC_LIBOBJ invocations to module description.
49023         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
49024         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
49026 2011-05-23  Bruno Haible  <bruno@clisp.org>
49028         memcasecmp: Move AC_LIBOBJ invocations to module description.
49029         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
49030         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
49032 2011-05-23  Bruno Haible  <bruno@clisp.org>
49034         crypto/md5: Move AC_LIBOBJ invocations to module description.
49035         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
49036         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
49038 2011-05-23  Bruno Haible  <bruno@clisp.org>
49040         crypto/md4: Move AC_LIBOBJ invocations to module description.
49041         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
49042         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
49044 2011-05-23  Bruno Haible  <bruno@clisp.org>
49046         crypto/md2: Move AC_LIBOBJ invocations to module description.
49047         * m4/md2.m4: Remove file.
49048         * modules/crypto/md2 (Files): Remove it.
49049         (configure.ac): Remove gl_MD2 call.
49050         (Makefile.am): Augment lib_SOURCES.
49052 2011-05-23  Bruno Haible  <bruno@clisp.org>
49054         long-options: Move AC_LIBOBJ invocations to module description.
49055         * m4/long-options.m4: Remove file.
49056         * modules/long-options (Files): Remove it.
49057         (configure.ac): Remove gl_LONG_OPTIONS call.
49058         (Makefile.am): Augment lib_SOURCES.
49060 2011-05-23  Bruno Haible  <bruno@clisp.org>
49062         i-ring: Move AC_LIBOBJ invocations to module description.
49063         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
49064         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
49066 2011-05-23  Bruno Haible  <bruno@clisp.org>
49068         idcache: Move AC_LIBOBJ invocations to module description.
49069         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
49070         * modules/idcache (Makefile.am): Augment lib_SOURCES.
49072 2011-05-23  Bruno Haible  <bruno@clisp.org>
49074         human: Move AC_LIBOBJ invocations to module description.
49075         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
49076         * modules/human (Makefile.am): Augment lib_SOURCES.
49078 2011-05-23  Bruno Haible  <bruno@clisp.org>
49080         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
49081         * m4/hmac-sha1.m4: Remove file.
49082         * modules/crypto/hmac-sha1 (Files): Remove it.
49083         (configure.ac): Remove gl_HMAC_SHA1 call.
49084         (Makefile.am): Augment lib_SOURCES.
49086 2011-05-23  Bruno Haible  <bruno@clisp.org>
49088         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
49089         * m4/hmac-md5.m4: Remove file.
49090         * modules/crypto/hmac-md5 (Files): Remove it.
49091         (configure.ac): Remove gl_HMAC_MD5 call.
49092         (Makefile.am): Augment lib_SOURCES.
49094 2011-05-23  Bruno Haible  <bruno@clisp.org>
49096         hash: Move AC_LIBOBJ invocations to module description.
49097         * m4/hash.m4: Remove file.
49098         * modules/hash (Files): Remove it.
49099         (configure.ac): Remove gl_HASH call.
49100         (Makefile.am): Augment lib_SOURCES.
49102 2011-05-23  Bruno Haible  <bruno@clisp.org>
49104         hard-locale: Move AC_LIBOBJ invocations to module description.
49105         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
49106         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
49108 2011-05-23  Bruno Haible  <bruno@clisp.org>
49110         getugroups: Move AC_LIBOBJ invocations to module description.
49111         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
49112         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
49114 2011-05-23  Bruno Haible  <bruno@clisp.org>
49116         gettime: Move AC_LIBOBJ invocations to module description.
49117         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
49118         * modules/gettime (Makefile.am): Augment lib_SOURCES.
49120 2011-05-23  Bruno Haible  <bruno@clisp.org>
49122         getndelim2: Move AC_LIBOBJ invocations to module description.
49123         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
49124         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
49126 2011-05-23  Bruno Haible  <bruno@clisp.org>
49128         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
49129         * m4/gc-pbkdf2-sha1.m4: Remove file.
49130         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
49131         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
49132         (Makefile.am): Augment lib_SOURCES.
49134 2011-05-23  Bruno Haible  <bruno@clisp.org>
49136         fts: Move AC_LIBOBJ invocations to module description.
49137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
49138         * modules/fts (configure.ac): ... to here.
49140 2011-05-23  Bruno Haible  <bruno@clisp.org>
49142         file-type: Move AC_LIBOBJ invocations to module description.
49143         * m4/file-type.m4: Remove file.
49144         * modules/file-type (Files): Remove it.
49145         (configure.ac): Remove gl_FILE_TYPE call.
49146         (Makefile.am): Augment lib_SOURCES.
49148 2011-05-23  Bruno Haible  <bruno@clisp.org>
49150         filenamecat*: Respect rules for use of AC_LIBOBJ.
49151         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
49152         Remove AC_LIBOBJ invocation.
49153         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
49154         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
49156 2011-05-23  Bruno Haible  <bruno@clisp.org>
49158         filemode: Move AC_LIBOBJ invocations to module description.
49159         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
49160         * modules/filemode (Makefile.am): Augment lib_SOURCES.
49162 2011-05-23  Bruno Haible  <bruno@clisp.org>
49164         openat-safer: Move AC_LIBOBJ invocations to module description.
49165         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
49166         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
49168 2011-05-23  Bruno Haible  <bruno@clisp.org>
49170         fcntl-safer: Move AC_LIBOBJ invocations to module description.
49171         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
49172         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
49174 2011-05-23  Bruno Haible  <bruno@clisp.org>
49176         exclude: Move AC_LIBOBJ invocations to module description.
49177         * m4/exclude.m4: Remove file.
49178         * modules/exclude (Files): Remove it.
49179         (configure.ac): Remove gl_EXCLUDE call.
49180         (Makefile.am): Augment lib_SOURCES.
49182 2011-05-23  Bruno Haible  <bruno@clisp.org>
49184         dirname*: Respect rules for use of AC_LIBOBJ.
49185         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
49186         invocations.
49187         * modules/dirname (Makefile.am): Augment lib_SOURCES.
49188         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
49190 2011-05-23  Bruno Haible  <bruno@clisp.org>
49192         dirent-safer: Move AC_LIBOBJ invocations to module description.
49193         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
49194         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
49196 2011-05-23  Bruno Haible  <bruno@clisp.org>
49198         crypto/des: Move AC_LIBOBJ invocations to module description.
49199         * m4/des.m4: Remove file.
49200         * modules/crypto/des (Files): Remove it.
49201         (configure.ac): Remove gl_DES call.
49202         (Makefile.am): Augment lib_SOURCES.
49204 2011-05-23  Bruno Haible  <bruno@clisp.org>
49206         cycle-check: Move AC_LIBOBJ invocations to module description.
49207         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
49208         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
49210 2011-05-23  Bruno Haible  <bruno@clisp.org>
49212         c-strtold: Move AC_LIBOBJ invocations to module description.
49213         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
49214         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
49216 2011-05-23  Bruno Haible  <bruno@clisp.org>
49218         c-strtod: Move AC_LIBOBJ invocations to module description.
49219         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
49220         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
49222 2011-05-23  Bruno Haible  <bruno@clisp.org>
49224         crc: Move AC_LIBOBJ invocations to module description.
49225         * m4/crc.m4: Remove file.
49226         * modules/crc (Files): Remove it.
49227         (configure.ac): Remove gl_CRC call.
49228         (Makefile.am): Augment lib_SOURCES.
49230 2011-05-23  Bruno Haible  <bruno@clisp.org>
49232         close-stream: Move AC_LIBOBJ invocations to module description.
49233         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
49234         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
49236 2011-05-23  Bruno Haible  <bruno@clisp.org>
49238         closeout: Move AC_LIBOBJ invocations to module description.
49239         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
49240         * modules/closeout (Makefile.am): Augment lib_SOURCES.
49242 2011-05-23  Bruno Haible  <bruno@clisp.org>
49244         closein: Move AC_LIBOBJ invocations to module description.
49245         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
49246         * modules/closein (Makefile.am): Augment lib_SOURCES.
49248 2011-05-23  Bruno Haible  <bruno@clisp.org>
49250         cloexec: Move AC_LIBOBJ invocations to module description.
49251         * m4/cloexec.m4: Remove file.
49252         * modules/cloexec (Files): Remove it.
49253         (configure.ac): Remove gl_CLOEXEC call.
49254         (Makefile.am): Augment lib_SOURCES.
49256 2011-05-23  Bruno Haible  <bruno@clisp.org>
49258         check-version: Move AC_LIBOBJ invocations to module description.
49259         * m4/check-version.m4: Remove file.
49260         * modules/check-version (Files): Remove it.
49261         (configure.ac): Remove gl_CHECK_VERSION call.
49262         (Makefile.am): Augment lib_SOURCES.
49264 2011-05-23  Bruno Haible  <bruno@clisp.org>
49266         chdir-safer: Move AC_LIBOBJ invocations to module description.
49267         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
49268         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
49270 2011-05-23  Bruno Haible  <bruno@clisp.org>
49272         canonicalize: Move AC_LIBOBJ invocations to module description.
49273         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
49274         AC_LIBOBJ invocation.
49275         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
49277 2011-05-23  Bruno Haible  <bruno@clisp.org>
49279         canon-host: Move AC_LIBOBJ invocations to module description.
49280         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
49281         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
49282         instead of gl_CANON_HOST.
49283         (Makefile.am): Augment lib_SOURCES.
49285 2011-05-23  Bruno Haible  <bruno@clisp.org>
49287         backupfile: Move AC_LIBOBJ invocations to module description.
49288         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
49289         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
49291 2011-05-23  Bruno Haible  <bruno@clisp.org>
49293         argmatch: Move AC_LIBOBJ invocations to module description.
49294         * m4/argmatch.m4: Remove file.
49295         * modules/argmatch (Files): Remove it.
49296         (configure.ac): Remove gl_ARGMATCH call.
49297         (Makefile.am): Augment lib_SOURCES.
49299 2011-05-23  Bruno Haible  <bruno@clisp.org>
49301         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
49302         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
49303         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
49305 2011-05-23  Bruno Haible  <bruno@clisp.org>
49307         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
49308         * m4/arcfour.m4: Remove file.
49309         * modules/crypto/arcfour (Files): Remove it.
49310         (configure.ac): Remove gl_ARCFOUR call.
49311         (Makefile.am): Augment lib_SOURCES.
49313 2011-05-22  Bruno Haible  <bruno@clisp.org>
49315         write: Move AC_LIBOBJ invocations to module description.
49316         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
49317         * modules/write (configure.ac): ... to here.
49319 2011-05-22  Bruno Haible  <bruno@clisp.org>
49321         wmemset: Move AC_LIBOBJ invocations to module description.
49322         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
49323         here...
49324         * modules/wmemset (configure.ac): ... to here.
49326 2011-05-22  Bruno Haible  <bruno@clisp.org>
49328         wmemmove: Move AC_LIBOBJ invocations to module description.
49329         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
49330         here...
49331         * modules/wmemmove (configure.ac): ... to here.
49333 2011-05-22  Bruno Haible  <bruno@clisp.org>
49335         wmemcpy: Move AC_LIBOBJ invocations to module description.
49336         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
49337         here...
49338         * modules/wmemcpy (configure.ac): ... to here.
49340 2011-05-22  Bruno Haible  <bruno@clisp.org>
49342         wmemcmp: Move AC_LIBOBJ invocations to module description.
49343         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
49344         here...
49345         * modules/wmemcmp (configure.ac): ... to here.
49347 2011-05-22  Bruno Haible  <bruno@clisp.org>
49349         wmemchr: Move AC_LIBOBJ invocations to module description.
49350         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
49351         here...
49352         * modules/wmemchr (configure.ac): ... to here.
49354 2011-05-22  Bruno Haible  <bruno@clisp.org>
49356         wcswidth: Move AC_LIBOBJ invocations to module description.
49357         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
49358         here...
49359         * modules/wcswidth (configure.ac): ... to here.
49361 2011-05-22  Bruno Haible  <bruno@clisp.org>
49363         wcwidth: Respect rules for use of AC_LIBOBJ.
49364         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
49365         invocation from here...
49366         * modules/wcwidth (configure.ac): ... to here.
49367         (Depends-on): Update conditions.
49369 2011-05-22  Bruno Haible  <bruno@clisp.org>
49371         wctype: Move AC_LIBOBJ invocations to module description.
49372         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
49373         invocation from here...
49374         * modules/wctype (configure.ac): ... to here.
49375         (Depends-on): Update conditions.
49377 2011-05-22  Bruno Haible  <bruno@clisp.org>
49379         wctrans: Move AC_LIBOBJ invocations to module description.
49380         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
49381         invocation from here...
49382         * modules/wctrans (configure.ac): ... to here.
49384 2011-05-22  Bruno Haible  <bruno@clisp.org>
49386         wctomb: Move AC_LIBOBJ invocations to module description.
49387         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
49388         invocations from here...
49389         * modules/wctomb (configure.ac): ... to here.
49391 2011-05-22  Bruno Haible  <bruno@clisp.org>
49393         wctob: Move AC_LIBOBJ invocations to module description.
49394         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
49395         gl_PREREQ_WCTOB invocations from here...
49396         * modules/wctob (configure.ac): ... to here.
49397         (Depends-on): Update conditions.
49399 2011-05-22  Bruno Haible  <bruno@clisp.org>
49401         wcsxfrm: Move AC_LIBOBJ invocations to module description.
49402         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
49403         here...
49404         * modules/wcsxfrm (configure.ac): ... to here.
49406 2011-05-22  Bruno Haible  <bruno@clisp.org>
49408         wcstok: Move AC_LIBOBJ invocations to module description.
49409         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
49410         * modules/wcstok (configure.ac): ... to here.
49412 2011-05-22  Bruno Haible  <bruno@clisp.org>
49414         wcsstr: Move AC_LIBOBJ invocations to module description.
49415         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
49416         * modules/wcsstr (configure.ac): ... to here.
49418 2011-05-22  Bruno Haible  <bruno@clisp.org>
49420         wcsspn: Move AC_LIBOBJ invocations to module description.
49421         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
49422         * modules/wcsspn (configure.ac): ... to here.
49424 2011-05-22  Bruno Haible  <bruno@clisp.org>
49426         wcsrtombs: Move AC_LIBOBJ invocations to module description.
49427         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
49428         gl_PREREQ_WCSRTOMBS invocations from here...
49429         * modules/wcsrtombs (configure.ac): ... to here.
49431 2011-05-22  Bruno Haible  <bruno@clisp.org>
49433         wcsrchr: Move AC_LIBOBJ invocations to module description.
49434         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
49435         here...
49436         * modules/wcsrchr (configure.ac): ... to here.
49438 2011-05-22  Bruno Haible  <bruno@clisp.org>
49440         wcspbrk: Move AC_LIBOBJ invocations to module description.
49441         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
49442         here...
49443         * modules/wcspbrk (configure.ac): ... to here.
49445 2011-05-22  Bruno Haible  <bruno@clisp.org>
49447         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
49448         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
49449         gl_PREREQ_WCSNRTOMBS invocations from here...
49450         * modules/wcsnrtombs (configure.ac): ... to here.
49452 2011-05-22  Bruno Haible  <bruno@clisp.org>
49454         wcsnlen: Move AC_LIBOBJ invocations to module description.
49455         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
49456         here...
49457         * modules/wcsnlen (configure.ac): ... to here.
49459 2011-05-22  Bruno Haible  <bruno@clisp.org>
49461         wcsncpy: Move AC_LIBOBJ invocations to module description.
49462         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
49463         here...
49464         * modules/wcsncpy (configure.ac): ... to here.
49466 2011-05-22  Bruno Haible  <bruno@clisp.org>
49468         wcsncmp: Move AC_LIBOBJ invocations to module description.
49469         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
49470         here...
49471         * modules/wcsncmp (configure.ac): ... to here.
49473 2011-05-22  Bruno Haible  <bruno@clisp.org>
49475         wcsncat: Move AC_LIBOBJ invocations to module description.
49476         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
49477         here...
49478         * modules/wcsncat (configure.ac): ... to here.
49480 2011-05-22  Bruno Haible  <bruno@clisp.org>
49482         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
49483         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
49484         from here...
49485         * modules/wcsncasecmp (configure.ac): ... to here.
49487 2011-05-22  Bruno Haible  <bruno@clisp.org>
49489         wcslen: Move AC_LIBOBJ invocations to module description.
49490         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
49491         * modules/wcslen (configure.ac): ... to here.
49493 2011-05-22  Bruno Haible  <bruno@clisp.org>
49495         wcsdup: Move AC_LIBOBJ invocations to module description.
49496         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
49497         * modules/wcsdup (configure.ac): ... to here.
49499 2011-05-22  Bruno Haible  <bruno@clisp.org>
49501         wcscspn: Move AC_LIBOBJ invocations to module description.
49502         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
49503         here...
49504         * modules/wcscspn (configure.ac): ... to here.
49506 2011-05-22  Bruno Haible  <bruno@clisp.org>
49508         wcscpy: Move AC_LIBOBJ invocations to module description.
49509         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
49510         * modules/wcscpy (configure.ac): ... to here.
49512 2011-05-22  Bruno Haible  <bruno@clisp.org>
49514         wcscoll: Move AC_LIBOBJ invocations to module description.
49515         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
49516         here...
49517         * modules/wcscoll (configure.ac): ... to here.
49519 2011-05-22  Bruno Haible  <bruno@clisp.org>
49521         wcscmp: Move AC_LIBOBJ invocations to module description.
49522         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
49523         * modules/wcscmp (configure.ac): ... to here.
49525 2011-05-22  Bruno Haible  <bruno@clisp.org>
49527         wcschr: Move AC_LIBOBJ invocations to module description.
49528         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
49529         * modules/wcschr (configure.ac): ... to here.
49531 2011-05-22  Bruno Haible  <bruno@clisp.org>
49533         wcscat: Move AC_LIBOBJ invocations to module description.
49534         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
49535         * modules/wcscat (configure.ac): ... to here.
49537 2011-05-22  Bruno Haible  <bruno@clisp.org>
49539         wcscasecmp: Move AC_LIBOBJ invocations to module description.
49540         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
49541         here...
49542         * modules/wcscasecmp (configure.ac): ... to here.
49544 2011-05-22  Bruno Haible  <bruno@clisp.org>
49546         wcrtomb: Move AC_LIBOBJ invocations to module description.
49547         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
49548         invocations from here...
49549         * modules/wcrtomb (configure.ac): ... to here.
49551 2011-05-22  Bruno Haible  <bruno@clisp.org>
49553         wcpncpy: Move AC_LIBOBJ invocations to module description.
49554         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
49555         here...
49556         * modules/wcpncpy (configure.ac): ... to here.
49558 2011-05-22  Bruno Haible  <bruno@clisp.org>
49560         wcpcpy: Move AC_LIBOBJ invocations to module description.
49561         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
49562         * modules/wcpcpy (configure.ac): ... to here.
49564 2011-05-22  Bruno Haible  <bruno@clisp.org>
49566         waitpid: Move AC_LIBOBJ invocations to module description.
49567         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
49568         invocation from here...
49569         * modules/waitpid (configure.ac): ... to here.
49571 2011-05-22  Bruno Haible  <bruno@clisp.org>
49573         utimensat: Move AC_LIBOBJ invocations to module description.
49574         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
49575         here...
49576         * modules/utimensat (configure.ac): ... to here.
49578 2011-05-22  Bruno Haible  <bruno@clisp.org>
49580         usleep: Move AC_LIBOBJ invocations to module description.
49581         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
49582         here...
49583         * modules/usleep (configure.ac): ... to here.
49585 2011-05-22  Bruno Haible  <bruno@clisp.org>
49587         unlockpt: Move AC_LIBOBJ invocations to module description.
49588         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
49589         gl_PREREQ_UNLOCKPT invocations from here...
49590         * modules/unlockpt (configure.ac): ... to here.
49592 2011-05-22  Bruno Haible  <bruno@clisp.org>
49594         unlink: Respect rules for use of AC_LIBOBJ.
49595         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
49596         * modules/unlink (configure.ac): ... to here.
49598 2011-05-22  Bruno Haible  <bruno@clisp.org>
49600         uname: Move AC_LIBOBJ invocations to module description.
49601         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
49602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
49603         here...
49604         * modules/uname (configure.ac): ... to here.
49606 2011-05-22  Bruno Haible  <bruno@clisp.org>
49608         ttyname_r: Move AC_LIBOBJ invocations to module description.
49609         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
49610         gl_PREREQ_TTYNAME_R invocations from here...
49611         * modules/ttyname_r (configure.ac): ... to here.
49613 2011-05-22  Bruno Haible  <bruno@clisp.org>
49615         tsearch: Move AC_LIBOBJ invocations to module description.
49616         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
49617         invocations from here...
49618         * modules/tsearch (configure.ac): ... to here.
49620 2011-05-22  Bruno Haible  <bruno@clisp.org>
49622         towctrans: Move AC_LIBOBJ invocations to module description.
49623         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
49624         AC_LIBOBJ invocation from here...
49625         * modules/towctrans (configure.ac): ... to here.
49627 2011-05-22  Bruno Haible  <bruno@clisp.org>
49629         tmpfile: Move AC_LIBOBJ invocations to module description.
49630         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
49631         invocations from here...
49632         * modules/tmpfile (configure.ac): ... to here.
49634 2011-05-22  Bruno Haible  <bruno@clisp.org>
49636         times: Move AC_LIBOBJ invocations to module description.
49637         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
49638         * modules/times (configure.ac): ... to here.
49640 2011-05-22  Bruno Haible  <bruno@clisp.org>
49642         time_r: Move AC_LIBOBJ invocations to module description.
49643         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
49644         invocations from here...
49645         * modules/time_r (configure.ac): ... to here.
49647 2011-05-22  Bruno Haible  <bruno@clisp.org>
49649         timegm: Move AC_LIBOBJ invocations to module description.
49650         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
49651         invocations from here...
49652         * modules/timegm (configure.ac): ... to here.
49654 2011-05-22  Bruno Haible  <bruno@clisp.org>
49656         tcgetsid: Move AC_LIBOBJ invocations to module description.
49657         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
49658         and gl_PREREQ_TCGETSID invocations from here...
49659         * modules/tcgetsid (configure.ac): ... to here.
49660         (Depends-on): Update conditions.
49662 2011-05-22  Bruno Haible  <bruno@clisp.org>
49664         symlinkat: Move AC_LIBOBJ invocations to module description.
49665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
49666         here...
49667         * modules/symlinkat (configure.ac): ... to here.
49669 2011-05-22  Bruno Haible  <bruno@clisp.org>
49671         symlink: Move AC_LIBOBJ invocations to module description.
49672         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
49673         here...
49674         * modules/symlink (configure.ac): ... to here.
49676 2011-05-22  Bruno Haible  <bruno@clisp.org>
49678         strverscmp: Move AC_LIBOBJ invocations to module description.
49679         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
49680         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
49681         from here...
49682         * modules/strverscmp (configure.ac): ... to here.
49684 2011-05-22  Bruno Haible  <bruno@clisp.org>
49686         strtok_r: Move AC_LIBOBJ invocations to module description.
49687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
49688         and gl_PREREQ_STRTOK_R invocations from here...
49689         * modules/strtok_r (configure.ac): ... to here.
49690         (Depends-on): Update conditions.
49692 2011-05-22  Bruno Haible  <bruno@clisp.org>
49694         strtoumax: Move AC_LIBOBJ invocations to module description.
49695         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
49696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
49697         from here...
49698         * modules/strtoumax (configure.ac): ... to here.
49700 2011-05-22  Bruno Haible  <bruno@clisp.org>
49702         strtoimax: Move AC_LIBOBJ invocations to module description.
49703         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
49704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
49705         from here...
49706         * modules/strtoimax (configure.ac): ... to here.
49708 2011-05-22  Bruno Haible  <bruno@clisp.org>
49710         strtoull: Move AC_LIBOBJ invocations to module description.
49711         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
49712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
49713         from here...
49714         * modules/strtoull (configure.ac): ... to here.
49716 2011-05-22  Bruno Haible  <bruno@clisp.org>
49718         strtoll: Move AC_LIBOBJ invocations to module description.
49719         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
49720         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
49721         here...
49722         * modules/strtoll (configure.ac): ... to here.
49724 2011-05-22  Bruno Haible  <bruno@clisp.org>
49726         strtoul: Move AC_LIBOBJ invocations to module description.
49727         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
49728         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49729         * modules/strtoul (configure.ac): ... to here.
49731 2011-05-22  Bruno Haible  <bruno@clisp.org>
49733         strtol: Move AC_LIBOBJ invocations to module description.
49734         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
49735         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
49736         * modules/strtol (configure.ac): ... to here.
49738 2011-05-22  Bruno Haible  <bruno@clisp.org>
49740         strtod: Move AC_LIBOBJ invocations to module description.
49741         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
49742         invocations from here...
49743         * modules/strtod (configure.ac): ... to here.
49745 2011-05-22  Bruno Haible  <bruno@clisp.org>
49747         strstr*: Move AC_LIBOBJ invocations to module description.
49748         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
49749         invocations from here...
49750         * modules/strstr-simple (configure.ac): ... to here.
49751         * modules/strstr (configure.ac): ... and here.
49753 2011-05-22  Bruno Haible  <bruno@clisp.org>
49755         strsignal: Move AC_LIBOBJ invocations to module description.
49756         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
49757         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
49758         * modules/strsignal (configure.ac): ... to here.
49759         (Depends-on): Update conditions.
49761 2011-05-22  Bruno Haible  <bruno@clisp.org>
49763         strsep: Move AC_LIBOBJ invocations to module description.
49764         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
49765         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
49766         here...
49767         * modules/strsep (configure.ac): ... to here.
49769 2011-05-22  Bruno Haible  <bruno@clisp.org>
49771         strptime: Move AC_LIBOBJ invocations to module description.
49772         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
49773         gl_PREREQ_STRPTIME invocations from here...
49774         * modules/strptime (configure.ac): ... to here.
49776 2011-05-22  Bruno Haible  <bruno@clisp.org>
49778         strpbrk: Move AC_LIBOBJ invocations to module description.
49779         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
49780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
49781         here...
49782         * modules/strpbrk (configure.ac): ... to here.
49784 2011-05-22  Bruno Haible  <bruno@clisp.org>
49786         strnlen: Move AC_LIBOBJ invocations to module description.
49787         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
49788         invocations from here...
49789         * modules/strnlen (configure.ac): ... to here.
49791 2011-05-22  Bruno Haible  <bruno@clisp.org>
49793         strndup: Move AC_LIBOBJ invocations to module description.
49794         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
49795         invocations from here...
49796         * modules/strndup (configure.ac): ... to here.
49797         (Depends-on): Update conditions.
49799 2011-05-22  Bruno Haible  <bruno@clisp.org>
49801         strncat: Move AC_LIBOBJ invocations to module description.
49802         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
49803         invocations from here...
49804         * modules/strncat (configure.ac): ... to here.
49806 2011-05-22  Bruno Haible  <bruno@clisp.org>
49808         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
49809         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
49810         invocations from here...
49811         * modules/strdup (configure.ac): ... to here.
49812         * modules/strdup-posix (configure.ac): ... and here.
49814 2011-05-22  Bruno Haible  <bruno@clisp.org>
49816         strcspn: Move AC_LIBOBJ invocations to module description.
49817         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
49818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
49819         here...
49820         * modules/strcspn (configure.ac): ... to here.
49822 2011-05-22  Bruno Haible  <bruno@clisp.org>
49824         strchrnul: Move AC_LIBOBJ invocations to module description.
49825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
49826         gl_PREREQ_STRCHRNUL invocations from here...
49827         * modules/strchrnul (configure.ac): ... to here.
49829 2011-05-22  Bruno Haible  <bruno@clisp.org>
49831         strcasestr*: Move AC_LIBOBJ invocations to module description.
49832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
49833         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
49834         * modules/strcasestr-simple (configure.ac): ... to here.
49835         * modules/strcasestr (configure.ac): ... and here.
49837 2011-05-22  Bruno Haible  <bruno@clisp.org>
49839         strcase: Move AC_LIBOBJ invocations to module description.
49840         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
49841         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
49842         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
49843         gl_PREREQ_STRNCASECMP invocations from here...
49844         * modules/strcase (configure.ac): ... to here.
49846 2011-05-22  Bruno Haible  <bruno@clisp.org>
49848         stpncpy: Move AC_LIBOBJ invocations to module description.
49849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
49850         here...
49851         * modules/stpncpy (configure.ac): ... to here.
49853 2011-05-22  Bruno Haible  <bruno@clisp.org>
49855         stpcpy: Move AC_LIBOBJ invocations to module description.
49856         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
49857         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
49858         here...
49859         * modules/stpcpy (configure.ac): ... to here.
49861 2011-05-21  Bruno Haible  <bruno@clisp.org>
49863         stat: Move AC_LIBOBJ invocations to module description.
49864         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
49865         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
49866         here...
49867         * modules/stat (configure.ac): ... to here.
49869 2011-05-21  Bruno Haible  <bruno@clisp.org>
49871         sleep: Move AC_LIBOBJ invocations to module description.
49872         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
49873         * modules/sleep (configure.ac): ... to here.
49875 2011-05-21  Bruno Haible  <bruno@clisp.org>
49877         signbit: Move AC_LIBOBJ invocations to module description.
49878         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
49879         * modules/signbit (configure.ac): ... to here.
49881 2011-05-21  Bruno Haible  <bruno@clisp.org>
49883         sigprocmask: Move AC_LIBOBJ invocations to module description.
49884         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
49885         gl_PREREQ_SIGPROMASK invocations from here...
49886         * modules/sigprocmask (configure.ac): ... to here.
49888 2011-05-21  Bruno Haible  <bruno@clisp.org>
49890         sigaction: Move AC_LIBOBJ invocations to module description.
49891         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
49892         gl_PREREQ_SIGACTION invocations from here...
49893         * modules/sigaction (configure.ac): ... to here.
49895 2011-05-21  Bruno Haible  <bruno@clisp.org>
49897         sig2str: Move AC_LIBOBJ invocations to module description.
49898         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
49899         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
49900         here...
49901         * modules/sig2str (configure.ac): ... to here.
49903 2011-05-21  Bruno Haible  <bruno@clisp.org>
49905         setlocale: Move AC_LIBOBJ invocations to module description.
49906         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
49907         gl_PREREQ_SETLOCALE invocations from here...
49908         * modules/setlocale (configure.ac): ... to here.
49910 2011-05-21  Bruno Haible  <bruno@clisp.org>
49912         unsetenv: Move AC_LIBOBJ invocations to module description.
49913         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
49914         and gl_PREREQ_UNSETENV invocations from here...
49915         * modules/unsetenv (configure.ac): ... to here.
49916         (Depends-on): Update.
49918 2011-05-21  Bruno Haible  <bruno@clisp.org>
49920         setenv: Move AC_LIBOBJ invocations to module description.
49921         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
49922         here...
49923         * modules/setenv (configure.ac): ... to here.
49925 2011-05-21  Bruno Haible  <bruno@clisp.org>
49927         selinux-h: Move AC_LIBOBJ invocations to module description.
49928         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
49929         AC_LIBOBJ invocation from here...
49930         * modules/selinux-h (configure.ac): ... to here.
49932 2011-05-21  Bruno Haible  <bruno@clisp.org>
49934         select: Respect rules for use of AC_LIBOBJ.
49935         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
49936         here...
49937         * modules/select (configure.ac): ... to here.
49939 2011-05-21  Bruno Haible  <bruno@clisp.org>
49941         scandir: Move AC_LIBOBJ invocations to module description.
49942         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
49943         invocations from here...
49944         * modules/scandir (configure.ac): ... to here.
49946 2011-05-21  Bruno Haible  <bruno@clisp.org>
49948         rpmatch: Move AC_LIBOBJ invocations to module description.
49949         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
49950         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
49951         here...
49952         * modules/rpmatch (configure.ac): ... to here.
49954 2011-05-21  Bruno Haible  <bruno@clisp.org>
49956         rmdir: Respect rules for use of AC_LIBOBJ.
49957         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
49958         * modules/rmdir (configure.ac): ... to here.
49960 2011-05-21  Bruno Haible  <bruno@clisp.org>
49962         renameat: Move AC_LIBOBJ invocations to module description.
49963         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
49964         here...
49965         * modules/renameat (configure.ac): ... to here.
49967 2011-05-21  Bruno Haible  <bruno@clisp.org>
49969         rename: Respect rules for use of AC_LIBOBJ.
49970         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
49971         here...
49972         * modules/rename (configure.ac): ... to here.
49974 2011-05-21  Bruno Haible  <bruno@clisp.org>
49976         remove: Move AC_LIBOBJ invocations to module description.
49977         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
49978         here...
49979         * modules/remove (configure.ac): ... to here.
49981 2011-05-21  Bruno Haible  <bruno@clisp.org>
49983         relocatable-lib: Move AC_LIBOBJ invocations to module description.
49984         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
49985         macro.
49986         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
49987         * modules/relocatable-lib (configure.ac): ... to here.
49988         * modules/relocatable-prog-wrapper (configure.ac): Invoke
49989         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
49991 2011-05-21  Bruno Haible  <bruno@clisp.org>
49993         relocatable-prog: Move AC_LIBOBJ invocations to module description.
49994         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
49995         here...
49996         * modules/relocatable-prog (configure.ac): ... to here.
49998 2011-05-21  Bruno Haible  <bruno@clisp.org>
50000         regex: Move AC_LIBOBJ invocations to module description.
50001         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
50002         invocations from here...
50003         * modules/regex (configure.ac): ... to here.
50005 2011-05-21  Bruno Haible  <bruno@clisp.org>
50007         realloc-*: Move AC_LIBOBJ invocations to module description.
50008         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
50009         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
50010         AC_LIBOBJ invocations from here...
50011         * modules/realloc-gnu (configure.ac): ... to here.
50012         * modules/realloc-posix (configure.ac): ... and here.
50014 2011-05-21  Bruno Haible  <bruno@clisp.org>
50016         readutmp: Move AC_LIBOBJ invocations to module description.
50017         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
50018         * modules/readutmp (configure.ac): ... to here.
50020 2011-05-21  Bruno Haible  <bruno@clisp.org>
50022         readlinkat: Move AC_LIBOBJ invocations to module description.
50023         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
50024         here...
50025         * modules/readlinkat (configure.ac): ... to here.
50027 2011-05-21  Bruno Haible  <bruno@clisp.org>
50029         readlink: Move AC_LIBOBJ invocations to module description.
50030         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
50031         gl_PREREQ_READLINK invocations from here...
50032         * modules/readlink (configure.ac): ... to here.
50034 2011-05-21  Bruno Haible  <bruno@clisp.org>
50036         readline: Move AC_LIBOBJ invocations to module description.
50037         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
50038         gl_PREREQ_READLINE invocations from here...
50039         * modules/readline (configure.ac): ... to here.
50041 2011-05-21  Bruno Haible  <bruno@clisp.org>
50043         read: Move AC_LIBOBJ invocations to module description.
50044         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
50045         * modules/read (configure.ac): ... to here.
50047 2011-05-21  Bruno Haible  <bruno@clisp.org>
50049         rawmemchr: Move AC_LIBOBJ invocations to module description.
50050         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
50051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
50052         from here...
50053         * modules/rawmemchr (configure.ac): ... to here.
50055 2011-05-21  Bruno Haible  <bruno@clisp.org>
50057         random_r: Move AC_LIBOBJ invocations to module description.
50058         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
50059         gl_PREREQ_RANDOM_R invocations from here...
50060         * modules/random_r (configure.ac): ... to here.
50062 2011-05-21  Bruno Haible  <bruno@clisp.org>
50064         pwrite: Move AC_LIBOBJ invocations to module description.
50065         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
50066         * modules/pwrite (configure.ac): ... to here.
50068 2011-05-21  Bruno Haible  <bruno@clisp.org>
50070         putenv: Move AC_LIBOBJ invocations to module description.
50071         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
50072         * modules/putenv (configure.ac): ... to here.
50074 2011-05-21  Bruno Haible  <bruno@clisp.org>
50076         login_tty: Move AC_LIBOBJ invocations to module description.
50077         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
50078         * modules/login_tty (configure.ac): ... to here.
50080 2011-05-21  Bruno Haible  <bruno@clisp.org>
50082         openpty: Move AC_LIBOBJ invocations to module description.
50083         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
50084         * modules/openpty (configure.ac): ... to here.
50086 2011-05-21  Bruno Haible  <bruno@clisp.org>
50088         forkpty: Move AC_LIBOBJ invocations to module description.
50089         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
50090         * modules/forkpty (configure.ac): ... to here.
50092 2011-05-21  Bruno Haible  <bruno@clisp.org>
50094         ptsname: Move AC_LIBOBJ invocations to module description.
50095         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
50096         invocations from here...
50097         * modules/ptsname (configure.ac): ... to here.
50099 2011-05-21  Bruno Haible  <bruno@clisp.org>
50101         pread: Move AC_LIBOBJ invocations to module description.
50102         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
50103         * modules/pread (configure.ac): ... to here.
50105 2011-05-21  Bruno Haible  <bruno@clisp.org>
50107         posix_spawn*: Move AC_LIBOBJ invocations to module description.
50108         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
50109         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
50110         * modules/posix_spawn (configure.ac): ... to here.
50111         * modules/posix_spawnp (configure.ac): ... and here.
50113 2011-05-21  Bruno Haible  <bruno@clisp.org>
50115         popen: Move AC_LIBOBJ invocations to module description.
50116         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
50117         invocations from here...
50118         * modules/popen (configure.ac): ... to here.
50120 2011-05-21  Bruno Haible  <bruno@clisp.org>
50122         poll: Move AC_LIBOBJ invocations to module description.
50123         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
50124         invocations from here...
50125         * modules/poll (configure.ac): ... to here.
50127 2011-05-21  Bruno Haible  <bruno@clisp.org>
50129         pipe-posix: Move AC_LIBOBJ invocations to module description.
50130         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
50131         * modules/pipe-posix (configure.ac): ... to here.
50133 2011-05-21  Bruno Haible  <bruno@clisp.org>
50135         openat: Respect rules for use of AC_LIBOBJ.
50136         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
50137         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50138         * modules/openat (configure.ac): ... to here.
50140 2011-05-21  Bruno Haible  <bruno@clisp.org>
50142         obstack-printf*: Move AC_LIBOBJ invocations to module description.
50143         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
50144         invocation from here...
50145         * modules/obstack-printf (configure.ac): ... to here.
50146         * modules/obstack-printf-posix (configure.ac): ... and here.
50148 2011-05-21  Bruno Haible  <bruno@clisp.org>
50150         nl_langinfo: Move AC_LIBOBJ invocations to module description.
50151         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
50152         from here...
50153         * modules/nl_langinfo (configure.ac): ... to here.
50155 2011-05-21  Bruno Haible  <bruno@clisp.org>
50157         nanosleep: Move AC_LIBOBJ invocations to module description.
50158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
50159         gl_PREREQ_NANOSLEEP invocations from here...
50160         * modules/nanosleep (configure.ac): ... to here.
50162 2011-05-21  Bruno Haible  <bruno@clisp.org>
50164         mountlist: Move AC_LIBOBJ invocations to module description.
50165         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
50166         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
50167         * modules/mountlist (configure.ac): ... to here.
50169 2011-05-21  Bruno Haible  <bruno@clisp.org>
50171         mktime: Respect rules for use of AC_LIBOBJ.
50172         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
50173         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
50174         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
50175         (gl_FUNC_MKTIME_INTERNAL): ... and here...
50176         * modules/mktime (configure.ac): ... to here.
50177         * modules/mktime-internal (configure.ac): ... and here.
50178         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
50180 2011-05-21  Bruno Haible  <bruno@clisp.org>
50182         mkstemps: Move AC_LIBOBJ invocations to module description.
50183         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
50184         here...
50185         * modules/mkstemps (configure.ac): ... to here.
50187 2011-05-21  Bruno Haible  <bruno@clisp.org>
50189         mkstemp: Move AC_LIBOBJ invocations to module description.
50190         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
50191         gl_PREREQ_MKSTEMP invocations from here...
50192         * modules/mkstemp (configure.ac): ... to here.
50194 2011-05-21  Bruno Haible  <bruno@clisp.org>
50196         mkostemps: Move AC_LIBOBJ invocations to module description.
50197         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
50198         here...
50199         * modules/mkostemps (configure.ac): ... to here.
50201 2011-05-21  Bruno Haible  <bruno@clisp.org>
50203         mkostemp: Move AC_LIBOBJ invocations to module description.
50204         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
50205         gl_PREREQ_MKOSTEMP invocations from here...
50206         * modules/mkostemp (configure.ac): ... to here.
50208 2011-05-21  Bruno Haible  <bruno@clisp.org>
50210         mknod: Move AC_LIBOBJ invocations to module description.
50211         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
50212         * modules/mknod (configure.ac): ... to here.
50214 2011-05-21  Bruno Haible  <bruno@clisp.org>
50216         mkfifoat: Move AC_LIBOBJ invocations to module description.
50217         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
50218         here...
50219         * modules/mkfifoat (configure.ac): ... to here.
50221 2011-05-21  Bruno Haible  <bruno@clisp.org>
50223         mkfifo: Respect rules for use of AC_LIBOBJ.
50224         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
50225         here...
50226         * modules/mkfifo (configure.ac): ... to here.
50228 2011-05-21  Bruno Haible  <bruno@clisp.org>
50230         mkdtemp: Move AC_LIBOBJ invocations to module description.
50231         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
50232         invocations from here...
50233         * modules/mkdtemp (configure.ac): ... to here.
50235 2011-05-21  Bruno Haible  <bruno@clisp.org>
50237         mkdir: Move AC_LIBOBJ invocations to module description.
50238         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
50239         * modules/mkdir (configure.ac): ... to here.
50241 2011-05-21  Bruno Haible  <bruno@clisp.org>
50243         memset: Move AC_LIBOBJ invocations to module description.
50244         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
50245         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
50246         here...
50247         * modules/memset (configure.ac): ... to here.
50249 2011-05-21  Bruno Haible  <bruno@clisp.org>
50251         memrchr: Move AC_LIBOBJ invocations to module description.
50252         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
50253         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
50254         here...
50255         * modules/memrchr (configure.ac): ... to here.
50257 2011-05-21  Bruno Haible  <bruno@clisp.org>
50259         mempcpy: Move AC_LIBOBJ invocations to module description.
50260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
50261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
50262         here...
50263         * modules/mempcpy (configure.ac): ... to here.
50265 2011-05-21  Bruno Haible  <bruno@clisp.org>
50267         memmove: Move AC_LIBOBJ invocations to module description.
50268         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
50269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
50270         here...
50271         * modules/memmove (configure.ac): ... to here.
50273 2011-05-21  Bruno Haible  <bruno@clisp.org>
50275         memmem*: Move AC_LIBOBJ invocations to module description.
50276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
50277         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
50278         here...
50279         (gl_FUNC_MEMMEM): ... and here...
50280         * modules/memmem-simple (configure.ac): ... to here.
50281         * modules/memmem (configure.ac): ... and here.
50283 2011-05-21  Bruno Haible  <bruno@clisp.org>
50285         memcpy: Move AC_LIBOBJ invocations to module description.
50286         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
50287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
50288         here...
50289         * modules/memcpy (configure.ac): ... to here.
50291 2011-05-21  Bruno Haible  <bruno@clisp.org>
50293         memcmp: Simplify autoconf macro.
50294         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
50295         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
50296         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
50298 2011-05-21  Bruno Haible  <bruno@clisp.org>
50300         memcmp: Move AC_LIBOBJ invocations to module description.
50301         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
50302         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
50303         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
50304         * modules/memcmp (configure.ac): ... to here.
50305         (Depends-on): Update conditions.
50307 2011-05-21  Bruno Haible  <bruno@clisp.org>
50309         memchr: Respect rules for use of AC_LIBOBJ.
50310         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
50311         invocations from here...
50312         * modules/memchr (configure.ac): ... to here.
50314 2011-05-21  Bruno Haible  <bruno@clisp.org>
50316         mbtowc: Move AC_LIBOBJ invocations to module description.
50317         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
50318         invocations from here...
50319         * modules/mbtowc (configure.ac): ... to here.
50321 2011-05-21  Bruno Haible  <bruno@clisp.org>
50323         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
50324         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
50325         gl_PREREQ_MBSRTOWCS invocations from here...
50326         * modules/mbsrtowcs (configure.ac): ... to here.
50328 2011-05-21  Bruno Haible  <bruno@clisp.org>
50330         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
50331         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
50332         gl_PREREQ_MBSNRTOWCS invocations from here...
50333         * modules/mbsnrtowcs (configure.ac): ... to here.
50335 2011-05-21  Bruno Haible  <bruno@clisp.org>
50337         mbsinit: Move AC_LIBOBJ invocations to module description.
50338         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
50339         invocations from here...
50340         * modules/mbsinit (configure.ac): ... to here.
50342 2011-05-21  Bruno Haible  <bruno@clisp.org>
50344         mbrlen: Move AC_LIBOBJ invocations to module description.
50345         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
50346         invocations from here...
50347         * modules/mbrlen (configure.ac): ... to here.
50349 2011-05-21  Bruno Haible  <bruno@clisp.org>
50351         mbrtowc: Respect rules for use of AC_LIBOBJ.
50352         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
50353         invocations from here...
50354         * modules/mbrtowc (configure.ac): ... to here.
50356 2011-05-21  Bruno Haible  <bruno@clisp.org>
50358         malloc-*: Move AC_LIBOBJ invocations to module description.
50359         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
50360         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
50361         AC_LIBOBJ invocations from here...
50362         * modules/malloc-gnu (configure.ac): ... to here.
50363         * modules/malloc-posix (configure.ac): ... and here.
50365 2011-05-21  Bruno Haible  <bruno@clisp.org>
50367         lstat, openat: Respect rules for use of AC_LIBOBJ.
50368         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
50369         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
50370         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
50371         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
50372         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
50373         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
50374         here.
50375         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
50377 2011-05-21  Bruno Haible  <bruno@clisp.org>
50379         lseek: Move AC_LIBOBJ invocations to module description.
50380         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
50381         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
50382         * modules/lseek (configure.ac): ... to here.
50384 2011-05-21  Bruno Haible  <bruno@clisp.org>
50386         linkat: Move AC_LIBOBJ invocations to module description.
50387         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
50388         here...
50389         * modules/linkat (configure.ac): ... to here.
50391 2011-05-21  Bruno Haible  <bruno@clisp.org>
50393         link: Respect rules for use of AC_LIBOBJ.
50394         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
50395         * modules/link (configure.ac): ... to here.
50397 2011-05-21  Bruno Haible  <bruno@clisp.org>
50399         lchown: Move AC_LIBOBJ invocations to module description.
50400         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
50401         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
50402         * modules/lchown (configure.ac): ... to here.
50404 2011-05-21  Bruno Haible  <bruno@clisp.org>
50406         iswctype: Move AC_LIBOBJ invocations to module description.
50407         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
50408         here...
50409         * modules/iswctype (configure.ac): ... to here.
50411 2011-05-21  Bruno Haible  <bruno@clisp.org>
50413         iswblank: Move AC_LIBOBJ invocations to module description.
50414         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
50415         here...
50416         * modules/iswblank (configure.ac): ... to here.
50418 2011-05-21  Bruno Haible  <bruno@clisp.org>
50420         atanl: Move AC_LIBOBJ invocations to module description.
50421         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
50422         * modules/atanl (configure.ac): ... to here.
50424 2011-05-21  Bruno Haible  <bruno@clisp.org>
50426         acosl: Move AC_LIBOBJ invocations to module description.
50427         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
50428         * modules/acosl (configure.ac): ... to here.
50430 2011-05-21  Bruno Haible  <bruno@clisp.org>
50432         asinl: Respect rules for use of AC_LIBOBJ.
50433         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
50434         * modules/asinl (configure.ac): ... to here.
50436 2011-05-21  Bruno Haible  <bruno@clisp.org>
50438         tanl: Move AC_LIBOBJ invocations to module description.
50439         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
50440         * modules/tanl (configure.ac): ... to here.
50442 2011-05-21  Bruno Haible  <bruno@clisp.org>
50444         cosl: Move AC_LIBOBJ invocations to module description.
50445         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
50446         * modules/cosl (configure.ac): ... to here.
50448 2011-05-21  Bruno Haible  <bruno@clisp.org>
50450         sinl: Move AC_LIBOBJ invocations to module description.
50451         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
50452         * modules/sinl (configure.ac): ... to here.
50454 2011-05-21  Bruno Haible  <bruno@clisp.org>
50456         logl: Move AC_LIBOBJ invocations to module description.
50457         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
50458         * modules/logl (configure.ac): ... to here.
50460 2011-05-21  Bruno Haible  <bruno@clisp.org>
50462         expl: Move AC_LIBOBJ invocations to module description.
50463         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
50464         * modules/expl (configure.ac): ... to here.
50466 2011-05-21  Bruno Haible  <bruno@clisp.org>
50468         roundl: Move AC_LIBOBJ invocations to module description.
50469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
50470         * modules/roundl (configure.ac): ... to here.
50472 2011-05-21  Bruno Haible  <bruno@clisp.org>
50474         round: Move AC_LIBOBJ invocations to module description.
50475         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
50476         * modules/round (configure.ac): ... to here.
50478 2011-05-21  Bruno Haible  <bruno@clisp.org>
50480         roundf: Move AC_LIBOBJ invocations to module description.
50481         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
50482         * modules/roundf (configure.ac): ... to here.
50484 2011-05-21  Bruno Haible  <bruno@clisp.org>
50486         truncl: Move AC_LIBOBJ invocations to module description.
50487         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
50488         * modules/truncl (configure.ac): ... to here.
50490 2011-05-21  Bruno Haible  <bruno@clisp.org>
50492         trunc: Move AC_LIBOBJ invocations to module description.
50493         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
50494         * modules/trunc (configure.ac): ... to here.
50496 2011-05-21  Bruno Haible  <bruno@clisp.org>
50498         truncf: Move AC_LIBOBJ invocations to module description.
50499         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
50500         * modules/truncf (configure.ac): ... to here.
50502 2011-05-21  Bruno Haible  <bruno@clisp.org>
50504         ceill: Move AC_LIBOBJ invocations to module description.
50505         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
50506         * modules/ceill (configure.ac): ... to here.
50508 2011-05-21  Bruno Haible  <bruno@clisp.org>
50510         ceil: Move AC_LIBOBJ invocations to module description.
50511         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
50512         * modules/ceil (configure.ac): ... to here.
50514 2011-05-21  Bruno Haible  <bruno@clisp.org>
50516         ceilf: Move AC_LIBOBJ invocations to module description.
50517         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
50518         * modules/ceilf (configure.ac): ... to here.
50520 2011-05-21  Bruno Haible  <bruno@clisp.org>
50522         floorl: Respect rules for use of AC_LIBOBJ.
50523         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
50524         * modules/floorl (configure.ac): ... to here.
50526 2011-05-21  Bruno Haible  <bruno@clisp.org>
50528         floor: Respect rules for use of AC_LIBOBJ.
50529         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
50530         * modules/floor (configure.ac): ... to here.
50532 2011-05-21  Bruno Haible  <bruno@clisp.org>
50534         floorf: Move AC_LIBOBJ invocations to module description.
50535         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
50536         * modules/floorf (configure.ac): ... to here.
50538 2011-05-20  Bruno Haible  <bruno@clisp.org>
50540         sqrtl: Respect rules for use of AC_LIBOBJ.
50541         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
50542         * modules/sqrtl (configure.ac): ... to here.
50544 2011-05-20  Bruno Haible  <bruno@clisp.org>
50546         ldexpl: Respect rules for use of AC_LIBOBJ.
50547         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
50548         * modules/ldexpl (configure.ac): ... to here.
50550 2011-05-20  Bruno Haible  <bruno@clisp.org>
50552         frexpl*: Respect rules for use of AC_LIBOBJ.
50553         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
50554         invocation from here...
50555         * modules/frexpl (configure.ac): ... to here.
50556         * modules/frexpl-nolibm (configure.ac): ... and here.
50558 2011-05-20  Bruno Haible  <bruno@clisp.org>
50560         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
50561         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
50562         invocation from here...
50563         * modules/frexp (configure.ac): ... to here.
50564         * modules/frexp-nolibm (configure.ac): ... and here.
50566 2011-05-20  Bruno Haible  <bruno@clisp.org>
50568         isnan: Respect rules for use of AC_LIBOBJ.
50569         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
50570         invocations here.
50571         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
50572         REPLACE_ISNAN.
50573         * modules/isnand (configure.ac): Likewise.
50574         * modules/isnanl (configure.ac): Likewise.
50576 2011-05-20  Bruno Haible  <bruno@clisp.org>
50578         isnanl*: Respect rules for use of AC_LIBOBJ.
50579         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
50580         invocation from here...
50581         * modules/isnanl (configure.ac): ... to here.
50582         * modules/isnanl-nolibm (configure.ac): ... and here.
50584 2011-05-20  Bruno Haible  <bruno@clisp.org>
50586         isnand*: Move AC_LIBOBJ invocations to module description.
50587         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
50588         invocation from here...
50589         * modules/isnand (configure.ac): ... to here.
50590         * modules/isnand-nolibm (configure.ac): ... and here.
50592 2011-05-20  Bruno Haible  <bruno@clisp.org>
50594         isnanf*: Move AC_LIBOBJ invocations to module description.
50595         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
50596         invocation from here...
50597         * modules/isnanf (configure.ac): ... to here.
50598         * modules/isnanf-nolibm (configure.ac): ... and here.
50600 2011-05-20  Bruno Haible  <bruno@clisp.org>
50602         isnan*: Separate the AC_LIBOBJ invocations.
50603         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
50604         AC_LIBOBJ invocation.
50605         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
50606         here.
50607         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
50608         AC_LIBOBJ invocation.
50609         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
50610         here.
50611         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
50612         AC_LIBOBJ invocation.
50613         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
50614         here.
50615         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
50617 2011-05-08  Bruno Haible  <bruno@clisp.org>
50619         isinf: Move AC_LIBOBJ invocations to module description.
50620         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
50621         * modules/isinf (configure.ac): ... to here.
50623 2011-05-08  Bruno Haible  <bruno@clisp.org>
50625         isfinite: Move AC_LIBOBJ invocations to module description.
50626         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
50627         * modules/isfinite (configure.ac): ... to here.
50629 2011-05-08  Bruno Haible  <bruno@clisp.org>
50631         isblank: Move AC_LIBOBJ invocations to module description.
50632         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
50633         here...
50634         * modules/isblank (configure.ac): ... to here.
50636 2011-05-08  Bruno Haible  <bruno@clisp.org>
50638         isapipe: Move AC_LIBOBJ invocations to module description.
50639         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
50640         gl_PREREQ_ISAPIPE invocations from here...
50641         * modules/isapipe (configure.ac): ... to here.
50642         (Depends-on): Update condition.
50644 2011-05-08  Bruno Haible  <bruno@clisp.org>
50646         ioctl: Move AC_LIBOBJ invocations to module description.
50647         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
50648         invocations from here...
50649         * modules/ioctl (configure.ac): ... to here.
50650         (Depends-on): Update condition.
50652 2011-05-08  Bruno Haible  <bruno@clisp.org>
50654         imaxdiv: Move AC_LIBOBJ invocations to module description.
50655         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
50656         invocations from here...
50657         * modules/imaxdiv (configure.ac): ... to here.
50659 2011-05-08  Bruno Haible  <bruno@clisp.org>
50661         imaxabs: Move AC_LIBOBJ invocations to module description.
50662         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
50663         invocations from here...
50664         * modules/imaxabs (configure.ac): ... to here.
50666 2011-05-08  Bruno Haible  <bruno@clisp.org>
50668         getaddrinfo: Move AC_LIBOBJ invocations to module description.
50669         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
50670         AC_LIBOBJ invocations from here...
50671         * modules/getaddrinfo (configure.ac): ... to here.
50672         (Depends-on): Add conditions.
50674 2011-05-08  Bruno Haible  <bruno@clisp.org>
50676         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50677         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
50678         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50679         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
50680         (gl_PREREQ_INET_PTON): ... from here.
50681         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
50682         gl_PREREQ_INET_PTON here.
50683         (Depends-on): Update condition.
50685 2011-05-08  Bruno Haible  <bruno@clisp.org>
50687         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
50688         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
50689         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
50690         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
50691         (gl_PREREQ_INET_NTOP): ... from here.
50692         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
50693         gl_PREREQ_INET_NTOP here.
50694         (Depends-on): Update condition.
50696 2011-05-08  Bruno Haible  <bruno@clisp.org>
50698         iconv_open: Move AC_LIBOBJ invocations to module description.
50699         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
50700         AC_LIBOBJ invocations from here...
50701         * modules/iconv_open (configure.ac): ... to here.
50703 2011-05-08  Bruno Haible  <bruno@clisp.org>
50705         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
50706         If module 'iconv_open' is among the main modules and module
50707         'iconv_open-utf' is among the tests dependencies, then
50708         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
50709         return the special iconv_t values. Therefore iconv() and iconv_close()
50710         must support these special iconv_t values, already in lib, not only in
50711         tests.
50712         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
50713         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
50714         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
50715         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
50716         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
50717         (Depends-on): Add the dependencies of iconv_open-utf.
50718         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
50719         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
50720         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
50722 2011-05-08  Bruno Haible  <bruno@clisp.org>
50724         group-member: Move AC_LIBOBJ invocations to module description.
50725         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
50726         gl_PREREQ_GROUP_MEMBER invocations from here...
50727         * modules/group-member (configure.ac): ... to here.
50729 2011-05-08  Bruno Haible  <bruno@clisp.org>
50731         grantpt: Move AC_LIBOBJ invocations to module description.
50732         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
50733         invocations from here...
50734         * modules/grantpt (configure.ac): ... to here.
50736 2011-05-08  Bruno Haible  <bruno@clisp.org>
50738         glob: Move AC_LIBOBJ invocations to module description.
50739         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
50740         from here...
50741         * modules/glob (configure.ac): ... to here.
50743 2011-05-08  Bruno Haible  <bruno@clisp.org>
50745         getusershell: Move AC_LIBOBJ invocations to module description.
50746         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
50747         Move AC_LIBOBJ invocation from here...
50748         * modules/getusershell (configure.ac): ... to here.
50749         (Depends-on): Update condition.
50751 2011-05-08  Bruno Haible  <bruno@clisp.org>
50753         gettimeofday: Move AC_LIBOBJ invocations to module description.
50754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
50755         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
50756         gl_PREREQ_GETTIMEOFDAY invocations from here...
50757         * modules/gettimeofday (configure.ac): ... to here.
50759 2011-05-08  Bruno Haible  <bruno@clisp.org>
50761         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
50762         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
50763         just gl_FUNC_TZSET.
50764         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
50765         (gl_FUNC_TZSET_CLOBBER): Remove actions.
50766         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
50767         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
50769 2011-05-08  Bruno Haible  <bruno@clisp.org>
50771         getsubopt: Move AC_LIBOBJ invocations to module description.
50772         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
50773         gl_PREREQ_GETSUBOPT invocations from here...
50774         * modules/getsubopt (configure.ac): ... to here.
50776 2011-05-08  Bruno Haible  <bruno@clisp.org>
50778         getpass-gnu: Move AC_LIBOBJ invocations to module description.
50779         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
50780         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
50781         * modules/getpass-gnu (configure.ac): ... to here.
50783 2011-05-08  Bruno Haible  <bruno@clisp.org>
50785         getpass: Move AC_LIBOBJ invocations to module description.
50786         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
50787         gl_PREREQ_GETPASS invocations from here...
50788         * modules/getpass (configure.ac): ... to here.
50790 2011-05-08  Bruno Haible  <bruno@clisp.org>
50792         getpagesize: Move AC_LIBOBJ invocations to module description.
50793         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
50794         from here...
50795         * modules/getpagesize (configure.ac): ... to here.
50797 2011-05-08  Bruno Haible  <bruno@clisp.org>
50799         getopt: Move AC_LIBOBJ invocations to module description.
50800         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
50801         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
50802         invocations from here...
50803         * modules/getopt-gnu (configure.ac): ... to here.
50804         * modules/getopt-posix (configure.ac): ... and here.
50805         (Depends-on): Update condition.
50807 2011-05-08  Bruno Haible  <bruno@clisp.org>
50809         getopt, argp: Respect rules for use of AC_LIBOBJ.
50810         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
50811         (gl_REPLACE_GETOPT_ALWAYS): New macro.
50812         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
50813         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
50815 2011-05-08  Bruno Haible  <bruno@clisp.org>
50817         getlogin_r: Move AC_LIBOBJ invocations to module description.
50818         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
50819         gl_PREREQ_GETLOGIN_R invocations from here...
50820         * modules/getlogin_r (configure.ac): ... to here.
50822 2011-05-08  Bruno Haible  <bruno@clisp.org>
50824         getlogin: Move AC_LIBOBJ invocations to module description.
50825         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
50826         here...
50827         * modules/getlogin (configure.ac): ... to here.
50829 2011-05-08  Bruno Haible  <bruno@clisp.org>
50831         getloadavg: Move AC_LIBOBJ invocations to module description.
50832         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
50833         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
50834         * modules/getloadavg (configure.ac): ... to here.
50836 2011-05-08  Bruno Haible  <bruno@clisp.org>
50838         gethrxtime: Move AC_LIBOBJ invocations to module description.
50839         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
50840         LIB_GETHRXTIME from here...
50841         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
50842         invocations from here...
50843         * modules/gethrxtime (configure.ac): ... to here.
50845 2011-05-08  Bruno Haible  <bruno@clisp.org>
50847         gethostname: Move AC_LIBOBJ invocations to module description.
50848         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
50849         gl_PREREQ_GETHOSTNAME invocations from here...
50850         * modules/gethostname (configure.ac): ... to here.
50852 2011-05-08  Bruno Haible  <bruno@clisp.org>
50854         getgroups: Move AC_LIBOBJ invocations to module description.
50855         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
50856         here...
50857         * modules/getgroups (configure.ac): ... to here.
50859 2011-05-08  Bruno Haible  <bruno@clisp.org>
50861         getdtablesize: Move AC_LIBOBJ invocations to module description.
50862         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
50863         invocation from here...
50864         * modules/getdtablesize (configure.ac): ... to here.
50866 2011-05-08  Bruno Haible  <bruno@clisp.org>
50868         getdomainname: Move AC_LIBOBJ invocations to module description.
50869         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
50870         gl_PREREQ_GETDOMAINNAME invocations from here...
50871         * modules/getdomainname (configure.ac): ... to here.
50873 2011-05-08  Bruno Haible  <bruno@clisp.org>
50875         getline: Move AC_LIBOBJ invocations to module description.
50876         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
50877         invocations from here...
50878         * modules/getline (configure.ac): ... to here.
50880 2011-05-08  Bruno Haible  <bruno@clisp.org>
50882         getline: Simplify.
50883         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
50884         It's already handled through the module dependency.
50886 2011-05-08  Bruno Haible  <bruno@clisp.org>
50888         getdelim: Move AC_LIBOBJ invocations to module description.
50889         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
50890         and gl_PREREQ_GETDELIM invocations from here...
50891         * modules/getdelim (configure.ac): ... to here.
50892         (Depends-on): Fix condition.
50894 2011-05-08  Bruno Haible  <bruno@clisp.org>
50896         getcwd: Move AC_LIBOBJ invocations to module description.
50897         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
50898         invocations from here...
50899         * modules/getcwd (configure.ac): ... to here.
50901 2011-05-08  Bruno Haible  <bruno@clisp.org>
50903         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
50904         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
50905         here...
50906         * modules/getcwd-lgpl (configure.ac): ... to here.
50908 2011-05-07  Bruno Haible  <bruno@clisp.org>
50910         crypto/gc: Move AC_LIBOBJ invocations to module description.
50911         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
50912         * modules/crypto/gc (configure.ac): ... to here.
50914 2011-05-07  Bruno Haible  <bruno@clisp.org>
50916         fwriting: Move AC_LIBOBJ invocations to module description.
50917         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
50918         here...
50919         * modules/fwriting (configure.ac): ... to here.
50921 2011-05-07  Bruno Haible  <bruno@clisp.org>
50923         fwritable: Move AC_LIBOBJ invocations to module description.
50924         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
50925         here...
50926         * modules/fwritable (configure.ac): ... to here.
50928 2011-05-07  Bruno Haible  <bruno@clisp.org>
50930         futimens: Move AC_LIBOBJ invocations to module description.
50931         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
50932         here...
50933         * modules/futimens (configure.ac): ... to here.
50935 2011-05-07  Bruno Haible  <bruno@clisp.org>
50937         ftruncate: Move AC_LIBOBJ invocations to module description.
50938         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
50939         gl_PREREQ_FTRUNCATE invocations from here...
50940         * modules/ftruncate (configure.ac): ... to here.
50942 2011-05-07  Bruno Haible  <bruno@clisp.org>
50944         fsync: Move AC_LIBOBJ invocations to module description.
50945         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
50946         invocations from here...
50947         * modules/fsync (configure.ac): ... to here.
50949 2011-05-07  Bruno Haible  <bruno@clisp.org>
50951         fsusage: Move AC_LIBOBJ invocations to module description.
50952         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
50953         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
50954         * modules/fsusage (configure.ac): ... to here.
50956 2011-05-07  Bruno Haible  <bruno@clisp.org>
50958         freopen: Move AC_LIBOBJ invocations to module description.
50959         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
50960         invocations from here...
50961         * modules/freopen (configure.ac): ... to here.
50963 2011-05-07  Bruno Haible  <bruno@clisp.org>
50965         free: Move AC_LIBOBJ invocations to module description.
50966         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
50967         invocations from here...
50968         * modules/free (configure.ac): ... to here.
50970 2011-05-07  Bruno Haible  <bruno@clisp.org>
50972         freadable: Move AC_LIBOBJ invocations to module description.
50973         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
50974         here...
50975         * modules/freadable (configure.ac): ... to here.
50977 2011-05-07  Bruno Haible  <bruno@clisp.org>
50979         fpurge: Move AC_LIBOBJ invocations to module description.
50980         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
50981         invocations from here...
50982         * modules/fpurge (configure.ac): ... to here.
50984 2011-05-07  Bruno Haible  <bruno@clisp.org>
50986         fpending: Move AC_LIBOBJ invocations to module description.
50987         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
50988         gl_FUNC_FPENDING.
50989         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
50990         invocations from here...
50991         * modules/fpending (configure.ac): ... to here.
50993 2011-05-07  Bruno Haible  <bruno@clisp.org>
50995         fopen: Move AC_LIBOBJ invocations to module description.
50996         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
50997         invocations from here...
50998         * modules/fopen (configure.ac): ... to here.
51000 2011-05-07  Bruno Haible  <bruno@clisp.org>
51002         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
51003         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
51004         gl_FUNC_FNMATCH_POSIX.
51005         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
51006         invocations from here...
51007         * modules/fnmatch (configure.ac): ... to here.
51008         * modules/fnmatch-gnu (configure.ac): ... and here.
51010 2011-05-07  Bruno Haible  <bruno@clisp.org>
51012         flock: Move AC_LIBOBJ invocations to module description.
51013         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
51014         invocations from here...
51015         * modules/flock (configure.ac): ... to here.
51017 2011-05-07  Bruno Haible  <bruno@clisp.org>
51019         fileblocks: Move AC_LIBOBJ invocations to module description.
51020         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
51021         gl_PREREQ_FILEBLOCKS invocations from here...
51022         * modules/fileblocks (configure.ac): ... to here.
51024 2011-05-06  Bruno Haible  <bruno@clisp.org>
51026         fflush: Move AC_LIBOBJ invocations to module description.
51027         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
51028         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
51029         invocations from here...
51030         * modules/fflush (configure.ac): ... to here.
51032 2011-05-06  Bruno Haible  <bruno@clisp.org>
51034         fdopendir: Move AC_LIBOBJ invocations to module description.
51035         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
51036         here...
51037         * modules/fdopendir (configure.ac): ... to here.
51038         (Depends-on): Improve conditions.
51040 2011-05-06  Bruno Haible  <bruno@clisp.org>
51042         _Exit: Move AC_LIBOBJ invocations to module description.
51043         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
51044         invocations from here...
51045         * modules/_Exit (configure.ac): ... to here.
51047 2011-05-21  Bruno Haible  <bruno@clisp.org>
51049         euidaccess: Respect rules for use of AC_LIBOBJ.
51050         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
51051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
51052         from here...
51053         * modules/euidaccess (configure.ac): ... to here.
51055 2011-05-06  Bruno Haible  <bruno@clisp.org>
51057         error: Move AC_LIBOBJ invocations to module description.
51058         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
51059         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
51060         invocations from here...
51061         * modules/error (configure.ac): ... to here.
51063 2011-05-06  Bruno Haible  <bruno@clisp.org>
51065         duplocale: Move AC_LIBOBJ invocations to module description.
51066         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
51067         gl_PREREQ_DUPLOCALE invocations from here...
51068         * modules/duplocale (configure.ac): ... to here.
51070 2011-05-05  Bruno Haible  <bruno@clisp.org>
51072         dirfd: Move AC_LIBOBJ invocations to module description.
51073         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
51074         gl_FUNC_DIRFD.
51075         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
51076         here...
51077         * modules/dirfd (configure.ac): ... to here.
51078         (Depends-on): Fix condition.
51080 2011-05-05  Bruno Haible  <bruno@clisp.org>
51082         chown: Respect rules for use of AC_LIBOBJ.
51083         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
51084         * modules/chown (configure.ac): ... to here.
51086 2011-05-05  Bruno Haible  <bruno@clisp.org>
51088         chdir-long: Move AC_LIBOBJ invocations to module description.
51089         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
51090         gl_PREREQ_CHDIR_LONG invocations from here...
51091         * modules/chdir-long (configure.ac): ... to here.
51093 2011-05-05  Bruno Haible  <bruno@clisp.org>
51095         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
51096         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
51097         from here...
51098         * modules/canonicalize-lgpl (configure.ac): ... to here.
51100 2011-05-05  Bruno Haible  <bruno@clisp.org>
51102         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
51103         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
51104         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
51105         REPLACE_CALLOC.
51106         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
51107         * modules/calloc-gnu (configure.ac): Likewise.
51109 2011-05-05  Bruno Haible  <bruno@clisp.org>
51111         btowc: Move AC_LIBOBJ invocations to module description.
51112         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
51113         invocations from here...
51114         * modules/btowc (configure.ac): ... to here.
51116 2011-05-21  Bruno Haible  <bruno@clisp.org>
51118         atexit: Move AC_LIBOBJ invocations to module description.
51119         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
51120         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
51121         here...
51122         * modules/atexit (configure.ac): ... to here.
51124 2011-05-05  Bruno Haible  <bruno@clisp.org>
51126         atoll: Move AC_LIBOBJ invocations to module description.
51127         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
51128         invocations from here...
51129         * modules/atoll (configure.ac): ... to here.
51131 2011-05-05  Bruno Haible  <bruno@clisp.org>
51133         argz: Move AC_LIBOBJ invocations to module description.
51134         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
51135         * modules/argz (configure.ac): ... to here.
51137 2011-05-05  Bruno Haible  <bruno@clisp.org>
51139         alphasort: Move AC_LIBOBJ invocations to module description.
51140         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
51141         gl_PREREQ_ALPHASORT invocations from here...
51142         * modules/alphasort (configure.ac): ... to here.
51144 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
51146         verify: new macro verify_expr; verify_true deprecated
51147         * NEWS: Mention this.
51148         * doc/verify.texi (Compile-time Assertions): Document this.
51149         * lib/verify.h (verify_true): Deprecate.
51150         (verify_expr): New macro.
51151         * tests/test-verify.c (function): Test verify_expr.
51153 2011-06-14  Jim Meyering  <meyering@redhat.com>
51155         init.sh: give more portable redirection-related advice in a comment
51156         * tests/init.sh (stderr_fileno_): Update the advice in comments.
51157         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
51158         for lots of discussion.  Stefano Lattarini suggested the solution
51159         of putting "9>&2" after the command.  Reported by Bruno Haible.
51161 2011-06-13  Bruno Haible  <bruno@clisp.org>
51163         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
51164         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
51165         'none'.
51167 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
51169         ftoastr: use strtof only if HAVE_STRTOF
51170         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
51171         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
51172         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
51173         * modules/ftoastr (configure.ac): Check for strtof.
51175 2011-06-13  Bruno Haible  <bruno@clisp.org>
51177         gnulib-tool: Addendum to 2011-06-08 commit.
51178         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
51179         and --witness-c-macro have been given, augment AM_CPPFLAGS.
51181 2011-06-13  Bruno Haible  <bruno@clisp.org>
51183         fseeko: Provide a non-inline replacement of fseek().
51184         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
51185         * modules/fseeko (Depends-on): Add fseek.
51186         * modules/fseek (License): Change to LGPLv2+.
51188 2011-06-13  Bruno Haible  <bruno@clisp.org>
51190         ftello: Provide a non-inline replacement of ftell().
51191         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
51192         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
51193         not have ftello() (such as on mingw).
51194         * modules/ftello (Depends-on): Add ftell.
51195         * modules/ftell (License): Change to LGPLv2+.
51197 2011-05-07  Bruno Haible  <bruno@clisp.org>
51199         ftell: Move AC_LIBOBJ invocations to module description.
51200         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
51201         * modules/ftell (configure.ac): ... to here.
51203 2011-05-07  Bruno Haible  <bruno@clisp.org>
51205         ftello: Respect rules for use of AC_LIBOBJ.
51206         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
51207         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
51208         here...
51209         * modules/ftello (configure.ac): ... to here.
51211 2011-05-07  Bruno Haible  <bruno@clisp.org>
51213         fseeko: Simplify.
51214         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
51215         (gl_FUNC_FSEEKO): Inline it here.
51217 2011-05-07  Bruno Haible  <bruno@clisp.org>
51219         fseek: Move AC_LIBOBJ invocations to module description.
51220         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
51221         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
51222         * modules/fseek (configure.ac): ... to here.
51224 2011-05-07  Bruno Haible  <bruno@clisp.org>
51226         fseek: Respect rules for use of AC_LIBOBJ.
51227         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
51228         here...
51229         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
51231 2011-05-07  Bruno Haible  <bruno@clisp.org>
51233         fseeko: Respect rules for use of AC_LIBOBJ.
51234         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
51235         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
51236         here...
51237         * modules/fseeko (configure.ac): ... to here.
51239 2011-06-13  Bruno Haible  <bruno@clisp.org>
51241         gnulib-tool: Allow comments in the 'Depends-on' section.
51242         * doc/gnulib.texi (Module description): Mention comment syntax in the
51243         Depends-on section.
51244         * gnulib-tool (func_get_dependencies): Filter out comment lines.
51246 2011-06-13  Bruno Haible  <bruno@clisp.org>
51248         file-set.h: guard __attibute__ use, now that it's not always defined
51249         * lib/file-set.h (record_file): Use __attribute__ only with compiler
51250         versions that support it.  This fixes a coreutils build failure with
51251         the vendor cc on HP-UX 11.31.
51253 2011-06-12  Bruno Haible  <bruno@clisp.org>
51255         acl: Add support for HP-UX >= 11.11 JFS ACLs.
51256         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
51257         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
51258         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
51259         (acl, aclsort): New declarations.
51260         (aclv_nontrivial): New declaration.
51261         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
51262         (file_has_acl): Read also the second kind of HP-UX ACLs.
51263         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
51264         kind of HP-UX ACLs if the first kind fails.
51265         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
51266         second kind of HP-UX ACLs.
51267         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
51268         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
51269         agree.
51270         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51271         hpuxjfs.
51272         Handle hpuxjfs.
51273         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
51274         hpuxjfs.
51275         Handle hpuxjfs.
51276         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51277         (func_test_same_acls): Use both lsacl and getacl.
51278         Handle hpuxjfs.
51279         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
51280         (func_test_same_acls): Use both lsacl and getacl.
51281         Handle hpuxjfs.
51283 2011-06-12  Bruno Haible  <bruno@clisp.org>
51285         acl: Complete the 2010-08-10 fix.
51286         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
51287         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
51288         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
51289         explicitly.
51290         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
51291         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
51293 2011-06-12  Bruno Haible  <bruno@clisp.org>
51295         spawn-pipe tests: Comments.
51296         * tests/test-spawn-pipe-child.c (main): Update comment.
51297         Reported by James Youngman <jay@gnu.org>.
51299 2011-06-11  James Youngman  <jay@gnu.org>
51301         New module 'stat-size'.
51302         * modules/stat-size: New module.  Provides macros for accessing
51303         file size information in instances of struct stat.  Depends on the
51304         fileblocks module because it calls st_blocks.
51305         * lib/stat-size.h: New file, adapted from coreutils' system.h.
51306         * doc/gnulib.texi: Include stat-size.texi.
51307         * doc/stat-size.texi: Documentation for this module.
51308         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
51309         * m4/fileblocks.m4: Mention that stat-size depends on the call to
51310         AC_STRUCT_ST_BLOCKS.
51312 2011-06-09  Bruno Haible  <bruno@clisp.org>
51314         thread: Support pthreads-win32.
51315         * lib/glthread/thread.h (gl_thread_self): Define differently on
51316         pthreads-win32.
51317         (gl_null_thread): New declaration.
51318         (gl_thread_self_pointer): New macro.
51319         * lib/glthread/thread.c (gl_null_thread): New constant.
51320         * tests/test-lock.c: Use gl_thread_self_pointer instead of
51321         gl_thread_self.
51322         * tests/test-tls.c: Likewise.
51323         Suggested by Paul Eggert. Reported by Eric Blake.
51325 2011-06-09  Bruno Haible  <bruno@clisp.org>
51327         thread: Fix confusion between NULL and 0.
51328         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
51329         Reported by Paul Eggert.
51331 2011-06-09  Bruno Haible  <bruno@clisp.org>
51333         spawn-pipe tests: Avoid test failure on HP-UX 11.
51334         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
51335         is closed.
51337 2011-06-09  Bruno Haible  <bruno@clisp.org>
51339         acl tests: Fix compilation error on HP-UX 11.
51340         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
51342 2011-06-09  Bruno Haible  <bruno@clisp.org>
51344         rmdir: Avoid test failure on HP-UX 10.20.
51345         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
51346         EEXIST.
51348 2011-06-08  Eric Blake  <eblake@redhat.com>
51350         perror: fix test on mingw
51351         * modules/perror-tests (Depends-on): Add dup2.
51353         strerror_r-posix: fix on MacOS
51354         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
51355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
51356         logic bug.
51357         * lib/strerror_r.c (strerror_r): Fix the bug.
51358         * lib/strerror.c (strerror): Likewise.
51359         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
51360         problem.
51361         * doc/posix-functions/strerror.texi (strerror): Likewise.
51362         * doc/posix-functions/perror.texi (perror): Likewise.
51363         * tests/test-strerror.c (main): Enhance test.
51364         * tests/test-strerror_r.c (main): Likewise.
51366 2011-06-08  Bruno Haible  <bruno@clisp.org>
51368         gnulib-tool: Better isolation between different gnulib-tool invocations.
51369         * gnulib-tool: New option --witness-c-macro.
51370         (witness_c_macro): New variable.
51371         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
51372         AM_CPPFLAGS define it as a C macro.
51373         (func_emit_tests_Makefile_am): Likewise.
51374         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
51375         read it from there.
51376         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
51377         m4_define, not AC_DEFUN.
51378         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
51379         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
51380         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
51381         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
51382         s|...|...|, to substitute the values of the GNULIB_* module indicator
51383         variables.
51384         * modules/dirent (Makefile.am): Likewise.
51385         * modules/fcntl-h (Makefile.am): Likewise.
51386         * modules/iconv-h (Makefile.am): Likewise.
51387         * modules/langinfo (Makefile.am): Likewise.
51388         * modules/locale (Makefile.am): Likewise.
51389         * modules/math (Makefile.am): Likewise.
51390         * modules/netdb (Makefile.am): Likewise.
51391         * modules/poll-h (Makefile.am): Likewise.
51392         * modules/pty (Makefile.am): Likewise.
51393         * modules/search (Makefile.am): Likewise.
51394         * modules/signal (Makefile.am): Likewise.
51395         * modules/spawn (Makefile.am): Likewise.
51396         * modules/stdio (Makefile.am): Likewise.
51397         * modules/stdlib (Makefile.am): Likewise.
51398         * modules/string (Makefile.am): Likewise.
51399         * modules/sys_ioctl (Makefile.am): Likewise.
51400         * modules/sys_select (Makefile.am): Likewise.
51401         * modules/sys_socket (Makefile.am): Likewise.
51402         * modules/sys_stat (Makefile.am): Likewise.
51403         * modules/sys_times (Makefile.am): Likewise.
51404         * modules/sys_utsname (Makefile.am): Likewise.
51405         * modules/sys_wait (Makefile.am): Likewise.
51406         * modules/termios (Makefile.am): Likewise.
51407         * modules/time (Makefile.am): Likewise.
51408         * modules/unistd (Makefile.am): Likewise.
51409         * modules/wchar (Makefile.am): Likewise.
51411 2011-06-08  Eric Blake  <eblake@redhat.com>
51413         strerror: simplify replacement
51414         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
51415         * modules/strerror (configure.ac): No prereqs needed here...
51416         * modules/strerror-override (configure.ac): ...but this needs it.
51417         (Files): Add file for needed prereq macro.
51419 2011-06-08  Bruno Haible  <bruno@clisp.org>
51421         strerror_r-posix: Tweaks.
51422         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
51423         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
51424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
51425         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
51426         (gl_FUNC_STRERROR_R): ... to here.
51427         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
51429 2011-06-07  Eric Blake  <eblake@redhat.com>
51431         perror: document fixed bugs
51432         * doc/posix-functions/perror.texi (perror): Document recent
51433         patches.
51435 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
51437         stat-time: get_stat_birthtime failure is better-defined
51438         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
51439         return a timestamp whose tv_sec and tv_nsec values are both -1.
51440         Previously, the spec said only that the tv_nsec value was negative.
51441         This upward-compatible change simplifies GNU tar a bit.
51443 2011-06-07  Eric Blake  <eblake@redhat.com>
51445         strerror_r-posix: work around cygwin 1.7.9
51446         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
51447         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
51448         bug without replacing strerror_r.
51449         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
51450         strerror_r is buggy, but without requiring strerror_r compilation.
51451         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
51453         test-perror: relax test to ignore cygwin bug
51454         * tests/test-perror2.c (main): Relax test on requiring detection
51455         of stream errors, and use unbuffered stream.
51456         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
51457         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
51458         * doc/posix-functions/fputc.texi (fputc): Likewise.
51459         * doc/posix-functions/fputs.texi (fputs): Likewise.
51460         * doc/posix-functions/fputws.texi (fputws): Likewise.
51461         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
51462         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
51463         * doc/posix-functions/getopt.texi (getopt): Likewise.
51464         * doc/posix-functions/perror.texi (perror): Likewise.
51465         * doc/posix-functions/printf.texi (printf): Likewise.
51466         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
51467         * doc/posix-functions/psignal.texi (psignal): Likewise.
51468         * doc/posix-functions/putc.texi (putc): Likewise.
51469         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
51470         Likewise.
51471         * doc/posix-functions/putchar.texi (putchar): Likewise.
51472         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
51473         Likewise.
51474         * doc/posix-functions/puts.texi (puts): Likewise.
51475         * doc/posix-functions/putwc.texi (putwc): Likewise.
51476         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51477         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51478         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51479         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
51480         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51481         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51482         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
51483         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
51485 2011-05-22  Bruno Haible  <bruno@clisp.org>
51487         strerror: Move AC_LIBOBJ invocations to module description.
51488         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
51489         gl_PREREQ_STRERROR invocations from here...
51490         * modules/strerror (configure.ac): ... to here.
51492 2011-05-21  Bruno Haible  <bruno@clisp.org>
51494         perror: Use common idiom.
51495         * modules/perror (configure.ac): Reorder statements.
51497 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51499         tests: fix usage message in 'mktempd_'
51500         * tests/init.sh (mktempd_): In the usage message, use literal
51501         'mktempd_', not '$ME' (which is even undefined), as the name of
51502         the subroutine.
51504 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
51506         tests init: new function 'fatal_', for hard errors
51507         Before this patch, the only way offered by tests/init.sh to
51508         properly signal a hard error was the `framework_failure_'
51509         function.  But the error message issued by that function,
51510         as its name would suggest, refers to a set-up failure in the
51511         testsuite, while hard errors can obviously also be due to
51512         other reasons.  The best way to fix this inconsistency is to
51513         introduce a new function with a more general error message.
51514         * tests/init.sh (fatal_): New function.
51516 2011-06-06  Eric Blake  <eblake@redhat.com>
51518         canonicalize-lgpl: use common idiom
51519         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
51520         over newer POSIX -Rf.
51521         Reported by Bruno Haible.
51523         canonicalize-lgpl: work around AIX realpath bug
51524         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
51525         * doc/posix-functions/realpath.texi (realpath): Document it.
51526         Reported by Bruno Haible.
51528         strerror: work around FreeBSD bug
51529         * lib/strerror.c (strerror): Special case 0.
51530         Reported by Bruno Haible.
51532         strerror-override: avoid bloating errno module
51533         * modules/errno (Files, configure.ac): Move replacement strings...
51534         * modules/strerror-override: ...to new module.
51535         * modules/strerror (Depends-on): Add strerror-override.
51536         * modules/strerror_r-posix (Depends-on): Likewise.
51537         * MODULES.html.sh: Document new module.
51538         Reported by Bruno Haible.
51540 2011-06-06  Bruno Haible  <bruno@clisp.org>
51542         spawn-pipe tests: Rename program.
51543         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
51544         * tests/test-spawn-pipe-child.c: Update comment.
51545         * tests/test-spawn-pipe.sh: Update.
51546         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
51548         spawn-pipe tests: Link the child program only against libc.
51549         * tests/test-spawn-pipe-child.c: New file, extracted from
51550         tests/test-spawn-pipe.c.
51551         (main): Expect only one argument.
51552         (is_open): New function, copied from tests/test-pipe.c.
51553         * tests/test-spawn-pipe.c: Don't include <errno.h>.
51554         (child_main): Remove function.
51555         (test_pipe): Pass only one argument to the child program.
51556         (main): Remove child process code. Expect the child program's name as
51557         first argument.
51558         * tests/test-spawn-pipe.sh: Pass the child program's name as first
51559         argument.
51560         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
51561         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
51562         test-spawn-pipe-child against no libraries.
51564 2011-06-06  Bruno Haible  <bruno@clisp.org>
51566         careadlinkat: Avoid mismatch between ssize_t and int.
51567         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
51568         * lib/careadlinkat.c (careadlinkatcwd): Define always.
51570 2011-06-06  Jim Meyering  <meyering@redhat.com>
51572         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
51573         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
51574         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
51576 2011-06-05  Bruno Haible  <bruno@clisp.org>
51578         ansi-c++-opt: Interoperability with libtool.
51579         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
51580         set the variable to "no", not to ":".
51581         * NEWS: Mention the change.
51583 2011-06-05  Bruno Haible  <bruno@clisp.org>
51585         acl: Fix test failure on AIX 7.
51586         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
51587         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
51589 2011-06-05  Bruno Haible  <bruno@clisp.org>
51591         pipe-filter-ii: Fix test failure on AIX and IRIX.
51592         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
51593         with EAGAIN, retry with a smaller buffer size.
51595 2011-06-05  Bruno Haible  <bruno@clisp.org>
51597         localename: Fix link dependencies.
51598         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
51599         * modules/localename-tests (Makefile.am): Link test-localename with
51600         $(LIBTHREAD).
51602 2011-06-05  Bruno Haible  <bruno@clisp.org>
51604         error: Avoid gcc warning.
51605         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
51607 2011-06-05  Bruno Haible  <bruno@clisp.org>
51609         unsetenv: Avoid gcc warning.
51610         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
51612 2011-06-05  Bruno Haible  <bruno@clisp.org>
51614         setenv: Avoid gcc warning.
51615         * lib/setenv.c (setenv): Provide declaration if system lacks it.
51617 2011-06-05  Bruno Haible  <bruno@clisp.org>
51619         sys_select: Ensure memset is declared also on AIX 7.
51620         * lib/sys_select.in.h: Include <string.h> also on AIX.
51621         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
51622         self-contained also on AIX 7.1.
51624 2011-06-04  Jim Meyering  <meyering@redhat.com>
51626         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
51627         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
51628         function name, "error".
51629         (_gl_translatable_diag_func_re): New configurable variable.
51631 2011-06-04  Bruno Haible  <bruno@clisp.org>
51633         getopt: Avoid gcc warning.
51634         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
51636 2011-06-04  Bruno Haible  <bruno@clisp.org>
51638         strerror_r: Fix comments.
51639         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
51640         commit.
51642 2011-06-04  Bruno Haible  <bruno@clisp.org>
51644         perror: Fix compilation error.
51645         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
51646         Undefine fprintf, not sprintf.
51647         * modules/perror (Depends-on): Remove intprops, verify.
51649 2011-06-04  Bruno Haible  <bruno@clisp.org>
51651         setlocale: Enable replacement on Cygwin 1.5.
51652         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
51653         Cygwin 1.5.x.
51654         * doc/posix-functions/setlocale.texi: Mention that the problem with the
51655         LC_CTYPE category also exists on Cygwin 1.5.x.
51657 2011-06-04  Bruno Haible  <bruno@clisp.org>
51659         strerror-override: Don't disable symbol renamings.
51660         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
51661         * lib/strerror-override.c: Include config.h.
51662         (strerror_override): Don't undefine.
51664 2011-06-03  Bruno Haible  <bruno@clisp.org>
51666         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
51667         * lib/localename.h: Update copyright header.
51668         * lib/localename.c: Likewise.
51669         * lib/relocatable.h: Likewise.
51670         * lib/relocatable.c: Likewise.
51672 2011-06-02  Bruno Haible  <bruno@clisp.org>
51674         doc: Fix a module name.
51675         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
51677 2011-06-02  Bruno Haible  <bruno@clisp.org>
51679         pipe2: Remove dependency on 'nonblocking' module.
51680         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
51681         O_NONBLOCK is defined by gnulib.
51682         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
51683         is zero.
51684         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
51685         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
51686         defined by gnulib.
51687         (get_nonblocking_flag): New function.
51688         (main): Test O_NONBLOCK flag only if it is nonzero.
51689         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
51691 2011-06-03  Jim Meyering  <meyering@redhat.com>
51693         maint: three new prohibit-header-without-use rules
51694         Prohibit use of cloexec.h, posixver.h, same.h without use.
51695         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
51696         (sc_prohibit_posixver_without_use): Likewise.
51697         (sc_prohibit_same_without_use): Likewise.
51699 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
51701         allocator: 'die' routine is now given requested size
51702         * lib/allocator.h (struct allocator.die): New size arg.
51703         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
51704         If the actual problem is an ssize_t limitation, not a size_t or
51705         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
51707 2011-06-01  Eric Blake  <eblake@redhat.com>
51709         strerror: drop strerror_r dependency
51710         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
51711         * lib/strerror-override.c (strerror_override): ...to new file.
51712         * lib/strerror-override.h: Add prototype.
51713         * lib/strerror-impl.h: Delete.
51714         * lib/strerror.c (strerror): New implementation.
51715         * modules/errno (Files): Add new files.
51716         (configure.ac): Compile new file as appropriate.
51717         * modules/strerror (Files): Drop unused file.
51718         (Depends-on): Drop strerror_r-posix.
51719         * MODULES.html.sh: Document strerror_r-posix.
51720         Requested by Sam Steingold.
51722         perror: call strerror_r directly
51723         * modules/perror (Files): Drop strerror-impl.h.
51724         * lib/perror.c (perror): Use our own stack buffer, rather than
51725         calling a wrapper that uses static storage.
51726         * doc/posix-functions/perror.texi (perror): Document a limitation
51727         of our replacement.
51729         strerror_r: fix includes for FreeBSD
51730         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
51731         since we use abort on some platforms.
51732         Reported by Matthias Bolte.
51734 2011-05-31  Bruno Haible  <bruno@clisp.org>
51736         Fix link errors in tests: openat-die uses gettext-h.
51737         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
51738         against $(LIBINTL).
51739         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
51740         against $(LIBINTL).
51741         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51742         $(LIBINTL).
51743         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
51744         against $(LIBINTL).
51745         * modules/linkat-tests (Makefile.am): Link test-linkat against
51746         $(LIBINTL).
51747         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
51748         $(LIBINTL).
51749         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
51750         against $(LIBINTL).
51751         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
51752         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
51753         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
51754         $(LIBINTL).
51755         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
51756         $(LIBINTL).
51757         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
51758         $(LIBINTL).
51759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51761 2011-05-31  Bruno Haible  <bruno@clisp.org>
51763         Fix link errors in tests: wait-process uses gettext-h.
51764         * modules/nonblocking-pipe-tests (Makefile.am): Set
51765         test_nonblocking_pipe_main_LDADD.
51766         * modules/nonblocking-socket-tests (Makefile.am): Link
51767         test-nonblocking-socket-main against $(LIBINTL).
51768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51770 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
51772         assert-h: work around 'verify' incompatibility
51773         * lib/verify.h: Use @...@ directives, not ifdef.
51774         * modules/assert-h (assert.h): Implement the directives.
51775         (assert.h): Substitute the symbol-prefix more consistently.
51777 2011-05-29  Jim Meyering  <meyering@redhat.com>
51779         trim: remove three superfluous assignments
51780         * lib/trim.c (trim2): Remove three superfluous assignments
51781         and correct brace positioning.
51783 2011-05-29  Bruno Haible  <bruno@clisp.org>
51785         wctype-h: Avoid namespace pollution on Solaris 2.6.
51786         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
51787         identifiers.
51788         * doc/posix-headers/wctype.texi: Mention the problem.
51789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51791 2011-05-28  Jim Meyering  <meyering@redhat.com>
51793         parse-datetime.y: accommodate -Wstrict-overflow
51794         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
51795         placate -Wstrict-overflow.
51797         trim: avoid a warning from -O2 -Wstrict-overflow
51798         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
51800 2011-05-29  Bruno Haible  <bruno@clisp.org>
51802         gnulib-tool: Fix bug in yesterday's commit.
51803         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
51804         twice.
51806 2011-05-29  Bruno Haible  <bruno@clisp.org>
51808         Allow multiple gnulib generated include files to be combined.
51809         * gnulib-tool (func_compute_include_guard_prefix): New function.
51810         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
51811         ${gl_include_guard_prefix} references.
51812         (func_import, func_create_testdir): Invoke
51813         func_compute_include_guard_prefix.
51814         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
51815         * lib/ctype.in.h: Likewise.
51816         * lib/dirent.in.h: Likewise.
51817         * lib/errno.in.h: Likewise.
51818         * lib/fcntl.in.h: Likewise.
51819         * lib/float.in.h: Likewise.
51820         * lib/getopt.in.h: Likewise.
51821         * lib/iconv.in.h: Likewise.
51822         * lib/langinfo.in.h: Likewise.
51823         * lib/locale.in.h: Likewise.
51824         * lib/math.in.h: Likewise.
51825         * lib/netdb.in.h: Likewise.
51826         * lib/netinet_in.in.h: Likewise.
51827         * lib/poll.in.h: Likewise.
51828         * lib/pthread.in.h: Likewise.
51829         * lib/pty.in.h: Likewise.
51830         * lib/sched.in.h: Likewise.
51831         * lib/se-selinux.in.h: Likewise.
51832         * lib/search.in.h: Likewise.
51833         * lib/signal.in.h: Likewise.
51834         * lib/spawn.in.h: Likewise.
51835         * lib/stdarg.in.h: Likewise.
51836         * lib/stddef.in.h: Likewise.
51837         * lib/stdint.in.h: Likewise.
51838         * lib/stdio.in.h: Likewise.
51839         * lib/stdlib.in.h: Likewise.
51840         * lib/string.in.h: Likewise.
51841         * lib/strings.in.h: Likewise.
51842         * lib/sys_file.in.h: Likewise.
51843         * lib/sys_ioctl.in.h: Likewise.
51844         * lib/sys_select.in.h: Likewise.
51845         * lib/sys_socket.in.h: Likewise.
51846         * lib/sys_stat.in.h: Likewise.
51847         * lib/sys_time.in.h: Likewise.
51848         * lib/sys_times.in.h: Likewise.
51849         * lib/sys_uio.in.h: Likewise.
51850         * lib/sys_utsname.in.h: Likewise.
51851         * lib/sys_wait.in.h: Likewise.
51852         * lib/sysexits.in.h: Likewise.
51853         * lib/termios.in.h: Likewise.
51854         * lib/time.in.h: Likewise.
51855         * lib/unistd.in.h: Likewise.
51856         * lib/wchar.in.h: Likewise.
51857         * lib/wctype.in.h: Likewise.
51858         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
51859         * modules/ctype (Makefile.am): Likewise.
51860         * modules/dirent (Makefile.am): Likewise.
51861         * modules/errno (Makefile.am): Likewise.
51862         * modules/fcntl-h (Makefile.am): Likewise.
51863         * modules/float (Makefile.am): Likewise.
51864         * modules/getopt-posix (Makefile.am): Likewise.
51865         * modules/iconv-h (Makefile.am): Likewise.
51866         * modules/langinfo (Makefile.am): Likewise.
51867         * modules/locale (Makefile.am): Likewise.
51868         * modules/math (Makefile.am): Likewise.
51869         * modules/netdb (Makefile.am): Likewise.
51870         * modules/netinet_in (Makefile.am): Likewise.
51871         * modules/poll-h (Makefile.am): Likewise.
51872         * modules/pthread (Makefile.am): Likewise.
51873         * modules/pty (Makefile.am): Likewise.
51874         * modules/sched (Makefile.am): Likewise.
51875         * modules/search (Makefile.am): Likewise.
51876         * modules/selinux-h (Makefile.am): Likewise.
51877         * modules/signal (Makefile.am): Likewise.
51878         * modules/spawn (Makefile.am): Likewise.
51879         * modules/stdarg (Makefile.am): Likewise.
51880         * modules/stddef (Makefile.am): Likewise.
51881         * modules/stdint (Makefile.am): Likewise.
51882         * modules/stdio (Makefile.am): Likewise.
51883         * modules/stdlib (Makefile.am): Likewise.
51884         * modules/string (Makefile.am): Likewise.
51885         * modules/strings (Makefile.am): Likewise.
51886         * modules/sys_file (Makefile.am): Likewise.
51887         * modules/sys_ioctl (Makefile.am): Likewise.
51888         * modules/sys_select (Makefile.am): Likewise.
51889         * modules/sys_socket (Makefile.am): Likewise.
51890         * modules/sys_stat (Makefile.am): Likewise.
51891         * modules/sys_time (Makefile.am): Likewise.
51892         * modules/sys_times (Makefile.am): Likewise.
51893         * modules/sys_uio (Makefile.am): Likewise.
51894         * modules/sys_utsname (Makefile.am): Likewise.
51895         * modules/sys_wait (Makefile.am): Likewise.
51896         * modules/sysexits (Makefile.am): Likewise.
51897         * modules/termios (Makefile.am): Likewise.
51898         * modules/time (Makefile.am): Likewise.
51899         * modules/unistd (Makefile.am): Likewise.
51900         * modules/wchar (Makefile.am): Likewise.
51901         * modules/wctype-h (Makefile.am): Likewise.
51902         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
51904 2011-05-29  Bruno Haible  <bruno@clisp.org>
51906         assert-h: Allow multiple gnulib generated replacements to coexist.
51907         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
51909 2011-05-29  Bruno Haible  <bruno@clisp.org>
51911         argp: Allow coexistence with strerror_r-posix module.
51912         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
51913         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
51914         by gnulib's <string.h> replacement), assume it has the POSIX signature,
51915         not the glibc signature.
51917 2011-05-28  Bruno Haible  <bruno@clisp.org>
51919         gnulib-tool: Alternative structure of testdirs, similar to --import.
51920         * gnulib-tool: New option --single-configure.
51921         (func_usage): Document it.
51922         (single_configure): New variable.
51923         (func_modules_transitive_closure_separately,
51924         func_modules_transitive_closure_separately,
51925         func_determine_use_libtests, func_modules_add_dummy_separately,
51926         func_modules_to_filelist_separately): New functions, extracted from
51927         func_import.
51928         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
51929         (func_import): Use the new functions.
51930         (func_create_testdir): Set final_modules. Handle $single_configure =
51931         true case.
51933 2011-05-28  Bruno Haible  <bruno@clisp.org>
51935         getloadavg: Remove an unreliable safety check.
51936         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
51937         getloadavg.c is in place.
51938         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
51939         Reported by Sam Steingold <sds@gnu.org>.
51941 2011-05-28  Bruno Haible  <bruno@clisp.org>
51943         doc: Cleanup yet another file produced by texinfo.tex.
51944         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
51946 2011-05-28  Bruno Haible  <bruno@clisp.org>
51948         Finish the conditional dependencies mechanism.
51949         * gnulib-tool: New option --no-conditional-dependencies.
51950         (func_usage): Document it. Don't mark --conditional-dependencies as
51951         experimental.
51952         (cond_dependencies): The possible values can now be true, false, empty.
51953         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
51954         (func_import): Store setting in gnulib-cache.m4 and read it from there.
51955         * doc/gnulib-tool.texi (Conditional dependencies): New section.
51957 2011-05-28  Bruno Haible  <bruno@clisp.org>
51959         doc: Use a recent texinfo.tex.
51960         * doc/Makefile (tex_opts): New variable.
51961         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
51963 2011-05-28  Jim Meyering  <meyering@redhat.com>
51965         intprops.h: adjust comment to match code change
51966         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
51967         only once, it *may* have side effects.  Also fix an unrelated typo.
51968         (_GL_INT_SIGNED): Likewise.
51970 2011-05-26  Simon Josefsson  <simon@josefsson.org>
51972         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
51974 2011-05-26  Bruno Haible  <bruno@clisp.org>
51976         mbsrchr: Avoid collision with system function on Interix.
51977         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
51978         Reported by Markus Duft <mduft@gentoo.org>.
51980 2011-05-15  James Youngman  <jay@gnu.org>
51982         getopt: for ambiguous options, enumerate the possibilities.
51983         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
51984         the ambiguous options when an ambiguous prefix is given. This was
51985         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
51986         glibc change was
51987         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
51989 2011-05-25  Eric Blake  <eblake@redhat.com>
51991         getcwd: work around mingw bug
51992         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
51993         * doc/posix-functions/getcwd.texi (getcwd): Document it.
51994         Reported by Matthias Bolte.
51996 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
51998         test-intprops: disable -Wtype-limits diagnostics
51999         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
52000         diagnostics.  Otherwise, the integer overflow macros generate many
52001         diagnostics.  Reported by Jim Meyering in
52002         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52004         intprops: shorten, to pacify gcc -Woverlength-strings
52005         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
52006         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
52007         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
52008         likely to run afoul of C compiler limits for string constant lengths.
52009         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
52011 2011-05-24  Eric Blake  <eblake@redhat.com>
52013         docs: document recently fixed glibc printf bug
52014         * doc/posix-functions/fprintf.texi (fprintf): Document it.
52015         * doc/posix-functions/printf.texi (printf): Likewise.
52016         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
52017         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
52019         closein-tests: convert to init.sh
52020         * modules/closein-tests (Files): Add init.sh
52021         * tests/test-closein.sh Use it.
52023         yesno-tests: convert to init.sh
52024         * modules/yesno-tests (Files): Add init.sh.
52025         * tests/test-yesno.sh: Use it.
52027         atexit-tests: ensure reliable exit status
52028         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
52029         Reported by Bruno Haible.
52031 2011-05-24  Bruno Haible  <bruno@clisp.org>
52033         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
52034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
52035         gl_PREREQ_STRERROR_R invocations from here...
52036         * modules/strerror_r-posix (configure.ac): ... to here.
52038 2011-05-24  Eric Blake  <eblake@redhat.com>
52040         strerror_r: fix missing header
52041         * lib/strerror_r.c: Avoid compiler warning about snprintf.
52043         strerror_r: fix AIX test failures
52044         * lib/strerror_r.c (strerror_r): Convert silent truncation to
52045         ERANGE failure.
52047         strerror_r: fix Solaris test failures
52048         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
52049         failures.
52050         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52052         strerror_r: enforce POSIX recommendations
52053         * lib/strerror_r.c (safe_copy): New helper method.
52054         (strerror_r): Guarantee a non-empty string.
52055         * tests/test-strerror_r.c (main): Enhance tests to incorporate
52056         recent POSIX rulings and to match our strerror guarantees.
52057         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
52059 2011-05-24  Jim Meyering  <meyering@redhat.com>
52061         test-perror2.c: avoid warning about unused variable
52062         * tests/test-perror2.c (main): Remove declaration of unused "fp".
52064 2011-05-24  Eric Blake  <eblake@redhat.com>
52066         perror: avoid spurious test failure on HP-UX
52067         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
52069         tests: fix logic bug in init.sh
52070         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
52071         shell.
52073 2011-05-24  Jim Meyering  <meyering@redhat.com>
52075         utimensat: do not reference an out-of-scope buffer
52076         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
52077         declared in an inner scope, yet "times" would be dereferenced outside
52078         the scope in which "ts" was valid.
52079         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
52080         of ts[2] "out/up", so that the use of aliased "times" (via
52081         "times = ts;") does not end up referencing an out-of-scope "ts"
52083         opendir-safer.c: don't clobber errno; don't close negative FD
52084         * lib/opendir-safer.c (opendir_safer):
52085         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
52086         file descriptor, and more importantly, don't clobber the
52087         offending errno value with EINVAL.  Before, upon failure
52088         of dup_safer, we would pass the negative file descriptor to
52089         fdopendir, which would clobber errno.
52091 2011-05-23  Bruno Haible  <bruno@clisp.org>
52093         idcache: Fix module description.
52094         * modules/idcache (Include): Set to "idcache.h".
52096 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
52098         gnulib-tool: fix portability problem with MacOS sed
52099         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
52100         before the "}".  Problem reported by Leo in
52101         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
52102         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
52103         sed_extract_condition1, sed_extract_condition2.
52105 2011-05-23  Bruno Haible  <bruno@clisp.org>
52107         hash: Simplify autoconf macro.
52108         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
52110 2011-05-23  Bruno Haible  <bruno@clisp.org>
52112         getugroups: Fix module description.
52113         * modules/getugroups (Include): Set to "getugroups.h".
52115 2011-05-23  Bruno Haible  <bruno@clisp.org>
52117         linkat: Simplify autoconf macro.
52118         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
52120 2011-05-23  Bruno Haible  <bruno@clisp.org>
52121             Eric Blake  <eblake@redhat.com>
52123         linkat, renameat: Update dependencies.
52124         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
52125         * modules/linkat (Depends-on): Likewise. Remove also readlink,
52126         symlinkat.
52128 2011-05-23  Jim Meyering  <meyering@redhat.com>
52130         maint.mk: more tight_scope improvements
52131         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
52132         (_gl_TS_headers): Define only in if-0'd block.
52133         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
52134         sometimes we must *not* use it.  Adjust uses accordingly.
52135         (sc_tight_scope): Use much simpler grep-based test to determine
52136         whether we skip this rule.
52138         maint.mk: generalize/improve the tight-scope rule
52139         * top/maint.mk: Emit a warning when the test is skipped.
52140         (_gl_TS_dir): Add $(srcdir)/ prefix.
52141         (_gl_TS_function_match): Simplify, rather than trying
52142         to enumerate common types.  Otherwise, it would fail to match an
52143         "extern unsigned char const *" declaration in idutils.
52144         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
52145         a way to support use of that type of macro.
52146         (_gl_TS_var_match): Simplify regexp.
52147         (_gl_TS_obj_files): New configurable variable.
52148         (_gl_TS_headers): Likewise.
52150 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52152         verify: fix bug when gnulib <assert.h> is also included
52153         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
52154         is defined, not if _GL_STATIC_ASSERT_H is not defined.
52155         Perhaps there's a better way, but this fixes the immediate problem.
52156         Problem reported by Bruno Haible in
52157         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
52159 2011-05-22  Bruno Haible  <bruno@clisp.org>
52161         xgetcwd: Simplify autoconf macro.
52162         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
52164 2011-05-22  Bruno Haible  <bruno@clisp.org>
52166         New module 'mktime-internal'.
52167         * modules/mktime-internal: New file.
52168         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
52169         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
52170         mktime_internal as a C macro if libc has __mktime_internal.
52171         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
52172         conditions.
52173         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
52175 2011-05-22  Bruno Haible  <bruno@clisp.org>
52177         timegm: Correct mktime replacement statements.
52178         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
52179         defining mktime as a C macro. This completes a 2009-07-28 commit.
52181 2011-05-22  Bruno Haible  <bruno@clisp.org>
52183         timegm: Simplify autoconf macro.
52184         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
52186 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
52188         clock-time: change to LGPLv2+.
52189         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
52190         BSD-like but we have no mark for that; this is good enough for now.
52192 2011-05-21  Bruno Haible  <bruno@clisp.org>
52194         strerror_r: Fix comments.
52195         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
52197 2011-05-21  Bruno Haible  <bruno@clisp.org>
52199         relocatable-prog-wrapper: Fix possible link error.
52200         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
52201         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
52202         (gl_FUNC_SETENV): ... to here.
52203         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
52204         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
52206 2011-05-21  Bruno Haible  <bruno@clisp.org>
52208         relocatable-prog-wrapper: Assume strerror() exists.
52209         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
52210         m4/strerror.m4.
52211         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
52212         * lib/relocwrapper.c: Remove mention of strerror module.
52213         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
52214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
52215         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
52216         C macro.
52218 2011-05-21  Bruno Haible  <bruno@clisp.org>
52220         select: Simplify replacement idiom.
52221         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
52222         Win32 platforms.
52223         * lib/sys_select.in.h (select): Simplify accordingly.
52224         * modules/select (Depends-on): Likewise.
52226 2011-05-21  Bruno Haible  <bruno@clisp.org>
52228         mkdir-p: Simplify autoconf macro.
52229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
52230         gl_FUNC_LCHOWN.
52232 2011-05-21  Eric Blake  <eblake@redhat.com>
52234         strerror_r: avoid clobbering strerror on cygwin
52235         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
52236         fall back instead to sys_errlist.
52237         * modules/strerror (configure.ac): Add witness.
52238         * tests/test-strerror_r.c (main): Enhance test.
52239         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52240         * tests/test-perror2.c (main): Free memory before exit.
52242 2011-05-21  Bruno Haible  <bruno@clisp.org>
52244         mkdtemp: Use gnulib naming conventions.
52245         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
52246         * modules/mkdtemp (configure.ac): Update.
52248 2011-05-20  Eric Blake  <eblake@redhat.com>
52250         strerror_r: avoid corrupting errno on Solaris
52251         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
52252         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
52254         strerror_r: avoid compiler warning
52255         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
52257         strerror_r: simplify AIX code
52258         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
52260         test-perror: avoid spurious failure on FreeBSD
52261         * modules/perror-tests (Depends-on): Add strerror, now that
52262         strerror_r no longer pulls it in.
52264 2011-05-20  Bruno Haible  <bruno@clisp.org>
52266         strerror_r-posix: Remove unused dependencies.
52267         * modules/strerror_r-posix (Depends-on): Remove strerror.
52268         Reported by Eric Blake.
52270 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
52272         intprops: remove assumption about A|B representation
52273         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
52274         is a valid integer if both A and B are.  Although this is true for
52275         all known practical hosts, the C standard doesn't guarantee it,
52276         and the code need not assume it.  Also, this change may work around
52277         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
52278         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
52280 2011-05-20  Eric Blake  <eblake@redhat.com>
52282         perror: work around FreeBSD bug
52283         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
52284         is broken.  Move AC_LIBOBJ...
52285         * modules/perror (configure.ac): Here.
52286         * doc/posix-functions/perror.texi (perror): Document this.
52287         * tests/test-perror2.c (main): Enhance test.
52289         test-perror: check for strerror interactions
52290         * tests/macros.h (STREQ): Add macro.
52291         * modules/perror-tests (Files): Add second test.
52292         * tests/test-perror2.c (main): New file.
52293         * doc/posix-functions/perror.texi (perror): Document glibc bug.
52295         test-perror: rewrite to use init script
52296         * modules/perror-tests (Files): Add init.sh.
52297         * tests/test-perror.sh: Use temporary directory.
52299 2011-05-20  Jim Meyering  <meyering@redhat.com>
52301         maint: replace misused "a" with "an"
52302         * doc/intprops.texi: "a integer"
52303         * doc/regex.texi: "a explanation"
52304         * lib/alignof.h: "a object"
52305         * lib/argmatch.h: "a explanation"
52306         * lib/argp-help.c: "a option" and "a OPTION_DOC"
52307         * lib/stdint.in.h: "a integer"
52308         * lib/userspec.c: "a owner"
52309         * doc/gnulib.texi: Fix "a idea", and reword.
52311 2011-05-19  Jim Meyering  <meyering@redhat.com>
52313         maint: correct misuse of "a" and "an"
52314         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
52315         * lib/argp-help.c: "an docum...": s/an/a/
52316         * lib/argp-parse.c: "An vector": s/An/A/
52317         * lib/execute.c: "an native": s/an/a/
52318         * lib/spawn-pipe.c: Likewise.
52319         * lib/gc.h: "an Gc_rc": s/an/a/
52320         * lib/unigbrk.in.h: "an grapheme": s/an/a/
52321         * lib/fts.c: "an stat.st_dev": s/an/a/
52323 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52325         intprops-tests: work around HP-UX 11.23 cc bug with constants
52326         * tests/test-intprops.c (VERIFY): New macro.
52327         (main): Use it, instead of verify, to work around the compiler bug; see
52328         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52330         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
52331         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
52332         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
52333         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
52334         (_GL_REMAINDER_OVERFLOW): Use it.
52336         intprops-tests: revert unsigned part of previous change
52337         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
52338         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
52339         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
52340         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
52342 2011-05-19  Bruno Haible  <bruno@clisp.org>
52344         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
52345         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
52346         strerror_r() returned without filling the buffer.
52347         Reported by Eric Blake.
52349 2011-05-19  Eric Blake  <eblake@redhat.com>
52351         strerror_r: guarantee unchanged errno
52352         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
52353         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
52354         failure.
52355         * tests/test-strerror_r.c (main): Enhance test.
52357 2011-05-19  Bruno Haible  <bruno@clisp.org>
52359         strerror_r: Reorder #if blocks.
52360         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
52361         for consistency with the previous commit.
52363 2011-05-19  Bruno Haible  <bruno@clisp.org>
52365         perror: Avoid clobbering the strerror buffer when possible.
52366         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
52367         * lib/strerror.c: Include it.
52368         * modules/strerror (Files): Add lib/strerror-impl.h.
52369         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
52370         (my_strerror): New function, defined through lib/strerror-impl.h.
52371         (perror): Use it instead of strerror.
52372         * modules/perror (Files): Add lib/strerror-impl.h.
52373         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
52375 2011-05-19  Eric Blake  <eblake@redhat.com>
52377         strerror_r: fix on newer cygwin
52378         * lib/strerror_r.c (strerror_r): Cygwin now has
52379         __xpg_strerror_r, use it.
52381 2011-05-19  Bruno Haible  <bruno@clisp.org>
52383         strerror_r: Avoid clobbering the strerror buffer when possible.
52384         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
52385         (sys_nerr, sys_errlist): New declarations.
52386         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
52387         HP-UX, native Win32, IRIX, and 32-bit Solaris.
52388         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
52390 2011-05-19  Bruno Haible  <bruno@clisp.org>
52392         strerror_r: Fix test failure on mingw.
52393         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
52394         EXTEND_STRERROR_R.
52395         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
52396         macros from errno.in.h instead.
52398 2011-05-19  Eric Blake  <eblake@redhat.com>
52400         strerror: relax test for Solaris
52401         * tests/test-strerror.c (main): Permit Solaris behavior.
52402         * tests/test-strerror_r.c (main): Likewise.
52404         strerror: enforce POSIX ruling on strerror(0)
52405         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
52406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
52407         * lib/strerror_r.c (rpl_strerror_r): Work around it.
52408         * doc/posix-functions/strerror.texi (strerror): Document it.
52409         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
52410         * tests/test-strerror.c (main): Strengthen test.
52411         * tests/test-strerror_r.c (main): Likewise.
52413 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52415         intprop-tests: port to older and more-pedantic compilers
52416         * modules/intprops-tests (Files): Add tests/macros.h.
52417         * tests/test-intprops.c: Include macros.h.
52418         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
52419         it's no longer documented to expand to an integer constant expression.
52420         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
52421         argument is floating point, as it's no longer documented to expand
52422         to an integer constant expression in that case.
52423         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
52424         compiler bugs reported by Bruno Haible.  See
52425         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52426         (U0, U1): New constants, to work around the same bugs.  Also,
52427         in tests, use e.g., "(unsigned int) 39" rather than "39u".
52429         intprops: work around C compiler bugs
52430         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
52431         bug in Sun C 5.11 2010/08/13 and other compilers; see
52432         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
52434         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
52435         * doc/intprops.texi (Integer Type Determination): Fix
52436         documentation for TYPE_IS_INTEGER: it returns an constant
52437         expression, not an integer constant expression.  Fix doc for
52438         TYPE_SIGNED: it returns an integer constant expression only if its
52439         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
52440         hardly worth documented that way....)
52442 2011-05-18  Bruno Haible  <bruno@clisp.org>
52444         strerror_r: Avoid clobbering the strerror buffer when possible.
52445         * lib/strerror_r.c (strerror_r): Merge the three implementations.
52446         Handle gnulib defined errno values here. When strerror() returns NULL
52447         or an empty string, return EINVAL.
52448         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
52449         gnulib defined errno values here.
52450         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
52452 2011-05-18  Eric Blake  <eblake@redhat.com>
52454         fnmatch: avoid compiler warning
52455         * lib/fnmatch_loop.c (FCT): Use correct type.
52456         Reported by Matthias Bolte.
52458 2011-05-13  Jim Meyering  <meyering@redhat.com>
52460         maint.mk: three new prohibit_<HDR>_without_use rules
52461         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
52462         (sc_prohibit_stdio-safer_without_use): Likewise.
52463         (sc_prohibit_xfreopen_without_use): Likewise.
52465 2011-05-17  Jim Meyering  <meyering@redhat.com>
52467         announce-gen: fail if the NEWS delta is empty
52468         If there's nothing noteworthy in NEWS, then either you forgot
52469         or you shouldn't be releasing.
52470         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
52472 2011-05-17  Pádraig Brady  <P@draigBrady.com>
52474         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
52475         reserved symbols starting with double underscore from the check.
52477 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
52479         intprops: add doc
52480         * doc/intprops.texi: New file, documenting intprops.
52481         * doc/gnulib.texi (Particular Modules): Include it.
52483         verify: add doc to gnulib manual and fix example
52484         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
52485         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
52486         (Compile-time Assertions): Fix example so it can't overflow.
52488 2011-05-17  Jim Meyering  <meyering@redhat.com>
52490         warnings.m4: don't usurp save_CPPFLAGS variable name
52491         * m4/warnings.m4: Prefix local temporary variable name with gl_.
52493         doc: fix typo
52494         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
52496 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52497             Bruno Haible  <bruno@clisp.org>
52499         doc: Tweak recent change.
52500         * README (Portability guidelines): Tweak new text.
52501         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
52502         Interix 6.1.
52504 2011-05-16  Eric Blake  <eblake@redhat.com>
52506         inttypes: avoid autoconf warning
52507         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
52508         * m4/stdint.m4 (gl_STDINT_H): Likewise.
52510 2011-05-16  Sam Steingold  <sds@gnu.org>
52511         and Eric Blake  <eblake@redhat.com>
52513         vc-list-files: accept multiple directory operands
52514         * build-aux/vc-list-files: Iterate over all remaining operands.
52516 2011-05-16  Bruno Haible  <bruno@clisp.org>
52518         Fix confusion regarding deprecated modules.
52519         * modules/calloc (Status, Notice): Mark module as deprecated, not
52520         obsolete.
52521         * modules/fnmatch-posix (Status, Notice): Likewise.
52522         * modules/getdate (Status, Notice): Likewise.
52523         * modules/getopt (Status, Notice): Likewise.
52524         * modules/malloc (Status, Notice): Likewise.
52525         * modules/pipe (Status, Notice): Likewise.
52526         * modules/realloc (Status, Notice): Likewise.
52527         * modules/rename-dest-slash (Status, Notice): Likewise.
52528         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
52529         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
52530         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
52531         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
52532         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
52534 2011-05-16  Bruno Haible  <bruno@clisp.org>
52536         doc: List the target platforms.
52537         * doc/gnulib-intro.texi (Target Platforms): New section.
52538         * doc/gnulib.texi (Introduction): Update menu.
52539         * README (Portability guidelines): Refer to the new section. Update
52540         statement about oldest supported environment. Remove rationale why
52541         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
52542         unportable C89 function.
52543         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
52544         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
52546 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
52548         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
52550 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
52552         intprops-tests: new module
52553         * modules/intprops-tests, tests/test-intprops.c: New files.
52555         intprops: add safe, portable integer overflow checking
52556         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
52557         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
52558         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
52559         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
52560         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
52561         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
52562         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
52563         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
52564         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
52565         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
52566         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
52568 2011-05-12  James Youngman  <jay@gnu.org>
52570         Add a test for glibc's Bugzilla bug #12378.
52571         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
52572         doesn't allow the literal matching of a lone "[" (which is
52573         required by POSIX).
52574         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
52576 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
52578         Sync glibc change fixing Bugzilla bug #12378.
52579         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
52580         beginning and fall back to matching as normal character if the
52581         string ends before the matching ']' is found.  This is what POSIX
52582         requires.
52584 2011-05-13  Eric Blake  <eblake@redhat.com>
52586         getcwd-lgpl: relax test for FreeBSD
52587         * doc/posix-functions/getcwd.texi (getcwd): Document portability
52588         issue.
52589         * tests/test-getcwd-lgpl.c (main): Relax test.
52590         Reported by Matthias Bolte.
52592 2011-05-11  Eric Blake  <eblake@redhat.com>
52594         test-fflush: silence compiler warning
52595         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
52597 2011-05-11  Bruno Haible  <bruno@clisp.org>
52599         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
52600         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
52601         * modules/canonicalize (Depends-on): Add 'nocrash'.
52602         * modules/canonicalize-lgpl (Depends-on): Likewise.
52603         * doc/posix-functions/realpath.texi: Update platforms list.
52604         Reported by Ryan Schmidt <ryandesign@macports.org>.
52606 2011-05-11  Bruno Haible  <bruno@clisp.org>
52608         group-member: Declare function in <unistd.h>.
52609         * lib/unistd.in.h (group_member): New declaration.
52610         * lib/group-member.h: Remove file.
52611         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
52612         * tests/test-unistd-c++.cc: Check signature of group_member.
52613         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
52614         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
52615         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
52616         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
52617         HAVE_GROUP_MEMBER.
52618         * modules/group-member (Files): Remove lib/group-member.h.
52619         (Depends-on): Add unistd. Specify conditions.
52620         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52621         (Include): Change to <unistd.h>.
52622         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
52623         HAVE_GROUP_MEMBER.
52624         * NEWS: Mention the change.
52625         * lib/euidaccess.c: Don't include group-member.h.
52627 2011-05-11  Bruno Haible  <bruno@clisp.org>
52629         group-member: Document module.
52630         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
52631         module.
52633 2011-05-11  Bruno Haible  <bruno@clisp.org>
52635         fclose: Fix mistake earlier today.
52636         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
52638 2011-05-11  Eric Blake  <eblake@redhat.com>
52640         fclose: preserve fflush errors
52641         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
52642         Reported by Jim Meyering.
52644         bootstrap: support a prereq of 'rpcgen -' on RHEL5
52645         * build-aux/bootstrap (check_versions): When no specific version
52646         is required, merely check that the app produces an exit status
52647         that indicates its existence.
52649         maint.mk: drop redundant check
52650         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
52651         the same but better.
52653 2011-05-11  Bruno Haible  <bruno@clisp.org>
52655         fclose: Fix possible link error.
52656         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
52657         unregister_shadow_fd. Improve comments.
52658         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
52659         Eric Blake.
52661 2011-05-11  Jim Meyering  <meyering@redhat.com>
52663         maint.mk: improve "can not" detection and generalize rule name
52664         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
52665         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
52666         Use the same technique as in sc_prohibit_doubled_word, so that
52667         we recognize "can not" also when the words are separated by a newline.
52668         Suggested by Eric Blake.
52669         (perl_filename_lineno_text_): Define.  Factored out of...
52670         (prohibit_doubled_word_): ...here.  Use the new definition.
52671         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
52672         (prohibit_undesirable_word_seq_RE_): New overridable variable.
52673         (ignore_undesirable_word_sequence_RE_): New overridable variable.
52675 2011-05-10  Eric Blake  <eblake@redhat.com>
52677         fclose: avoid double close race when possible
52678         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
52679         all but WINDOWS_SOCKETS.
52681 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
52683         openat: correct new comment
52684         * lib/openat-proc.c (openat_proc_name): Correct the comment.
52686 2011-05-10  Jim Meyering  <meyering@redhat.com>
52688         openat: add comments
52689         * lib/openat-proc.c (openat_proc_name): Add comments,
52690         mostly from Eric Blake.
52692 2011-05-09  Eric Blake  <eblake@redhat.com>
52694         openat: reduce syscalls in first probe of /proc
52695         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
52696         be a directory.  Simplify the probe for .. bugs.
52697         * modules/openat (Depends-on): Drop same-inode.
52698         Reported by Bastien ROUCARIES.
52700 2011-05-09  Jim Meyering  <meyering@redhat.com>
52702         maint.mk: change semantics/name of tight_scope variables
52703         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
52704         Rename variables to align with semantics that make them more useful.
52706         maint.mk: tweak new rule's name not to impinge
52707         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
52708         (sc_tight_scope): Use new rule name rather than $@-0.
52710         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
52711         * top/maint.mk (sc_tight_scope): New rule.
52712         (sc_tight_scope-0): New rule, ifdef'd out.
52713         (_gl_TS_dir): Default.
52714         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
52715         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
52717 2011-05-09  Simon Josefsson  <simon@josefsson.org>
52719         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
52720         Haible <bruno@clisp.org>.
52722 2011-05-08  Bruno Haible  <bruno@clisp.org>
52724         Comments.
52725         * m4/isnanf.m4: Add comment.
52726         * m4/isnanl.m4: Likewise.
52728 2011-05-08  Bruno Haible  <bruno@clisp.org>
52730         glob: Remove obsolete macro.
52731         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
52733 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
52735         intprops: Sun C 5.11 supports __typeof__
52736         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
52737         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
52738         which is new.
52739         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
52741         intprops: switch to usual gnulib indenting and naming
52742         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
52743         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
52745         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
52747 2011-05-08  Jim Meyering  <meyering@redhat.com>
52749         maint.mk: suppress "Entering/Leaving directory" diag in announcement
52750         * top/maint.mk (release-prep): Use make's --no-print-directory
52751         option when generating the announcement.  This eliminates the
52752         pesky "make[2]: Entering/Leaving directory" diagnostics in the
52753         generated announcement template.
52755 2011-05-08  Bruno Haible  <bruno@clisp.org>
52757         tzset: Fix gettimeofday wrapper on Solaris 2.6.
52758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
52759         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
52761 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
52763         ignore-value, verify: Omit include files from lib_SOURCES.
52764         * modules/ignore-value, modules/verify (Makefile.am):
52765         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
52766         that leads Automake to duplicate use of am__objects_... variables
52767         in Makefile.in.  See
52768         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
52770 2011-05-07  Bruno Haible  <bruno@clisp.org>
52772         fclose: Simplify autoconf macro.
52773         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
52774         defined.
52776 2011-05-07  Bruno Haible  <bruno@clisp.org>
52778         canonicalize-lgpl: Fix autoconf macro ordering bug.
52779         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
52780         gl_STDLIB_H_DEFAULTS.
52782 2011-05-06  Eric Blake  <eblake@redhat.com>
52784         maintainer-makefile: make sc_po_check easier to tune
52785         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
52786         to probe for strings, such as an alternate location for gnulib.
52788         fclose: guarantee behavior on seekable stdin
52789         * modules/fclose (Depends-on): Add fflush.
52790         * doc/posix-functions/fclose.texi (fclose): Document this.
52791         * tests/test-fclose.c (main): Make test for this unconditional.
52793 2011-05-06  Bruno Haible  <bruno@clisp.org>
52795         fflush, fpurge: Relicense under LGPLv2+.
52796         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
52797         * modules/fpurge (License): Likewise.
52798         With permission from Eric Blake and Jim Meyering.
52799         Suggested by Eric Blake.
52801 2011-05-06  Karl Berry  <karl@gnu.org>
52803         * MODULES.html.sh (func_all_modules): remove exit.
52805 2011-05-06  Jim Meyering  <meyering@redhat.com>
52807         maint.mk: use info-gnu@ as the default only for a stable release
52808         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
52809         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
52810         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
52811         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
52813 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52815         assert-h: new module, which supports C1X-style static_assert
52816         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
52817         * lib/verify.h: Revamp so that this can be copied into assert.h,
52818         while retaining the ability to use it standalone as before.
52819         Rename private identifiers so as not to encroach on the
52820         standard C namespace, since this is now used by assert.h.
52821         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
52822         the old verify_true.
52823         (_GL_VERIFY_TRUE): New macro, with much of the contents of
52824         the old verify_true.  Use _GL_VERIFY_TYPE.
52825         (_GL_VERIFY): New macro, with much of the contents of the old verify.
52826         (static_assert): New macro, if _GL_STATIC_ASSERT_H
52827         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
52828         defined when this file is copied into the replacement assert.h.
52829         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
52830         and _Static_assert is not built in.
52831         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
52832         defined, and use the new macros mentioned above.
52833         * doc/posix-headers/assert.texi: Document this.
52835 2011-05-05  Bruno Haible  <bruno@clisp.org>
52837         fclose, fflush: Respect rules for use of AC_LIBOBJ.
52838         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
52839         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
52840         gl_REPLACE_FCLOSE here.
52841         * modules/fflush (Depends-on): Remove fclose.
52842         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
52843         combination with module 'fclose'.
52845 2011-05-05  Bruno Haible  <bruno@clisp.org>
52847         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
52848         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
52849         gl_FUNC_FFLUSH.
52850         (gl_FUNC_FFLUSH): Use it.
52851         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
52852         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
52853         gl_REPLACE_FSEEKO here.
52855 2011-05-05  Bruno Haible  <bruno@clisp.org>
52857         tzset: Relicense under LGPL.
52858         * modules/tzset (License): Change to LGPL.
52859         No agreement needed; it's a no-op.
52861         strtoimax, strtoumax: Relicense under LGPL.
52862         * modules/strtoimax (License): Change to LGPL.
52863         * modules/strtoumax (License): Likewise.
52864         With permission from Jim Meyering, Paul Eggert:
52865         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
52866         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
52868         getgroups: Relicense under LGPL.
52869         * modules/getgroups (License): Change to LGPL.
52870         With permission from Jim Meyering, Paul Eggert, Eric Blake:
52871         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52872         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52873         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52875         nanosleep: Relicense under LGPL.
52876         * modules/nanosleep (License): Change to LGPL.
52877         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
52878         Haible:
52879         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
52880         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
52881         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52882         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52884         futimens: Relicense under LGPL.
52885         * modules/futimens (License): Change to LGPL.
52886         With permission from Eric Blake:
52887         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52889         fflush: Relicense under LGPL.
52890         * modules/fflush (License): Change to LGPL.
52891         With permission from Eric Blake, Bruno Haible, Jim Meyering:
52892         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
52893         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
52894         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
52896         tmpfile: Relicense under LGPL.
52897         * modules/tmpfile (License): Change to LGPL.
52898         With permission from Ben Pfaff:
52899         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52901         isfinite: Relicense under LGPL.
52902         * modules/isfinite (License): Change to LGPL.
52903         With permission from Ben Pfaff, Bruno Haible:
52904         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
52905         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
52907         acosl..tanl: Relicense under LGPL.
52908         * modules/acosl (License): Change to LGPL.
52909         * modules/asinl (License): Likewise.
52910         * modules/atanl (License): Likewise.
52911         * modules/cosl (License): Likewise.
52912         * modules/expl (License): Likewise.
52913         * modules/logl (License): Likewise.
52914         * modules/sinl (License): Likewise.
52915         * modules/sqrtl (License): Likewise.
52916         * modules/tanl (License): Likewise.
52917         Source code originally from glibc and Paolo Bonzini. Agreements:
52918         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
52919         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
52921 2011-05-05  Bruno Haible  <bruno@clisp.org>
52923         signal: Define sighandler_t.
52924         * lib/signal.in.h (sighandler_t): New type.
52925         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
52926         whether sighandler_t is defined.
52927         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
52928         * modules/signal (Depends-on): Add extensions.
52929         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
52930         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
52931         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
52933 2011-05-05  Eric Blake  <eblake@redhat.com>
52935         maint: remove useless REPLACE_*_H macros
52936         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
52937         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
52938         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
52939         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
52940         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
52941         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
52942         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
52943         * m4/btowc.m4: Update callers.
52944         * m4/dirfd.m4: Likewise.
52945         * m4/duplocale.m4: Likewise.
52946         * m4/fchdir.m4: Likewise.
52947         * m4/fdopendir.m4: Likewise.
52948         * m4/inet_ntop.m4: Likewise.
52949         * m4/inet_pton.m4: Likewise.
52950         * m4/ioctl.m4: Likewise.
52951         * m4/mbrlen.m4: Likewise.
52952         * m4/mbrtowc.m4: Likewise.
52953         * m4/mbsinit.m4: Likewise.
52954         * m4/mbsnrtowcs.m4: Likewise.
52955         * m4/mbsrtowcs.m4: Likewise.
52956         * m4/poll.m4: Likewise.
52957         * m4/setlocale.m4: Likewise.
52958         * m4/wcrtomb.m4: Likewise.
52959         * m4/wcsnrtombs.m4: Likewise.
52960         * m4/wcsrtombs.m4: Likewise.
52961         * m4/wctob.m4: Likewise.
52962         * m4/wcwidth.m4: Likewise.
52963         * modules/posix_spawn: Likewise.
52964         * modules/posix_spawn_file_actions_addclose: Likewise.
52965         * modules/posix_spawn_file_actions_adddup2: Likewise.
52966         * modules/posix_spawn_file_actions_addopen: Likewise.
52967         * modules/posix_spawn_file_actions_destroy: Likewise.
52968         * modules/posix_spawn_file_actions_init: Likewise.
52969         * modules/posix_spawnattr_destroy: Likewise.
52970         * modules/posix_spawnattr_getflags: Likewise.
52971         * modules/posix_spawnattr_getpgroup: Likewise.
52972         * modules/posix_spawnattr_getschedparam: Likewise.
52973         * modules/posix_spawnattr_getschedpolicy: Likewise.
52974         * modules/posix_spawnattr_getsigdefault: Likewise.
52975         * modules/posix_spawnattr_getsigmask: Likewise.
52976         * modules/posix_spawnattr_init: Likewise.
52977         * modules/posix_spawnattr_setflags: Likewise.
52978         * modules/posix_spawnattr_setpgroup: Likewise.
52979         * modules/posix_spawnattr_setschedparam: Likewise.
52980         * modules/posix_spawnattr_setschedpolicy: Likewise.
52981         * modules/posix_spawnattr_setsigdefault: Likewise.
52982         * modules/posix_spawnattr_setsigmask: Likewise.
52983         * modules/posix_spawnp: Likewise.
52985 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
52987         Add option to do-release-commit-and-tag to specify branch.
52988         * build-aux/do-release-commit-and-tag: Add --branch.
52990 2011-05-03  Bruno Haible  <bruno@clisp.org>
52992         Avoid unnecessary compilation units, through conditional dependencies.
52993         * modules/accept (Depends-on): Add conditions to the dependencies.
52994         * modules/acosl (Depends-on): Likewise.
52995         * modules/argz (Depends-on): Likewise.
52996         * modules/asinl (Depends-on): Likewise.
52997         * modules/atanl (Depends-on): Likewise.
52998         * modules/atoll (Depends-on): Likewise.
52999         * modules/bind (Depends-on): Likewise.
53000         * modules/btowc (Depends-on): Likewise.
53001         * modules/canonicalize-lgpl (Depends-on): Likewise.
53002         * modules/ceil (Depends-on): Likewise.
53003         * modules/ceilf (Depends-on): Likewise.
53004         * modules/ceill (Depends-on): Likewise.
53005         * modules/chdir-long (Depends-on): Likewise.
53006         * modules/chown (Depends-on): Likewise.
53007         * modules/close (Depends-on): Likewise.
53008         * modules/connect (Depends-on): Likewise.
53009         * modules/cosl (Depends-on): Likewise.
53010         * modules/dirfd (Depends-on): Likewise.
53011         * modules/dprintf (Depends-on): Likewise.
53012         * modules/dprintf-posix (Depends-on): Likewise.
53013         * modules/error (Depends-on): Likewise.
53014         * modules/euidaccess (Depends-on): Likewise.
53015         * modules/expl (Depends-on): Likewise.
53016         * modules/faccessat (Depends-on): Likewise.
53017         * modules/fchdir (Depends-on): Likewise.
53018         * modules/fclose (Depends-on): Likewise.
53019         * modules/fcntl (Depends-on): Likewise.
53020         * modules/fdopendir (Depends-on): Likewise.
53021         * modules/fflush (Depends-on): Likewise.
53022         * modules/floor (Depends-on): Likewise.
53023         * modules/floorf (Depends-on): Likewise.
53024         * modules/floorl (Depends-on): Likewise.
53025         * modules/fnmatch (Depends-on): Likewise.
53026         * modules/fopen (Depends-on): Likewise.
53027         * modules/fprintf-posix (Depends-on): Likewise.
53028         * modules/frexp (Depends-on): Likewise.
53029         * modules/frexp-nolibm (Depends-on): Likewise.
53030         * modules/frexpl (Depends-on): Likewise.
53031         * modules/frexpl-nolibm (Depends-on): Likewise.
53032         * modules/fseek (Depends-on): Likewise.
53033         * modules/fsusage (Depends-on): Likewise.
53034         * modules/ftell (Depends-on): Likewise.
53035         * modules/ftello (Depends-on): Likewise.
53036         * modules/futimens (Depends-on): Likewise.
53037         * modules/getcwd (Depends-on): Likewise.
53038         * modules/getcwd-lgpl (Depends-on): Likewise.
53039         * modules/getdelim (Depends-on): Likewise.
53040         * modules/getdomainname (Depends-on): Likewise.
53041         * modules/getgroups (Depends-on): Likewise.
53042         * modules/gethostname (Depends-on): Likewise.
53043         * modules/getline (Depends-on): Likewise.
53044         * modules/getlogin_r (Depends-on): Likewise.
53045         * modules/getopt-posix (Depends-on): Likewise.
53046         * modules/getpeername (Depends-on): Likewise.
53047         * modules/getsockname (Depends-on): Likewise.
53048         * modules/getsockopt (Depends-on): Likewise.
53049         * modules/getsubopt (Depends-on): Likewise.
53050         * modules/getusershell (Depends-on): Likewise.
53051         * modules/glob (Depends-on): Likewise.
53052         * modules/grantpt (Depends-on): Likewise.
53053         * modules/iconv_open (Depends-on): Likewise.
53054         * modules/iconv_open-utf (Depends-on): Likewise.
53055         * modules/inet_ntop (Depends-on): Likewise.
53056         * modules/inet_pton (Depends-on): Likewise.
53057         * modules/ioctl (Depends-on): Likewise.
53058         * modules/isapipe (Depends-on): Likewise.
53059         * modules/isfinite (Depends-on): Likewise.
53060         * modules/isinf (Depends-on): Likewise.
53061         * modules/lchown (Depends-on): Likewise.
53062         * modules/ldexpl (Depends-on): Likewise.
53063         * modules/link (Depends-on): Likewise.
53064         * modules/linkat (Depends-on): Likewise.
53065         * modules/listen (Depends-on): Likewise.
53066         * modules/logl (Depends-on): Likewise.
53067         * modules/lstat (Depends-on): Likewise.
53068         * modules/mbrlen (Depends-on): Likewise.
53069         * modules/mbrtowc (Depends-on): Likewise.
53070         * modules/mbsinit (Depends-on): Likewise.
53071         * modules/mbsnrtowcs (Depends-on): Likewise.
53072         * modules/mbsrtowcs (Depends-on): Likewise.
53073         * modules/mbtowc (Depends-on): Likewise.
53074         * modules/memcmp (Depends-on): Likewise.
53075         * modules/mkdir (Depends-on): Likewise.
53076         * modules/mkdtemp (Depends-on): Likewise.
53077         * modules/mkfifo (Depends-on): Likewise.
53078         * modules/mkfifoat (Depends-on): Likewise.
53079         * modules/mknod (Depends-on): Likewise.
53080         * modules/mkostemp (Depends-on): Likewise.
53081         * modules/mkostemps (Depends-on): Likewise.
53082         * modules/mkstemp (Depends-on): Likewise.
53083         * modules/mkstemps (Depends-on): Likewise.
53084         * modules/mktime (Depends-on): Likewise.
53085         * modules/nanosleep (Depends-on): Likewise.
53086         * modules/open (Depends-on): Likewise.
53087         * modules/openat (Depends-on): Likewise.
53088         * modules/perror (Depends-on): Likewise.
53089         * modules/poll (Depends-on): Likewise.
53090         * modules/popen (Depends-on): Likewise.
53091         * modules/posix_spawn (Depends-on): Likewise.
53092         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
53093         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53094         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53095         * modules/posix_spawnp (Depends-on): Likewise.
53096         * modules/pread (Depends-on): Likewise.
53097         * modules/printf-posix (Depends-on): Likewise.
53098         * modules/ptsname (Depends-on): Likewise.
53099         * modules/putenv (Depends-on): Likewise.
53100         * modules/pwrite (Depends-on): Likewise.
53101         * modules/readline (Depends-on): Likewise.
53102         * modules/readlink (Depends-on): Likewise.
53103         * modules/readlinkat (Depends-on): Likewise.
53104         * modules/recv (Depends-on): Likewise.
53105         * modules/recvfrom (Depends-on): Likewise.
53106         * modules/regex (Depends-on): Likewise.
53107         * modules/remove (Depends-on): Likewise.
53108         * modules/rename (Depends-on): Likewise.
53109         * modules/renameat (Depends-on): Likewise.
53110         * modules/rmdir (Depends-on): Likewise.
53111         * modules/round (Depends-on): Likewise.
53112         * modules/roundf (Depends-on): Likewise.
53113         * modules/roundl (Depends-on): Likewise.
53114         * modules/rpmatch (Depends-on): Likewise.
53115         * modules/select (Depends-on): Likewise.
53116         * modules/send (Depends-on): Likewise.
53117         * modules/sendto (Depends-on): Likewise.
53118         * modules/setenv (Depends-on): Likewise.
53119         * modules/setlocale (Depends-on): Likewise.
53120         * modules/setsockopt (Depends-on): Likewise.
53121         * modules/shutdown (Depends-on): Likewise.
53122         * modules/sigaction (Depends-on): Likewise.
53123         * modules/signbit (Depends-on): Likewise.
53124         * modules/sigprocmask (Depends-on): Likewise.
53125         * modules/sinl (Depends-on): Likewise.
53126         * modules/sleep (Depends-on): Likewise.
53127         * modules/snprintf (Depends-on): Likewise.
53128         * modules/snprintf-posix (Depends-on): Likewise.
53129         * modules/socket (Depends-on): Likewise.
53130         * modules/sprintf-posix (Depends-on): Likewise.
53131         * modules/sqrtl (Depends-on): Likewise.
53132         * modules/stat (Depends-on): Likewise.
53133         * modules/strchrnul (Depends-on): Likewise.
53134         * modules/strdup-posix (Depends-on): Likewise.
53135         * modules/strerror (Depends-on): Likewise.
53136         * modules/strerror_r-posix (Depends-on): Likewise.
53137         * modules/strndup (Depends-on): Likewise.
53138         * modules/strnlen (Depends-on): Likewise.
53139         * modules/strptime (Depends-on): Likewise.
53140         * modules/strsep (Depends-on): Likewise.
53141         * modules/strsignal (Depends-on): Likewise.
53142         * modules/strstr-simple (Depends-on): Likewise.
53143         * modules/strtod (Depends-on): Likewise.
53144         * modules/strtoimax (Depends-on): Likewise.
53145         * modules/strtok_r (Depends-on): Likewise.
53146         * modules/strtoumax (Depends-on): Likewise.
53147         * modules/symlink (Depends-on): Likewise.
53148         * modules/symlinkat (Depends-on): Likewise.
53149         * modules/tanl (Depends-on): Likewise.
53150         * modules/tcgetsid (Depends-on): Likewise.
53151         * modules/tmpfile (Depends-on): Likewise.
53152         * modules/trunc (Depends-on): Likewise.
53153         * modules/truncf (Depends-on): Likewise.
53154         * modules/truncl (Depends-on): Likewise.
53155         * modules/uname (Depends-on): Likewise.
53156         * modules/unlink (Depends-on): Likewise.
53157         * modules/unlockpt (Depends-on): Likewise.
53158         * modules/unsetenv (Depends-on): Likewise.
53159         * modules/usleep (Depends-on): Likewise.
53160         * modules/utimensat (Depends-on): Likewise.
53161         * modules/vasprintf (Depends-on): Likewise.
53162         * modules/vdprintf (Depends-on): Likewise.
53163         * modules/vdprintf-posix (Depends-on): Likewise.
53164         * modules/vfprintf-posix (Depends-on): Likewise.
53165         * modules/vprintf-posix (Depends-on): Likewise.
53166         * modules/vsnprintf (Depends-on): Likewise.
53167         * modules/vsnprintf-posix (Depends-on): Likewise.
53168         * modules/vsprintf-posix (Depends-on): Likewise.
53169         * modules/wcrtomb (Depends-on): Likewise.
53170         * modules/wcscasecmp (Depends-on): Likewise.
53171         * modules/wcscspn (Depends-on): Likewise.
53172         * modules/wcsdup (Depends-on): Likewise.
53173         * modules/wcsncasecmp (Depends-on): Likewise.
53174         * modules/wcsnrtombs (Depends-on): Likewise.
53175         * modules/wcspbrk (Depends-on): Likewise.
53176         * modules/wcsrtombs (Depends-on): Likewise.
53177         * modules/wcsspn (Depends-on): Likewise.
53178         * modules/wcsstr (Depends-on): Likewise.
53179         * modules/wcstok (Depends-on): Likewise.
53180         * modules/wcswidth (Depends-on): Likewise.
53181         * modules/wctob (Depends-on): Likewise.
53182         * modules/wctomb (Depends-on): Likewise.
53183         * modules/wctype (Depends-on): Likewise.
53184         * modules/wcwidth (Depends-on): Likewise.
53185         * modules/write (Depends-on): Likewise.
53187 2011-05-03  Bruno Haible  <bruno@clisp.org>
53189         Support for conditional dependencies.
53190         * doc/gnulib.texi (Module description): Document the syntax of
53191         conditional dependencies.
53192         * gnulib-tool: New option --conditional-dependencies.
53193         (func_usage): Document it.
53194         (cond_dependencies): New variable.
53195         (func_get_automake_snippet_conditional,
53196         func_get_automake_snippet_unconditional): New functions, extracted from
53197         func_get_automake_snippet.
53198         (func_get_automake_snippet): Use them.
53199         (sed_first_32_chars): New variable.
53200         (func_module_shellfunc_name): New function.
53201         (func_module_shellvar_name): New function.
53202         (func_module_conditional_name): New function.
53203         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
53204         func_cond_module_condition): New functions.
53205         (func_modules_transitive_closure): Add support for conditional
53206         dependencies.
53207         (func_emit_lib_Makefile_am): For a conditional module, enclose the
53208         conditional automake snippet in an automake conditional.
53209         (func_emit_autoconf_snippets): Emit shell functions that contain the
53210         code for conditional modules.
53211         (func_import, func_create_testdir): Update specification.
53213 2011-05-03  Eric Blake  <eblake@redhat.com>
53215         test-getaddrinfo: report error information
53216         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
53218 2011-05-03  Jim Meyering  <meyering@redhat.com>
53220         bootstrap: avoid build failure when $GZIP is set
53221         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
53222         program name.  If defined at all, it is supposed to list gzip options.
53223         Reported by Alan Curry in http://debbugs.gnu.org/8609
53225 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
53227         readme-release: new module with release instructions
53228         * modules/readme-release: New module.
53229         * top/README-release: New file, from coreutils, grep, diffutils.
53230         * MODULES.html.sh (Support for maintaining and releasing): Add it.
53232 2011-05-02  Eric Blake  <eblake@redhat.com>
53234         fflush: also replace fclose when fixing fflush
53235         * modules/fflush (Depends-on): Add fclose.
53236         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
53237         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
53238         memstreams with no backing fd.
53239         * doc/posix-functions/fclose.texi (fclose): Document the use of
53240         fflush module to fix the bug.
53241         * tests/test-fclose.c (main): Relax test when fclose is used in
53242         isolation.
53244         fclose: add some tests
53245         * modules/fclose-tests: New test module.
53246         * tests/test-fclose.c: New file.
53247         * doc/posix-functions/fclose.texi (fclose): Document the bug.
53249         fclose: reduced dependencies
53250         * modules/fclose (Depends-on): Switch from fflush/fseeko to
53251         simpler lseek.
53252         * lib/fclose.c (rpl_fclose): Likewise.
53253         Reported by Simon Josefsson.
53255         exit: drop remaining clients
53256         * modules/argmatch (Depends-on): Replace exit with stdlib.
53257         * modules/copy-file (Depends-on): Likewise.
53258         * modules/execute (Depends-on): Likewise.
53259         * modules/exitfail (Depends-on): Likewise.
53260         * modules/obstack (Depends-on): Likewise.
53261         * modules/pagealign_alloc (Depends-on): Likewise.
53262         * modules/pipe-filter-gi (Depends-on): Likewise.
53263         * modules/pipe-filter-ii (Depends-on): Likewise.
53264         * modules/savewd (Depends-on): Likewise.
53265         * modules/spawn-pipe (Depends-on): Likewise.
53266         * modules/wait-process (Depends-on): Likewise.
53267         * modules/xsetenv (Depends-on): Likewise.
53268         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
53269         * modules/git-merge-changelog (Depends-on): Likewise.
53270         * modules/long-options (Depends-on): Likewise.
53271         * modules/pt_chown (Depends-on): Likewise.
53272         * modules/sysexits (Depends-on): Likewise.
53274         freading: relax license from LGPLv3+ to LGPLv2+
53275         * modules/freading (License): Relax LGPL version.
53277 2011-05-02  Bruno Haible  <bruno@clisp.org>
53279         fchdir: Remove unused dependencies.
53280         * modules/fchdir (Depends-on): Remove include_next.
53282 2011-05-02  Bruno Haible  <bruno@clisp.org>
53284         gnulib-tool: Refactor.
53285         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
53286         from func_emit_autoconf_snippets.
53287         (func_emit_autoconf_snippets): Use it.
53289 2011-05-02  Simon Josefsson  <simon@josefsson.org>
53291         * NEWS: Document removal of 'exit'.
53292         * modules/exit: Remove file.
53294 2011-05-01  Bruno Haible  <bruno@clisp.org>
53296         Update DEPENDENCIES.
53297         * DEPENDENCIES (gettext): Recommend the newest release.
53298         Reported by Simon Josefsson.
53300 2011-05-01  Bruno Haible  <bruno@clisp.org>
53302         gnulib-tool: Reduce code duplication.
53303         * gnulib-tool (func_emit_autoconf_snippets): New function.
53304         (func_import, func_create_testdir): Use it.
53306 2011-04-30  Eric Blake  <eblake@redhat.com>
53308         fclose: don't fail on non-seekable input stream
53309         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
53310         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
53311         since fflush is allowed to fail in that case.
53313 2011-04-30  Bruno Haible  <bruno@clisp.org>
53315         dup3: cleanup
53316         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
53318 2011-04-30  Bruno Haible  <bruno@clisp.org>
53320         netdb: Make it work in C++ mode.
53321         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
53322         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
53323         module.
53324         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
53325         gl_MODULE_INDICATOR_FOR_TESTS.
53326         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
53327         * modules/netdb-c++-tests: New file.
53328         * tests/test-netdb-c++.cc: New file.
53330 2011-04-30  Bruno Haible  <bruno@clisp.org>
53332         New modules 'vfscanf', 'vscanf'.
53333         * modules/vfscanf: New file.
53334         * modules/vscanf: New file.
53335         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
53336         here.
53337         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
53338         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
53340 2011-04-30  Bruno Haible  <bruno@clisp.org>
53342         passfd: Add comments.
53343         * lib/passfd.c: Add comments about platforms.
53345 2011-04-30  Bruno Haible  <bruno@clisp.org>
53347         sys_uio: Make <sys/uio.h> self-contained.
53348         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
53349         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
53351 2011-04-30  Bruno Haible  <bruno@clisp.org>
53353         sys_socket: Ensure 'struct iovec' definition.
53354         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
53355         <sys/socket.h>.
53356         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
53358 2011-04-30  Bruno Haible  <bruno@clisp.org>
53360         sys_uio: Protect definition of 'struct iovec'.
53361         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
53362         it as a C struct.
53364 2011-04-30  Bruno Haible  <bruno@clisp.org>
53366         manywarnings: fix indentation
53367         * m4/manywarnings.m4: Indent by 2 spaces consistently.
53369 2011-04-30  Pádraig Brady  <P@draigBrady.com>
53371         manywarnings: add -Wno-missing-field-initializers if needed.
53372         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
53373         option if it's needed to allow initialization with { 0, }
53375 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
53377         announce-gen: cosmetic improvement
53378         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
53380 2011-04-29  Jim Meyering  <meyering@redhat.com>
53382         vc-list-files: indent with spaces, not TABs
53383         * build-aux/vc-list-files: Convert leading TABs to spaces,
53384         to match the style of most other files in gnulib.
53386         announce-gen: indent with spaces, not TABs
53387         * build-aux/announce-gen: Convert all TABs to spaces, to match
53388         the style of most other files in gnulib.
53390 2011-04-29  Eric Blake  <eblake@redhat.com>
53392         quotearg: avoid uninitialized variable use
53393         * lib/quotearg.c (quoting_options_from_style): Initialize
53394         remaining fields, and ensure that custom styles are only used via
53395         quoting_options rather than quoting_style.
53397 2011-04-29  Jim Meyering  <meyering@redhat.com>
53399         maint.mk: remove unused VC-tag variable
53400         * top/maint.mk (VC-tag): Remove unused variable.
53402 2011-04-29  Bruno Haible  <bruno@clisp.org>
53404         netdb: fix gai_strerror replacements
53405         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
53406         * modules/netdb: Substitute it.
53408 2011-04-29  Jim Meyering  <meyering@redhat.com>
53410         test-getcwd.c: avoid new set-but-not-used warning
53411         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
53412         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
53413         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
53414         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
53416         test-hash.c: avoid a new shadowing warning
53417         * tests/test-hash.c (main): Don't shadow "dup".
53419 2011-04-28  Eric Blake  <eblake@redhat.com>
53421         getaddrinfo: fix gai_strerror signature
53422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
53423         and work around mingw with UNICODE defined.
53424         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
53425         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
53426         * modules/netdb (Makefile.am): Substitute it.
53427         * lib/netdb.in.h (gai_strerror): Declare replacement.
53428         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
53429         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
53430         the fix.
53432         getsockopt: avoid compiler warning
53433         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
53434         Reported by Matthias Bolte.
53436         tests: drop unused link dependency
53437         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
53438         * modules/dirent-safer-tests (Makefile.am): Likewise.
53439         * modules/fdopendir-tests (Makefile.am): Likewise.
53440         * modules/mkfifoat-tests (Makefile.am): Likewise.
53441         * modules/openat-safer-tests (Makefile.am): Likewise.
53442         * modules/openat-tests (Makefile.am): Likewise.
53443         * modules/readlinkat-tests (Makefile.am): Likewise.
53444         * modules/symlinkat-tests (Makefile.am): Likewise.
53445         * modules/linkat-tests (Makefile.am): Likewise.
53446         (Depends-on): Switch to filenamecat-lgpl.
53447         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
53448         LIBINTL.
53449         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
53450         * tests/test-linkat.c (main): Don't require xalloc.
53452         hash, mgetgroups: drop xalloc dependency
53453         * lib/hash.c (includes): Adjust includes.
53454         * lib/mgetgroups.c (includes): Likewise.
53455         (xgetgroups): Move...
53456         * lib/xgetgroups.c: ...to new file.
53457         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
53458         * modules/xgetgroups: New file, split from...
53459         * modules/mgetgroups: ...here.
53460         (Depends-on): Add xalloc-oversized.
53461         * modules/hash (Depends-on): Likewise.
53462         * modules/hash-tests (Depends-on): Drop xalloc.
53463         (test_hash_LDADD): Drop unused library.
53464         * tests/test-hash.c (main): Break xalloc dependency.
53465         (includes): Drop unused include.
53467         xalloc-oversized: new module
53468         * modules/xalloc-oversized: New module.
53469         * modules/xalloc (Depends-on): Add it.
53470         * lib/xalloc.h (xalloc_oversized): Move...
53471         * lib/xalloc-oversized.h: ...into new file.
53473         utimecmp: drop dependency on xmalloc
53474         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
53475         due to memory pressure.
53476         * modules/utimecmp (Depends-on): Drop xalloc.
53478 2011-04-27  Eric Blake  <eblake@redhat.com>
53480         getcwd: fix mingw bugs
53481         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
53482         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
53483         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
53485 2011-04-27  Bruno Haible  <bruno@clisp.org>
53487         mkstemps: Ensure declaration on MacOS X 10.5.
53488         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
53489         * doc/glibc-functions/mkstemps.texi: Document header file problem on
53490         MacOS X.
53492 2011-04-27  Bruno Haible  <bruno@clisp.org>
53494         mkstemp: More documentation.
53495         * doc/posix-functions/mkstemp.texi: Document header file problem on
53496         MacOS X.
53498 2011-04-27  Bruno Haible  <bruno@clisp.org>
53500         mkstemp: Tweak configure message when cross-compiling.
53501         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
53502         result as a guess.
53504 2011-04-27  Bruno Haible  <bruno@clisp.org>
53506         clean-temp: Clarify what it does.
53507         * lib/clean-temp.h: Add more comments.
53508         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
53509         module.
53510         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
53511         * doc/glibc-functions/mkstemps.texi: Likewise.
53512         * doc/glibc-functions/mkostemps.texi: Likewise.
53514 2011-04-27  Eric Blake  <eblake@redhat.com>
53516         fchdir: avoid extra chdir and fix test
53517         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
53518         getcwd-lgpl.
53519         * lib/fchdir.c (get_name): Any absolute name will do; it does not
53520         have to be canonical.
53521         (canonicalize_file_name): Drop unused macro.
53522         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
53524         filenamecat-lgpl: fix licence
53525         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
53526         when it was first created.
53528         linkat, renameat: add missing dependency
53529         * modules/linkat (Depends-on): Require getcwd-lgpl.
53530         * modules/renameat (Depends-on): Likewise.
53532         tests: reduce dependencies
53533         * tests/test-linkat.c (main): Use lighter-weight getcwd.
53534         * tests/test-renameat.c (main): Likewise.
53535         * modules/linkat-tests (Depends-on): Relax dependency.
53536         * modules/renameat-tests (Depends-on): Likewise.
53537         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
53538         dependency explicit.
53540         save-cwd: reduce default dependency
53541         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
53542         * lib/save-cwd.c: Update comments.
53543         * NEWS: Document the semantic change.
53545         getcwd: enhance tests
53546         * tests/test-getcwd-lgpl.c: New file, taken from...
53547         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
53548         repeat long path stress tests from m4 probe.
53549         * modules/getcwd-lgpl-tests: New module.
53550         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
53551         * m4/getcwd-abort-bug.m4: Update comment.
53552         * m4/getcwd-path-max.m4: Likewise.
53554         getcwd-lgpl: new module
53555         * modules/getcwd-lgpl: New module.
53556         * lib/getcwd-lgpl.c: New file.
53557         * doc/posix-functions/getcwd.texi (getcwd): Document it.
53558         * MODULES.html.sh (lacking POSIX:2008): Likewise.
53559         * modules/getcwd (configure.ac): Set C witness.
53560         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
53562         getcwd: tweak comments
53563         * m4/getcwd-abort-bug.m4: Fix comments.
53564         * m4/getcwd-path-max.m4: Likewise.
53565         * m4/getcwd.m4: Likewise.
53567 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53568         and Eric Blake  <eblake@redhat.com>
53570         mkstemp: replace if system version uses wrong permissions
53571         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
53572         read/write mode bits set in file created by mkstemp.
53573         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
53575 2011-04-27  Eric Blake  <eblake@redhat.com>
53577         passfd: avoid compiler warning
53578         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
53579         Reported by Laine Stump.
53581 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
53583         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
53584         required by the NetBSD (and perhaps other 4.4BSD derived) join.
53586 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
53587         and Eric Blake  <eblake@redhat.com>
53589         mkstemp: mention clean-temp module
53590         * lib/mkstemp.c: Add comment.
53591         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
53593 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
53595         inttypes: also provide default values for 32-bit tests
53596         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
53597         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
53599 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53601         strtoumax: remove dependency on strtoimax
53602         This is like the strtoull change of yesterday.
53603         * modules/strtoumax (Files): Add lib/strtoimax.c.
53604         (Depends-on): Remove strtoimax and add verify.
53606         inttypes-incomplete: new module
53607         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
53608         all but the PRI* and SCN* parts of gl_INTTYPES_H.
53609         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
53610         of gl_INTTYPES_H.
53611         (gl_INTTYPES_H): Rewrite in terms of these new macros.
53612         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
53613         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
53614         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
53615         * modules/strtoumax, modules/xstrtol (Depends-on):
53616         Depend on inttypes-incomplete, not inttypes.
53617         * modules/inttypes-incomplete: New module, containing the contents
53618         of the old modules/inttypes module, except that the Files: section
53619         omits m4/inttypes-pri.m4, and the configure.ac section invokes
53620         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
53621         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
53622         (Depends-on): Depend only on inttypes-incomplete.
53623         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
53625         inttypes: omit now-redundant strtoimax and strtoumax work
53626         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
53627         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
53629         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
53630         This supports apps that need pointers to strtoimax and strtoumax,
53631         and ports to HP-UX 11.00 64.bit, which has macros that expand to
53632         nonexistent functions.  See
53633         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
53634         et seq.
53635         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
53636         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
53637         a macro.
53638         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53640 2011-04-25  Simon Josefsson  <simon@josefsson.org>
53642         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
53644 2011-04-25  Bruno Haible  <bruno@clisp.org>
53646         strtol, strtoul: Mark modules as obsolete.
53647         * modules/strtol (Status, Notice): New sections.
53648         * modules/strtoul (Status, Notice): New sections.
53650 2011-04-25  Bruno Haible  <bruno@clisp.org>
53652         strtod: Remove check for strtod, unless supporting old platforms.
53653         * modules/strtod-obsolete: New file.
53654         * m4/strtod-obsolete.m4: New file.
53655         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
53656         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
53657         * modules/strtod (Depends-on): Add strtod-obsolete.
53658         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
53660 2011-04-25  Bruno Haible  <bruno@clisp.org>
53662         strcase: Make module obsolete.
53663         * modules/strcase (Status, Notice): New sections.
53665 2011-04-25  Bruno Haible  <bruno@clisp.org>
53667         dup2: Remove check for dup2, unless supporting old obsolete platforms.
53668         * modules/dup2-obsolete: New file.
53669         * m4/dup2-obsolete.m4: New file.
53670         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
53671         gl_FUNC_DUP2_OBSOLETE is not also defined.
53672         * modules/dup2 (Depends-on): Add dup2-obsolete.
53673         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
53675 2011-04-25  Bruno Haible  <bruno@clisp.org>
53677         strnlen: Avoid memchr related link error on old obsolete platforms.
53678         * modules/memchr-obsolete: New file.
53679         * m4/memchr-obsolete.m4: New file.
53680         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
53681         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
53682         * modules/memchr (Depends-on): Add memchr-obsolete.
53683         * modules/strnlen (Depends-on): Likewise.
53684         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
53686 2011-04-25  Jim Meyering  <meyering@redhat.com>
53688         maint.mk: makefile_at_at_check extend and clean up
53689         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
53690         in addition to */Makefile.am.
53691         Exempt legitimate uses of @VAR@ notation, e.g.,
53692         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
53693         Remove obsolete coreutils-specific comment.
53694         Prompted by discussion here:
53695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
53697 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53699         strtoul: remove dependency on strtol
53700         This is so that 'configure' need not check for strtol merely because
53701         the application needs strtoul.
53702         * modules/strtoul (Files): Add lib/strtol.c.
53703         (Depends-on): Remove strtol.
53705         strtoull: remove dependency on strtoul
53706         This is like the strtoll change.
53707         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
53708         (Depends-on): Remove strtoul.
53710         strtoll: remove dependency on strtol
53711         This is so that 'configure' need not check for strtol merely because
53712         the application needs strtoll.
53713         * modules/strtoll (Files): Add lib/strtol.c.
53714         (Depends-on): Remove strtol.
53716 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53718         inttypes: Move some configure check to module 'imaxdiv'.
53719         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
53720         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
53721         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
53723 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53725         inttypes: Move some configure check to module 'imaxabs'.
53726         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
53727         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
53728         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
53730 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53732         inttypes: Remove configure tests that are not needed since 2009-12-31.
53733         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
53734         gl_cv_header_working_inttypes_h.
53736 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
53738         * modules/strnlen (Depends-on): Remove memchr.
53739         The strnlen implementation doesn't need the memchr module's fixes; see
53740         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
53742         strtol: remove dependency on wchar
53743         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
53744         * modules/strtol (Depends-on): Remove wchar.
53746 2011-04-21  Eric Blake  <eblake@redhat.com>
53748         passfd: fix test regression on Linux
53749         * modules/passfd-tests (configure.ac): Correct socketpair check.
53751         passfd: speed up configure and drop unused code
53752         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
53753         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
53754         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
53755         Instead of probing at configure for unix_scm_rights_bsd44_way,
53756         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
53757         check to a struct member probe.
53758         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
53759         (sendfd, recvfd): Update preprocessor checks.
53760         * modules/passfd (Files): Reflect rename, and drop unused file.
53761         (Depends-on): Drop unused dependency.
53763         passfd: allow compilation on mingw
53764         * modules/sys_socket (Depends-on): Add sys_uio.
53765         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
53766         iovec and a minimal struct msghdr.
53767         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
53768         * tests/test-sys_socket.c (main): Enhance test.
53769         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
53770         guaranteed to provide what we need.
53771         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
53772         * modules/passfd-tests (Depends-on): Add sys_wait.
53773         * tests/test-passfd.c (main): Skip test on mingw, for now.
53774         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
53775         partial 'struct msghdr' implementation.
53777         sys_uio: new module
53778         * modules/sys_uio: New module.
53779         * modules/sys_uio-tests: Likewise.
53780         * lib/sys_uio.in.h: New file.
53781         * m4/sys_uio_h.m4: Likewise.
53782         * tests/test-sys_uio.c: Likewise.
53783         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
53784         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
53786 2011-04-20  Jim Meyering  <meyering@redhat.com>
53788         useless-if-before-free: avoid false-positive
53789         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
53790         disjunct so that it too requires a terminating ";".  Without that,
53791         this script would identify as useless one statement from gcc that
53792         was not:
53793           if (aligned_ptr)
53794             free (((void **) aligned_ptr) [-1]);
53796 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
53798         doc: update users.txt.
53799         * users.txt: Add barcode.
53801 2011-04-19  Bruno Haible  <bruno@clisp.org>
53803         ioctl: Remove link dependency on native Windows.
53804         * lib/fd-hook.h: Renamed from lib/close-hook.h.
53805         (gl_close_fn, gl_ioctl_fn): New types.
53806         (struct fd_hook): Renamed from struct close_hook. Change type of
53807         private_close_fn field. Add private_ioctl_fn field.
53808         (close_hook_fn): Add parameter for primary close method.
53809         (execute_close_hooks, execute_all_close_hooks): Likewise.
53810         (ioctl_hook_fn): New type.
53811         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
53812         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53813         argument.
53814         (unregister_fd_hook): Renamed from unregister_close_hook.
53815         * lib/fd-hook.c: Renamed from lib/close-hook.c.
53816         Don't include <unistd.h>.
53817         (close): Remove undef.
53818         (anchor): Update.
53819         (execute_close_hooks): Add argument for primary close method.
53820         (execute_all_close_hooks): Likewise.
53821         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
53822         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
53823         argument. Allow each argument to be NULL.
53824         (unregister_fd_hook): Renamed from unregister_close_hook.
53825         * lib/close.c (rpl_close): Pass 'close' function pointer to
53826         execute_all_close_hooks.
53827         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
53828         (primary_ioctl): New function.
53829         (ioctl): Don't call ioctlsocket here. Instead, call
53830         execute_all_ioctl_hooks.
53831         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
53832         close method.
53833         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
53834         (fd_sockets_hook): Renamed from close_sockets_hook.
53835         (gl_sockets_startup, gl_sockets_cleanup): Update.
53836         * modules/fd-hook: Renamed from modules/close-hook. Update.
53837         * modules/close (Depends-on): Add fd-hook, remove close-hook.
53838         * modules/sockets (Depends-on): Likewise.
53839         * modules/ioctl (Depends-on): Add fd-hook.
53840         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
53841         GNULIB_SOCKET.
53843 2011-04-19  Bruno Haible  <bruno@clisp.org>
53845         Move the support of O_NONBLOCK in open() to the 'open' module.
53846         * modules/nonblocking (Depends-on): Remove 'open'.
53847         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
53848         gl_cv_have_open_O_NONBLOCK.
53849         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
53850         O_NONBLOCK support.
53851         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
53853 2011-04-17  Bruno Haible  <bruno@clisp.org>
53855         pipe2: Simplify code.
53856         * lib/pipe2.c (pipe2): Reduce code duplication.
53858 2011-04-17  Bruno Haible  <bruno@clisp.org>
53860         nonblocking: Add comment.
53861         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
53863 2011-04-17  Bruno Haible  <bruno@clisp.org>
53865         nonblocking: Add tests for sockets.
53866         * tests/test-nonblocking-socket.sh: New file.
53867         * tests/test-nonblocking-socket-main.c: New file.
53868         * tests/test-nonblocking-socket-child.c: New file.
53869         * tests/test-nonblocking-socket.h: New file.
53870         * tests/socket-server.h: New file.
53871         * tests/socket-client.h: New file.
53872         * modules/nonblocking-socket-tests: New file.
53873         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
53875 2011-04-17  Bruno Haible  <bruno@clisp.org>
53877         nonblocking: Add tests for pipes.
53878         * tests/test-nonblocking-pipe.sh: New file.
53879         * tests/test-nonblocking-pipe-main.c: New file.
53880         * tests/test-nonblocking-pipe-child.c: New file.
53881         * tests/test-nonblocking-pipe.h: New file.
53882         * tests/test-nonblocking-writer.h: New file.
53883         * tests/test-nonblocking-reader.h: New file.
53884         * tests/test-nonblocking-misc.h: New file.
53885         * modules/nonblocking-pipe-tests: New file.
53886         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
53888 2011-04-16  Bruno Haible  <bruno@clisp.org>
53890         gettext: Clarify the needed programmer actions.
53891         * modules/gettext (Notice): New field.
53892         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53894 2011-04-16  Bruno Haible  <bruno@clisp.org>
53896         strchrnul: Tweak last commit.
53897         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
53898         bug.
53899         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
53900         as in _GL_FUNCDECL_SYS.
53901         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
53902         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
53904 2011-04-15  Eric Blake  <eblake@redhat.com>
53906         strchrnul: work around cygwin bug
53907         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
53908         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
53909         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
53910         * modules/string (Makefile.am): Substitute it.
53911         * lib/string.in.h (strchrnul): Use it.
53913 2011-04-15  Bruno Haible  <bruno@clisp.org>
53915         Don't require lib/stdio-write.c when only module 'stdio' is used.
53916         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
53917         invocation.
53918         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
53920 2011-04-14  Bruno Haible  <bruno@clisp.org>
53922         Support non-blocking pipe I/O in read() on native Windows.
53923         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
53924         (read): New declaration.
53925         * lib/read.c: New file.
53926         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
53927         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
53928         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
53929         vscanf): New declarations.
53930         * lib/stdio-read.c: New file.
53931         * m4/read.m4: New file.
53932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
53933         REPLACE_READ.
53934         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
53935         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53936         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
53937         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
53938         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
53939         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53940         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53941         * modules/read: New file.
53942         * modules/nonblocking (Files): Add lib/stdio-read.c.
53943         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
53944         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
53945         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
53946         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
53947         * modules/pread (Depends-on): Add read.
53948         * modules/safe-read (Depends-on): Likewise.
53949         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
53950         gets, scanf, vfscanf, vscanf): Verify signatures.
53951         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
53952         problem with non-blocking pipes.
53953         * doc/posix-functions/fgetc.texi: Likewise.
53954         * doc/posix-functions/fgets.texi: Likewise.
53955         * doc/posix-functions/fread.texi: Likewise.
53956         * doc/posix-functions/fscanf.texi: Likewise.
53957         * doc/posix-functions/getc.texi: Likewise.
53958         * doc/posix-functions/getchar.texi: Likewise.
53959         * doc/posix-functions/gets.texi: Likewise.
53960         * doc/posix-functions/scanf.texi: Likewise.
53961         * doc/posix-functions/vfscanf.texi: Likewise.
53962         * doc/posix-functions/vscanf.texi: Likewise.
53964 2011-04-14  Bruno Haible  <bruno@clisp.org>
53966         Support non-blocking pipe I/O in write() on native Windows.
53967         * lib/write.c (rpl_write): Split a write request that failed merely
53968         because the byte count was larger than the pipe buffer's size.
53969         * doc/posix-functions/write.texi: Mention the problem with large byte
53970         counts.
53972 2011-04-14  Bruno Haible  <bruno@clisp.org>
53974         wchar: Ensure that wchar_t gets defined on uClibc.
53975         * lib/wchar.in.h: On uClibc, include <stddef.h>.
53976         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
53978 2011-04-13  Bruno Haible  <bruno@clisp.org>
53980         safe-write, full-read: Avoid unnecessary compilation units.
53981         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
53982         (Depends-on): Remove safe-read. Add ssize_t.
53983         * modules/full-read (Files): Add lib/full-write.c.
53984         (Depends-on): Add full-write.
53986 2011-04-13  Bruno Haible  <bruno@clisp.org>
53988         Support non-blocking pipe I/O and SIGPIPE in pwrite().
53989         * modules/pwrite (Depends-on): Add 'write'.
53991 2011-04-13  Bruno Haible  <bruno@clisp.org>
53993         Support non-blocking pipe I/O in write() on native Windows.
53994         * lib/unistd.in.h (write): Enable replacement also if
53995         GNULIB_UNISTD_H_NONBLOCKING is 1.
53996         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
53997         (rpl_write): When failing to write on a non-blocking pipe, change
53998         errno from ENOSPC to EAGAIN.
53999         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
54000         putchar, puts, vfprintf, vprintf): Enable replacement also if
54001         GNULIB_STDIO_H_NONBLOCKING is 1.
54002         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
54003         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
54004         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
54005         CALL_WITH_SIGPIPE_EMULATION.
54006         (CALL_WITH_SIGPIPE_EMULATION): Use them.
54007         * m4/nonblocking.m4: New file.
54008         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
54009         for non-blocking I/O support.
54010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54011         GNULIB_UNISTD_H_NONBLOCKING.
54012         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
54013         required for non-blocking I/O support.
54014         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
54015         * modules/nonblocking (Files): Add m4/nonblocking.m4,
54016         lib/stdio-write.c, m4/asm-underscore.m4.
54017         (Depends-on): Add stdio, unistd.
54018         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
54019         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
54020         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
54021         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
54022         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
54023         problem with non-blocking pipes.
54024         * doc/posix-functions/fputc.texi: Likewise.
54025         * doc/posix-functions/fputs.texi: Likewise.
54026         * doc/posix-functions/fwrite.texi: Likewise.
54027         * doc/posix-functions/printf.texi: Likewise.
54028         * doc/posix-functions/putc.texi: Likewise.
54029         * doc/posix-functions/putchar.texi: Likewise.
54030         * doc/posix-functions/puts.texi: Likewise.
54031         * doc/posix-functions/vfprintf.texi: Likewise.
54032         * doc/posix-functions/vprintf.texi: Likewise.
54033         * doc/posix-functions/write.texi: Likewise.
54035 2011-04-10  Jim Meyering  <meyering@redhat.com>
54037         maint.mk: prohibit doubled words
54038         Detect them also when they're separated by a newline.
54039         There are 3 ways to customize it:
54040           - disable the test on a per file basis, as usual with rules using
54041             $(VC_LIST_EXCEPT)
54042           - replace the default doubled-word-selecting regexp (affects all files)
54043           - ignore a particular file-vs-doubled-word match
54044         I nearly used that last one to ignore the "is is" match in
54045         coreutils' NEWS file, since the text was "ls -is is ..."
54046         To do that, I would have added this line to cfg.mk:
54047           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
54048         but it would have ignored any "is is" match in NEWS.
54049         Low probability, but still...
54050         Instead, I changed the text, slightly:
54051           -  ls -is is now consistent with ls -lis in ignoring values returned
54052           +  "ls -is" is now consistent with ls -lis in ignoring values returned
54053         * top/maint.mk (prohibit_double_word_RE_): Provide default.
54054         (prohibit_doubled_word_): Define.
54055         (sc_prohibit_doubled_word): New rule.
54056         (sc_prohibit_the_the): Remove.  Subsumed by the above.
54058 2011-04-10  Jim Meyering  <meyering@redhat.com>
54060         maint: fix doubled-word typo in comment
54061         * m4/gethostname.m4: s/is is/it is/
54062         * m4/getdomainname.m4: Likewise.
54064 2011-04-10  Jim Meyering  <meyering@redhat.com>
54066         maint: remove doubled word: s/it it/it/
54067         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
54069 2011-04-10  Jim Meyering  <meyering@redhat.com>
54071         maint.mk: remove useless semicolon and backslash
54072         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
54073         semicolon and backslash.
54075 2011-04-10  Bruno Haible  <bruno@clisp.org>
54077         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
54078         * modules/stdint-tests (Depends-on): Add wchar.
54080 2011-04-10  Jim Meyering  <meyering@redhat.com>
54082         maint: remove doubled words in comments, e.g., s/a a/a/
54083         * lib/strptime.c (day_of_the_week): s/the the/the/
54084         * tests/test-chown.h (test_chown): s/a a/a/
54086         test-chown.h: correct a cast
54087         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
54088         when the destination is a stat.st_gid.
54090 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
54092         getaddrinfo: Fix test for sa_len member.
54093         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
54094         include <sys/types.h> before <sys/socket.h>.
54096 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54098         maint: change "can not" to "cannot"
54099         * doc/posix-functions/iconv.texi (iconv): This one crossed line
54100         boundaries.
54102 2011-04-09  Jim Meyering  <meyering@redhat.com>
54104         maint: change "a a" to "a"
54105         * tests/test-lchown.h (test_lchown): s/a a/a/
54107         maint.mk: prohibit \<the the\>
54108         * top/maint.mk (sc_prohibit_the_the): New rule.
54110         maint: fix "the the" in comment
54111         * lib/count-one-bits.h: s/the the/the/
54113         maint: change "can not" to "cannot"
54114         But do not change the occurrences in maintain.texi or in
54115         build-aux/po/Makefile.in.in, which I presume comes from gettext.
54116         * doc/gnulib-tool.texi: s/can not/cannot/
54117         * doc/posix-functions/accept.texi (accept): Likewise.
54118         * doc/posix-functions/socket.texi (socket): Likewise.
54119         * lib/mbrtowc.c: Likewise.
54121         maint.mk: prohibit use of "can not"
54122         * top/maint.mk (sc_prohibit_can_not): New rule.
54123         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
54125 2011-04-09  Bruno Haible  <bruno@clisp.org>
54127         careadlinkat: Guard against misuse of careadlinkatcwd.
54128         * lib/careadlinkat.c: Include <stdlib.h>.
54129         (careadlinkatcwd): Check that the fd argument is as expected.
54131 2011-04-09  Bruno Haible  <bruno@clisp.org>
54133         careadlinkat: Use common coding style.
54134         * lib/careadlinkat.c: Move gnulib includes after system includes.
54136 2011-04-09  Bruno Haible  <bruno@clisp.org>
54138         careadlinkat: Clarify specification.
54139         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
54140         (careadlinkatcwd): Add comment.
54141         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
54143 2011-04-09  Bruno Haible  <bruno@clisp.org>
54145         areadlinkat: Avoid link error on many platforms.
54146         * modules/areadlinkat (Depends-on): Add areadlink.
54148 2011-04-09  Bruno Haible  <bruno@clisp.org>
54150         allocator, careadlinkat: Fix double-inclusion guard.
54151         * lib/allocator.h: Fix double-inclusion guard.
54152         * lib/careadlinkat.h: Likewise.
54154 2011-04-09  Bruno Haible  <bruno@clisp.org>
54156         relocatable-prog-wrapper: Update after module 'areadlink' changed.
54157         * lib/relocwrapper.c: Update dependencies hierarchy.
54158         * build-aux/install-reloc: Update list of files to be compiled.
54159         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
54160         lib/allocator.[hc].
54162 2011-04-08  Eric Blake  <eblake@redhat.com>
54164         strftime: silence gnulib-tool warning
54165         * modules/strftime-tests (Depends-on): Drop automatic dependency.
54167 2011-04-08  Bruno Haible  <bruno@clisp.org>
54169         verify: Fix syntax error with GCC 4.6 in C++ mode.
54170         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
54171         (HAVE_STATIC_ASSERT): New macro.
54172         (verify_true, verify): Use 'static_assert' if it is supported and
54173         '_Static_assert' is not supported.
54175 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
54177         allocator: New module.
54178         * modules/allocator, lib/allocator.c: New files.
54179         * lib/allocator.h (stdlib_allocator): New decl.
54180         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
54181         Remove.  Do not include <stdlib.h>.
54182         (careadlinkat): Use stdlib_allocator instead of rolling our own.
54183         * modules/careadlinkat (Files): Remove lib/allocator.h.
54184         (Depends-on): Add allocator.
54186         stdlib: let modules use system malloc, realloc
54187         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
54188         if !_GL_USE_STDLIB_ALLOC.
54189         (malloc, realloc): Limit this change to a smaller scope.
54191         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
54192         (malloc, realloc): Don't #undef; no longer needed.
54193         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54194         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54195         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54196         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54197         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54198         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54199         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
54200         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
54202         careadlinkat: rename members to avoid problem
54203         * lib/allocator.h (struct allocator): Rename members from
54204         malloc/realloc to allocate/reallocate, to avoid problems if malloc
54205         and realloc are #define'd.  Reported by Eric Blake in
54206         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
54207         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
54209 2011-04-08  Eric Blake  <eblake@redhat.com>
54211         nonblocking: reduce dependency
54212         * tests/test-nonblocking.c: Only test sockets when in use.
54213         * modules/nonblocking-tests (Depends-on): Drop socket.
54214         (Makefile.am): Link even if sockets are not present.
54215         * modules/pipe2-tests (Makefile.am): Likewise.
54216         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
54218         pipe2: fix O_NONBLOCK support on mingw
54219         * modules/pipe2 (Depends-on): Add nonblocking.
54220         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
54221         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
54222         * tests/test-nonblocking.c (main): Likewise.
54223         * modules/pipe2-tests (Makefile.am): Avoid link failure.
54225         fcntl-h: fix O_ACCMODE on cygwin
54226         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
54227         * lib/fcntl.in.h (O_ACCMODE): Fix it.
54229         pipe-filter: drop O_NONBLOCK workarounds
54230         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
54231         * modules/pipe-filter-ii (Depends-on): Likewise.
54232         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
54234         nonblocking: provide O_NONBLOCK for mingw
54235         * modules/nonblocking (Depends-on): Add open.
54236         (configure.ac): Set new witness macro.
54237         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
54238         * modules/fcntl-h (Makefile.am): Substitute it.
54239         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
54240         nonblocking module is in use.
54241         * lib/nonblocking.c: Adjust portability test.
54242         * lib/open.c (open): Don't let native open see gnulib flag.
54243         * tests/test-fcntl-h.c (main): Enhance test.
54244         * tests/test-open.h (test_open): Likewise.
54245         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
54247         careadlinkat: fix compilation error on mingw
54248         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
54249         within struct allocator.
54251 2011-04-06  Eric Blake  <eblake@redhat.com>
54253         binary-io: relicense under LGPLv2+
54254         * modules/binary-io (License): Relax to LGPLv2+.
54255         Requested for libvirt, and required by pipe2.
54257 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
54259         verify: use _Static_assert if available
54260         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
54261         (verify_true, verify): Use it if available.  This generates better
54262         diagnostics with GCC 4.6.0 and later.
54264 2011-04-05  Bruno Haible  <bruno@clisp.org>
54266         Remove leftover generated .h files after config.status changed.
54268         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
54269         GL_GENERATE_ALLOCA_H.
54270         * modules/alloca-opt (Makefile.am): Remove alloca.h if
54271         GL_GENERATE_ALLOCA_H evaluates to false.
54273         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
54274         GL_GENERATE_ARGZ_H.
54275         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
54276         evaluates to false.
54278         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
54279         GL_GENERATE_BYTESWAP_H.
54280         * modules/byteswap (Makefile.am): Remove byteswap.h if
54281         GL_GENERATE_BYTESWAP_H evaluates to false.
54283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
54284         GL_GENERATE_ERRNO_H.
54285         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
54286         evaluates to false.
54288         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
54289         GL_GENERATE_FLOAT_H.
54290         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
54291         evaluates to false.
54293         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
54294         GL_GENERATE_FNMATCH_H.
54295         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
54296         GL_GENERATE_FNMATCH_H evaluates to false.
54298         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
54299         GL_GENERATE_GLOB_H.
54300         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
54301         evaluates to false.
54303         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
54304         automake conditional GL_GENERATE_ICONV_H.
54305         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
54306         evaluates to false.
54308         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
54309         GL_GENERATE_NETINET_IN_H.
54310         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
54311         GL_GENERATE_NETINET_IN_H evaluates to false.
54313         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
54314         conditional GL_GENERATE_PTHREAD_H.
54315         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
54316         * modules/pthread (Makefile.am): Remove pthread.h if
54317         GL_GENERATE_PTHREAD_H evaluates to false.
54319         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
54320         GL_GENERATE_SCHED_H.
54321         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
54322         evaluates to false.
54324         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
54325         conditional GL_GENERATE_SELINUX_CONTEXT_H.
54326         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
54327         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
54329         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
54330         GL_GENERATE_STDARG_H.
54331         * modules/stdarg (Makefile.am): Remove stdarg.h if
54332         GL_GENERATE_STDARG_H evaluates to false.
54334         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
54335         GL_GENERATE_STDBOOL_H.
54336         * modules/stdbool (Makefile.am): Remove stdbool.h if
54337         GL_GENERATE_STDBOOL_H evaluates to false.
54339         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
54340         conditional GL_GENERATE_STDDEF_H.
54341         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
54342         * modules/stddef (Makefile.am): Remove stddef.h if
54343         GL_GENERATE_STDDEF_H evaluates to false.
54345         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
54346         GL_GENERATE_STDINT_H.
54347         * modules/stdint (Makefile.am): Remove stdint.h if
54348         GL_GENERATE_STDINT_H evaluates to false.
54350         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
54351         GL_GENERATE_SYSEXITS_H.
54352         * modules/sysexits (Makefile.am): Remove sysexits.h if
54353         GL_GENERATE_SYSEXITS_H evaluates to false.
54355         Reported by Karl Berry and Ralf Wildenhues.
54357 2011-04-05  Bruno Haible  <bruno@clisp.org>
54359         Ensure to rebuild generated .h files when config.status has changed.
54360         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
54361         config.status.
54362         * modules/ctype (Makefile.am): Likewise.
54363         * modules/dirent (Makefile.am): Likewise.
54364         * modules/errno (Makefile.am): Likewise.
54365         * modules/fcntl-h (Makefile.am): Likewise.
54366         * modules/float (Makefile.am): Likewise.
54367         * modules/getopt-posix (Makefile.am): Likewise.
54368         * modules/glob (Makefile.am): Likewise.
54369         * modules/iconv-h (Makefile.am): Likewise.
54370         * modules/inttypes (Makefile.am): Likewise.
54371         * modules/langinfo (Makefile.am): Likewise.
54372         * modules/locale (Makefile.am): Likewise.
54373         * modules/math (Makefile.am): Likewise.
54374         * modules/netdb (Makefile.am): Likewise.
54375         * modules/netinet_in (Makefile.am): Likewise.
54376         * modules/poll-h (Makefile.am): Likewise.
54377         * modules/pthread (Makefile.am): Likewise.
54378         * modules/pty (Makefile.am): Likewise.
54379         * modules/sched (Makefile.am): Likewise.
54380         * modules/search (Makefile.am): Likewise.
54381         * modules/selinux-h (Makefile.am): Likewise.
54382         * modules/signal (Makefile.am): Likewise.
54383         * modules/spawn (Makefile.am): Likewise.
54384         * modules/stdarg (Makefile.am): Likewise.
54385         * modules/stdbool (Makefile.am): Likewise.
54386         * modules/stddef (Makefile.am): Likewise.
54387         * modules/stdint (Makefile.am): Likewise.
54388         * modules/stdio (Makefile.am): Likewise.
54389         * modules/stdlib (Makefile.am): Likewise.
54390         * modules/string (Makefile.am): Likewise.
54391         * modules/strings (Makefile.am): Likewise.
54392         * modules/sys_file (Makefile.am): Likewise.
54393         * modules/sys_ioctl (Makefile.am): Likewise.
54394         * modules/sys_select (Makefile.am): Likewise.
54395         * modules/sys_socket (Makefile.am): Likewise.
54396         * modules/sys_stat (Makefile.am): Likewise.
54397         * modules/sys_time (Makefile.am): Likewise.
54398         * modules/sys_times (Makefile.am): Likewise.
54399         * modules/sys_utsname (Makefile.am): Likewise.
54400         * modules/sys_wait (Makefile.am): Likewise.
54401         * modules/sysexits (Makefile.am): Likewise.
54402         * modules/termios (Makefile.am): Likewise.
54403         * modules/time (Makefile.am): Likewise.
54404         * modules/unistd (Makefile.am): Likewise.
54405         * modules/wchar (Makefile.am): Likewise.
54406         * modules/wctype-h (Makefile.am): Likewise.
54407         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
54409 2011-04-05  Bruno Haible  <bruno@clisp.org>
54411         pipe2: Relicense under LGPLv2+.
54412         * modules/pipe2 (License): Change to LGPLv2+.
54413         Requested by Eric Blake, for libvirt.
54415 2011-04-05  Bruce Korb  <bkorb@gnu.org>
54417         bootstrap: compute gnulib_extra_files after updating build_aux
54418         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
54419         change build_aux or also supply gnulib_extra_files.  Handle correctly.
54421 2011-04-05  Eric Blake  <eblake@redhat.com>
54423         bootstrap: preserve git whitelist item sorting
54424         * build-aux/bootstrap (sort_patterns): New function.
54425         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
54427 2011-04-05  Simon Josefsson  <simon@josefsson.org>
54429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
54430         sc_space_tab check.
54432 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
54434         areadlink, areadlinkat: rewrite in terms of careadlinkat
54435         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
54436         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
54437         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
54438         (malloc, realloc): Remove #undefs.
54439         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
54440         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
54441         readlink, ssize_t, stdint, unistd.
54442         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
54443         areadlink, stdint.
54445         careadlinkat: new module
54446         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
54447         * modules/careadlinkat: New files, written by me with
54448         a review and feedback from Ben Pfaff in
54449         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
54451 2011-04-01  Bruno Haible  <bruno@clisp.org>
54453         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
54454         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
54455         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
54456         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
54457         Reported by Bruce Korb <bruce.korb@gmail.com>.
54459 2011-04-01  Bruno Haible  <bruno@clisp.org>
54461         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
54462         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
54463         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
54464         * modules/wcpcpy (Depends-on): Add extensions.
54465         * modules/wcpncpy (Depends-on): Likewise.
54466         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
54467         systems.
54468         * doc/posix-functions/wcpncpy.texi: Likewise.
54469         * doc/posix-functions/wcwidth.texi: Likewise.
54471 2011-03-31  Eric Blake  <eblake@redhat.com>
54473         nonblocking: fix mingw test failures
54474         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
54475         non-blocking flag on regular file.
54476         (get_nonblocking_flag): Set errno on invalid fd.
54477         * tests/test-nonblocking.c (main): Avoid test failure on
54478         directories if fchdir is not active.
54479         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
54481 2011-03-31  Bruno Haible  <bruno@clisp.org>
54483         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
54484         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
54485         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
54486         Reported by Simon Josefsson <simon@josefsson.org>.
54488 2011-03-31  Bruno Haible  <bruno@clisp.org>
54489         and Eric Blake  <eblake@redhat.com>
54491         nonblocking: new module
54492         * modules/nonblocking: New module.
54493         * modules/nonblocking-tests: Likewise.
54494         * lib/nonblocking.h: New file.
54495         * lib/nonblocking.c: Likewise.
54496         * tests/test-nonblocking.c: New test.
54497         * lib/ioctl.c (ioctl) [mingw]: Update comment.
54499 2011-03-30  Bruno Haible  <bruno@clisp.org>
54501         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
54502         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
54503         instead of 'printf' format for GCC >= 4.4.
54504         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
54505         (fprintf, printf, vfprintf, vprintf): Declare with
54506         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
54507         the system's vfprintf() function.
54508         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
54510 2011-03-30  Eric Blake  <eblake@redhat.com>
54512         passfd: fix scoping bug
54513         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
54514         before sendmsg/recvmsg.
54516         passfd: standardize coding conventions
54517         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
54518         can be learned at compile time.
54519         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
54520         ifdefs.
54521         (sendfd, recvfd): Follow gnulib code conventions.
54523         passfd: fix incorrect sendmsg arguments
54524         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
54525         incorrect msg_controllen value.
54526         * modules/passfd-tests (Depends-on): Check for alarm.
54527         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
54528         Reported by Bastien ROUCARIES.
54530 2011-03-30  Bruno Haible  <bruno@clisp.org>
54532         c-strcasestr: Relicense under LGPLv2+.
54533         * modules/c-strcasestr (License): Change to LGPLv2+.
54534         Requested by Eric Blake, for libvirt.
54536 2011-03-30  Simon Josefsson  <simon@josefsson.org>
54538         * users.txt: Add libidn2.  Fix libtasn1 link.
54540 2011-03-30  Jim Meyering  <meyering@redhat.com>
54542         tests: readlink* ("",... fails with EINVAL on newer kernels
54543         readlink and readlinkat have typically failed with ENOENT for
54544         the invalid, empty file name,  "".  However, with the advent
54545         of linux-2.6.39, they fail with EINVAL.
54546         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
54547         when operating on the empty file name.
54548         * tests/test-readlink.h (test_readlink): Likewise.
54550 2011-03-29  Bruno Haible  <bruno@clisp.org>
54552         Relicense some modules under LGPLv2+, for libidn2.
54553         * modules/array-mergesort (License): Change to LGPLv2+.
54554         * modules/c-strcaseeq (License): Likewise.
54555         * modules/striconveh (License): Likewise.
54556         * modules/striconveha (License): Likewise.
54557         * modules/uniconv/base (License): Likewise.
54558         * modules/uniconv/u8-conv-from-enc (License): Likewise.
54559         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
54560         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
54561         * modules/unictype/base (License): Likewise.
54562         * modules/unictype/bidiclass-of (License): Likewise.
54563         * modules/unictype/category-M (License): Likewise.
54564         * modules/unictype/category-none (License): Likewise.
54565         * modules/unictype/category-of (License): Likewise.
54566         * modules/unictype/category-test (License): Likewise.
54567         * modules/unictype/category-test-withtable (License): Likewise.
54568         * modules/unictype/combining-class (License): Likewise.
54569         * modules/unictype/joiningtype-of (License): Likewise.
54570         * modules/unictype/scripts (License): Likewise.
54571         * modules/uninorm/base (License): Likewise.
54572         * modules/uninorm/canonical-decomposition (License): Likewise.
54573         * modules/uninorm/composition (License): Likewise.
54574         * modules/uninorm/decompose-internal (License): Likewise.
54575         * modules/uninorm/decomposition-table (License): Likewise.
54576         * modules/uninorm/nfc (License): Likewise.
54577         * modules/uninorm/nfd (License): Likewise.
54578         * modules/uninorm/u32-normalize (License): Likewise.
54579         * modules/unistr/base (License): Likewise.
54580         * modules/unistr/u32-cpy (License): Likewise.
54581         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
54582         * modules/unistr/u32-to-u8 (License): Likewise.
54583         * modules/unistr/u32-uctomb (License): Likewise.
54584         * modules/unistr/u8-check (License): Likewise.
54585         * modules/unistr/u8-mblen (License): Likewise.
54586         * modules/unistr/u8-mbtouc (License): Likewise.
54587         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
54588         * modules/unistr/u8-mbtoucr (License): Likewise.
54589         * modules/unistr/u8-prev (License): Likewise.
54590         * modules/unistr/u8-strlen (License): Likewise.
54591         * modules/unistr/u8-to-u32 (License): Likewise.
54592         * modules/unistr/u8-uctomb (License): Likewise.
54593         * modules/unitypes (License): Likewise.
54594         Requested by Simon Josefsson.
54596 2011-03-29  Simon Josefsson  <simon@josefsson.org>
54598         lib-symbol-visibility: Add a notice.
54599         * modules/lib-symbol-visibility (Notice): New field.
54601 2011-03-29  Bruno Haible  <bruno@clisp.org>
54603         getaddrinfo: Doc fix.
54604         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
54605         section "fixed in Gnulib".
54607 2011-03-28  Simon Josefsson  <simon@josefsson.org>
54609         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
54610         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
54612 2011-03-26  Bruno Haible  <bruno@clisp.org>
54614         unictype/property-byname: Reduce the number of load-time relocations.
54615         * lib/unictype/pr_byname.c: Include <stdlib.h>.
54616         (UC_PROPERTY_INDEX_*): New enumeration values.
54617         (uc_property_byname): Convert an index from the lookup table to an
54618         uc_property_t.
54619         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
54620         values.
54622 2011-03-26  Bruno Haible  <bruno@clisp.org>
54624         unictype/property-byname: Allow omitted word separators and aliases.
54625         * lib/unictype/pr_byname.gperf: Add property names without word
54626         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
54627         for 'space'.
54629 2011-03-26  Bruno Haible  <bruno@clisp.org>
54631         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
54632         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
54633         also hyphens to space.
54634         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
54635         without spaces.
54636         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
54638 2011-03-26  Bruno Haible  <bruno@clisp.org>
54640         unictype/joiningtype-byname: Recognize long names as well.
54641         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
54642         a long name.
54643         * lib/unictype/joiningtype_byname.c: Include <string.h>,
54644         unictype/joiningtype_byname.h.
54645         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
54646         * lib/unictype/joiningtype_byname.gperf: New file.
54647         * modules/unictype/joiningtype-byname (Files): Add
54648         lib/unictype/joiningtype_byname.gperf.
54649         (Depends-on): Add gperf.
54650         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
54651         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
54652         long names.
54654         Tests for module 'unictype/joiningtype-longname'.
54655         * modules/unictype/joiningtype-longname-tests: New file.
54656         * tests/unictype/test-joiningtype_longname.c: New file.
54658         New module 'unictype/joiningtype-longname'.
54659         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
54660         * lib/unictype/joiningtype_longname.c: New file.
54661         * modules/unictype/joiningtype-longname: New file.
54662         * modules/unictype/joiningtype-all (Depends-on): Add
54663         unictype/joiningtype-longname.
54665 2011-03-26  Bruno Haible  <bruno@clisp.org>
54667         unictype/bidiclass-byname: Recognize long names as well.
54668         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
54669         name.
54670         * lib/unictype/bidi_byname.c: Include <string.h>,
54671         unictype/bidi_byname.h.
54672         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
54673         * lib/unictype/bidi_byname.gperf: New file.
54674         * modules/unictype/bidiclass-byname (Files): Add
54675         lib/unictype/bidi_byname.gperf.
54676         (Depends-on): Add gperf.
54677         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
54678         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
54679         long names.
54681         Tests for module 'unictype/bidiclass-longname'.
54682         * modules/unictype/bidiclass-longname-tests: New file.
54683         * tests/unictype/test-bidi_longname.c: New file.
54685         New module 'unictype/bidiclass-longname'.
54686         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
54687         * lib/unictype/bidi_longname.c: New file.
54688         * modules/unictype/bidiclass-longname: New file.
54689         * modules/unictype/bidiclass-all (Depends-on): Add
54690         unictype/bidiclass-longname.
54692 2011-03-26  Bruno Haible  <bruno@clisp.org>
54694         unictype/bidi*: Rename modules.
54695         * modules/unictype/bidiclass-all: Renamed from
54696         modules/unictype/bidicategory-all.
54697         * modules/unictype/bidiclass-name: Renamed from
54698         modules/unictype/bidiclass-name.
54699         (Description): Update.
54700         * modules/unictype/bidiclass-name-tests: Renamed from
54701         modules/unictype/bidicategory-name-tests.
54702         * modules/unictype/bidiclass-byname: Renamed from
54703         modules/unictype/bidicategory-byname.
54704         (Description): Update.
54705         * modules/unictype/bidiclass-byname-tests: Renamed from
54706         modules/unictype/bidicategory-byname-tests.
54707         * modules/unictype/bidiclass-of: Renamed from
54708         modules/unictype/bidicategory-of.
54709         (Description): Update.
54710         * modules/unictype/bidiclass-of-tests: Renamed from
54711         modules/unictype/bidicategory-of-tests.
54712         * modules/unictype/bidiclass-test: Renamed from
54713         modules/unictype/bidicategory-test.
54714         (Description): Update.
54715         * modules/unictype/bidiclass-test-tests: Renamed from
54716         modules/unictype/bidicategory-test-tests.
54717         * modules/unictype/bidicategory-all: New file, a simple redirection.
54718         * modules/unictype/bidicategory-name: Likewise.
54719         * modules/unictype/bidicategory-byname: Likewise.
54720         * modules/unictype/bidicategory-of: Likewise.
54721         * modules/unictype/bidicategory-test: Likewise.
54722         * modules/unictype/property-bidi-* (Dependencies): Update.
54723         * lib/unictype/bidi_*.c: Update comment.
54725 2011-03-26  Bruno Haible  <bruno@clisp.org>
54727         unictype/bidi*: Rename functions, part 2.
54728         * modules/unictype/bidicategory-name (configure.ac): Update required
54729         libunistring version.
54730         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
54732 2011-03-25  Bruno Haible  <bruno@clisp.org>
54734         New module 'unictype/combining-class-all'.
54735         * modules/unictype/combining-class-all: New file.
54737         Tests for module 'unictype/combining-class-byname'.
54738         * modules/unictype/combining-class-byname-tests: New file.
54739         * tests/unictype/test-combiningclass_byname.c: New file.
54741         New module 'unictype/combining-class-byname'.
54742         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
54743         * lib/unictype/combiningclass_byname.c: New file.
54744         * lib/unictype/combiningclass_byname.gperf: New file.
54745         * modules/unictype/combining-class-byname: New file.
54747         Tests for module 'unictype/combining-class-longname'.
54748         * modules/unictype/combining-class-longname-tests: New file.
54749         * tests/unictype/test-combiningclass_longname.c: New file.
54751         New module 'unictype/combining-class-longname'.
54752         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
54753         * lib/unictype/combiningclass_longname.c: New file.
54754         * modules/unictype/combining-class-longname: New file.
54756         Tests for module 'unictype/combining-class-name'.
54757         * modules/unictype/combining-class-name-tests: New file.
54758         * tests/unictype/test-combiningclass_name.c: New file.
54760         New module 'unictype/combining-class-name'.
54761         * lib/unictype.in.h (uc_combining_class_name): New declaration.
54762         * lib/unictype/combiningclass_name.c: New file.
54763         * modules/unictype/combining-class-name: New file.
54765 2011-03-25  Bruno Haible  <bruno@clisp.org>
54767         unictype/combining-class: Rename source files.
54768         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
54769         of unictype/combining.h.
54770         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
54771         Update.
54772         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
54773         * modules/unictype/combining-class (Description): Fix.
54774         (Files, Makefile.am): Update.
54775         * tests/unictype/test-combiningclass.c: Renamed from
54776         tests/unictype/test-combining.c.
54777         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
54779 2011-03-25  Bruno Haible  <bruno@clisp.org>
54781         unictype: Update list of canonical combining classes.
54782         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
54784 2011-03-25  Bruno Haible  <bruno@clisp.org>
54786         unictype/category-byname: Recognize long names as well.
54787         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
54788         a long name.
54789         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
54790         unictype/categ_byname.h.
54791         (UC_CATEGORY_INDEX_*): New enumeration values.
54792         (uc_general_category_byname): Use uc_general_category_lookup and
54793         convert from index to value.
54794         * lib/unictype/categ_byname.gperf: New file.
54795         * modules/unictype/category-byname (Files): Add
54796         lib/unictype/categ_byname.gperf.
54797         (Depends-on): Add gperf.
54798         (Makefile.am): Add rule for generating unictype/categ_byname.h.
54799         * tests/unictype/test-categ_byname.c (main): Test the recognition of
54800         long names.
54802         Tests for module 'unictype/category-longname'.
54803         * modules/unictype/category-longname-tests: New file.
54804         * tests/unictype/test-categ_longname.c: New file.
54806         New module 'unictype/category-longname'.
54807         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
54808         * lib/unictype/categ_longname.c: New file.
54809         * modules/unictype/category-longname: New file.
54810         * modules/unictype/category-all (Depends-on): Add it.
54812 2011-03-25  Bruno Haible  <bruno@clisp.org>
54814         Tests for module 'unictype/category-LC'.
54815         * modules/unictype/category-LC-tests: New file.
54816         * tests/unictype/test-categ_LC.c: New file, automatically generated.
54818         New module 'unictype/category-LC'.
54819         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
54820         (UC_CATEGORY_LC): New declaration.
54821         (UC_CASED_LETTER): New macro.
54822         * lib/gen-uni-tables.c (is_category_LC): New function.
54823         (output_categories): Also handle category LC.
54824         (UC_CATEGORY_MASK_LC): New enumeration value.
54825         (general_category_byname): Also handle category LC.
54826         * lib/unictype/categ_LC.c: New file.
54827         * lib/unictype/categ_LC.h: New file, automatically generated.
54828         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
54829         category LC.
54830         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
54831         * modules/unictype/category-LC: New file.
54832         * modules/unictype/category-byname (Depends-on): Add
54833         unictype/category-LC.
54834         * modules/unictype/category-all (Depends-on): Likewise.
54836 2011-03-25  Eric Blake  <eblake@redhat.com>
54838         xmalloc: revert yesterday's regression
54839         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
54840         realloc's underlying behavior (allowing allocation of zero-size
54841         objects, especially if malloc-gnu is also in use).
54843 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
54845         maint.mk: add missing version to VC-tag
54846         * top/maint.mk: git tag was missing actual tag name; add it.
54848         valgrind: do leak checking, and exit with code 1 on error (not 0)
54849         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
54850         to VALGRIND.
54852 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
54854         posix-modules: say what it does.
54855         * posix-modules: Add a line to the --help output saying what it does.
54857 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
54859         xmalloc: Do not leak if underlying realloc is C99 compatible.
54860         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
54861         This avoids a leak on C99-based systems.  See
54862         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
54864 2011-03-24  Eric Blake  <eblake@redhat.com>
54866         realloc: document portability problem
54867         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
54868         passing 0 size to realloc.
54870 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
54872         doc: update users.txt
54873         * users.txt: Add cvsps, tmpwatch
54875 2011-03-23  Matt Rice  <ratmice@gmail.com>
54877         doc: update users.txt
54878         * users.txt: Add gdb.
54880 2011-03-23  Jim Meyering  <meyering@redhat.com>
54882         doc: update users.txt
54883         Looking through matches up to the following URL (there are still
54884         several more pages), I found several projects that use gnulib:
54885         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
54886         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
54887         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
54889 2011-03-22  Bruno Haible  <bruno@clisp.org>
54891         unictype/bidi*: Rename functions.
54892         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
54893         uc_bidi_class, uc_is_bidi_class): New declarations.
54894         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
54895         uc_bidi_category_byname.
54896         (uc_bidi_category_byname): New function.
54897         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
54898         u_bidi_category_name.
54899         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
54900         (uc_bidi_category_name): New function.
54901         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
54902         uc_bidi_category.
54903         (uc_bidi_category): New function.
54904         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
54905         uc_is_bidi_category. Invoke uc_bidi_class.
54906         (uc_is_bidi_category): New function.
54907         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
54908         instead of uc_bidi_category_byname.
54909         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
54910         instead of uc_bidi_category_name.
54911         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
54912         uc_bidi_category.
54913         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
54914         instead of uc_is_bidi_category.
54916 2011-03-21  Bruno Haible  <bruno@clisp.org>
54918         New module 'unictype/joininggroup-all'.
54919         * modules/unictype/joininggroup-all: New file.
54921         Tests for module 'unictype/joininggroup-of'.
54922         * modules/unictype/joininggroup-of-tests: New file.
54923         * tests/unictype/test-joininggroup_of.c: New file.
54924         * tests/unictype/test-joininggroup_of.h: New file, automatically
54925         generated by gen-uni-tables.
54927         New module 'unictype/joininggroup-of'.
54928         * modules/unictype/joininggroup-of: New file.
54929         * lib/unictype/joininggroup_of.c: New file.
54930         * lib/unictype/joininggroup_of.h: New file, automatically generated by
54931         gen-uni-tables.
54933         Tests for module 'unictype/joininggroup-byname'.
54934         * modules/unictype/joininggroup-byname-tests: New file.
54935         * tests/unictype/test-joininggroup_byname.c: New file.
54937         New module 'unictype/joininggroup-byname'.
54938         * modules/unictype/joininggroup-byname: New file.
54939         * lib/unictype/joininggroup_byname.c: New file.
54940         * lib/unictype/joininggroup_byname.gperf: New file.
54942         Tests for module 'unictype/joininggroup-name'.
54943         * modules/unictype/joininggroup-name-tests: New file.
54944         * tests/unictype/test-joininggroup_name.c: New file.
54946         New module 'unictype/joininggroup-name'.
54947         * modules/unictype/joininggroup-name: New file.
54948         * lib/unictype/joininggroup_name.c: New file.
54949         * lib/unictype/joininggroup_name.h: New file.
54951         New module 'unictype/joiningtype-all'.
54952         * modules/unictype/joiningtype-all: New file.
54954         Tests for module 'unictype/joiningtype-of'.
54955         * modules/unictype/joiningtype-of-tests: New file.
54956         * tests/unictype/test-joiningtype_of.c: New file.
54957         * tests/unictype/test-joiningtype_of.h: New file, automatically
54958         generated by gen-uni-tables.
54960         New module 'unictype/joiningtype-of'.
54961         * modules/unictype/joiningtype-of: New file.
54962         * lib/unictype/joiningtype_of.c: New file.
54963         * lib/unictype/joiningtype_of.h: New file, automatically generated by
54964         gen-uni-tables.
54966         Tests for module 'unictype/joiningtype-byname'.
54967         * modules/unictype/joiningtype-byname-tests: New file.
54968         * tests/unictype/test-joiningtype_byname.c: New file.
54970         New module 'unictype/joiningtype-byname'.
54971         * modules/unictype/joiningtype-byname: New file.
54972         * lib/unictype/joiningtype_byname.c: New file.
54974         Tests for module 'unictype/joiningtype-name'.
54975         * modules/unictype/joiningtype-name-tests: New file.
54976         * tests/unictype/test-joiningtype_name.c: New file.
54978         New module 'unictype/joiningtype-name'.
54979         * modules/unictype/joiningtype-name: New file.
54980         * lib/unictype/joiningtype_name.c: New file.
54982         unictype: Add support for Arabic shaping properties.
54983         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
54984         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
54985         declarations.
54986         (UC_JOINING_GROUP_*): New enumeration values.
54987         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
54988         declarations.
54989         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
54990         (unicode_joining_type): New variable.
54991         (UC_JOINING_GROUP_*): New enumeration values.
54992         (unicode_joining_group): New variable.
54993         (fill_arabicshaping, joining_type_as_c_identifier,
54994         output_joining_type_test, output_joining_type,
54995         joining_group_as_c_identifier, output_joining_group_test,
54996         output_joining_group): New functions.
54997         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
54998         fill_arabicshaping and output_joining_type_test, output_joining_type,
54999         output_joining_group_test, output_joining_group.
55000         Reported by Simon Josefsson.
55002 2011-03-21  Jim Meyering  <meyering@redhat.com>
55004         strftime: fix a bug in yesterday's change
55005         * lib/strftime.c (add): Accommodate width's initial value of -1.
55006         Otherwise, nstrftime would copy uninitialized data into
55007         the result buffer.
55009 2011-03-21  Jim Meyering  <meyering@redhat.com>
55011         tests: add strftime-tests module
55012         * tests/test-strftime.c: New file.
55013         * modules/strftime-tests: New module.
55015 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55017         strftime: don't assume a byte count fits in 'int'
55018         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
55019         found this problem by static analysis, using gcc -Wstrict-overflow
55020         (GCC 4.5.2, x86-64).  This reported an optimization that depended
55021         on an integer overflow having undefined behavior, but it turns out
55022         that the argument is a size, which might not fit in 'int' anyway,
55024 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55026         stdio: don't require ignore_value around fwrite
55028         This patch works around libc bug 11959
55029         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
55030         Without this patch, applications must often write
55031         ignore_value (fwrite (...)) even though the ignore_value is
55032         not helpful here.  It's common to write many objects, using
55033         fwrite/printf/etc., and then use ferror to detect output error.
55035         I considered making this patch optional, but decided against it,
55036         because libc is obviously being inconsistent here: there is no
55037         reason libc should insist that user code must inspect fwrite
55038         return's value without also insisting that it inspect printf's,
55039         putchar's, etc.  If user code wants to have a strict style where
55040         all these functions' values are checked (so that ferror need not
55041         be checked), we could add support for that style in a new gnulib
55042         module, but in the meantime it's better to be consistent and to
55043         support common usage.
55045         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
55046         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
55047         that we are compiling in checking mode, and if not C++, and
55048         if not already wrapping fwrite for some other reason.
55049         (fwrite): #define to rpl_fwrite if the latter is defined.
55051 2011-03-20  Bruno Haible  <bruno@clisp.org>
55053         verror: Fix compilation error introduced on 2011-02-13.
55054         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
55055         instead of __attribute__.
55056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55058 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
55059             Bruno Haible  <bruno@clisp.org>
55061         socklen: do not depend on sys_socket
55062         While trying to modify Emacs to use gnulib's socklen module,
55063         I discovered a circular dependency: socklen depends on sys_socket
55064         and vice versa.  Emacs can use socklen, but it does not need
55065         sys_socket because it has its own substitute for sys/socket.h.
55066         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
55067         gl_TYPE_SOCKLEN_T.
55068         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
55069         gl_PREREQ_SYS_H_SOCKET.
55070         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
55071         gl_PREREQ_SYS_H_SOCKET.
55072         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
55073         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
55074         * modules/socklen (Depends-on): Do not depend on sys_socket.
55075         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
55077 2011-03-20  Jim Meyering  <meyering@redhat.com>
55079         maint.mk: sort file names *after* new transformation
55080         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
55081         prefix would have led to an unwarranted failure in GNU parted.
55082         Sort after that transformation.
55084 2011-03-19  Jim Meyering  <meyering@redhat.com>
55086         maint.mk: fix po-file syntax-check rule
55087         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
55088         Patch by Bruno Haible.
55090 2011-03-19  Bruno Haible  <bruno@clisp.org>
55092         socklen: Update comment.
55093         * m4/socklen.m4: Update comment about platforms.
55095 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55096             Bruno Haible  <bruno@clisp.org>
55098         inet_ntop, inet_pton: Simplify.
55099         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
55100         documented to provide socklen_t and we already depend on sys_socket.
55101         * modules/inet_pton (Depends-on): Likewise.
55102         * lib/arpa_inet.in.h: Adjust comment.
55104 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
55105             Bruno Haible  <bruno@clisp.org>
55107         netdb: Simplify.
55108         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
55109         documented to provide socklen_t and we already depend on sys_socket.
55110         * lib/netdb.in.h: Adjust comment.
55112 2011-03-19  Bruno Haible  <bruno@clisp.org>
55114         sys_socket, netdb: Document problem with socklen_t.
55115         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
55116         platforms.
55117         * doc/posix-headers/netdb.texi: Likewise.
55119 2011-03-18  Eric Blake  <eblake@redhat.com>
55121         maint.mk: let po check work in VPATH build
55122         * top/maint.mk (po_file): Allow cfg.mk override.
55123         (sc_po_check): Allow VPATH use.
55124         Reported by Jiri Denemark.
55126 2011-03-16  Jim Meyering  <meyering@redhat.com>
55128         maint.mk: allow fine-grained syntax-check exclusion via Make variables
55129         Before, you would have had to create one .x-sc_ file per rule in order
55130         to exempt offending files.  Now, you may instead use a Make variable --
55131         usually defined in cfg.mk -- whose name identifies the affected rule.
55132         * top/maint.mk (_sc_excl): Define.
55133         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
55134         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
55136 2011-03-13  Bruno Haible  <bruno@clisp.org>
55138         ignore-value tests: Avoid warnings.
55139         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
55140         empty for gcc < 3.4.
55142 2011-03-13  Bruno Haible  <bruno@clisp.org>
55144         passfd: Fix link error on Solaris.
55145         * modules/passfd (Description): Correct.
55146         (Depends-on): Add socketlib.
55147         (Link): New section.
55148         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
55150 2011-03-13  Bruno Haible  <bruno@clisp.org>
55152         passfd: Fix link error on AIX 5.2.
55153         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
55155 2011-03-13  Bruno Haible  <bruno@clisp.org>
55157         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
55158         * lib/sys_socket.in.h: Include <stddef.h>.
55159         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
55160         CMSG_FIRSTHDR. Remove unused variable.
55162 2011-03-13  Bruno Haible  <bruno@clisp.org>
55164         passfd: Fix compilation error on OpenBSD.
55165         * lib/passfd.c: Include <sys/uio.h>.
55167 2011-03-13  Bruno Haible  <bruno@clisp.org>
55169         passfd test: Fix warnings.
55170         * tests/test-passfd.c: Include <sys/wait.h>.
55171         (main): Fix typo.
55173 2011-03-13  Bruno Haible  <bruno@clisp.org>
55175         passfd module, part 4, tweaks.
55176         * tests/test-passfd.c: Reorder includes.
55177         (main): Fix perror and printf calls.
55179 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55181         passfd module, part 4.
55182         * modules/passfd-tests: New file.
55183         * tests/test-passfd.c: New file.
55185 2011-03-13  Jim Meyering  <meyering@redhat.com>
55187         Makefile: rely on GNU make; derive syntax-check rule names
55188         Rather than requiring that each sc_ rule be listed as a dependent
55189         of "check", use features of GNU make to derive the list.
55190         * Makefile (syntax-check-rules): Define.
55191         (check): Depend on the new variable, not the hard-coded list.
55193 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
55194             Bruno Haible  <bruno@clisp.org>
55196         passfd module, part 3.
55197         * lib/passfd.h (recvfd): Add a flags argument.
55198         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
55199         (recvfd): Add a flags argument.
55200         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
55201         exists.
55202         * modules/passfd (Depends-on): Add cloexec.
55203         Suggested by Eric Blake.
55205 2011-03-13  Bruno Haible  <bruno@clisp.org>
55207         passfd module, part 2, tweaks.
55208         * modules/passfd (Files): Reorder.
55209         (Depends-on): Remove errno.
55210         (Include): Remove <sys/socket.h>, <sys/un.h>.
55211         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
55212         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
55213         specification header. Include <sys/socket.h> always. Don't include
55214         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
55215         (sendfd): Clarify that it sets errno when it fails.
55216         (recvfd): Fix specification.
55218 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55220         passfd module, part 2.
55221         * modules/passfd: New file.
55222         * lib/passfd.h: New file.
55223         * lib/passfd.c: New file.
55225 2011-03-12  Bruno Haible  <bruno@clisp.org>
55227         wcswidth, mbswidth: Avoid integer overflow.
55228         * lib/wcswidth.c: Include <limits.h>.
55229         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
55230         * lib/mbswidth.c: Include <limits.h>.
55231         (mbsnwidth): Avoid 'int' overflow.
55232         Reported by Jim Meyering.
55234 2011-03-12  Bruno Haible  <bruno@clisp.org>
55236         futimens, utimensat: Avoid endless recursion on Solaris 10.
55237         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
55238         Solaris.
55239         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
55240         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
55242 2011-03-11  Jim Meyering  <meyering@redhat.com>
55244         maint.mk: relax a regexp to accommodate other formatting styles
55245         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
55246         between "ngettext" and the following "(".
55248 2011-03-11  Pádraig Brady  <P@draigBrady.com>
55250         maint.mk: suppress a false positive warning
55251         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
55252         diagnostics are marked with ngettext.
55254 2011-03-10  Eric Blake  <eblake@redhat.com>
55256         wchar: add explicit dependencies, for Tru64
55257         * modules/mbmemcasecoll (Depends-on): Add wchar.
55258         * modules/mbtowc (Depends-on): Likewise.
55259         * modules/vasnprintf (Depends-on): Likewise.
55260         * modules/unistdio/u-printf-args (Depends-on): Likewise.
55261         * modules/wctomb (Depends-on): Likewise.
55262         Reported by Peter O'Gorman.
55264 2011-03-08  Bruno Haible  <bruno@clisp.org>
55266         passfd module, part 1, tweaks.
55267         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
55268         Improve indentation. Improve AC_MSG_CHECKING messages.
55269         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
55270         gl_SOCKET_FAMILIES.
55272 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
55274         passfd module, part 1.
55275         * m4/afunix.m4: New file.
55276         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
55277         sockets.
55279 2011-03-08  Bruno Haible  <bruno@clisp.org>
55281         regex-quote: New API.
55282         * lib/regex-quote.h: Include <stdbool.h>.
55283         (struct regex_quote_spec): New type.
55284         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55285         New declarations.
55286         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55287         'const struct regex_quote_spec *' argument.
55288         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
55289         (pcre_special): New constant.
55290         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
55291         New functions.
55292         (regex_quote_length, regex_quote_copy, regex_quote): Take a
55293         'const struct regex_quote_spec *' argument.
55294         * modules/regex-quote (Depends-on): Add stdbool.
55295         * tests/test-regex-quote.c (check): Update for new API. Add test for
55296         anchored results.
55297         * NEWS: Mention the API change.
55298         Reported by Reuben Thomas and Eric Blake.
55300 2011-03-06  Bruno Haible  <bruno@clisp.org>
55302         regex-quote: Fix creation of POSIX extended regular expressions.
55303         * lib/regex-quote.c (ere_special): Add grouping and alternation
55304         operators.
55306 2011-03-05  Bruno Haible  <bruno@clisp.org>
55308         doc: Improve doc regarding autopoint vs. gnulib.
55309         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
55310         disable autopoint while running autoreconf.
55311         Suggested by Ralf Wildenhues.
55313 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55315         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
55316         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
55318 2011-03-03  Bruce Korb  <bkorb@gnu.org>
55320         parse-duration: remove xalloc.h dependency
55321         * lib/parse-duration.c (parse_period): handle NULL return from
55322         strdup instead of calling xstrdup().
55323         * modules/parse-duration: remove "xalloc" dependency
55325 2011-03-03  Matthew Booth  <mbooth@redhat.com>
55327         bootstrap: honor m4_base when running aclocal
55328         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
55330 2011-03-02  Jim Meyering  <meyering@redhat.com>
55332         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
55333         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
55334         on request from Matt Booth.
55336 2011-03-01  Eric Blake  <eblake@redhat.com>
55338         test-link: work on Hurd
55339         * tests/test-link.h (test_link): Hurd rejects linking directories
55340         with EISDIR instead of the POSIX-mandated EPERM.
55342 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
55344         stdio: simplify by moving files to printf-posix, sigpipe
55345         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
55346         since this symbol is needed only if printf is replaced.
55347         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
55348         Require gl_ASM_SYMBOL_PREFIX.
55349         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
55350         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
55351         (Depends-on): Add 'raise'.
55352         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
55353         * modules/stdio (Files): Remove lib/stdio-write.c,
55354         m4/asm-underscore.m4.
55355         (Depends-on): Remove 'raise'.
55357         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
55358         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
55359         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
55360         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
55362 2011-02-28  Bruno Haible  <bruno@clisp.org>
55364         localcharset: Assume ANSI C behaviour of free().
55365         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
55366         calling free().
55367         Suggested by Simon Josefsson <simon@josefsson.org>.
55369 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
55370             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
55371             Bruno Haible  <bruno@clisp.org>  (tiny change)
55373         On Cygwin, use /proc file system instead of win32 API.
55374         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
55375         Win32 file names.
55376         (DllMain): Simplify by removing Cygwin specific code.
55377         (find_shared_library_fullname): Use Linux specific implementation also
55378         for Cygwin.
55379         (get_shared_library_fullname): Update accordingly.
55380         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
55381         Win32 file names.
55382         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
55383         Cygwin specific code.
55385 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
55386             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
55388         Fix OpenMP flag detection for various Fortran compilers.
55389         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
55390         OpenMP-conditional compilation construct, to force compile
55391         failure with missing OpenMP flag.
55392         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
55394 2011-02-25  Eric Blake  <eblake@redhat.com>
55396         strstr: expand test coverage
55397         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
55398         compilation.
55399         * tests/test-memmem.c (main): Duplicate tests.
55400         * tests/test-strcasestr.c (main): Likewise.
55401         * tests/test-c-strcasestr.c (main): Likewise.
55403 2011-02-25  Jim Meyering  <meyering@redhat.com>
55405         maint.mk: detect missing-NL-at-EOF, too
55406         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
55407         it also detects when a file lacks a newline at EOF.
55408         (require_exactly_one_NL_at_EOF_): Renamed from
55409         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
55410         since people may well have .x-sc_... file names tied to the
55411         existing name.  Suggested by Eric Blake.
55413 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
55415         dirname: move m4/dos.m4 functionality into lib/dosname.h
55417         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
55418         extracts symbols from it, puts them into config.h; but it's much
55419         easier to use the symbols directly.  filename.h already does this,
55420         but it disagrees with dos.m4 in some respects.  This patch
55421         introduces a different include file dosname.h that packages up
55422         dos.m4, and then later we can work on merging filename.h and
55423         dosname.h.  Applications that need only the easy-to-configure
55424         symbols should consider including dosname.h rather than dirname.h.
55425         * NEWS: Mention incompatible changes.
55426         * m4/dos.m4: Remove.
55427         * lib/dosname.h, modules/dosname: New files.
55428         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
55429         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
55430         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
55431         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
55432         Include dosname.h, not dirname.h.
55433         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
55434         Include dosname.h, for definitions of symbols like ISSLASH
55435         that used to be in config.h.
55436         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
55437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
55438         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
55439         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
55440         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
55441         * modules/rmdir (Files): Likewise.
55442         * modules/stat (Files): Likewise.
55443         * modules/unlink (Files): Likewise.
55444         * modules/dirname-lgpl (Depends-on): Add dosname.
55445         * modules/lstat (Depends-on): Likewise.
55446         * modules/openat (Depends-on): Likewise.
55447         * modules/rmdir (Depends-on): Likewise.
55448         * modules/savewd (Depends-on): Likewise.
55449         * modules/stat (Depends-on): Likewise.
55450         * modules/unlink (Depends-on): Likewise.
55451         * modules/openat (Depends-on): Remove dirname-lgpl.
55452         * modules/savewd (Depends-on): Likewise.
55453         * tests/test-dirname.c: Do not use removed symbols like
55454         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
55455         the remaining symbols, e.g., ISSLASH ('\\').
55457 2011-02-25  Eric Blake  <eblake@redhat.com>
55459         strstr: revert patches that introduced bug and pessimization
55460         * lib/str-two-way.h: Add another reference.
55461         (two_way_short_needle, two_way_long_needle): Revert changes from
55462         2011-02-24; they pessimize search speed.
55463         (critical_factorization): Partially revert changes from
55464         2010-06-22; they violate the requirement that the left half of the
55465         needle be smaller than the period of the needle.
55467 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55469         filenamecat: remove unnecessary dependency on dirname-lgpl
55470         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
55471         is no direct dependency, just an indirect one via filenamecat-lgpl.
55473         remove: remove unnecessary use of m4/dos.m4
55474         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
55475         * modules/remove (FILES): Remove m4/dos.m4.
55477         * lib/openat-proc.c: Don't include dirname.h; not needed.
55479         backupfile: remove unnecessary use of m4/dos.m4
55480         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
55481         of its symbols are used by the backupfile code.  backupfile.c does
55482         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
55483         for the rare case of programs that want all their backup file
55484         names to live within 8+3 limits, and dos.m4 doesn't address that.
55485         * modules/backupfile (Files): Remove m4/dos.m4.
55487 2011-02-24  Jim Meyering  <meyering@redhat.com>
55489         strstr: fix a bug whereby strstr would mistakenly return NULL
55490         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
55491         in period calculation.
55492         (two_way_long_needle): Likewise.
55493         The original problem was reported by Mike Stump in
55494         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
55495         Ralf Wildenhues provided the short needle and haystack.
55496         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
55497         Add a more involved test to trigger the bug in two_way_long_needle.
55499 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55501         gnulib-tool: remove use of bold display in help screen
55502         * gnulib-tool (func_usage): Do not use bold display anymore in the
55503         help screen.  That was just meant to be a temporary emphasis for a
55504         backward-incompatible change.
55506 2011-02-23  Bruno Haible  <bruno@clisp.org>
55508         Fix misindentation of preprocessor directives.
55509         * lib/argp-namefrob.h: Reindent preprocessor directives.
55510         * lib/getopt_int.h (struct _getopt_data): Likewise.
55511         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
55512         * lib/vasnprintf.c (decode_long_double): Likewise.
55513         * tests/test-argmatch.c: Insert blank lines, for clarity.
55514         * tests/test-exclude.c: Likewise.
55516 2011-02-22  Bruno Haible  <bruno@clisp.org>
55518         ioctl: Fix for MacOS X in 64-bit mode.
55519         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
55520         value.
55521         Suggested by Eric Blake.
55522         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
55524 2011-02-22  Jim Meyering  <meyering@redhat.com>
55526         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
55527         * Makefile (sc_cpp_indent_check): Don't limit the check to files
55528         in lib/.
55530 2011-02-22  Eric Blake  <eblake@redhat.com>
55532         maint: avoid any CDPATH issue
55533         * Makefile (sc_cpp_indent_check): Anchor cd argument.
55535         maint: adjust cpp indentation for my modules, as well
55536         * Makefile (sc_cpp_indent_check): Add my name.
55537         * lib/fbufmode.c: Filter through cppi.
55538         * lib/fpurge.c: Likewise.
55539         * lib/freadable.c: Likewise.
55540         * lib/freading.c: Likewise.
55541         * lib/fwritable.c: Likewise.
55542         * lib/fwriting.c: Likewise.
55543         * lib/sigaction.c: Likewise.
55545 2011-02-22  Jim Meyering  <meyering@redhat.com>
55547         maint: adjust cpp indentation to reflect nesting depth
55548         I.e., in a block of code that begins with an unnested "#if",
55549         put one space between the "#" in column 1 and following token.
55550         For example,
55551         -#include <sys/vfs.h>
55552         +# include <sys/vfs.h>
55553         Do this only in .c files that are part of a module I maintain.
55554         * lib/linkat.c: Filter through cppi.
55555         * lib/nanosleep.c: Likewise.
55556         * lib/openat.c: Likewise.
55557         * lib/openat-die.c: Likewise.
55558         * lib/dup3.c: Likewise.
55559         * lib/fchownat.c: Likewise.
55560         * lib/flock.c: Likewise.
55561         * lib/fsync.c: Likewise.
55562         * lib/fts.c: Likewise.
55563         * lib/getpass.c: Likewise.
55564         * lib/gettimeofday.c: Likewise.
55565         * lib/userspec.c: Likewise.
55566         * Makefile (sc_cpp_indent_check): New rule, to check this.
55568 2011-02-22  Bruno Haible  <bruno@clisp.org>
55570         New module 'wctomb'.
55571         * lib/stdlib.in.h (wctomb): New declaration.
55572         * lib/wctomb.c: New file.
55573         * lib/wctomb-impl.h: New file.
55574         * m4/wctomb.m4: New file.
55575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
55576         REPLACE_WCTOMB.
55577         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
55578         REPLACE_WCTOMB.
55579         * modules/wctomb: New file.
55580         * tests/test-stdlib-c++.cc: Test signature of wctomb.
55581         * doc/posix-functions/wctomb.texi: Mention the new module.
55582         * modules/wctob (Depends-on): Add wctomb.
55584 2011-02-22  Bruno Haible  <bruno@clisp.org>
55586         New module 'mbtowc'.
55587         * lib/stdlib.in.h (mbtowc): New declaration.
55588         * lib/mbtowc.c: New file.
55589         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
55590         * m4/mbtowc.m4: New file.
55591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
55592         REPLACE_MBTOWC.
55593         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
55594         REPLACE_MBTOWC.
55595         * modules/mbtowc: New file.
55596         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
55597         * doc/posix-functions/mbtowc.texi: Mention the new module.
55598         * modules/btowc (Depends-on): Add mbtowc.
55600 2011-02-22  Bruno Haible  <bruno@clisp.org>
55602         wcrtomb: Add more tests for native Windows platforms.
55603         * tests/test-wcrtomb-w32-1.sh: New file.
55604         * tests/test-wcrtomb-w32-2.sh: New file.
55605         * tests/test-wcrtomb-w32-3.sh: New file.
55606         * tests/test-wcrtomb-w32-4.sh: New file.
55607         * tests/test-wcrtomb-w32-5.sh: New file.
55608         * tests/test-wcrtomb-w32.c: New file.
55609         * modules/wcrtomb-tests (Files): Add them.
55610         (Makefile.am): Arrange to run these tests.
55611         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
55612         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
55614 2011-02-20  Bruno Haible  <bruno@clisp.org>
55616         wcrtomb: Enhance test.
55617         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
55619 2011-02-20  Bruno Haible  <bruno@clisp.org>
55621         mbrtowc: Tiny optimization.
55622         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
55624 2011-02-20  Jim Meyering  <meyering@redhat.com>
55626         test-exclude.c: remove unmatched #endif
55627         * tests/test-exclude.c: Remove stray #endif, left over from
55628         the change of a week ago.
55630 2011-02-19  Jim Meyering  <meyering@redhat.com>
55632         git-version-gen: skip "-dirty" check when appropriate
55633         * build-aux/git-version-gen: Don't run any git commands when the
55634         version string comes from .tarball-version.  Prior to this, we
55635         would run git update-index --refresh even from a just-unpacked
55636         tarball directory, and that could affect a .git/ directory in a
55637         parent of the build directory.  Reported by Mike Frysinger.
55639 2011-02-19  Bruno Haible  <bruno@clisp.org>
55641         unictype/property-byname: Reduce the size of the 'data' segment.
55642         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
55644 2011-02-19  Bruno Haible  <bruno@clisp.org>
55646         unictype/scripts: Reduce the size of the 'data' segment.
55647         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
55648         '%pic'.
55649         * lib/unictype/scripts_byname.gperf: Regenerated.
55651 2011-02-19  Bruno Haible  <bruno@clisp.org>
55653         stdint: Update documentation.
55654         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
55656 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
55658         stdint: omit redundant check for wchar.h
55659         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
55660         always tests whether wchar.h exists, so remove the now-redundant test.
55662 2011-02-18  Bruno Haible  <bruno@clisp.org>
55664         stdint: Cut dependency to module 'wchar'.
55665         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
55666         include the necessary prerequisites.
55667         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
55668         * modules/stdint (Depends-on): Remove wchar.
55669         (Makefile.am): Substitute HAVE_WCHAR_H.
55670         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
55672 2011-02-18  Eric Blake  <eblake@redhat.com>
55674         longlong: skip, rather than fail, on cross-compilation
55675         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
55676         when cross-compiling; regression from 2011-02-16.
55678 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55680         * NEWS: Mention 2011-02-08 change to stdlib.
55682 2011-02-17  Bruno Haible  <bruno@clisp.org>
55684         getloadavg: Add comments about platforms.
55685         * m4/getloadavg.m4: Add comment.
55686         * lib/getloadavg.c: Likewise.
55688 2011-02-17  Bruno Haible  <bruno@clisp.org>
55690         getloadavg: Fix link error on Solaris 2.6.
55691         * modules/getloadavg (Link): New section.
55692         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
55693         linking test-getloadavg.
55694         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
55695         getloadavg.
55697 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
55699         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
55700         It was 'int', but this doesn't match the IRIX 6.5 manual.
55701         Suggested by Bruno Haible in
55702         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
55704 2011-02-17  Bruno Haible  <bruno@clisp.org>
55706         havelib: Fix comments.
55707         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
55708         change.
55710 2011-02-17  Bruno Haible  <bruno@clisp.org>
55712         havelib: Update config.rpath.
55713         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
55715 2011-02-17  Bruno Haible  <bruno@clisp.org>
55717         getloadavg test: Add some plausibility checks.
55718         * tests/test-getloadavg.c (check_avg): Print a warning when the value
55719         is improbable.
55721 2011-02-16  Eric Blake  <eblake@redhat.com>
55723         maintainer-makefile: make syntax-check a no-op from tarballs
55724         * top/maint.mk (no-vc-detected): New rule.
55725         (local-checks-available): Use it to avoid hanging if someone tries
55726         'make syntax-check' from a tarball.  Also append to any non-syntax
55727         checks already defined in cfg.mk.
55729 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
55731         longlong: tune, particularly for common case of c99
55733         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
55734         or running anything if c99, or if unsigned long long int does not
55735         work.  In either case, we know the answer without further tests.
55736         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
55737         it at most once, and use its results for both long long int and
55738         unsigned long long int.  This is more likely to be efficient in
55739         the common case where the program wants to check for both long
55740         long int and unsigned long long int.
55741         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
55742         since the answer is already known.
55744 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
55746         getloadavg: set errno
55747         * lib/getloadavg.c: Set errno when returning -1.  If no other
55748         error number looks appropriate, set it to ENOSYS if the getloadavg
55749         looks like it can't possibly ever work, ENOTSUP otherwise.
55750         Suggested by Bruno Haible in
55751         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
55753         getloadavg: trim unused parts and speed up 'configure'
55754         * NEWS: Document this.
55755         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
55756         always compiled if getloadavg is absent.
55757         Move test code to ...
55758         * tests/test-getloadavg.c: New file, containing previous
55759         contents of test from lib/getloadavg.c.  It also contains
55760         suggestions by Bruno Haible in
55761         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
55762         * modules/getloadavg-tests: New file.
55763         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
55764         Do tests in the same order as they're needed for getloadavg.c.
55765         Omit setgid-related tests that generate symbols KMEM_GROUP,
55766         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
55767         Do only the tests that are needed to see whether the system has
55768         getloadavg, moving the other tests into ...
55769         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
55770         NLIST_NAME_UNION; nobody should be using it.  Do not define
55771         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
55772         relevant, as the user of this module shouldn't care how getloadavg
55773         is implemented.
55775         getloadavg: omit unused var
55776         * lib/getloadavg.c (getloadavg): Omit unused local variable.
55778 2011-02-15  Jim Meyering  <meyering@redhat.com>
55780         doc: update users.txt
55781         * users.txt: Update iwhd's URL.
55783 2011-02-13  Bruno Haible  <bruno@clisp.org>
55785         Consistent macro naming for macros that use GCC __attribute__.
55786         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
55787         _ATTRIBUTE_NONNULL_.
55788         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
55789         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
55790         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
55791         ATTRIBUTE_DEPRECATED.
55792         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
55793         ATTRIBUTE_NORETURN.
55794         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55795         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55796         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55797         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
55798         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
55799         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
55800         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
55801         ATTRIBUTE_SENTINEL.
55802         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
55803         ATTRIBUTE_RETURN_CHECK.
55804         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
55805         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
55806         ATTRIBUTE_NORETURN.
55807         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
55808         Reported by Paul Eggert.
55810 2011-02-13  Bruno Haible  <bruno@clisp.org>
55812         Don't interfere with a program's definition of __attribute__.
55813         * lib/argp.h (__attribute__): Remove definition.
55814         (_GL_ATTRIBUTE_FORMAT): New macro.
55815         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
55816         * lib/argp-fmtstream.h (__attribute__): Remove definition.
55817         (_GL_ATTRIBUTE_FORMAT): New macro.
55818         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
55819         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
55820         GCC 3 or newer.
55821         * lib/error.h (__attribute__): Remove definition.
55822         (_GL_ATTRIBUTE_FORMAT): New macro.
55823         (error, error_at_line): Use it.
55824         * lib/hash.h (__attribute__): Remove definition.
55825         (ATTRIBUTE_WUR): Update definition. Define always.
55826         * lib/openat.h (__attribute__): Remove definition.
55827         (ATTRIBUTE_NORETURN): Update definition. Define always.
55828         * lib/sigpipe-die.h (__attribute__): Remove definition.
55829         (ATTRIBUTE_NORETURN): Update definition. Define always.
55830         * lib/vasnprintf.h (__attribute__): Remove definition.
55831         (_GL_ATTRIBUTE_FORMAT): New macro.
55832         (asnprintf, vasnprintf): Use it.
55833         * lib/xalloc.h (__attribute__): Remove definition.
55834         (ATTRIBUTE_NORETURN): Update definition. Define always.
55835         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
55836         * lib/xmemdup0.h (__attribute__): Remove definition.
55837         (ATTRIBUTE_NORETURN): Update definition. Define always.
55838         * lib/xprintf.h (__attribute__): Remove definition.
55839         (_GL_ATTRIBUTE_FORMAT): New macro.
55840         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
55841         * lib/xstrtol.h (__attribute__): Remove definition.
55842         (ATTRIBUTE_NORETURN): Update definition. Define always.
55843         * lib/xvasprintf.h (__attribute__): Remove definition.
55844         (_GL_ATTRIBUTE_FORMAT): New macro.
55845         (xasprintf, xvasprintf): Use it.
55846         * tests/test-argmatch.c (__attribute__): Remove definition.
55847         (ATTRIBUTE_NORETURN): Update definition. Define always.
55848         * tests/test-exclude.c (__attribute__): Remove definition.
55849         (ATTRIBUTE_NORETURN): Update definition. Define always.
55850         Reported by Paul Eggert.
55852 2011-02-13  Bruno Haible  <bruno@clisp.org>
55854         mbrtowc: Add more tests for native Windows platforms.
55855         * tests/test-mbrtowc-w32-1.sh: New file.
55856         * tests/test-mbrtowc-w32-2.sh: New file.
55857         * tests/test-mbrtowc-w32-3.sh: New file.
55858         * tests/test-mbrtowc-w32-4.sh: New file.
55859         * tests/test-mbrtowc-w32-5.sh: New file.
55860         * tests/test-mbrtowc-w32.c: New file.
55861         * modules/mbrtowc-tests (Files): Add them.
55862         (Makefile.am): Arrange to run these tests.
55863         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
55864         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
55866 2011-02-13  Bruno Haible  <bruno@clisp.org>
55868         mbrtowc: Work around native Windows bug.
55869         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
55870         guess when no suitable locale for testing was found.
55871         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
55873 2011-02-13  Bruno Haible  <bruno@clisp.org>
55875         mbsinit: Work around mingw bug.
55876         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
55877         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
55878         Windows.
55879         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
55881 2011-02-13  Bruno Haible  <bruno@clisp.org>
55883         mbsinit: Don't crash for a NULL argument.
55884         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
55885         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
55887 2011-02-13  Bruno Haible  <bruno@clisp.org>
55889         Don't interfere with a program's definition of __attribute__.
55890         * lib/stdio.in.h (__attribute__): Remove definition.
55891         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
55892         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
55893         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
55894         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
55895         * lib/string.in.h (__attribute__): Remove definition.
55896         Reported by Paul Eggert.
55898 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55900         stdlib: don't get in the way of non-GCC __attribute__
55901         See thread starting at
55902         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
55903         Revert previous stdlib change, installing the following instead:
55904         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
55905         to get in the way of a non-GCC compiler that supports __attribute__.
55906         (_GL_ATTRIBUTE_RETURN): New macro.
55907         (_Exit): Use it instead of __attribute__.
55909 2011-02-12  Bruno Haible  <bruno@clisp.org>
55911         quotearg test: Avoid test failure on mingw.
55912         * tests/test-quotearg.sh: Convert the locale identifier from native
55913         Windows syntax to Unix syntax.
55915 2011-02-12  Bruno Haible  <bruno@clisp.org>
55917         setlocale: Prefer gnulib's override over libintl's override.
55918         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
55919         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
55920         GNULIB_defined_setlocale is set.
55922 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
55924         stdlib: support non-GCC __attribute__
55926         Fix a serious and tricky problem encountered when attempting to
55927         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
55928         5.5, but it crashed due to memory corruption on Solaris 10 with
55929         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
55930         bits that are otherwise zero.  This tagging is optional inside
55931         Emacs but is preferred and is used when __attribute__ ((__aligned
55932         (8))) works, as it does with both recent-enough GCC and with Sun C
55933         5.11.  However, Sun C 5.11 is not GCC and does not #define
55934         __GNUC__ and __GNUC_MINOR__.
55936         When I added the getloadavg module to Emacs, it brought in
55937         stdlib.in.h, which contained this fragment:
55939            #ifndef __attribute__
55940            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
55941            #  define __attribute__(Spec)   /* empty */
55942            # endif
55943            #endif
55945         When files that include <stdlib.h> were compiled with Sun C 5.11,
55946         the above code disabled __attribute__ ((__aligned (8))), which
55947         caused variables to not be properly aligned, which eventually led
55948         to the pointer corruption mentioned above.  (This was a bit hard
55949         to diagnose, unfortunately.)
55951         Several "#define __attribute__(X) /* empty */" code snippets need
55952         to be eradicated from Gnulib to work with non-GCC compilers that
55953         support __attribute__.  The Autoconf way to do this is to test for
55954         each kind of attribute that we want support for, and selectively
55955         enable that in source code.
55957         Fix this problem just for stdlib.h, by adding a test for the
55958         __noreturn__ attribute, and change stdlib.in.h to use that test
55959         when needed.  This technique can be easily generalized to the
55960         other *.in.h files and attributes, and a similar technique can be
55961         used for *.h and *.c files.  This patch is enough to solve the
55962         problem for Emacs + getloadavg, and I thought I'd publish it for
55963         feedback before undertaking further, similar fixes in other
55964         modules.
55966         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
55967         because it's not needed for stdlib.h.  It merely substitutes the
55968         value directly into stdlib.h.  We may well need to #define it, or
55969         similar symbols, for other modules, but it's nice to also have an
55970         option to not #define it for applications like Emacs that do not
55971         need it.
55973         * lib/stdlib.in.h (__attribute__): Do not #define.
55974         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
55975         be defined only if the _Exit module is also used.
55976         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
55977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
55978         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
55979         platforms.
55980         * modules/_Exit (Files): Add m4/attribute.m4.
55981         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
55982         * m4/attribute.m4: New file.
55984 2011-02-12  Bruno Haible  <bruno@clisp.org>
55986         wcsrtombs: Work around bug on native Windows.
55987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
55988         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
55989         instead of len.
55990         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
55992 2011-02-12  Bruno Haible  <bruno@clisp.org>
55994         mbsrtowcs: Work around bug on native Windows.
55995         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
55996         against mingw bug.
55997         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
55999 2011-02-12  Bruno Haible  <bruno@clisp.org>
56001         Avoid setlocale bugs in tests.
56002         * modules/btowc (Dependencies): Add setlocale.
56003         * modules/c-strcase (Dependencies): Likewise.
56004         * modules/mbmemcasecmp (Dependencies): Likewise.
56005         * modules/mbmemcasecoll (Dependencies): Likewise.
56006         * modules/mbrtowc (Dependencies): Likewise.
56007         * modules/mbscasecmp (Dependencies): Likewise.
56008         * modules/mbscasestr (Dependencies): Likewise.
56009         * modules/mbschr (Dependencies): Likewise.
56010         * modules/mbscspn (Dependencies): Likewise.
56011         * modules/mbsinit (Dependencies): Likewise.
56012         * modules/mbsncasecmp (Dependencies): Likewise.
56013         * modules/mbsnrtowcs (Dependencies): Likewise.
56014         * modules/mbspbrk (Dependencies): Likewise.
56015         * modules/mbspcasecmp (Dependencies): Likewise.
56016         * modules/mbsrchr (Dependencies): Likewise.
56017         * modules/mbsrtowcs (Dependencies): Likewise.
56018         * modules/mbsspn (Dependencies): Likewise.
56019         * modules/mbsstr (Dependencies): Likewise.
56020         * modules/nl_langinfo (Dependencies): Likewise.
56021         * modules/quotearg (Dependencies): Likewise.
56022         * modules/unicase/locale-language (Dependencies): Likewise.
56023         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
56024         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
56025         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
56026         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
56027         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
56028         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
56029         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
56030         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
56031         * modules/vasnprintf-posix (Dependencies): Likewise.
56032         * modules/wcrtomb (Dependencies): Likewise.
56033         * modules/wcsnrtombs (Dependencies): Likewise.
56034         * modules/wcsrtombs (Dependencies): Likewise.
56036 2011-02-12  Bruno Haible  <bruno@clisp.org>
56038         setlocale: Workaround native Windows bug.
56039         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
56040         succeeds but sets LC_CTYPE to "C", report a failure.
56041         * tests/test-setlocale2.sh: New file.
56042         * tests/test-setlocale2.c: New file.
56043         * modules/setlocale-tests (Files): Add the new files.
56044         (Makefile.am): Enable test-setlocale2.sh test.
56045         * doc/posix-functions/setlocale.texi: Mention workaround.
56047 2011-02-11  Bruno Haible  <bruno@clisp.org>
56049         Tests for module 'setlocale'.
56050         * modules/setlocale-tests: New file.
56051         * tests/test-setlocale1.sh: New file.
56052         * tests/test-setlocale1.c: New file.
56054         New module 'setlocale'.
56055         * lib/locale.in.h (setlocale): New declaration.
56056         * lib/setlocale.c: New file, based on
56057         gettext/gettext-runtime/intl/setlocale.c.
56058         * m4/setlocale.m4: New file.
56059         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
56060         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
56061         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
56062         REPLACE_SETLOCALE.
56063         * modules/setlocale: New file.
56064         * tests/test-locale-c++.cc: Test the declaration of setlocale.
56065         * doc/posix-functions/setlocale.texi: Mention the new module.
56067 2011-02-11  Bruno Haible  <bruno@clisp.org>
56069         Prepare for locale dependent tests on mingw.
56070         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
56071         because it has the wrong locale encoding.
56072         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
56073         French_France.1252 instead of "fr".
56074         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
56075         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
56076         because it has the wrong locale encoding.
56077         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
56078         native Windows, try Turkish_Turkey.65001.
56079         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
56080         Chinese_China.54936.
56082         Prepare for locale dependent tests on mingw.
56083         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
56084         differently.
56085         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
56086         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
56087         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56088         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56090 2011-02-11  Eric Blake  <eblake@redhat.com>
56092         strptime: avoid compiler warnings
56093         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
56094         compiler warnings about dead code.
56095         Reported by Daniel P. Berrange.
56097 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
56099         doc: update users.txt
56100         * users.txt: Add rcs.
56102 2011-02-10  John W. Eaton  <jwe@gnu.org>
56104         doc: update users.txt
56105         * users.txt: Add octave.
56107 2011-02-10  Jim Meyering  <meyering@redhat.com>
56109         doc: update users.txt
56110         * users.txt: Add iwhd.
56112 2011-02-09  Bruno Haible  <bruno@clisp.org>
56114         gnulib-tool: Make copyright notice adjustment more robust.
56115         * gnulib-tool (func_import): In sed_transform_main_lib_file,
56116         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
56117         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
56118         License".
56119         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
56121 2011-02-06  Bruno Haible  <bruno@clisp.org>
56123         New module 'towctrans'.
56124         * modules/towctrans: New file.
56125         * lib/wctype.in.h (towctrans): New declaration.
56126         * lib/towctrans.c: New file.
56127         * lib/towctrans-impl.h: New file.
56128         * m4/towctrans.m4: New file.
56129         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
56130         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
56131         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
56132         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
56133         * doc/posix-functions/towctrans.texi: Mention the new module.
56135 2011-02-06  Bruno Haible  <bruno@clisp.org>
56137         New module 'wctrans'.
56138         * modules/wctrans: New file.
56139         * lib/wctype.in.h (wctrans): New declaration.
56140         * lib/wctrans.c: New file.
56141         * lib/wctrans-impl.h: New file.
56142         * m4/wctrans.m4: New file.
56143         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
56144         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
56145         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
56146         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
56147         * doc/posix-functions/wctrans.texi: Mention the new module.
56149 2011-02-06  Bruno Haible  <bruno@clisp.org>
56151         New module 'iswctype'.
56152         * modules/iswctype: New file.
56153         * lib/wctype.in.h (iswctype): New declaration.
56154         * lib/iswctype.c: New file.
56155         * lib/iswctype-impl.h: New file.
56156         * m4/iswctype.m4: New file.
56157         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
56158         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
56159         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
56160         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
56161         * doc/posix-functions/iswctype.texi: Mention the new module and the
56162         HP-UX 11.00 problem.
56164 2011-02-06  Bruno Haible  <bruno@clisp.org>
56166         New module 'wctype'.
56167         * modules/wctype: Change to represent the wctype() substitute.
56168         * lib/wctype.in.h (wctype): New declaration.
56169         * lib/wctype.c: New file.
56170         * lib/wctype-impl.h: New file.
56171         * m4/wctype.m4: New file.
56172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
56173         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
56174         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
56175         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
56176         * doc/posix-functions/wctype.texi: Mention the new module and the
56177         HP-UX 11.00 problem.
56179 2011-02-06  Bruno Haible  <bruno@clisp.org>
56181         wctype-h: Ensure wctype_t and wctrans_t are defined.
56182         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
56183         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56184         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
56185         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
56186         HAVE_WCTRANS_T.
56187         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
56189 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
56191         flock: fix license typo
56193         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
56194         omitted.
56196 2011-02-08  Bruno Haible  <bruno@clisp.org>
56198         Split large sed scripts, for HP-UX sed.
56199         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
56200         to avoid HP-UX limit of 99 commands, in the near future.
56201         * modules/stdlib (Makefile.am): Likewise.
56202         * modules/unistd (Makefile.am): Likewise.
56203         * modules/wchar (Makefile.am): Likewise.
56204         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56205         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
56206         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
56208 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56209             Bruno Haible  <bruno@clisp.org>
56211         stdlib: improve random_r modularization
56212         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
56213         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
56214         you also need the random_r module to get this material right.
56215         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
56216         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
56217         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
56219 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
56221         stdlib: don't depend on stdint
56222         * lib/stdlib.in.h: Don't include <stdint.h> merely because
56223         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
56224         be independent of whether stdint.h is needed.
56225         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
56226         here, instead of ...
56227         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
56228         struct random_data should be using the random_r module, not just
56229         the stdlib module (which wouldn't make sense: what package needs
56230         just struct random_data without also needing random_r?).
56231         * modules/stdlib (Depends-on): Remove stdint.
56233         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
56234         See the thread rooted at
56235         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
56236         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
56237         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
56238         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
56239         __VMS)); previously it was always included (via fcntl--.h).
56240         (getloadavg): Do not use c_strtod.  Instead, approximate it by
56241         hand; this is good enough for load averages.  Also, do not use
56242         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
56243         flags directly if available and don't bother otherwise.  (Packages
56244         that need the extra reliability should use the modules that define
56245         these flags on older platforms that lack them.)
56246         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
56247         fcntl-safer.
56249 2011-02-08  Jim Meyering  <meyering@redhat.com>
56251         di-set.h, ino-map.h: add multiple-inclusion guard
56252         Technically, the guard is required only for ino-map.h, due to its
56253         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
56254         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
56255         * lib/ino-map.h: Likewise.
56257 2011-02-06  Bruno Haible  <bruno@clisp.org>
56259         iswblank: Ensure declaration on glibc systems.
56260         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
56261         * modules/iswblank (Dependencies): Add 'extensions'.
56262         * doc/posix-functions/iswblank.texi: Document the glibc problem.
56264 2011-02-06  Bruno Haible  <bruno@clisp.org>
56266         New module 'iswblank'.
56267         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
56268         * modules/iswblank: New file.
56269         * modules/wctype-h (Files): Remove lib/iswblank.c.
56270         (Makefile.am): Substitute GNULIB_ISWBLANK.
56271         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
56272         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
56273         (gl_WCTYPE_H_DEFAULTS): New macro.
56274         (gl_WCTYPE_H): Require it. Remove iswblank related code.
56275         * modules/iswblank-tests: New file.
56276         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
56277         * tests/test-wctype-h.c (main): Remove iswblank tests.
56278         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
56279         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
56280         of 'wctype-h'.
56281         * NEWS: Mention the change.
56282         * modules/mbchar (Depends-on): Add iswblank.
56284 2011-02-08  Bruno Haible  <bruno@clisp.org>
56286         di-set tests: Refactor.
56287         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
56288         unnecessary includes.
56289         (ASSERT): Remove macro.
56290         (main): Make C90 compliant by avoiding variable declaration after
56291         statement.
56292         * modules/di-set-tests (Files): Add tests/macros.h.
56294 2011-02-08  Bruno Haible  <bruno@clisp.org>
56296         ino-map tests: Refactor.
56297         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
56298         unnecessary includes.
56299         (ASSERT): Remove macro.
56300         (main): Make C90 compliant by avoiding variable declaration after
56301         statement.
56302         * modules/ino-map-tests (Files): Add tests/macros.h.
56304 2011-02-08  Jim Meyering  <meyering@redhat.com>
56306         di-set: add "const" to a cast
56307         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
56308         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
56310 2011-02-06  Bruno Haible  <bruno@clisp.org>
56312         Rename module 'wctype' to 'wctype-h'.
56313         * modules/wctype-h: Renamed from modules/wctype.
56314         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
56315         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
56316         (Files, Depends-on, Makefile.am): Update.
56317         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
56318         (Files, Makefile.am): Update.
56319         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
56320         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
56321         * doc/posix-headers/wctype.texi: Update.
56322         * doc/posix-functions/iswalnum.texi: Update.
56323         * doc/posix-functions/iswalpha.texi: Update.
56324         * doc/posix-functions/iswblank.texi: Update.
56325         * doc/posix-functions/iswcntrl.texi: Update.
56326         * doc/posix-functions/iswdigit.texi: Update.
56327         * doc/posix-functions/iswgraph.texi: Update.
56328         * doc/posix-functions/iswlower.texi: Update.
56329         * doc/posix-functions/iswprint.texi: Update.
56330         * doc/posix-functions/iswpunct.texi: Update.
56331         * doc/posix-functions/iswspace.texi: Update.
56332         * doc/posix-functions/iswupper.texi: Update.
56333         * doc/posix-functions/iswxdigit.texi: Update.
56334         * doc/posix-functions/towlower.texi: Update.
56335         * doc/posix-functions/towupper.texi: Update.
56336         * NEWS: Mention the change.
56337         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
56338         * modules/mbchar (Dependencies): Likewise.
56339         * modules/mbswidth (Dependencies): Likewise.
56340         * modules/quotearg (Dependencies): Likewise.
56341         * modules/regex (Dependencies): Likewise.
56342         * modules/wcscasecmp (Dependencies): Likewise.
56343         * modules/wcsncasecmp (Dependencies): Likewise.
56344         * modules/wcwidth (Dependencies): Likewise.
56346 2011-02-06  Bruno Haible  <bruno@clisp.org>
56348         New module 'wcswidth'.
56349         * modules/wcswidth: New file.
56350         * lib/wchar.in.h (wcswidth): New declaration.
56351         * lib/wcswidth.c: New file.
56352         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
56353         * m4/wcswidth.m4: New file.
56354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
56355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
56356         REPLACE_WCSWIDTH.
56357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
56358         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
56359         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
56360         * doc/posix-functions/wcswidth.texi: Mention the new module.
56362 2011-02-06  Bruno Haible  <bruno@clisp.org>
56364         New module 'wcstok'.
56365         * modules/wcstok: New file.
56366         * lib/wchar.in.h (wcstok): New declaration.
56367         * lib/wcstok.c: New file.
56368         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
56369         * m4/wcstok.m4: New file.
56370         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
56371         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
56372         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
56373         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
56374         * doc/posix-functions/wcstok.texi: Mention the new module.
56376 2011-02-06  Bruno Haible  <bruno@clisp.org>
56378         New module 'wcsstr'.
56379         * modules/wcsstr: New file.
56380         * lib/wchar.in.h (wcsstr): New declaration.
56381         * lib/wcsstr.c: New file.
56382         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
56383         * m4/wcsstr.m4: New file.
56384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
56385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
56386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
56387         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
56388         * doc/posix-functions/wcsstr.texi: Mention the new module.
56390 2011-02-06  Bruno Haible  <bruno@clisp.org>
56392         New module 'wcspbrk'.
56393         * modules/wcspbrk: New file.
56394         * lib/wchar.in.h (wcspbrk): New declaration.
56395         * lib/wcspbrk.c: New file.
56396         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
56397         * m4/wcspbrk.m4: New file.
56398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
56399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
56400         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
56401         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
56402         * doc/posix-functions/wcspbrk.texi: Mention the new module.
56404 2011-02-06  Bruno Haible  <bruno@clisp.org>
56406         New module 'wcsspn'.
56407         * modules/wcsspn: New file.
56408         * lib/wchar.in.h (wcsspn): New declaration.
56409         * lib/wcsspn.c: New file.
56410         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
56411         * m4/wcsspn.m4: New file.
56412         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
56413         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
56414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
56415         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
56416         * doc/posix-functions/wcsspn.texi: Mention the new module.
56418 2011-02-06  Bruno Haible  <bruno@clisp.org>
56420         New module 'wcscspn'.
56421         * modules/wcscspn: New file.
56422         * lib/wchar.in.h (wcscspn): New declaration.
56423         * lib/wcscspn.c: New file.
56424         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
56425         * m4/wcscspn.m4: New file.
56426         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
56427         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
56428         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
56429         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
56430         * doc/posix-functions/wcscspn.texi: Mention the new module.
56432 2011-02-06  Bruno Haible  <bruno@clisp.org>
56434         New module 'wcsrchr'.
56435         * modules/wcsrchr: New file.
56436         * lib/wchar.in.h (wcsrchr): New declaration.
56437         * lib/wcsrchr.c: New file.
56438         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
56439         * m4/wcsrchr.m4: New file.
56440         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
56441         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
56442         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
56443         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
56444         * doc/posix-functions/wcsrchr.texi: Mention the new module.
56446 2011-02-06  Bruno Haible  <bruno@clisp.org>
56448         New module 'wcschr'.
56449         * modules/wcschr: New file.
56450         * lib/wchar.in.h (wcschr): New declaration.
56451         * lib/wcschr.c: New file.
56452         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
56453         * m4/wcschr.m4: New file.
56454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
56455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
56456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
56457         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
56458         * doc/posix-functions/wcschr.texi: Mention the new module.
56460 2011-02-06  Bruno Haible  <bruno@clisp.org>
56462         New module 'wcsdup'.
56463         * modules/wcsdup: New file.
56464         * lib/wchar.in.h (wcsdup): New declaration.
56465         * lib/wcsdup.c: New file.
56466         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
56467         * m4/wcsdup.m4: New file.
56468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
56469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
56470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
56471         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
56472         * doc/posix-functions/wcsdup.texi: Mention the new module.
56474 2011-02-06  Bruno Haible  <bruno@clisp.org>
56476         New module 'wcsxfrm'.
56477         * modules/wcsxfrm: New file.
56478         * lib/wchar.in.h (wcsxfrm): New declaration.
56479         * lib/wcsxfrm.c: New file.
56480         * lib/wcsxfrm-impl.h: New file.
56481         * m4/wcsxfrm.m4: New file.
56482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
56483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
56484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
56485         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
56486         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
56488 2011-02-06  Bruno Haible  <bruno@clisp.org>
56490         New module 'wcscoll'.
56491         * modules/wcscoll: New file.
56492         * lib/wchar.in.h (wcscoll): New declaration.
56493         * lib/wcscoll.c: New file.
56494         * lib/wcscoll-impl.h: New file.
56495         * m4/wcscoll.m4: New file.
56496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
56497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
56498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
56499         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
56500         * doc/posix-functions/wcscoll.texi: Mention the new module.
56502 2011-02-06  Bruno Haible  <bruno@clisp.org>
56504         New module 'wcsncasecmp'.
56505         * modules/wcsncasecmp: New file.
56506         * lib/wchar.in.h (wcsncasecmp): New declaration.
56507         * lib/wcsncasecmp.c: New file.
56508         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
56509         * m4/wcsncasecmp.m4: New file.
56510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
56511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
56512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
56513         HAVE_WCSNCASECMP.
56514         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
56515         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
56517 2011-02-06  Bruno Haible  <bruno@clisp.org>
56519         New module 'wcscasecmp'.
56520         * modules/wcscasecmp: New file.
56521         * lib/wchar.in.h (wcscasecmp): New declaration.
56522         * lib/wcscasecmp.c: New file.
56523         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
56524         * m4/wcscasecmp.m4: New file.
56525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
56526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
56527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
56528         HAVE_WCSCASECMP.
56529         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
56530         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
56532 2011-02-05  Bruno Haible  <bruno@clisp.org>
56534         New module 'wcsncmp'.
56535         * modules/wcsncmp: New file.
56536         * lib/wchar.in.h (wcsncmp): New declaration.
56537         * lib/wcsncmp.c: New file.
56538         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
56539         * m4/wcsncmp.m4: New file.
56540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
56541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
56542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
56543         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
56544         * doc/posix-functions/wcsncmp.texi: Mention the new module.
56546 2011-02-05  Bruno Haible  <bruno@clisp.org>
56548         New module 'wcscmp'.
56549         * modules/wcscmp: New file.
56550         * lib/wchar.in.h (wcscmp): New declaration.
56551         * lib/wcscmp.c: New file.
56552         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
56553         * m4/wcscmp.m4: New file.
56554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
56555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
56556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
56557         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
56558         * doc/posix-functions/wcscmp.texi: Mention the new module.
56560 2011-02-05  Bruno Haible  <bruno@clisp.org>
56562         New module 'wcsncat'.
56563         * modules/wcsncat: New file.
56564         * lib/wchar.in.h (wcsncat): New declaration.
56565         * lib/wcsncat.c: New file.
56566         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
56567         * m4/wcsncat.m4: New file.
56568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
56569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
56570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
56571         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
56572         * doc/posix-functions/wcsncat.texi: Mention the new module.
56574 2011-02-05  Bruno Haible  <bruno@clisp.org>
56576         New module 'wcscat'.
56577         * modules/wcscat: New file.
56578         * lib/wchar.in.h (wcscat): New declaration.
56579         * lib/wcscat.c: New file.
56580         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
56581         * m4/wcscat.m4: New file.
56582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
56583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
56584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
56585         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
56586         * doc/posix-functions/wcscat.texi: Mention the new module.
56588 2011-02-05  Bruno Haible  <bruno@clisp.org>
56590         New module 'wcpncpy'.
56591         * modules/wcpncpy: New file.
56592         * lib/wchar.in.h (wcpncpy): New declaration.
56593         * lib/wcpncpy.c: New file.
56594         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
56595         * m4/wcpncpy.m4: New file.
56596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
56597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
56598         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
56599         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
56600         * doc/posix-functions/wcpncpy.texi: Mention the new module.
56602 2011-02-05  Bruno Haible  <bruno@clisp.org>
56604         New module 'wcsncpy'.
56605         * modules/wcsncpy: New file.
56606         * lib/wchar.in.h (wcsncpy): New declaration.
56607         * lib/wcsncpy.c: New file.
56608         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
56609         * m4/wcsncpy.m4: New file.
56610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
56611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
56612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
56613         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
56614         * doc/posix-functions/wcsncpy.texi: Mention the new module.
56616 2011-02-05  Bruno Haible  <bruno@clisp.org>
56618         New module 'wcpcpy'.
56619         * modules/wcpcpy: New file.
56620         * lib/wchar.in.h (wcpcpy): New declaration.
56621         * lib/wcpcpy.c: New file.
56622         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
56623         * m4/wcpcpy.m4: New file.
56624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
56625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
56626         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
56627         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
56628         * doc/posix-functions/wcpcpy.texi: Mention the new module.
56630 2011-02-05  Bruno Haible  <bruno@clisp.org>
56632         New module 'wcscpy'.
56633         * modules/wcscpy: New file.
56634         * lib/wchar.in.h (wcscpy): New declaration.
56635         * lib/wcscpy.c: New file.
56636         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
56637         * m4/wcscpy.m4: New file.
56638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
56639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
56640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
56641         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
56642         * doc/posix-functions/wcscpy.texi: Mention the new module.
56644 2011-02-05  Bruno Haible  <bruno@clisp.org>
56646         New module 'wcsnlen'.
56647         * modules/wcsnlen: New file.
56648         * lib/wchar.in.h (wcsnlen): New declaration.
56649         * lib/wcsnlen.c: New file.
56650         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
56651         * m4/wcsnlen.m4: New file.
56652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
56653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
56654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
56655         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
56656         * doc/posix-functions/wcsnlen.texi: Mention the new module.
56658 2011-02-05  Bruno Haible  <bruno@clisp.org>
56660         New module 'wcslen'.
56661         * modules/wcslen: New file.
56662         * lib/wchar.in.h (wcslen): New declaration.
56663         * lib/wcslen.c: New file.
56664         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
56665         * m4/wcslen.m4: New file.
56666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
56667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
56668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
56669         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
56670         * doc/posix-functions/wcslen.texi: Mention the new module.
56672 2011-02-05  Bruno Haible  <bruno@clisp.org>
56674         New module 'wmemset'.
56675         * modules/wmemset: New file.
56676         * lib/wchar.in.h (wmemset): New declaration.
56677         * lib/wmemset.c: New file.
56678         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
56679         * m4/wmemset.m4: New file.
56680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
56681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
56682         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
56683         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
56684         * doc/posix-functions/wmemset.texi: Mention the new module.
56686 2011-02-05  Bruno Haible  <bruno@clisp.org>
56688         New module 'wmemmove'.
56689         * modules/wmemmove: New file.
56690         * lib/wchar.in.h (wmemmove): New declaration.
56691         * lib/wmemmove.c: New file.
56692         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
56693         * m4/wmemmove.m4: New file.
56694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
56695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
56696         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
56697         HAVE_WMEMMOVE.
56698         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
56699         * doc/posix-functions/wmemmove.texi: Mention the new module.
56701 2011-02-05  Bruno Haible  <bruno@clisp.org>
56703         New module 'wmemcpy'.
56704         * modules/wmemcpy: New file.
56705         * lib/wchar.in.h (wmemcpy): New declaration.
56706         * lib/wmemcpy.c: New file.
56707         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
56708         * m4/wmemcpy.m4: New file.
56709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
56710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
56711         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
56712         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
56713         * doc/posix-functions/wmemcpy.texi: Mention the new module.
56715 2011-02-05  Bruno Haible  <bruno@clisp.org>
56717         New module 'wmemcmp'.
56718         * modules/wmemcmp: New file.
56719         * lib/wchar.in.h (wmemcmp): New declaration.
56720         * lib/wmemcmp.c: New file.
56721         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
56722         * m4/wmemcmp.m4: New file.
56723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
56724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
56725         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
56726         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
56727         * doc/posix-functions/wmemcmp.texi: Mention the new module.
56729 2011-02-07  Jim Meyering  <meyering@redhat.com>
56731         di-set, ino-map: new modules, from coreutils
56732         * lib/di-set.c: New file.
56733         * lib/di-set.h: Likewise.
56734         * lib/ino-map.c: Likewise.
56735         * lib/ino-map.h: Likewise.
56736         * modules/di-set: Likewise.
56737         * modules/di-set-tests: Likewise.
56738         * modules/ino-map: Likewise.
56739         * modules/ino-map-tests: Likewise.
56740         * tests/test-di-set.c: Likewise.
56741         * tests/test-ino-map.c: Likewise.
56743 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
56745         getloadavg: merge minor changes from Emacs
56747         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
56748         (getloadavg): Use memset, not bzero.
56750         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
56751         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
56752         clash (bug#86).
56754 2010-11-14  Bruno Haible  <bruno@clisp.org>
56756         Allow multiple gnulib generated replacements to coexist.
56757         * lib/getopt.in.h (struct option): Avoid identical redefinition.
56758         * lib/inttypes.in.h (imaxdiv_t): Likewise.
56759         * lib/langinfo.in.h (nl_item): Likewise.
56760         * lib/math.in.h (_NaN, NAN): Likewise.
56761         * lib/netdb.in.h (struct addrinfo): Likewise.
56762         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
56763         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
56764         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
56765         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
56766         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
56767         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
56768         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
56769         pthread_mutexattr_init, pthread_mutexattr_settype,
56770         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
56771         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
56772         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
56773         pthread_spin_trylock, pthread_spin_unlock): Likewise.
56774         * lib/sched.in.h (struct sched_param): Likewise.
56775         * lib/se-selinux.in.h (security_class_t, security_context_t,
56776         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
56777         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
56778         lsetfilecon, fsetfilecon, security_check_context,
56779         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
56780         Likewise.
56781         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
56782         Likewise.
56783         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
56784         _gl_function_taking_int_returning_void_t, union sigval,
56785         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
56786         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
56787         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
56788         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
56789         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
56790         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
56791         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
56792         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
56793         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
56794         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
56795         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
56796         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
56797         socklen_t, rpl_fd_isset): Likewise.
56798         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
56799         * lib/sys_time.in.h (struct timeval): Likewise.
56800         * lib/sys_times.in.h (struct tms): Likewise.
56801         * lib/sys_utsname.in.h (struct utsname):
56802         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
56803         * lib/unistd.in.h (getpagesize): Likewise.
56804         * lib/wchar.in.h (mbstate_t): Likewise.
56805         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56806         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
56807         towlower, towupper): Likewise.
56808         Reported by Sam Steingold <sds@gnu.org>.
56810 2011-02-05  Eric Blake  <eblake@redhat.com>
56812         unsetenv: work around Haiku issues
56813         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
56814         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
56816 2010-12-30  Bruce Korb  <bkorb@gnu.org>
56818         libposix: avoid calling error() within libposix
56819         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
56820         is defined.
56822 2011-02-05  Eric Blake  <eblake@redhat.com>
56824         strerror_r-posix: port to cygwin
56825         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
56826         implementation.
56827         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
56828         * tests/test-strerror_r.c (main): Fix test.
56829         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
56830         issue.
56832 2011-02-05  Bruno Haible  <bruno@clisp.org>
56834         New module 'wmemchr'.
56835         * modules/wmemchr: New file.
56836         * lib/wchar.in.h (wmemchr): New declaration.
56837         * lib/wmemchr.c: New file.
56838         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
56839         * m4/wmemchr.m4: New file.
56840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
56841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
56842         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
56843         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
56844         * doc/posix-functions/wmemchr.texi: Mention the new module.
56846 2011-02-04  Eric Blake  <eblake@redhat.com>
56848         fdopendir: detect FreeBSD bug
56849         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
56850         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
56852 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
56854         stdbool: do not define HAVE_STDBOOL_H
56855         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
56856         AC_HEADER_STDBOOL.  All uses changed.  Do not define
56857         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
56858         imported from the latest Autoconf git.  It was motivated by Emacs,
56859         which uses gnulib but does not need HAVE_STDBOOL_H.
56861 2011-02-04  Bruno Haible  <bruno@clisp.org>
56863         wcsnrtombs: Prepare for new module wwcsnrtombs.
56864         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
56865         * lib/wcsnrtombs.c: Include it.
56866         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
56868         wcsrtombs: Prepare for new module wwcsrtombs.
56869         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
56870         * lib/wcsrtombs.c: Include it.
56871         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
56873         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
56874         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
56875         * lib/mbsnrtowcs.c: Include it.
56876         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
56878         mbsrtowcs: Prepare for new module mbsrtowwcs.
56879         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
56880         * lib/mbsrtowcs.c: Include it.
56881         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
56883 2011-02-04  Bruno Haible  <bruno@clisp.org>
56885         vasnprintf: Reduce use of malloc for small format strings.
56886         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
56887         (arguments): Add room for the first 7 arguments.
56888         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
56889         (char_directives, u8_directives, u16_directives, u32_directives): Add
56890         room for the first 7 directives.
56891         * lib/printf-parse.c: Include <string.h>.
56892         (PRINTF_PARSE): Change memory handling code so that it uses the first
56893         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
56894         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
56895         Reported by Pádraig Brady <P@draigbrady.com>.
56897 2011-01-31  Eric Blake  <eblake@redhat.com>
56899         dup2: work around Haiku bug
56900         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
56901         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
56902         * doc/posix-functions/dup2.texi (dup2): Document the bug.
56903         * tests/test-dup2.c (main): Enhance test.
56905 2011-01-31  Simon Josefsson  <simon@josefsson.org>
56907         doc: off_t is not available in eglibc 2.11.2 stdio.h.
56908         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
56909         declared by eglibc 2.11.2.
56910         * lib/stdio.in.h: Likewise.
56912 2011-01-31  Eric Blake  <eblake@redhat.com>
56914         ignore-value: add missing test dependency
56915         * tests/test-ignore-value.c: Revert previous change; stdio.h
56916         provides off_t.
56917         * modules/ignore-value-tests (Depends-on): Add missing dependency.
56919 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
56921         mktime: clarify long_int width checking
56922         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
56923         the top level, to make it clearer that the assumption about
56924         long_int width is being checked.  See
56925         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
56927 2011-01-30  Simon Josefsson  <simon@josefsson.org>
56929         ignore-value: Fix self-test.
56930         * tests/test-ignore-value.c: Include sys/types.h for off_t.
56932 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
56934         TYPE_MAXIMUM: avoid theoretically undefined behavior
56935         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
56936         negative number, which the C Standard says has undefined behavior.
56937         In practice this is not a problem, but might as well do it by the book.
56938         Reported by Rich Felker and Eric Blake; see
56939         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
56940         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
56941         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
56942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
56943         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
56944         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56945         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
56947         mktime: #undef mktime before #defining it
56948         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
56950         mktime: systematically normalize tm_isdst comparisons
56951         * lib/mktime.c (isdst_differ): New function.
56952         (__mktime_internal): Use it systematically for all isdst comparisons.
56953         This completes the fix for libc BZ #6723, and removes the need for
56954         normalizing tm_isdst.  See
56955         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
56956         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
56958         mktime: fix some integer overflow issues and sidestep the rest
56960         This was prompted by a bug report by Benjamin Lindner for MinGW
56961         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
56962         His bug is due to signed integer overflow (0 - INT_MIN), and I
56963         I scanned through mktime.c looking for other integer overflow
56964         problems, fixing all the bugs I found.
56966         Although the C Standard says the resulting code is still not safe
56967         in the presence of integer overflow, in practice it should be good
56968         enough for all real-world two's-complement implementations, except
56969         for debugging environments that deliberately trap on integer
56970         overflow (e.g., gcc -ftrapv).
56972         * lib/mktime.c (WRAPV): New macro.
56973         (SHR): Also check that long_int and time_t shift right in the
56974         usual way, before using the fast-but-unportable method.
56975         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
56976         used.  The code already assumed two's complement, so there's
56977         no need to test for alternatives.  All uses removed.
56978         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
56979         the C standard.  Problem reported by Rich Felker in
56980         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
56981         (twos_complement_arithmetic): Also check long_int and time_t.
56982         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
56983         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
56984         (__mktime_internal): Avoid integer overflow with unary subtraction
56985         in two instances where -1 - X is an adequate replacement for -X,
56986         since the calculations are approximate.
56988 2011-01-29  Eric Blake  <eblake@redhat.com>
56990         mktime: avoid infinite loop
56991         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
56992         type; behavior is still undefined but portable to all known targets.
56993         Reported by Rich Felker.
56995 2011-01-29  Simon Josefsson  <simon@josefsson.org>
56997         rename, unlink, same-inode: Relicense.
56998         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
56999         * modules/unlink (License): Likewise.
57000         * modules/same-inode (License): Likewise.
57002 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
57004         mktime: avoid problems on NetBSD 5 / i386
57005         * lib/mktime.c (long_int): New type.  This works around a problem
57006         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
57007         but time_t is 64 bits, and where I expect the existing code is
57008         wrong in some cases.
57009         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
57010         (ydhms_diff): Bring back the compile-time check for wide-enough
57011         year and yday.
57013         mktime: fix misspelling in comment
57014         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
57015         This merges all recent glibc changes of importance.
57017 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57019         move-if-change: cope with concurrent mv of identical file.
57020         * build-aux/move-if-change (CMPPROG): Accept environment
57021         variable as an override for `cmp'.
57022         (usage): Document CMPPROG.
57023         Adjust comparison to drop stdout.  Cope with failure of mv if
57024         the target file exists and is identical to the source, for
57025         parallel builds.
57026         Report from H.J. Lu against binutils in PR binutils/12283.
57028 2011-01-28  Bruce Korb  <bkorb@gnu.org>
57030         * users.txt: Mention sharutils.
57032 2011-01-28  Simon Josefsson  <simon@josefsson.org>
57034         * users.txt: Mention OATH Toolkit.
57036 2011-01-27  Bruno Haible  <bruno@clisp.org>
57038         Prepare for supporting FreeBSD 10.
57039         * build-aux/config.libpath: Remove handling of freebsd1*.
57041 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
57043         Prepare for supporting FreeBSD 10.
57044         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
57045         match FreeBSD 10.0.
57047 2011-01-27  Bruno Haible  <bruno@clisp.org>
57049         vma-iter, get-rusage-as: Add OpenBSD support.
57050         * modules/vma-iter (configure.ac): Test for mquery.
57051         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
57052         * lib/vma-iter.c: Include <sys/mman.h>.
57053         (vma_iterate): Add an implementation based on mquery().
57054         * lib/resource-ext.h (get_rusage_as): Update comments.
57055         * lib/get-rusage-as.c: Likewise.
57056         * lib/get-rusage-data.c: Likewise.
57058 2011-01-26  Karl Berry  <karl@gnu.org>
57060         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
57061         variables to make it easier to override the makeinfo program used.
57063 2011-01-26  Eric Blake  <eblake@redhat.com>
57065         fcntl: work around Haiku F_DUPFD bugs
57066         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
57067         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
57068         cloexec bit on duplication.
57069         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
57071 2011-01-26  Bruno Haible  <bruno@clisp.org>
57073         Enable memory leak tests on AIX.
57074         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
57075         * tests/test-fprintf-posix3.c (main): Likewise.
57077 2011-01-26  Bruno Haible  <bruno@clisp.org>
57079         Tests for module 'get-rusage-data'.
57080         * modules/get-rusage-data-tests: New file.
57081         * tests/test-get-rusage-data.c: New file.
57083         New module 'get-rusage-data'.
57084         * lib/resource-ext.h (get_rusage_data): New declaration.
57085         * lib/get-rusage-data.c: New file.
57086         * modules/get-rusage-data: New file.
57088 2011-01-25  Bruno Haible  <bruno@clisp.org>
57090         get-rusage-as: Allow for easier testing.
57091         * lib/resource-ext.h (get_rusage_as): Add comment.
57092         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
57093         (main): New function for interactive testing.
57095 2011-01-25  Bruno Haible  <bruno@clisp.org>
57097         vma-iter: Treat Haiku like BeOS.
57098         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
57099         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
57101 2011-01-25  Eric Blake  <eblake@redhat.com>
57103         c-stack: fix regression on cygwin when libsigsegv is present
57104         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
57106 2011-01-24  Bruno Haible  <bruno@clisp.org>
57108         vma-iter: Avoid empty intervals.
57109         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
57110         on an empty interval.
57112 2011-01-24  Jim Meyering  <meyering@redhat.com>
57114         u64: remove unnecessary #include
57115         * lib/u64.h: Don't include <stddef.h>.  It was not used.
57117 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
57119         Allow the user to avoid the HAVE_RAW_DECL_* macros.
57120         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
57122 2011-01-23  Bruno Haible  <bruno@clisp.org>
57124         New module 'vma-iter'.
57125         * lib/vma-iter.h: New file.
57126         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
57127         * modules/vma-iter: New file.
57128         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
57129         for get_rusage_as_via_iterator.
57130         (vma_iterate_callback): New function.
57131         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
57132         * modules/get-rusage-as (Depends-on): Add vma-iter.
57134 2011-01-23  Bruno Haible  <bruno@clisp.org>
57136         uninorm: Tweak includes.
57137         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
57138         Reported by Jim Meyering.
57140 2011-01-23  Bruno Haible  <bruno@clisp.org>
57142         get-rusage-as: Improve on NetBSD.
57143         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
57144         /proc, like on FreeBSD.
57146 2011-01-23  Jim Meyering  <meyering@redhat.com>
57148         xreadlink.h: remove unnecessary #include
57149         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
57151         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
57152         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
57154 2011-01-23  Bruno Haible  <bruno@clisp.org>
57156         get-rusage-as: Fix bug.
57157         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
57158         original limit when aborting the first loop.
57160 2011-01-23  Bruno Haible  <bruno@clisp.org>
57162         wctype: Ensure valid C syntax.
57163         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
57164         unconditionally, instead of gl_NEXT_HEADERS conditionally.
57166 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
57168         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
57169         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
57170         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
57171         as they are needed only for configure's test case.
57172         This removes two unnecessary symbols from config.h.
57174         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
57175         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
57176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
57177         AC_CHECK_HEADERS_ONCE on a header that we also invoke
57178         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
57179         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
57180         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
57181         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
57182         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57183         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57184         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
57185         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57186         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57188         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
57189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57190         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
57191         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
57193 2011-01-21  Eric Blake  <eblake@redhat.com>
57195         maintainer-makefile: work with older git for submodule check
57196         * top/maint.mk (public-submodule-commit): Rewrite to avoid
57197         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
57198         Reported by Matthias Bolte.
57200         bootstrap: minor portability fixes
57201         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
57202         (usage): Omit leading capital and trailing . on help phrases, per
57203         GNU Coding Standards.
57204         (check_versions, top level): Prefix messages with script name.
57206 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
57208         bootstrap: support --no-git option
57209         * build-aux/bootstrap: Add --no-git option, to be used when
57210         --gnulib-srcdir points to the exact desired checkout.
57212 2011-01-21  Eric Blake  <eblake@redhat.com>
57214         strerror_r-posix: work with glibc 2.13
57215         * lib/strerror_r.c (strerror_r): Fix return type.
57217 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57218             Bruno Haible  <bruno@clisp.org>
57220         uN_strstr: New unit tests.
57221         * modules/unistr/u8-strstr-tests: New file.
57222         * modules/unistr/u16-strstr-tests: New file.
57223         * modules/unistr/u32-strstr-tests: New file.
57224         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
57225         * tests/unistr/test-u8-strstr.c: New file.
57226         * tests/unistr/test-u16-strstr.c: New file.
57227         * tests/unistr/test-u32-strstr.c: New file.
57229 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57230             Bruno Haible  <bruno@clisp.org>
57232         Make uN_strstr functions O(n) worst-case.
57233         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
57234         16-bit and 32-bit unit cases, use the unibyte algorithm from
57235         lib/mbsstr.c.
57236         * lib/unistr/u8-strstr.c: Include <string.h>.
57237         (UNIT_IS_UINT8_T): New macro.
57238         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
57239         (U_STRLEN, U_STRNLEN): New macros.
57240         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
57241         (U_STRLEN, U_STRNLEN): New macros.
57242         * modules/unistr/u8-strstr (Depends-on): Add strstr.
57243         (configure.ac): Update required libunistring version.
57244         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
57245         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
57246         malloca.
57247         (configure.ac): Update required libunistring version.
57248         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
57249         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
57250         malloca.
57251         (configure.ac): Update required libunistring version.
57253 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57254             Bruno Haible  <bruno@clisp.org>
57256         Prepare for faster uN_strstr functions.
57257         * lib/str-kmp.h: Support definable UNITs.
57258         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
57259         needle_len argument.
57260         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
57261         * lib/mbscasestr.c (mbscasestr): Likewise.
57263 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57265         malloca-tests: make faster by unsetting MALLOC_PERTURB_
57266         * tests/test-malloca.c (main): Unset the environment variable
57267         to greatly speed up the test.
57268         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
57269         * modules/malloca-tests: Depend on unsetenv.
57271 2011-01-21  Pádraig Brady  <P@draigBrady.com>
57273         ignore-value: remove stdint dependency
57274         * lib/ignore-value.h: Remove <stdint.h>
57275         * modules/ignore-value: Remove stdint dependency.
57277 2011-01-21  Jim Meyering  <meyering@redhat.com>
57279         maint.mk: adjust variable name to be consistent with other gl_ vars
57280         * top/maint.mk (gl_public_submodule_commit): Rename the variable
57281         to be lower case.
57283 2011-01-20  Jim Meyering  <meyering@redhat.com>
57285         maint.mk: make "check" depend on public-submodule-commit by default
57286         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
57288 2011-01-20  Bruno Haible  <bruno@clisp.org>
57290         mbfile, mbiter: Complete change from 2008-12-21.
57291         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
57292         * m4/mbiter.m4 (gl_MBITER): Likewise.
57294 2011-01-20  Jim Meyering  <meyering@redhat.com>
57296         init.sh: insert space between each function name and "()"
57297         * tests/init.sh: Make it a little easier to see that a function's
57298         name is "warn_", and not "warn" when looking at the first part of
57299         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
57301 2011-01-20  Jim Meyering  <meyering@redhat.com>
57303         mountlist: clean up code formatting
57304         * lib/mountlist.c (read_file_system_list): Split a long line,
57305         correct bracing style, use NULL in place of "(struct statfs *)0",
57306         don't parenthesize return value, add spaces around "=" and after
57307         ";-in-for-stmt".
57309 2011-01-14  Markus Duft  <mduft@gentoo.org>
57311         mountlist: add support for Interix
57312         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
57313         Apply statvfs to all entries of /dev/fs.
57314         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
57315         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
57317 2011-01-20  Jim Meyering  <meyering@redhat.com>
57319         maint.mk: improve the public-submodule-commit rule
57320         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
57321         to suppress printing of its commands... unless V=1.
57322         Add git submodule's --quiet option to suppress printing of e.g.,
57323         "Entering gnulib" output.
57324         "cd" into $(srcdir) before running git submodule.
57326 2011-01-20  Bruno Haible  <bruno@clisp.org>
57328         include_next: Fix bug introduced on 2011-01-18.
57329         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
57330         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
57331         ac_cv_header_... variable if the second argument is not 'check'.
57332         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
57333         gl_NEXT_HEADERS_INTERNAL.
57335 2011-01-20  Bruno Haible  <bruno@clisp.org>
57337         Allow the user to avoid the GNULIB_TEST_* macros.
57338         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
57339         Suggested by Paul Eggert.
57341 2011-01-14  Jim Meyering  <meyering@redhat.com>
57343         bootstrap: avoid failure when there is no .gitmodules file
57344         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
57345         has been assigned to, even when its value is the empty string.
57346         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
57347         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
57348         Reported by John W. Eaton <jwe@gnu.org>.
57350 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
57352         assume <ctype.h>, ..., <time.h> exist
57353         For years gnulib has been assuming the existence of the headers
57354         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
57355         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
57356         them, since they don't appear to be needed.
57357         * README (Portability guidelines): Document this.
57358         * lib/flock.c: Assume <fcntl.h> exists.
57359         * lib/regex_internal.h: Assume <locale.h> exists.
57360         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
57361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
57362         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
57363         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
57364         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
57365         * m4/regex.m4 (gl_REGEX): Likewise.
57366         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
57367         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
57368         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
57369         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
57370         * tests/test-argp.c: Likewise.
57371         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
57373         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
57374         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
57375         AA_APPLE_UNIVERSAL_BUILD.  See
57376         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
57377         * NEWS: Document this.
57379 2011-01-19  Eric Blake  <eblake@redhat.com>
57381         c-stack: assume stack overflow if SA_SIGINFO unsupported
57382         * lib/c-stack.c (SIGACTION_WORKS): Rename...
57383         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
57384         sigaction will work.
57385         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
57386         behavior match Linux.
57387         * tests/test-c-stack.c (main): Prefer NULL for pointers.
57389         stdbool-tests: accommodate Haiku
57390         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
57392         binary-io: fix O_TEXT on Haiku
57393         * modules/binary-io (Depends-on): Add fcntl-h.
57394         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
57395         than blindly undefining O_TEXT.
57396         Reported by Scott McCreary.
57398 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57400         include_next: do not check for standard headers like stddef.h
57402         I found this problem when modifying Emacs to use gnulib.
57403         I noticed that it added HAVE_STDDEF_H to config.h, even though
57404         gnulib always assumes <stddef.h> exists as per README and this
57405         symbol is unnecessary.
57406         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
57407         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
57408         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
57409         faster for headers like stddef.h that are known to exist.
57410         (gl_CHECK_NEXT_HEADERS): Use it.
57411         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
57412         rather than gl_CHECK_NEXT_HEADERS.
57413         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
57414         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
57416 2011-01-18  Eric Blake  <eblake@redhat.com>
57418         ansi-c++-opt: skip C++ dependency style if C++ is unused
57419         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
57420         tests when we know C++ compilation is not desired.
57421         Reported by Scott McCreary.
57423 2011-01-18  Bruno Haible  <bruno@clisp.org>
57425         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
57426         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
57427         (main): Perform test also when getrlimit and setrlimit don't exist or
57428         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
57429         limiting the address space size using setrlimit, compare the address
57430         space size before and after the test.
57431         * tests/test-dprintf-posix2.c: Likewise.
57432         * tests/test-fprintf-posix3.sh: Update skip messages.
57433         * tests/test-dprintf-posix2.sh: Likewise.
57434         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
57435         * modules/dprintf-posix-tests (Depends-on): Likewise.
57436         Reported by Bruce Korb <bkorb@gnu.org> and
57437         Gary V. Vaughan <gary@gnu.org>.
57439 2011-01-18  Bruno Haible  <bruno@clisp.org>
57441         get-rusage-as: Improvement for Cygwin.
57442         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
57443         areas that are merely reserved.
57445 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
57447         strftime: remove dependencies on multibyte modules
57449         strftime depended on mbrlen, mbsinit, and wchar, but these modules
57450         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
57451         only if __osf__ is defined, and I suspect OSF doesn't need these
57452         other modules.  If my guess is wrong, we'll need to come up with a
57453         variant of strftime that doesn't need the multibyte modules.
57455         I discovered this problem when attempting modify Emacs to use the
57456         strftime module.  With the previous gnulib, this caused Emacs to
57457         need 31 new files, ranging from lib/config.charset to
57458         m4/wint_t.m4.  This was overkill and I expect would be offputting
57459         to the Emacs maintainers.  After this change, only 6 new files are
57460         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
57461         stdbool.m4, and tm_gmtoff.m4.
57463         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
57464         Suggested by Bruno Haible in
57465         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
57466         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
57467         and do not check for wchar.h.
57468         * modules/strftime (Files): Remove m4/mbstate_t.m4.
57469         (Depends-on): Remove mbrlen, mbsinit, wchar.
57471 2011-01-18  Bruno Haible  <bruno@clisp.org>
57473         Tests for module 'get-rusage-as'.
57474         * modules/get-rusage-as-tests: New file.
57475         * tests/test-get-rusage-as.c: New file.
57477         New module 'get-rusage-as'.
57478         * modules/get-rusage-as: New file.
57479         * lib/resource-ext.h: New file.
57480         * lib/get-rusage-as.c: New file.
57482 2011-01-17  Eric Blake  <eblake@redhat.com>
57484         sigaction: relax license from LGPLv3+ to LGPLv2+
57485         * modules/sigaction (License): Relax to LGPLv2+.
57487 2011-01-14  Bruno Haible  <bruno@clisp.org>
57489         filemode: Make function declarations usable in C++ mode.
57490         * lib/filemode.h: Enclose function declarations in extern "C" block.
57491         Reported by John W. Eaton <jwe@gnu.org>.
57493 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
57495         save-cwd: no longer include "xgetcwd.h"
57496         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
57497         This avoids a compilation failure in projects that use save-cwd
57498         without also using the xgetcwd module.
57500 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57502         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
57503         This is so that a program like Emacs, which needs only dtoastr,
57504         does not have to bother with distributing and compiling ftoastr
57505         and ldtoastr.
57506         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
57507         * modules/dtoastr, modules/ldtoastr: New files.
57508         * modules/ftoastr: Now works just for 'float'.
57509         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
57510         (Makefile.am): Remove ftoastr.h (not needed and no effect),
57511         dtoastr.c, ldtoastr.c.
57513 2011-01-11  Jim Meyering  <meyering@redhat.com>
57515         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
57516         There is no need to work around the lack of the fchdir function,
57517         since gnulib can now provide a replacement when required.
57518         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
57519         * modules/save-cwd (Depends-on): Add fchdir.
57521 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
57523         openat, save-cwd: avoid xmalloc
57525         This removes a direct (but undocumented) dependency of openat on
57526         xalloc, along with an indirect dependency via save-cwd.  It also
57527         removes a dependency of save-cwd on xgetcwd, and thereby
57528         indirectly on xalloc.  This change causes the openat substitute
57529         to fall back on save_cwd when memory is tight, and for save_cwd to
57530         fail instead of dying when memory is tight, but that's good enough.
57531         Problem and initial idea for fix reported by Bastien Roucaries in
57532         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
57534         * lib/openat-proc.c: Include stdlib.h (for malloc), not
57535         xalloc.h (for xmalloc).
57536         (openat_proc_name): Use malloc, not xmalloc.
57537         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
57538         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
57540         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
57541         This avoids heap allocation for file names whose lengths are in
57542         the range 512..1023, with the upper bound increasing to at most
57543         4031 depending on the platform's PATH_MAX.  (We do not want
57544         pathmax.h here as it might supply a non-constant PATH_MAX.)
57545         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
57546         Perhaps they should be moved to malloca.h?
57547         (OPENAT_BUFFER_SIZE): Use them.
57549 2011-01-10  Bruno Haible  <bruno@clisp.org>
57551         doc: Update users.txt.
57552         * users.txt: Add recutils.
57554 2011-01-09  Karl Berry  <karl@gnu.org>
57556         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
57558         * doc/configmake.texi: New file.
57559         * doc/gnulib.texi: Include it.
57560         * modules/configmake: Move documentation from here.
57562 2011-01-09  Bruno Haible  <bruno@clisp.org>
57564         Update to Unicode 6.0.0.
57565         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
57566         (get_lbp): Update for Unicode 6.0.0.
57567         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
57568         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
57569         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
57570         U+11001, U+11038..U+11046. Remove U+06DE.
57571         (uc_width): Fix bounds of planes.
57572         * tests/uniwidth/test-uc_width2.sh: Same updates as in
57573         lib/uniwidth/width.c.
57574         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
57575         trailing whitespace removed.
57576         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
57577         without comments, but with the original copyright notice.
57578         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
57579         * lib/unicase/ignorable.h: Likewise.
57580         * lib/unicase/tocasefold.h: Likewise.
57581         * lib/unicase/tolower.h: Likewise.
57582         * lib/unicase/totitle.h: Likewise.
57583         * lib/unicase/toupper.h: Likewise.
57584         * lib/unictype/bidi_of.h: Likewise.
57585         * lib/unictype/blocks.h: Likewise.
57586         * lib/unictype/categ_C.h: Likewise.
57587         * lib/unictype/categ_Cn.h: Likewise.
57588         * lib/unictype/categ_L.h: Likewise.
57589         * lib/unictype/categ_Ll.h: Likewise.
57590         * lib/unictype/categ_Lm.h: Likewise.
57591         * lib/unictype/categ_Lo.h: Likewise.
57592         * lib/unictype/categ_Lu.h: Likewise.
57593         * lib/unictype/categ_M.h: Likewise.
57594         * lib/unictype/categ_Mc.h: Likewise.
57595         * lib/unictype/categ_Me.h: Likewise.
57596         * lib/unictype/categ_Mn.h: Likewise.
57597         * lib/unictype/categ_N.h: Likewise.
57598         * lib/unictype/categ_Nd.h: Likewise.
57599         * lib/unictype/categ_No.h: Likewise.
57600         * lib/unictype/categ_P.h: Likewise.
57601         * lib/unictype/categ_Po.h: Likewise.
57602         * lib/unictype/categ_S.h: Likewise.
57603         * lib/unictype/categ_Sc.h: Likewise.
57604         * lib/unictype/categ_Sk.h: Likewise.
57605         * lib/unictype/categ_Sm.h: Likewise.
57606         * lib/unictype/categ_So.h: Likewise.
57607         * lib/unictype/categ_of.h: Likewise.
57608         * lib/unictype/combining.h: Likewise.
57609         * lib/unictype/ctype_alnum.h: Likewise.
57610         * lib/unictype/ctype_alpha.h: Likewise.
57611         * lib/unictype/ctype_graph.h: Likewise.
57612         * lib/unictype/ctype_lower.h: Likewise.
57613         * lib/unictype/ctype_print.h: Likewise.
57614         * lib/unictype/ctype_punct.h: Likewise.
57615         * lib/unictype/ctype_upper.h: Likewise.
57616         * lib/unictype/decdigit.h: Likewise.
57617         * lib/unictype/digit.h: Likewise.
57618         * lib/unictype/numeric.h: Likewise.
57619         * lib/unictype/pr_alphabetic.h: Likewise.
57620         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
57621         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
57622         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
57623         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
57624         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
57625         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
57626         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
57627         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
57628         * lib/unictype/pr_case_ignorable.h: Likewise.
57629         * lib/unictype/pr_cased.h: Likewise.
57630         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
57631         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
57632         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
57633         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
57634         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
57635         * lib/unictype/pr_combining.h: Likewise.
57636         * lib/unictype/pr_composite.h: Likewise.
57637         * lib/unictype/pr_currency_symbol.h: Likewise.
57638         * lib/unictype/pr_decimal_digit.h: Likewise.
57639         * lib/unictype/pr_deprecated.h: Likewise.
57640         * lib/unictype/pr_format_control.h: Likewise.
57641         * lib/unictype/pr_grapheme_base.h: Likewise.
57642         * lib/unictype/pr_grapheme_extend.h: Likewise.
57643         * lib/unictype/pr_grapheme_link.h: Likewise.
57644         * lib/unictype/pr_id_continue.h: Likewise.
57645         * lib/unictype/pr_id_start.h: Likewise.
57646         * lib/unictype/pr_ideographic.h: Likewise.
57647         * lib/unictype/pr_lowercase.h: Likewise.
57648         * lib/unictype/pr_math.h: Likewise.
57649         * lib/unictype/pr_numeric.h: Likewise.
57650         * lib/unictype/pr_other_alphabetic.h: Likewise.
57651         * lib/unictype/pr_other_id_continue.h: Likewise.
57652         * lib/unictype/pr_other_math.h: Likewise.
57653         * lib/unictype/pr_punctuation.h: Likewise.
57654         * lib/unictype/pr_sentence_terminal.h: Likewise.
57655         * lib/unictype/pr_terminal_punctuation.h: Likewise.
57656         * lib/unictype/pr_unassigned_code_value.h: Likewise.
57657         * lib/unictype/pr_unified_ideograph.h: Likewise.
57658         * lib/unictype/pr_uppercase.h: Likewise.
57659         * lib/unictype/pr_xid_continue.h: Likewise.
57660         * lib/unictype/pr_xid_start.h: Likewise.
57661         * lib/unictype/scripts.h: Likewise.
57662         * lib/unictype/scripts_byname.gperf: Likewise.
57663         * lib/unictype/sy_java_ident.h: Likewise.
57664         * lib/unigbrk/gbrkprop.h: Likewise.
57665         * lib/unilbrk/lbrkprop1.h: Likewise.
57666         * lib/unilbrk/lbrkprop2.h: Likewise.
57667         * lib/uninorm/decomposition-table2.h: Likewise.
57668         * lib/uniwbrk/wbrkprop.h: Likewise.
57669         * tests/unicase/test-cased.c: Likewise.
57670         * tests/unicase/test-ignorable.c: Likewise.
57671         * tests/unicase/test-uc_tolower.c: Likewise.
57672         * tests/unicase/test-uc_totitle.c: Likewise.
57673         * tests/unicase/test-uc_toupper.c: Likewise.
57674         * tests/unictype/test-categ_C.c: Likewise.
57675         * tests/unictype/test-categ_Cn.c: Likewise.
57676         * tests/unictype/test-categ_L.c: Likewise.
57677         * tests/unictype/test-categ_Ll.c: Likewise.
57678         * tests/unictype/test-categ_Lm.c: Likewise.
57679         * tests/unictype/test-categ_Lo.c: Likewise.
57680         * tests/unictype/test-categ_Lu.c: Likewise.
57681         * tests/unictype/test-categ_M.c: Likewise.
57682         * tests/unictype/test-categ_Mc.c: Likewise.
57683         * tests/unictype/test-categ_Me.c: Likewise.
57684         * tests/unictype/test-categ_Mn.c: Likewise.
57685         * tests/unictype/test-categ_N.c: Likewise.
57686         * tests/unictype/test-categ_Nd.c: Likewise.
57687         * tests/unictype/test-categ_No.c: Likewise.
57688         * tests/unictype/test-categ_P.c: Likewise.
57689         * tests/unictype/test-categ_Po.c: Likewise.
57690         * tests/unictype/test-categ_S.c: Likewise.
57691         * tests/unictype/test-categ_Sc.c: Likewise.
57692         * tests/unictype/test-categ_Sk.c: Likewise.
57693         * tests/unictype/test-categ_Sm.c: Likewise.
57694         * tests/unictype/test-categ_So.c: Likewise.
57695         * tests/unictype/test-ctype_alnum.c: Likewise.
57696         * tests/unictype/test-ctype_alpha.c: Likewise.
57697         * tests/unictype/test-ctype_graph.c: Likewise.
57698         * tests/unictype/test-ctype_lower.c: Likewise.
57699         * tests/unictype/test-ctype_print.c: Likewise.
57700         * tests/unictype/test-ctype_punct.c: Likewise.
57701         * tests/unictype/test-ctype_upper.c: Likewise.
57702         * tests/unictype/test-decdigit.h: Likewise.
57703         * tests/unictype/test-digit.h: Likewise.
57704         * tests/unictype/test-numeric.h: Likewise.
57705         * tests/unictype/test-pr_alphabetic.c: Likewise.
57706         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57707         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57708         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57709         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57710         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57711         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57712         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57713         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57714         * tests/unictype/test-pr_case_ignorable.c: Likewise.
57715         * tests/unictype/test-pr_cased.c: Likewise.
57716         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
57717         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
57718         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
57719         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
57720         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
57721         * tests/unictype/test-pr_combining.c: Likewise.
57722         * tests/unictype/test-pr_composite.c: Likewise.
57723         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57724         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57725         * tests/unictype/test-pr_deprecated.c: Likewise.
57726         * tests/unictype/test-pr_format_control.c: Likewise.
57727         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57728         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57729         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57730         * tests/unictype/test-pr_id_continue.c: Likewise.
57731         * tests/unictype/test-pr_id_start.c: Likewise.
57732         * tests/unictype/test-pr_ideographic.c: Likewise.
57733         * tests/unictype/test-pr_lowercase.c: Likewise.
57734         * tests/unictype/test-pr_math.c: Likewise.
57735         * tests/unictype/test-pr_numeric.c: Likewise.
57736         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57737         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57738         * tests/unictype/test-pr_other_math.c: Likewise.
57739         * tests/unictype/test-pr_punctuation.c: Likewise.
57740         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57741         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57742         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57743         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57744         * tests/unictype/test-pr_uppercase.c: Likewise.
57745         * tests/unictype/test-pr_xid_continue.c: Likewise.
57746         * tests/unictype/test-pr_xid_start.c: Likewise.
57747         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
57748         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
57749         changes.
57750         * lib/unictype/categ_Cc.h: Likewise.
57751         * lib/unictype/categ_Cf.h: Likewise.
57752         * lib/unictype/categ_Co.h: Likewise.
57753         * lib/unictype/categ_Cs.h: Likewise.
57754         * lib/unictype/categ_Lt.h: Likewise.
57755         * lib/unictype/categ_Nl.h: Likewise.
57756         * lib/unictype/categ_Pc.h: Likewise.
57757         * lib/unictype/categ_Pd.h: Likewise.
57758         * lib/unictype/categ_Pe.h: Likewise.
57759         * lib/unictype/categ_Pf.h: Likewise.
57760         * lib/unictype/categ_Pi.h: Likewise.
57761         * lib/unictype/categ_Ps.h: Likewise.
57762         * lib/unictype/categ_Z.h: Likewise.
57763         * lib/unictype/categ_Zl.h: Likewise.
57764         * lib/unictype/categ_Zp.h: Likewise.
57765         * lib/unictype/categ_Zs.h: Likewise.
57766         * lib/unictype/ctype_blank.h: Likewise.
57767         * lib/unictype/ctype_cntrl.h: Likewise.
57768         * lib/unictype/ctype_digit.h: Likewise.
57769         * lib/unictype/ctype_space.h: Likewise.
57770         * lib/unictype/ctype_xdigit.h: Likewise.
57771         * lib/unictype/mirror.h: Likewise.
57772         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
57773         * lib/unictype/pr_bidi_block_separator.h: Likewise.
57774         * lib/unictype/pr_bidi_common_separator.h: Likewise.
57775         * lib/unictype/pr_bidi_control.h: Likewise.
57776         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
57777         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
57778         * lib/unictype/pr_bidi_european_digit.h: Likewise.
57779         * lib/unictype/pr_bidi_pdf.h: Likewise.
57780         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
57781         * lib/unictype/pr_bidi_whitespace.h: Likewise.
57782         * lib/unictype/pr_dash.h: Likewise.
57783         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
57784         * lib/unictype/pr_diacritic.h: Likewise.
57785         * lib/unictype/pr_extender.h: Likewise.
57786         * lib/unictype/pr_hex_digit.h: Likewise.
57787         * lib/unictype/pr_hyphen.h: Likewise.
57788         * lib/unictype/pr_ids_binary_operator.h: Likewise.
57789         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
57790         * lib/unictype/pr_ignorable_control.h: Likewise.
57791         * lib/unictype/pr_iso_control.h: Likewise.
57792         * lib/unictype/pr_join_control.h: Likewise.
57793         * lib/unictype/pr_left_of_pair.h: Likewise.
57794         * lib/unictype/pr_line_separator.h: Likewise.
57795         * lib/unictype/pr_logical_order_exception.h: Likewise.
57796         * lib/unictype/pr_non_break.h: Likewise.
57797         * lib/unictype/pr_not_a_character.h: Likewise.
57798         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
57799         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
57800         * lib/unictype/pr_other_id_start.h: Likewise.
57801         * lib/unictype/pr_other_lowercase.h: Likewise.
57802         * lib/unictype/pr_other_uppercase.h: Likewise.
57803         * lib/unictype/pr_paired_punctuation.h: Likewise.
57804         * lib/unictype/pr_paragraph_separator.h: Likewise.
57805         * lib/unictype/pr_pattern_syntax.h: Likewise.
57806         * lib/unictype/pr_pattern_white_space.h: Likewise.
57807         * lib/unictype/pr_private_use.h: Likewise.
57808         * lib/unictype/pr_quotation_mark.h: Likewise.
57809         * lib/unictype/pr_radical.h: Likewise.
57810         * lib/unictype/pr_soft_dotted.h: Likewise.
57811         * lib/unictype/pr_space.h: Likewise.
57812         * lib/unictype/pr_titlecase.h: Likewise.
57813         * lib/unictype/pr_variation_selector.h: Likewise.
57814         * lib/unictype/pr_white_space.h: Likewise.
57815         * lib/unictype/pr_zero_width.h: Likewise.
57816         * lib/unictype/sy_c_ident.h: Likewise.
57817         * lib/unictype/sy_c_whitespace.h: Likewise.
57818         * lib/unictype/sy_java_whitespace.h: Likewise.
57819         * lib/uninorm/composition-table.gperf: Likewise.
57820         * lib/uninorm/decomposition-table1.h: Likewise.
57821         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
57822         LB8.
57823         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57824         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57825         * modules/unictype/*: Bump version number of expected libunistring
57826         version.
57828 2011-01-09  Bruno Haible  <bruno@clisp.org>
57830         Update to Unicode 5.2.0.
57831         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
57832         trailing whitespace removed.
57834 2011-01-09  Bruno Haible  <bruno@clisp.org>
57836         New Unicode character properties, from Unicode 5.2.0.
57837         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
57838         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
57839         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
57840         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
57841         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
57842         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
57843         uc_is_property_cased, uc_is_property_case_ignorable,
57844         uc_is_property_changes_when_lowercased,
57845         uc_is_property_changes_when_uppercased,
57846         uc_is_property_changes_when_titlecased,
57847         uc_is_property_changes_when_casefolded,
57848         uc_is_property_changes_when_casemapped): New declarations.
57849         * lib/unictype/pr_byname.gperf: Add the new properties.
57850         * modules/unictype/property-byname (Depends-on): Depend on the new
57851         properties modules.
57852         * modules/unictype/property-all (Depends-on): Likewise.
57853         * MODULES.html.sh (Unicode string functions): Add
57854         unictype/property-case-ignorable, unictype/property-cased,
57855         unictype/property-changes-when-casefolded,
57856         unictype/property-changes-when-casemapped,
57857         unictype/property-changes-when-lowercased,
57858         unictype/property-changes-when-titlecased,
57859         unictype/property-changes-when-uppercased.
57861         New module 'unictype/property-changes-when-casemapped'.
57862         * modules/unictype/property-changes-when-casemapped: New file.
57863         * lib/unictype/pr_changes_when_casemapped.c: New file.
57864         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
57865         generated by gen-uni-tables.
57866         * modules/unictype/property-changes-when-casemapped-tests: New file.
57867         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
57868         automatically generated by gen-uni-tables.
57870         New module 'unictype/property-changes-when-casefolded'.
57871         * modules/unictype/property-changes-when-casefolded: New file.
57872         * lib/unictype/pr_changes_when_casefolded.c: New file.
57873         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
57874         generated by gen-uni-tables.
57875         * modules/unictype/property-changes-when-casefolded-tests: New file.
57876         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
57877         automatically generated by gen-uni-tables.
57879         New module 'unictype/property-changes-when-titlecased'.
57880         * modules/unictype/property-changes-when-titlecased: New file.
57881         * lib/unictype/pr_changes_when_titlecased.c: New file.
57882         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
57883         generated by gen-uni-tables.
57884         * modules/unictype/property-changes-when-titlecased-tests: New file.
57885         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
57886         automatically generated by gen-uni-tables.
57888         New module 'unictype/property-changes-when-uppercased'.
57889         * modules/unictype/property-changes-when-uppercased: New file.
57890         * lib/unictype/pr_changes_when_uppercased.c: New file.
57891         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
57892         generated by gen-uni-tables.
57893         * modules/unictype/property-changes-when-uppercased-tests: New file.
57894         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
57895         automatically generated by gen-uni-tables.
57897         New module 'unictype/property-changes-when-lowercased'.
57898         * modules/unictype/property-changes-when-lowercased: New file.
57899         * lib/unictype/pr_changes_when_lowercased.c: New file.
57900         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
57901         generated by gen-uni-tables.
57902         * modules/unictype/property-changes-when-lowercased-tests: New file.
57903         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
57904         automatically generated by gen-uni-tables.
57906         New module 'unictype/property-case-ignorable'.
57907         * modules/unictype/property-case-ignorable: New file.
57908         * lib/unictype/pr_case_ignorable.c: New file.
57909         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
57910         by gen-uni-tables.
57911         * modules/unictype/property-case-ignorable-tests: New file.
57912         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
57913         generated by gen-uni-tables.
57915         New module 'unictype/property-cased'.
57916         * modules/unictype/property-cased: New file.
57917         * lib/unictype/pr_cased.c: New file.
57918         * lib/unictype/pr_cased.h: New file, automatically generated by
57919         gen-uni-tables.
57920         * modules/unictype/property-cased-tests: New file.
57921         * tests/unictype/test-pr_cased.c: New file, automatically generated by
57922         gen-uni-tables.
57924 2011-01-09  Bruno Haible  <bruno@clisp.org>
57926         Update to Unicode 5.2.0.
57927         * lib/gen-uni-tables.c (output_predicate, output_category,
57928         output_combclass, output_bidi_category, output_decimal_digit_test,
57929         output_decimal_digit, output_digit_test, output_digit,
57930         output_numeric_test, output_numeric, output_mirror, output_scripts,
57931         output_scripts_byname, output_blocks, output_ident_category): Fix
57932         comment header.
57933         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
57934         get_wbp.
57935         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
57936         items.
57937         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
57938         Changes_When_Lowercased, Changes_When_Uppercased,
57939         Changes_When_Titlecased, Changes_When_Casefolded,
57940         Changes_When_Casemapped.
57941         (is_property_alphabetic, is_property_default_ignorable_code_point):
57942         Update for Unicode 5.2.0.
57943         (is_property_cased, is_property_case_ignorable,
57944         is_property_changes_when_lowercased,
57945         is_property_changes_when_uppercased,
57946         is_property_changes_when_titlecased,
57947         is_property_changes_when_casefolded,
57948         is_property_changes_when_casemapped): New functions.
57949         (output_properties): Output also the properties cased, case_ignorable,
57950         changes_when_lowercased, changes_when_uppercased,
57951         changes_when_titlecased, changes_when_casefolded,
57952         changes_when_casemapped.
57953         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
57954         Unicode TR#11 revision 17 -> 19.
57955         (LBP_CP): New enumeration value.
57956         (LBP_*): Adjust values accordingly.
57957         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57958         TR#14 revision 22 -> 24.
57959         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
57960         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
57961         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
57962         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
57963         is_WBP_MIDLETTER.
57964         (output_composition_tables): Allow for 24 bits instead of 16 bits in
57965         the code1 and code2 of each composition rule.
57966         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
57967         * lib/unicase/ignorable.h: Likewise.
57968         * lib/unicase/tocasefold.h: Likewise.
57969         * lib/unicase/tolower.h: Likewise.
57970         * lib/unicase/totitle.h: Likewise.
57971         * lib/unicase/toupper.h: Likewise.
57972         * lib/unictype/bidi_of.h: Likewise.
57973         * lib/unictype/blocks.h: Likewise.
57974         * lib/unictype/categ_C.h: Likewise.
57975         * lib/unictype/categ_Cf.h: Likewise.
57976         * lib/unictype/categ_Cn.h: Likewise.
57977         * lib/unictype/categ_L.h: Likewise.
57978         * lib/unictype/categ_Ll.h: Likewise.
57979         * lib/unictype/categ_Lm.h: Likewise.
57980         * lib/unictype/categ_Lo.h: Likewise.
57981         * lib/unictype/categ_Lu.h: Likewise.
57982         * lib/unictype/categ_M.h: Likewise.
57983         * lib/unictype/categ_Mc.h: Likewise.
57984         * lib/unictype/categ_Mn.h: Likewise.
57985         * lib/unictype/categ_N.h: Likewise.
57986         * lib/unictype/categ_Nd.h: Likewise.
57987         * lib/unictype/categ_Nl.h: Likewise.
57988         * lib/unictype/categ_No.h: Likewise.
57989         * lib/unictype/categ_P.h: Likewise.
57990         * lib/unictype/categ_Pd.h: Likewise.
57991         * lib/unictype/categ_Po.h: Likewise.
57992         * lib/unictype/categ_S.h: Likewise.
57993         * lib/unictype/categ_Sc.h: Likewise.
57994         * lib/unictype/categ_So.h: Likewise.
57995         * lib/unictype/categ_of.h: Likewise.
57996         * lib/unictype/combining.h: Likewise.
57997         * lib/unictype/ctype_alnum.h: Likewise.
57998         * lib/unictype/ctype_alpha.h: Likewise.
57999         * lib/unictype/ctype_graph.h: Likewise.
58000         * lib/unictype/ctype_lower.h: Likewise.
58001         * lib/unictype/ctype_print.h: Likewise.
58002         * lib/unictype/ctype_punct.h: Likewise.
58003         * lib/unictype/ctype_upper.h: Likewise.
58004         * lib/unictype/decdigit.h: Likewise.
58005         * lib/unictype/digit.h: Likewise.
58006         * lib/unictype/numeric.h: Likewise.
58007         * lib/unictype/pr_alphabetic.h: Likewise.
58008         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58009         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58010         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58011         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58012         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58013         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58014         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58015         * lib/unictype/pr_combining.h: Likewise.
58016         * lib/unictype/pr_composite.h: Likewise.
58017         * lib/unictype/pr_currency_symbol.h: Likewise.
58018         * lib/unictype/pr_dash.h: Likewise.
58019         * lib/unictype/pr_decimal_digit.h: Likewise.
58020         * lib/unictype/pr_deprecated.h: Likewise.
58021         * lib/unictype/pr_diacritic.h: Likewise.
58022         * lib/unictype/pr_extender.h: Likewise.
58023         * lib/unictype/pr_grapheme_base.h: Likewise.
58024         * lib/unictype/pr_grapheme_extend.h: Likewise.
58025         * lib/unictype/pr_grapheme_link.h: Likewise.
58026         * lib/unictype/pr_id_continue.h: Likewise.
58027         * lib/unictype/pr_id_start.h: Likewise.
58028         * lib/unictype/pr_ideographic.h: Likewise.
58029         * lib/unictype/pr_ignorable_control.h: Likewise.
58030         * lib/unictype/pr_logical_order_exception.h: Likewise.
58031         * lib/unictype/pr_lowercase.h: Likewise.
58032         * lib/unictype/pr_numeric.h: Likewise.
58033         * lib/unictype/pr_other_alphabetic.h: Likewise.
58034         * lib/unictype/pr_punctuation.h: Likewise.
58035         * lib/unictype/pr_sentence_terminal.h: Likewise.
58036         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58037         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58038         * lib/unictype/pr_unified_ideograph.h: Likewise.
58039         * lib/unictype/pr_uppercase.h: Likewise.
58040         * lib/unictype/pr_xid_continue.h: Likewise.
58041         * lib/unictype/pr_xid_start.h: Likewise.
58042         * lib/unictype/pr_zero_width.h: Likewise.
58043         * lib/unictype/scripts.h: Likewise.
58044         * lib/unictype/scripts_byname.gperf: Likewise.
58045         * lib/unictype/sy_java_ident.h: Likewise.
58046         * lib/unigbrk/gbrkprop.h: Likewise.
58047         * lib/unilbrk/lbrkprop1.h: Likewise.
58048         * lib/unilbrk/lbrkprop2.h: Likewise.
58049         * lib/unilbrk/lbrktables.h: Likewise.
58050         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
58051         LBP_CP. Implement rule LB30.
58052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
58053         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
58054         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
58055         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
58056         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
58057         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
58058         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
58059         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
58060         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
58061         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
58062         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
58063         bits instead of 16 bits in the code1 and code2 of each composition
58064         rule.
58065         (uc_composition): Update for Unicode 5.2.0.
58066         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
58067         * lib/uninorm/decomposition-table2.h: Likewise.
58068         * lib/uniwbrk/wbrkprop.h: Likewise.
58069         * tests/unicase/test-cased.c: Likewise.
58070         * tests/unicase/test-ignorable.c: Likewise.
58071         * tests/unicase/test-uc_tolower.c: Likewise.
58072         * tests/unicase/test-uc_totitle.c: Likewise.
58073         * tests/unicase/test-uc_toupper.c: Likewise.
58074         * tests/unictype/test-categ_C.c: Likewise.
58075         * tests/unictype/test-categ_Cf.c: Likewise.
58076         * tests/unictype/test-categ_Cn.c: Likewise.
58077         * tests/unictype/test-categ_L.c: Likewise.
58078         * tests/unictype/test-categ_Ll.c: Likewise.
58079         * tests/unictype/test-categ_Lm.c: Likewise.
58080         * tests/unictype/test-categ_Lo.c: Likewise.
58081         * tests/unictype/test-categ_Lu.c: Likewise.
58082         * tests/unictype/test-categ_M.c: Likewise.
58083         * tests/unictype/test-categ_Mc.c: Likewise.
58084         * tests/unictype/test-categ_Mn.c: Likewise.
58085         * tests/unictype/test-categ_N.c: Likewise.
58086         * tests/unictype/test-categ_Nd.c: Likewise.
58087         * tests/unictype/test-categ_Nl.c: Likewise.
58088         * tests/unictype/test-categ_No.c: Likewise.
58089         * tests/unictype/test-categ_P.c: Likewise.
58090         * tests/unictype/test-categ_Pd.c: Likewise.
58091         * tests/unictype/test-categ_Po.c: Likewise.
58092         * tests/unictype/test-categ_S.c: Likewise.
58093         * tests/unictype/test-categ_Sc.c: Likewise.
58094         * tests/unictype/test-categ_So.c: Likewise.
58095         * tests/unictype/test-ctype_alnum.c: Likewise.
58096         * tests/unictype/test-ctype_alpha.c: Likewise.
58097         * tests/unictype/test-ctype_graph.c: Likewise.
58098         * tests/unictype/test-ctype_lower.c: Likewise.
58099         * tests/unictype/test-ctype_print.c: Likewise.
58100         * tests/unictype/test-ctype_punct.c: Likewise.
58101         * tests/unictype/test-ctype_upper.c: Likewise.
58102         * tests/unictype/test-decdigit.h: Likewise.
58103         * tests/unictype/test-digit.h: Likewise.
58104         * tests/unictype/test-numeric.h: Likewise.
58105         * tests/unictype/test-pr_alphabetic.c: Likewise.
58106         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58107         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58108         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58109         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58110         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58111         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58112         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58113         * tests/unictype/test-pr_combining.c: Likewise.
58114         * tests/unictype/test-pr_composite.c: Likewise.
58115         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58116         * tests/unictype/test-pr_dash.c: Likewise.
58117         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58118         * tests/unictype/test-pr_deprecated.c: Likewise.
58119         * tests/unictype/test-pr_diacritic.c: Likewise.
58120         * tests/unictype/test-pr_extender.c: Likewise.
58121         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58122         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58123         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58124         * tests/unictype/test-pr_id_continue.c: Likewise.
58125         * tests/unictype/test-pr_id_start.c: Likewise.
58126         * tests/unictype/test-pr_ideographic.c: Likewise.
58127         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58128         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58129         * tests/unictype/test-pr_lowercase.c: Likewise.
58130         * tests/unictype/test-pr_numeric.c: Likewise.
58131         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58132         * tests/unictype/test-pr_punctuation.c: Likewise.
58133         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58134         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58135         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58136         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58137         * tests/unictype/test-pr_uppercase.c: Likewise.
58138         * tests/unictype/test-pr_xid_continue.c: Likewise.
58139         * tests/unictype/test-pr_xid_start.c: Likewise.
58140         * tests/unictype/test-pr_zero_width.c: Likewise.
58141         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
58142         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
58143         changed behaviour: line breaking is now disallowed between a letter
58144         or '=' and '('.
58145         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58146         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58147         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58148         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
58149         * tests/uniwidth/test-uc_width2.sh: Same updates as in
58150         lib/uniwidth/width.c.
58151         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
58152         without comments, but with the original copyright notice.
58153         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
58154         changes.
58155         * lib/unictype/categ_Cc.h: Likewise.
58156         * lib/unictype/categ_Co.h: Likewise.
58157         * lib/unictype/categ_Cs.h: Likewise.
58158         * lib/unictype/categ_Lt.h: Likewise.
58159         * lib/unictype/categ_Me.h: Likewise.
58160         * lib/unictype/categ_Pc.h: Likewise.
58161         * lib/unictype/categ_Pe.h: Likewise.
58162         * lib/unictype/categ_Pf.h: Likewise.
58163         * lib/unictype/categ_Pi.h: Likewise.
58164         * lib/unictype/categ_Ps.h: Likewise.
58165         * lib/unictype/categ_Sk.h: Likewise.
58166         * lib/unictype/categ_Sm.h: Likewise.
58167         * lib/unictype/categ_Z.h: Likewise.
58168         * lib/unictype/categ_Zl.h: Likewise.
58169         * lib/unictype/categ_Zp.h: Likewise.
58170         * lib/unictype/categ_Zs.h: Likewise.
58171         * lib/unictype/ctype_blank.h: Likewise.
58172         * lib/unictype/ctype_cntrl.h: Likewise.
58173         * lib/unictype/ctype_digit.h: Likewise.
58174         * lib/unictype/ctype_space.h: Likewise.
58175         * lib/unictype/ctype_xdigit.h: Likewise.
58176         * lib/unictype/mirror.h: Likewise.
58177         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58178         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58179         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58180         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58181         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58182         * lib/unictype/pr_bidi_control.h: Likewise.
58183         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58184         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58185         * lib/unictype/pr_bidi_pdf.h: Likewise.
58186         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58187         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58188         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58189         * lib/unictype/pr_format_control.h: Likewise.
58190         * lib/unictype/pr_hex_digit.h: Likewise.
58191         * lib/unictype/pr_hyphen.h: Likewise.
58192         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58193         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58194         * lib/unictype/pr_iso_control.h: Likewise.
58195         * lib/unictype/pr_join_control.h: Likewise.
58196         * lib/unictype/pr_left_of_pair.h: Likewise.
58197         * lib/unictype/pr_line_separator.h: Likewise.
58198         * lib/unictype/pr_math.h: Likewise.
58199         * lib/unictype/pr_non_break.h: Likewise.
58200         * lib/unictype/pr_not_a_character.h: Likewise.
58201         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58202         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58203         * lib/unictype/pr_other_id_continue.h: Likewise.
58204         * lib/unictype/pr_other_id_start.h: Likewise.
58205         * lib/unictype/pr_other_lowercase.h: Likewise.
58206         * lib/unictype/pr_other_math.h: Likewise.
58207         * lib/unictype/pr_other_uppercase.h: Likewise.
58208         * lib/unictype/pr_paired_punctuation.h: Likewise.
58209         * lib/unictype/pr_paragraph_separator.h: Likewise.
58210         * lib/unictype/pr_pattern_syntax.h: Likewise.
58211         * lib/unictype/pr_pattern_white_space.h: Likewise.
58212         * lib/unictype/pr_private_use.h: Likewise.
58213         * lib/unictype/pr_quotation_mark.h: Likewise.
58214         * lib/unictype/pr_radical.h: Likewise.
58215         * lib/unictype/pr_soft_dotted.h: Likewise.
58216         * lib/unictype/pr_space.h: Likewise.
58217         * lib/unictype/pr_titlecase.h: Likewise.
58218         * lib/unictype/pr_variation_selector.h: Likewise.
58219         * lib/unictype/pr_white_space.h: Likewise.
58220         * lib/unictype/sy_c_ident.h: Likewise.
58221         * lib/unictype/sy_c_whitespace.h: Likewise.
58222         * lib/unictype/sy_java_whitespace.h: Likewise.
58223         * modules/uni*/*: Bump version number of expected libunistring version.
58224         Reported by Simon Josefsson.
58226 2011-01-09  Karl Heuer  <kwzh@gnu.org>
58228         useless-if-before-free: fix typo in --help and make the internal,
58229         automatic version date update process work once again.
58230         --help output contained a NUL character instead of the
58231         backslash-zero that was intended.  Also, the "must lie within
58232         the first 8 lines" line is on line 9, and hence not getting
58233         automatically updated.
58234         * build-aux/useless-if-before-free: Fix the former by adding a
58235         backslash, and the latter by condensing the three lines of what-it-does
58236         to a single line, leaving one line of slack for the future.
58238 2011-01-09  Bruno Haible  <bruno@clisp.org>
58240         uniwidth/width: Fix width of U+1D173..U+1D17A.
58241         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
58242         symbolic_width, output_width_property_test): New functions.
58243         (main): Invoke output_nonspacing_property, output_width_property_test.
58244         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
58245         U+1D173..U+1D17A.
58246         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
58247         1.
58248         * modules/uniwidth/*: Bump version number of expected libunistring
58249         version.
58250         * modules/unilbrk/*: Likewise.
58252 2011-01-08  Bruno Haible  <bruno@clisp.org>
58254         uninorm tests: Preserve copyright of Unicode data file.
58255         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
58256         Mention modifications.
58258 2011-01-08  Bruno Haible  <bruno@clisp.org>
58260         gen-uni-tables: Prepare for Unicode 5.2.0.
58261         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
58262         (debug_output_lbp, output_lbp): Update.
58264 2011-01-08  Bruno Haible  <bruno@clisp.org>
58266         unilbrk: Clarify gen-uni-tables.c code.
58267         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
58268         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
58269         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
58271 2011-01-07  Bruno Haible  <bruno@clisp.org>
58273         strtod: Restore errno when successfully parsing Infinity or NaN.
58274         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
58275         restore the original errno.
58277 2011-01-07  Bruno Haible  <bruno@clisp.org>
58279         remove test: Avoid failure on HP-UX 11.
58280         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
58282 2011-01-07  Bruno Haible  <bruno@clisp.org>
58284         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
58285         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
58286         error code.
58288 2011-01-07  Pádraig Brady  <P@draigBrady.com>
58290         ignore-value: fixup comments, and add Eric Blake
58291         as an author since he rewrote the macros.
58292         * lib/ignore-value.h (ignore_value):  State that
58293         we now support aggregates.  Also specify exactly
58294         when the GCC warn_unused_result feature was added.
58296 2011-01-06  Eric Blake  <eblake@redhat.com>
58298         ignore-value: support aggregate types
58299         * lib/ignore-value.h (ignore_value): Provide separate gcc
58300         definition.
58301         * modules/ignore-value-tests: New test module.
58302         * tests/test-ignore-value.c: New test.
58304         maint.mk: improve sc_prohibit_strcmp regex
58305         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
58306         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
58307         definition of STRNEQ.
58309         signal: work around Haiku issue with SIGBUS
58310         * lib/siglist.h: Add comment.
58311         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
58312         strsignal's favoring of SIGSEGV.
58313         * tests/test-signal.c (main): Avoid test failure.
58314         * doc/posix-headers/signal.texi (signal.h): Document the issue.
58315         Reported by Scott McCreary.
58317         maint.mk: add pre-release check to ensure submodule commits are public
58318         * top/maint.mk (public-submodule-commit): New rule.
58319         (submodule-checks): New variable.
58320         (alpha beta stable): Depend on the variable.
58322 2011-01-05  Pádraig Brady  <P@draigBrady.com>
58323         and Jim Meyering  <meyering@redhat.com>
58325         ignore-value: make ignore_value more generic; deprecate ignore_ptr
58326         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
58327         (ATTRIBUTE_DEPRECATED): Define.
58328         (_ignore_case): New function.
58329         (ignore_value): New macro, to replace the old function.
58330         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
58331         * modules/ignore-value (Depends-on): Add stdint.
58333 2011-01-04  Eric Blake  <eblake@redhat.com>
58335         doc: regenerate INSTALL
58336         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
58337         @firstparagraphindent support, now that autoconf dropped it.
58338         (INSTALL_PRELUDE): Reinstate old macro.
58339         * doc/install.texi: Resync from autoconf.
58340         * doc/INSTALL: Reflect recent autoconf update.
58341         * doc/INSTALL.ISO: Likewise.
58342         * doc/INSTALL.UTF-8: Likewise.
58343         Reported by Karl Berry.
58345 2011-01-04  Bruce Korb  <address@hidden>
58347         git-version-gen: avoid a sub-shell
58348         * build-aux/git-version-gen: Redirect stderr in `...` via
58349         "exec 2>...", rather than via an added sub-shell.
58351 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
58353         git-version-gen: use (...) rather than sh -c '...'
58354         * build-aux/git-version-gen: Rather than hard-coding a shell's name
58355         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
58357 2011-01-03  Jim Meyering  <meyering@redhat.com>
58359         git-version-gen: convert leading TABs to spaces
58360         * build-aux/git-version-gen: Expand leading TABs.
58362         git-version-gen: handle failed "git rev-list"
58363         * build-aux/git-version-gen: Rather than leaking a "fatal" error
58364         from git and proceeding as if it had succeeded but printed no SHA1
58365         checksums, suppress the diagnostic and handle the failure.
58366         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
58368         git-version-gen: include command name in one more diagnostic
58369         * build-aux/git-version-gen: When the required .tarball-version file
58370         was missing or unreadable, you might see the diagnostic from "cat",
58371         but no trace of the name of the invoking script.  Now, you still see
58372         the diagnostic from cat, but also get one from "git-version-gen: ".
58373         Inspired by a patch from Bruce Korb.
58375         update-copyright: adjust test to match changed code
58376         * tests/test-update-copyright.sh: Change test's expected output
58377         to match new actual output.
58379 2011-01-02  Bruno Haible  <bruno@clisp.org>
58381         getlogin_r: Avoid test failure on HP-UX 11.
58382         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
58383         ERANGE when the second argument is zero.
58384         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
58385         portability problem.
58387 2011-01-02  Bruce Korb  <bkorb@gnu.org>
58389         * build-aux/update-copyright: doc Simon's changes
58391 2011-01-02  Simon Josefsson  <simon@josefsson.org>
58393         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
58394         environment variable.
58396 2011-01-02  Bruno Haible  <bruno@clisp.org>
58398         unigbrk: Avoid gcc warnings.
58399         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
58400         unused variable.
58401         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
58402         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
58403         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
58404         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
58405         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
58406         Change type of first argument to 'const char *'.
58407         (main): Remove unused variable.
58408         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
58409         type of first argument to 'const char *'.
58410         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
58411         Likewise.
58412         (main): Change type of variable 's'.
58413         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
58414         to 'int'.
58416 2011-01-02  Bruno Haible  <bruno@clisp.org>
58418         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
58419         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
58420         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
58421         bug.
58422         * lib/pwrite.c: Undo 2010-12-31 patch.
58423         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
58425 2011-01-02  Bruno Haible  <bruno@clisp.org>
58427         pread: Fix test whether it works.
58428         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
58430 2011-01-02  Bruno Haible  <bruno@clisp.org>
58432         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
58433         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
58434         ends in "6". Don't require a specific month name. Try also the locale
58435         names found on HP-UX 11 and Solaris 7.
58437 2011-01-02  Bruno Haible  <bruno@clisp.org>
58439         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
58440         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
58441         C linkage.
58442         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
58444 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58446         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
58447         for consistency, since the "cluster" term is not used elsewhere.
58448         * lib/unigbrk.in.h: Update name.
58449         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
58450         * lib/unigbrk/u16-grapheme-next.c: Update name.
58451         * lib/unigbrk/u16-grapheme-prev.c: Update name.
58452         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
58453         * lib/unigbrk/u32-grapheme-next.c: Update name.
58454         * lib/unigbrk/u32-grapheme-prev.c: Update name.
58455         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
58456         * lib/unigbrk/u8-grapheme-next.c: Update name.
58457         * lib/unigbrk/u8-grapheme-prev.c: Update name.
58458         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
58459         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
58460         Suggested by Bruno Haible.
58462 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58464         Remove module 'u8-grapheme-len' as too redundant with
58465         'u8-grapheme-next'.
58466         * modules/unigbrk/u8-grapheme-len: Delete file.
58467         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
58468         * lib/unigbrk.in.h: Remove prototype for deleted function.
58469         * lib/unigbrk/u8-grapheme-len.c: Delete file.
58470         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
58472         Remove module 'u16-grapheme-len' as too redundant with
58473         'u16-grapheme-next'.
58474         * modules/unigbrk/u16-grapheme-len: Delete file.
58475         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
58476         * lib/unigbrk.in.h: Remove prototype for deleted function.
58477         * lib/unigbrk/u16-grapheme-len.c: Delete file.
58478         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
58480         Remove module 'u32-grapheme-len' as too redundant with
58481         'u32-grapheme-next'.
58482         * modules/unigbrk/u32-grapheme-len: Delete file.
58483         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
58484         * lib/unigbrk.in.h: Remove prototype for deleted function.
58485         * lib/unigbrk/u32-grapheme-len.c: Delete file.
58486         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
58488         Suggested by Bruno Haible.
58490 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
58492         * unigbrk.in.h: Fix typo: "ben" => "been".
58493         Reported by Bruno Haible.
58495 2011-01-01  Jim Meyering  <meyering@redhat.com>
58497         maint: update almost all copyright ranges to include 2011
58498         Run the new "make update-copyright" rule.
58500 2011-01-01  Jim Meyering  <meyering@redhat.com>
58502         maint: update-copyright: exempt doc/INSTALL*
58503         * Makefile (update-copyright): Also exclude doc/INSTALL*,
58504         since they are generated.  Suggested by Bruno Haible.
58506 2011-01-01  Jim Meyering  <meyering@redhat.com>
58508         maint: refine the update-copyright rule
58509         * Makefile (update-copyright): Also exclude any file that includes
58510         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
58511         code that merely generates the comment.
58513 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58515         New module 'u8-grapheme-len'.
58516         * modules/unigbrk/u8-grapheme-len: New file.
58517         * modules/unigbrk/u8-grapheme-len-tests: New file.
58518         * lib/unigbrk.in.h: Add prototype for new function.
58519         * lib/unigbrk/u8-grapheme-len.c: New file.
58520         * tests/unigbrk/test-u8-grapheme-len.c: New file.
58522         New module 'u16-grapheme-len'.
58523         * modules/unigbrk/u16-grapheme-len: New file.
58524         * modules/unigbrk/u16-grapheme-len-tests: New file.
58525         * lib/unigbrk.in.h: Add prototype for new function.
58526         * lib/unigbrk/u16-grapheme-len.c: New file.
58527         * tests/unigbrk/test-u16-grapheme-len.c: New file.
58529         New module 'u32-grapheme-len'.
58530         * modules/unigbrk/u32-grapheme-len: New file.
58531         * modules/unigbrk/u32-grapheme-len-tests: New file.
58532         * lib/unigbrk.in.h: Add prototype for new function.
58533         * lib/unigbrk/u32-grapheme-len.c: New file.
58534         * tests/unigbrk/test-u32-grapheme-len.c: New file.
58536         New module 'u8-grapheme-next'.
58537         * modules/unigbrk/u8-grapheme-next: New file.
58538         * modules/unigbrk/u8-grapheme-next-tests: New file.
58539         * lib/unigbrk.in.h: Add prototype for new function.
58540         * lib/unigbrk/u8-grapheme-next.c: New file.
58541         * tests/unigbrk/test-u8-grapheme-next.c: New file.
58543         New module 'u16-grapheme-next'.
58544         * modules/unigbrk/u16-grapheme-next: New file.
58545         * modules/unigbrk/u16-grapheme-next-tests: New file.
58546         * lib/unigbrk.in.h: Add prototype for new function.
58547         * lib/unigbrk/u16-grapheme-next.c: New file.
58548         * tests/unigbrk/test-u16-grapheme-next.c: New file.
58550         New module 'u32-grapheme-next'.
58551         * modules/unigbrk/u32-grapheme-next: New file.
58552         * modules/unigbrk/u32-grapheme-next-tests: New file.
58553         * lib/unigbrk.in.h: Add prototype for new function.
58554         * lib/unigbrk/u32-grapheme-next.c: New file.
58555         * tests/unigbrk/test-u32-grapheme-next.c: New file.
58557         New module 'u8-grapheme-prev'.
58558         * modules/unigbrk/u8-grapheme-prev: New file.
58559         * modules/unigbrk/u8-grapheme-prev-tests: New file.
58560         * lib/unigbrk.in.h: Add prototype for new function.
58561         * lib/unigbrk/u8-grapheme-prev.c: New file.
58562         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
58564         New module 'u16-grapheme-prev'.
58565         * modules/unigbrk/u16-grapheme-prev: New file.
58566         * modules/unigbrk/u16-grapheme-prev-tests: New file.
58567         * lib/unigbrk.in.h: Add prototype for new function.
58568         * lib/unigbrk/u16-grapheme-prev.c: New file.
58569         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
58571         New module 'u32-grapheme-prev'.
58572         * modules/unigbrk/u32-grapheme-prev: New file.
58573         * modules/unigbrk/u32-grapheme-prev-tests: New file.
58574         * lib/unigbrk.in.h: Add prototype for new function.
58575         * lib/unigbrk/u32-grapheme-prev.c: New file.
58576         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
58578         New module 'u8-grapheme-breaks'.
58579         * modules/unigbrk/u8-grapheme-breaks: New file.
58580         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
58581         * lib/unigbrk.in.h: Add prototype for new function.
58582         * lib/unigbrk/u8-grapheme-breaks.c: New file.
58583         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
58585         New module 'u16-grapheme-breaks'.
58586         * modules/unigbrk/u16-grapheme-breaks: New file.
58587         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
58588         * lib/unigbrk.in.h: Add prototype for new function.
58589         * lib/unigbrk/u16-grapheme-breaks.c: New file.
58590         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
58592         New module 'u32-grapheme-breaks'.
58593         * modules/unigbrk/u32-grapheme-breaks: New file.
58594         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
58595         * lib/unigbrk.in.h: Add prototype for new function.
58596         * lib/unigbrk/u32-grapheme-breaks.c: New file.
58597         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
58599         New module 'ulc-grapheme-breaks'.
58600         * modules/unigbrk/ulc-grapheme-breaks: New file.
58601         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
58602         * m4/locale-ar.m4: New file.
58603         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
58604         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
58605         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
58607 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
58609         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
58610         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
58611         modified how this file was generated before I initially submitted
58612         the module, but failed to regenerate it.  This meant that several
58613         of the level2 entries were wrong.
58614         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
58615         Remove the division-by-2 that is folded into the table now that
58616         gbrkprop.h has been regenerated properly.  Now -1 entries are
58617         handled correctly.
58619         New module 'unigbrk/uc-gbrk-prop-tests'.
58620         * modules/unigbrk/uc-gbrk-prop-tests: New file.
58621         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
58622         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
58623         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
58625 2011-01-01  Bruno Haible  <bruno@clisp.org>
58627         Avoid use of hexadecimal escapes.
58628         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
58629         instead of hexadecimal escapes.
58631 2011-01-01  Jim Meyering  <meyering@redhat.com>
58633         maint: new rule to update copyright year ranges
58634         * Makefile (update-copyright): New rule.
58636         maint: indent with TABs in Makefile
58637         * Makefile: Expand leading sequences of spaces to TABs
58639         version-etc: update the copyright year it reports
58640         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
58642 2010-12-31  Bruno Haible  <bruno@clisp.org>
58644         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
58645         * lib/isfinite.c (zerof, zerod, zerol): New variables.
58646         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
58647         zero.
58649 2010-12-31  Bruno Haible  <bruno@clisp.org>
58651         pwrite: Work around HP-UX 11.11 bug.
58652         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
58653         works and set REPLACE_PWRITE if not.
58654         * lib/pwrite.c (pwrite): Add an implementation that uses the system
58655         function.
58656         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
58658 2010-12-31  Bruno Haible  <bruno@clisp.org>
58660         pread: Work around HP-UX 11 bugs.
58661         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
58662         and set REPLACE_PREAD if not.
58663         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
58665 2010-12-31  Eric Blake  <eblake@redhat.com>
58667         nl_langinfo: fix YESEXPR on Irix 6.5
58668         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
58669         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
58670         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
58671         it.
58673 2010-12-31  Bruno Haible  <bruno@clisp.org>
58675         iconv: Document HP-UX 11 bug.
58676         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
58678 2010-12-31  Bruno Haible  <bruno@clisp.org>
58680         ldexpl: Fix link error on HP-UX 11.
58681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
58682         LDEXPL_LIBM, using $ISNANL_LIBM.
58684 2010-12-31  Eric Blake  <eblake@redhat.com>
58686         ftello: avoid compilation failure with SunStudio c89
58687         * lib/ftello.c (ftello): Use lseek, not llseek.
58689         tests: avoid failing coreutils tests on cygwin
58690         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
58691         (create_exe_shims_): Return 0 when skipping.
58693 2010-12-31  Bruno Haible  <bruno@clisp.org>
58695         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
58696         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
58698 2010-12-31  Bruno Haible  <bruno@clisp.org>
58700         waitpid: Fix link error in C++ mode.
58701         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
58703 2010-12-31  Bruno Haible  <bruno@clisp.org>
58705         isnan: Use GCC built-ins when possible.
58706         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
58707         __builtin_isnan.
58708         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
58709         (isnan): Define using GCC built-ins for GCC >= 4.0.
58711 2010-12-31  Bruno Haible  <bruno@clisp.org>
58713         isnand: Fix mistake.
58714         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
58715         __builtin_isnand.
58717 2010-12-31  Bruno Haible  <bruno@clisp.org>
58719         open: Avoid C++ error on HP-UX 11.
58720         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
58722 2010-12-31  Bruno Haible  <bruno@clisp.org>
58724         time_r: Add missing declarations on HP-UX 11.
58725         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
58726         instead of HAVE_LOCALTIME_R.
58727         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
58728         HAVE_LOCALTIME_R always.
58729         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
58730         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
58731         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
58732         HAVE_LOCALTIME_R.
58733         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
58734         * doc/posix-functions/localtime_r.texi: Likewise.
58736 2010-12-29  Eric Blake  <eblake@redhat.com>
58738         mountlist: tweak previous commit
58739         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
58740         Reported by Paul Eggert.
58742         mountlist: fix local drive detection on cygwin
58743         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
58744         that works for cygwin.
58746 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58748         ftoastr, snprintf: ftoastr + snprintf module
58749         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
58750         since the snprintf module now should be good enough here.
58751         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
58752         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
58753         and gl_MODULE_INDICATOR([snprintf]), but the former enables
58754         GNULIB_SNPRINTF only for the test directory, and the latter
58755         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
58756         seems to suffice by itself.
58758 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58760         alloca: one step towards thread-safety
58761         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
58762         need for a static variable.  All callers changed.  This does not
58763         make the alloca replacement thread-safe, but it's one step.
58765         tests: minor indenting change
58766         * tests/init.sh: Sync from coreutils housekeeping patch
58767         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
58768         to keep lines within 80 columns.
58770 2010-12-28  Jim Meyering  <meyering@redhat.com>
58772         regex: don't infloop on persistent failing calloc
58773         * lib/regexec.c (build_trtable): Return failure indication upon
58774         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
58775         In glibc, this was fixed for version 2.13:
58776         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
58778 2010-12-28  Bruno Haible  <bruno@clisp.org>
58779             Paul Eggert <eggert@cs.ucla.edu>
58781         linkat: Make implementation robust against system behaviour variations.
58782         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
58783         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
58784         way, and to -2 if it needs a generic runtime test.
58785         * lib/linkat.c (solaris_optimized_link_immediate,
58786         solaris_optimized_link_follow): New functions.
58787         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
58788         (check_same_link): Use it.
58790 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
58792         New module 'unigbrk/base'.
58793         * modules/unigbrk/base: New file.
58794         * lib/unigbrk.in.h: New file.
58796         New module 'unigbrk/uc-gbrk-prop'.
58797         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
58798         * modules/unigbrk/uc-gbrk-prop: New file.
58799         * lib/unigbrk/gbrkprop.h: New file.
58800         * lib/unigbrk/uc-gbrk-prop.c: New file.
58802         New module 'unigbrk/uc-is-grapheme-break'.
58803         * modules/unigbrk/uc-is-grapheme-break: New file.
58804         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
58805         * lib/unigbrk/uc-is-grapheme-break.c: New file.
58806         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
58807         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
58808         * tests/unigbrk/GraphemeBreakTest.txt: New file.
58810         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
58812 2010-12-27  Bruno Haible  <bruno@clisp.org>
58814         linkat test: Avoid failure on Solaris 11 2010-11.
58815         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
58817 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58819         utimens: work around glibc rounding bug on more platforms
58820         * lib/utimens.c (fdutimens): Work around rounding bug even if
58821         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
58822         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
58824 2010-12-27  Bruno Haible  <bruno@clisp.org>
58826         select tests: Improve comments.
58827         * tests/test-select.c (do_select): Add comments.
58829 2010-12-27  Bruno Haible  <bruno@clisp.org>
58831         select tests: Safer way of handling timeout.
58832         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
58833         at every invocation.
58835 2010-12-27  Bruno Haible  <bruno@clisp.org>
58837         select tests: Use 'bool' where appropriate.
58838         * tests/test-select.c (connect_to_socket): Change argument type to
58839         'bool'.
58841 2010-12-27  Bruno Haible  <bruno@clisp.org>
58843         select tests: Use existing modules.
58844         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
58845         (configure.ac): Don't test for unistd.h.
58846         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
58847         declared in <unistd.h>.
58849 2010-12-27  Bruno Haible  <bruno@clisp.org>
58851         mbrtowc: Work around a Solaris 7 bug.
58852         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
58853         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
58854         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
58855         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
58856         MBRTOWC_NULL_ARG1_BUG.
58857         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
58858         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
58859         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
58860         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
58862 2010-12-27  Jim Meyering  <meyering@redhat.com>
58864         read-file.c: tweak syntax
58865         * lib/read-file.c (fread_file): Remove space after "*" in function
58866         definitions.
58868 2010-12-27  Bruno Haible  <bruno@clisp.org>
58870         times test: Avoid gcc warnings on OSF/1.
58871         * tests/test-times.c (main): Cast printf arguments from clock_t to
58872         'long int'.
58874 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
58876         utimens: work around glibc rounding bug on older Linux kernels
58877         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
58878         on Linux with a glibc whose utimes might not work, then work
58879         around a longstanding glibc bug involving rounding rather than
58880         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
58881         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58883 2010-12-26  Bruno Haible  <bruno@clisp.org>
58885         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
58886         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
58887         _GL_CXXALIAS_SYS.
58888         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58890 2010-12-26  Bruno Haible  <bruno@clisp.org>
58892         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
58893         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
58894         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
58895         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
58896         looking for the declaration.
58897         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
58898         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
58899         problem.
58900         * doc/posix-functions/inet_pton.texi: Likewise.
58902 2010-12-26  Bruno Haible  <bruno@clisp.org>
58904         arpa_inet: Use the common idioms with C++ support.
58905         * lib/arpa_inet.in.h: Include c++defs.h.
58906         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
58907         support.
58908         * modules/arpa_inet (Depends-on): Add c++defs.
58909         (Makefile.am): Substitute the contents of c++defs.h.
58910         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
58911         * modules/arpa_inet-c++-tests: New file.
58912         * tests/test-arpa_inet-c++.cc: New file.
58914 2010-12-25  Bruno Haible  <bruno@clisp.org>
58916         Fix more C++ link errors on Solaris 8.
58917         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
58918         $(LIB_EACCESS).
58919         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
58920         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
58921         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
58922         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
58923         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
58925 2010-12-25  Bruno Haible  <bruno@clisp.org>
58927         printf-posix: Fix link error when a non-GCC compiler is used.
58928         * lib/stdio.in.h (printf): When not using GCC, override printf
58929         correctly.
58930         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
58932 2010-12-25  Bruno Haible  <bruno@clisp.org>
58934         strerror_r-posix: Update doc.
58935         * doc/posix-functions/strerror_r.texi: Update doc about the return
58936         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
58938 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58940         utimens: simplify the logic of the previous change
58941         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
58942         This should not affect whether the test succeeds or fails.
58944         utimens: configure better on hosts with NFS clock skew
58945         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
58946         uses the clock of the local host.  It might use the clock of the
58947         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
58948         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
58950 2010-12-25  Bruno Haible  <bruno@clisp.org>
58952         ptsname test: Avoid failure on Solaris.
58953         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
58954         open a pseudo-terminal; don't use BSD-style ptys.
58955         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
58957 2010-12-25  Bruno Haible  <bruno@clisp.org>
58959         ptsname: Avoid ERANGE failure on some systems.
58960         * lib/ptsname.c (buffer): Increase size.
58962 2010-12-25  Bruno Haible  <bruno@clisp.org>
58964         rename, renameat: Avoid test failures at NFS mounted locations.
58965         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
58966         so that subsequent mkdir calls succeed.
58968 2010-12-25  Bruno Haible  <bruno@clisp.org>
58970         iswblank: Fix C++ link error on Solaris 8.
58971         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
58972         _GL_FUNCDECL_SYS.
58974 2010-12-25  Bruno Haible  <bruno@clisp.org>
58976         unistd: Fix C++ link error on Solaris 8.
58977         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
58979 2010-12-25  Bruno Haible  <bruno@clisp.org>
58981         readlink doc: Mention an old glibc bug.
58982         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
58984 2010-12-25  Bruno Haible  <bruno@clisp.org>
58986         fcntl-h: Fix for use of C++ on glibc systems.
58987         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
58988         also on glibc systems in C++ mode.
58989         Reported by Gary V. Vaughan <gary@gnu.org>.
58991 2010-12-25  Bruno Haible  <bruno@clisp.org>
58993         roundl-ieee: Make it work on OSF/1 5.1 with cc.
58994         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
58996 2010-12-25  Bruno Haible  <bruno@clisp.org>
58998         truncl-ieee: Make it work on OSF/1 5.1 with cc.
58999         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
59000         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
59001         test whether truncl works according to ISO C 99 with IEC 60559.
59002         * m4/truncl-ieee.m4: New file.
59003         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
59004         m4/signbit.m4.
59005         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
59007 2010-12-25  Bruno Haible  <bruno@clisp.org>
59009         ceill-ieee: Make it work on OSF/1 5.1 with cc.
59010         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
59011         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
59012         test whether ceill works according to ISO C 99 with IEC 60559.
59013         * m4/ceill-ieee.m4: New file.
59014         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
59015         m4/signbit.m4.
59016         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
59018 2010-12-25  Bruno Haible  <bruno@clisp.org>
59020         Ensure all prerequisites of <wchar.h> are included.
59021         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
59022         before <wchar.h>.
59023         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
59024         gl_MBRLEN_NUL_RETVAL): Likewise.
59025         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
59026         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
59027         AC_FUNC_MBRTOWC): Likewise.
59028         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59029         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59030         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59031         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
59032         Likewise.
59033         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
59034         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
59035         (gl_WCHAR_H): Improve comments.
59036         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59038 2010-12-25  Bruno Haible  <bruno@clisp.org>
59040         strtok_r: Fix C syntax error in autoconf macro.
59041         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
59042         characters in test program.
59044 2010-12-24  Bruno Haible  <bruno@clisp.org>
59046         ceil, trunc, round: Fix gcc warnings.
59047         * lib/ceil.c (MIN): Undefine before redefining.
59048         * lib/trunc.c (MIN): Likewise.
59049         * lib/round.c (MIN): Likewise.
59050         Include <math.h> first.
59052 2010-12-24  Bruno Haible  <bruno@clisp.org>
59054         select tests: Avoid failures on OSF/1 5.1.
59055         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
59056         failure of closing the last socket; it may fail with ECONNRESET.
59058 2010-12-24  Eric Blake  <eblake@redhat.com>
59060         stdint: avoid HP-UX 10.20 preprocessor bug
59061         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
59062         than #if.
59063         * tests/test-floor2.c (main): Likewise.
59064         Reported by Peter O'Gorman.
59066         pipe: make obsoletion transition easier
59067         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
59068         * modules/pipe (Files): Include revived file.
59069         (Include): Drop reference, to mirror getdate's behavior.
59071 2010-12-24  Bruno Haible  <bruno@clisp.org>
59073         sys_socket: Hide mismatch of declarations on NonStop Kernel.
59074         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
59075         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
59076         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59078 2010-12-24  Bruno Haible  <bruno@clisp.org>
59080         gethostname: Ensure declaration on NonStop Kernel.
59081         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
59082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59084 2010-12-24  Bruno Haible  <bruno@clisp.org>
59086         sys_select: Ensure all necessary types on NonStop Kernel.
59087         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
59088         include <sys/time.h>.
59089         * doc/posix-headers/sys_select.texi: Mention that it's missing on
59090         NonStop Kernel.
59091         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59093 2010-12-24  Bruno Haible  <bruno@clisp.org>
59095         sys_select: Remove unneeded include.
59096         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
59097         have <sys/select.h>.
59099 2010-12-24  Bruno Haible  <bruno@clisp.org>
59101         gethostname: Provide a fallback for HOST_NAME_MAX.
59102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
59103         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
59104         instead.
59105         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59107 2010-12-24  Bruno Haible  <bruno@clisp.org>
59109         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
59110         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
59111         (SA_RESTART): Likewise.
59112         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59114 2010-12-24  Bruno Haible  <bruno@clisp.org>
59116         signal: Define NSIG.
59117         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
59118         * tests/test-signal.c (nsig): New variable.
59119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59121 2010-12-24  Bruno Haible  <bruno@clisp.org>
59123         rename, renameat: Avoid test failures on OSF/1 5.1.
59124         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
59125         alternative error codes.
59126         * tests/test-renameat.c (main): Likewise.
59128 2010-12-24  Bruno Haible  <bruno@clisp.org>
59130         *printf: Detect large precisions bug on Solaris 10/SPARC.
59131         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
59132         by Paul Eggert.
59133         * tests/test-snprintf-posix.h (test_function): Add this test code here
59134         too.
59135         * tests/test-sprintf-posix.h (test_function): Likewise.
59136         * tests/test-vasnprintf-posix.c (test_function): Likewise.
59137         * tests/test-vasprintf-posix.c (test_function): Likewise.
59138         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
59139         around by gnulib.
59140         * doc/posix-functions/printf.texi: Likewise.
59141         * doc/posix-functions/snprintf.texi: Likewise.
59142         * doc/posix-functions/sprintf.texi: Likewise.
59143         * doc/posix-functions/vfprintf.texi: Likewise.
59144         * doc/posix-functions/vprintf.texi: Likewise.
59145         * doc/posix-functions/vsnprintf.texi: Likewise.
59146         * doc/posix-functions/vsprintf.texi: Likewise.
59147         * doc/posix-functions/dprintf.texi: Undo last commit.
59148         * doc/posix-functions/vdprintf.texi: Likewise.
59150 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59152         tests: port test-fdutimensat.c to Solaris 8
59153         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
59154         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
59155         On Solaris 8, it fails with errno == ENOSYS, because there is no
59156         futimens (so it can't use the fd), and there is no lutimens (so it
59157         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
59159         vsnprintf: make more consistent with snprintf; doc fixes
59161         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
59162         the byte count return problem was promoted from the snprintf-posix
59163         to the snprintf module.
59164         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
59165         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
59166         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
59167         * tests/test-snprintf.c (main): Check the byte count returned.
59168         * tests/test-vsnprintf.c (main): Likewise.
59170 2010-12-23  Eric Blake  <eblake@redhat.com>
59172         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
59173         * modules/sigpipe (License): Relax license.
59175 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59177         doc: document Solaris printf bug with large float precisions
59178         * doc/posix-functions/dprintf.texi (dprintf):
59179         * doc/posix-functions/fprintf.texi (fprintf):
59180         * doc/posix-functions/printf.texi (printf):
59181         * doc/posix-functions/snprintf.texi (snprintf):
59182         * doc/posix-functions/sprintf.texi (sprintf):
59183         * doc/posix-functions/vdprintf.texi (vdprintf):
59184         * doc/posix-functions/vfprintf.texi (vfprintf):
59185         * doc/posix-functions/vprintf.texi (vprintf):
59186         * doc/posix-functions/vsnprintf.texi (vsnprintf):
59187         * doc/posix-functions/vsprintf.texi (vsprintf):
59188         Mention that these functions mishandle large floating point
59189         precisions on Solaris 10.  The same bug is also present in Solaris
59190         8, and I assume earlier.  This causes "cd gnulib-tests; make
59191         check" to fail on Solaris 8 (and I assume, later) when building
59192         the latest coreutils, in test-vasprintf-posix's call to
59193         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
59194         the wide flavors (e.g., wprintf) so this patch just updates the
59195         documentation for the narrow ones.
59197         test-posixtm.c: add two tests
59198         * tests/test-posixtm.c: Add two tests, to highlight the
59199         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
59200         around this bug; this is merely to document it.
59202 2010-12-22  Bruno Haible  <bruno@clisp.org>
59204         getlogin_r: Work around portability problem on OSF/1.
59205         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
59206         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
59207         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
59208         test for a truncated result.
59209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
59210         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
59211         * modules/getlogin_r (Depends-on): Add memchr.
59212         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
59214 2010-12-22  Bruno Haible  <bruno@clisp.org>
59216         ptsname: Avoid test failure on OSF/1 5.1.
59217         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
59218         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
59219         (same_slave): New function.
59220         (main): Use it to compare ptsname's result with the expected file name.
59222 2010-12-22  Bruno Haible  <bruno@clisp.org>
59224         Port extended stdio modules to HP NonStop Kernel.
59225         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
59226         macros.
59227         * lib/fbufmode.c: Update comments.
59228         * lib/fflush.c: Likewise.
59229         * lib/fpurge.c: Likewise.
59230         * lib/freadable.c: Likewise.
59231         * lib/freadahead.c: Likewise.
59232         * lib/freading.c: Likewise.
59233         * lib/freadptr.c: Likewise.
59234         * lib/freadseek.c: Likewise.
59235         * lib/fseeko.c: Likewise.
59236         * lib/fseterr.c: Likewise.
59237         * lib/fwritable.c: Likewise.
59238         * lib/fwriting.c: Likewise.
59239         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
59241 2010-12-22  Bruno Haible  <bruno@clisp.org>
59243         ttyname_r: Work around bug on OSF/1 5.1.
59244         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
59245         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
59246         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
59247         present.
59248         * lib/ttyname_r.c (ttyname_r): Update comments.
59250 2010-12-22  Bruno Haible  <bruno@clisp.org>
59252         round: Implement result sign according to IEEE 754.
59253         * lib/round.c (MIN, MINUS_ZERO): New macros.
59254         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
59255         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
59256         * tests/test-round-ieee.c (main): Likewise.
59257         * tests/test-roundl-ieee.c (main): Likewise.
59259         trunc: Implement result sign according to IEEE 754.
59260         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
59261         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
59262         * tests/test-trunc2.c: Include minus-zero.h.
59263         (MINUS_ZERO): New macro.
59264         (trunc_reference): Keep in sync with lib/trunc.c.
59265         * tests/test-truncf2.c: Include minus-zero.h.
59266         (MINUS_ZERO): New macro.
59267         (truncf_reference): Keep in sync with lib/trunc.c.
59268         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
59269         * tests/test-trunc-ieee.c (main): Likewise.
59270         * tests/test-truncl-ieee.c (main): Likewise.
59272         ceil: Implement result sign according to IEEE 754.
59273         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
59274         (FUNC): Return -0.0 for -1 < x < 0.
59275         * tests/test-ceil2.c: Include minus-zero.h.
59276         (MINUS_ZERO): New macro.
59277         (ceil_reference): Keep in sync with lib/ceil.c.
59278         * tests/test-ceilf2.c: Include minus-zero.h.
59279         (MINUS_ZERO): New macro.
59280         (ceilf_reference): Keep in sync with lib/ceil.c.
59281         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
59282         * tests/test-ceil-ieee.c (main): Likewise.
59283         * tests/test-ceill-ieee.c (main): Likewise.
59285         floor: Implement result sign according to IEEE 754.
59286         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
59287         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
59288         * tests/test-floorf2.c (floorf_reference): Likewise.
59289         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
59290         * tests/test-floor-ieee.c (main): Likewise.
59291         * tests/test-floorl-ieee.c (main): Likewise.
59293 2010-12-22  Bruno Haible  <bruno@clisp.org>
59295         getaddrinfo: Update doc.
59296         * doc/posix-functions/gai_strerror.texi: Return type is also different
59297         on AIX and HP-UX.
59299 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
59301         getaddrinfo, inet_ntop: Update doc for Solaris.
59302         * doc/posix-functions/gai_strerror.texi: Return type is also an
59303         issue on Solaris 9 and earlier.
59304         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
59305         on Solaris 10 and earlier.
59307 2010-12-21  Bruno Haible  <bruno@clisp.org>
59309         New module 'roundl-ieee'.
59310         * modules/roundl-ieee: New file.
59311         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
59312         test whether roundl works according to ISO C 99 with IEC 60559.
59313         * m4/roundl-ieee.m4: New file.
59314         * modules/roundl-ieee-tests: New file.
59315         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
59316         * tests/test-roundl.c (main): Remove signbit tests.
59317         * modules/roundl-tests (Depends-on): Remove signbit.
59318         * doc/posix-functions/roundl.texi: Mention the new module.
59320 2010-12-21  Bruno Haible  <bruno@clisp.org>
59322         New module 'truncl-ieee'.
59323         * modules/truncl-ieee: New file.
59324         * modules/truncl-ieee-tests: New file.
59325         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
59326         * tests/test-truncl.c (main): Remove signbit tests.
59327         * modules/truncl-tests (Depends-on): Remove signbit.
59328         * doc/posix-functions/truncl.texi: Mention the new module.
59330 2010-12-21  Bruno Haible  <bruno@clisp.org>
59332         New module 'ceill-ieee'.
59333         * modules/ceill-ieee: New file.
59334         * modules/ceill-ieee-tests: New file.
59335         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
59336         * tests/test-ceill.c (main): Remove signbit tests.
59337         * modules/ceill-tests (Depends-on): Remove signbit.
59338         * doc/posix-functions/ceill.texi: Mention the new module.
59340 2010-12-21  Bruno Haible  <bruno@clisp.org>
59342         New module 'floorl-ieee'.
59343         * modules/floorl-ieee: New file.
59344         * modules/floorl-ieee-tests: New file.
59345         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
59346         * tests/test-floorl.c (main): Remove signbit tests.
59347         * modules/floorl-tests (Depends-on): Remove signbit.
59348         * doc/posix-functions/floorl.texi: Mention the new module.
59350 2010-12-21  Bruno Haible  <bruno@clisp.org>
59352         New module 'round-ieee'.
59353         * modules/round-ieee: New file.
59354         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
59355         whether round works according to ISO C 99 with IEC 60559.
59356         * m4/round-ieee.m4: New file.
59357         * modules/round-ieee-tests: New file.
59358         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
59359         * tests/test-round1.c (main): Remove signbit tests.
59360         * modules/round-tests (Depends-on): Remove 'signbit'.
59361         * doc/posix-functions/round.texi: Mention the new module.
59363 2010-12-21  Bruno Haible  <bruno@clisp.org>
59365         New module 'trunc-ieee'.
59366         * modules/trunc-ieee: New file.
59367         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
59368         whether trunc works according to ISO C 99 with IEC 60559.
59369         * m4/trunc-ieee.m4: New file.
59370         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
59371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
59372         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
59373         * modules/trunc-ieee-tests: New file.
59374         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
59375         * tests/test-trunc1.c (main): Remove signbit tests.
59376         * modules/trunc-tests (Depends-on): Remove 'signbit'.
59377         * doc/posix-functions/trunc.texi: Mention the new module.
59379 2010-12-21  Bruno Haible  <bruno@clisp.org>
59381         New module 'ceil-ieee'.
59382         * modules/ceil-ieee: New file.
59383         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
59384         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
59385         ISO C 99 with IEC 60559.
59386         * m4/ceil-ieee.m4: New file.
59387         * modules/ceil (Files): Add lib/ceil.c.
59388         (Depends-on): Add 'float'.
59389         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59390         * lib/math.in.h (ceil): New declaration.
59391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
59392         REPLACE_CEIL.
59393         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
59394         * modules/ceil-ieee-tests: New file.
59395         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
59396         * tests/test-math-c++.cc: Check the signature of 'ceil'.
59397         * doc/posix-functions/ceil.texi: Mention the new module.
59399 2010-12-21  Bruno Haible  <bruno@clisp.org>
59401         New module 'floor-ieee'.
59402         * modules/floor-ieee: New file.
59403         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
59404         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
59405         ISO C 99 with IEC 60559.
59406         * m4/floor-ieee.m4: New file.
59407         * modules/floor (Files): Add lib/floor.c.
59408         (Depends-on): Add 'float'.
59409         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
59410         * lib/math.in.h (floor): New declaration.
59411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
59412         REPLACE_FLOOR.
59413         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
59414         * modules/floor-ieee-tests: New file.
59415         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
59416         * tests/test-math-c++.cc: Check the signature of 'floor'.
59417         * doc/posix-functions/floor.texi: Mention the new module.
59419 2010-12-21  Bruno Haible  <bruno@clisp.org>
59421         New module 'roundf-ieee'.
59422         * modules/roundf-ieee: New file.
59423         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
59424         test whether roundf works according to ISO C 99 with IEC 60559.
59425         * m4/roundf-ieee.m4: New file.
59426         * modules/roundf-ieee-tests: New file.
59427         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
59428         * tests/test-roundf1.c (main): Remove signbit tests.
59429         * modules/roundf-tests (Depends-on): Remove 'signbit'.
59430         * doc/posix-functions/roundf.texi: Mention the new module.
59432 2010-12-21  Bruno Haible  <bruno@clisp.org>
59434         New module 'truncf-ieee'.
59435         * modules/truncf-ieee: New file.
59436         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
59437         test whether truncf works according to ISO C 99 with IEC 60559.
59438         * m4/truncf-ieee.m4: New file.
59439         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
59440         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
59441         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
59442         * modules/truncf-ieee-tests: New file.
59443         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
59444         * tests/test-truncf1.c (main): Remove signbit tests.
59445         * modules/truncf-tests (Depends-on): Remove 'signbit'.
59446         * doc/posix-functions/truncf.texi: Mention the new module.
59448 2010-12-21  Bruno Haible  <bruno@clisp.org>
59450         New module 'ceilf-ieee'.
59451         * modules/ceilf-ieee: New file.
59452         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
59453         test whether ceilf works according to ISO C 99 with IEC 60559.
59454         * m4/ceilf-ieee.m4: New file.
59455         * modules/ceilf-ieee-tests: New file.
59456         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
59457         * tests/test-ceilf1.c (main): Remove signbit tests.
59458         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
59459         * doc/posix-functions/ceilf.texi: Mention the new module.
59461 2010-12-21  Bruno Haible  <bruno@clisp.org>
59463         New module 'floorf-ieee'.
59464         * modules/floorf-ieee: New file.
59465         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
59466         test whether floorf works according to ISO C 99 with IEC 60559.
59467         * m4/floorf-ieee.m4: New file.
59468         * modules/floorf-ieee-tests: New file.
59469         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
59470         * tests/test-floorf1.c (main): Remove signbit tests.
59471         * modules/floorf-tests (Depends-on): Remove 'signbit'.
59472         * doc/posix-functions/floorf.texi: Mention the new module.
59474 2010-12-21  Bruno Haible  <bruno@clisp.org>
59476         Support for minus zero in autoconf macros.
59477         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
59478         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
59479         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
59480         * tests/minus-zero.h: Update comments.
59482 2010-12-21  Bruno Haible  <bruno@clisp.org>
59484         Tests for module 'ceil'.
59485         * modules/ceil-tests: New file.
59486         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
59487         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
59489 2010-12-21  Bruno Haible  <bruno@clisp.org>
59491         Tests for module 'floor'.
59492         * modules/floor-tests: New file.
59493         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
59494         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
59496 2010-12-21  Bruno Haible  <bruno@clisp.org>
59498         math: Fix indentation.
59499         * lib/math.in.h (floorf): Fix indentation.
59501 2010-12-21  Bruno Haible  <bruno@clisp.org>
59503         Fix cross-compilation guesses on Solaris.
59504         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
59505         not match "solaris2.10".
59506         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59507         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
59508         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
59510 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
59512         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
59513         This fixes a problem observed with the latest coreutils snapshot
59514         that caused a test to fail on Solaris 8.  src/csplit.c's call
59515         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
59516         earlier, instead of returning the number of bytes that would have
59517         been generated; this causes csplit to incorrectly report memory
59518         exhaustion.
59519         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
59520         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
59521         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
59522         comments to match.
59523         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
59524         Fix typo in matching older versions of Solaris: "solaris2.10"
59525         is matched by the shell pattern "solaris2.[0-9]*".  This matters
59526         only for guessing while cross-compiling.
59527         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
59529 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
59531         ftoastr: fix comment again
59532         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59533         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
59534         Also, simplify example a bit by using flags = 0.
59536 2010-12-20  Bruno Haible  <bruno@clisp.org>
59538         round*, trunc*: Update documentation regarding glibc.
59539         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
59540         * doc/posix-functions/round.texi: Likewise.
59541         * doc/posix-functions/roundl.texi: Likewise.
59542         * doc/posix-functions/truncf.texi: Likewise.
59543         * doc/posix-functions/trunc.texi: Likewise.
59544         * doc/posix-functions/truncl.texi: Likewise.
59546 2010-12-20  Bruno Haible  <bruno@clisp.org>
59548         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
59549         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
59550         * doc/posix-functions/round.texi: Likewise.
59551         * doc/posix-functions/roundl.texi: Likewise.
59553 2010-12-20  Bruno Haible  <bruno@clisp.org>
59555         ttyname_r: Add missing declaration on HP-UX 11.
59556         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
59557         HAVE_TTYNAME_R.
59558         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
59559         declared. Set HAVE_TTYNAME_R always.
59560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59561         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
59562         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
59563         HAVE_TTYNAME_R.
59564         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
59566 2010-12-20  Bruno Haible  <bruno@clisp.org>
59568         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
59569         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
59570         * doc/posix-functions/getlogin_r.texi: Likewise.
59571         * tests/test-getlogin.c: Include <errno.h>.
59572         (main): Avoid test failure on HP-UX 11.11.
59573         * tests/test-getlogin_r.c (main): Likewise.
59575 2010-12-20  Bruno Haible  <bruno@clisp.org>
59577         getlogin_r: Add missing declaration on HP-UX 11.
59578         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
59579         declared also when it exists as a function.
59580         * doc/posix-functions/getlogin_r.texi: Document this workaround.
59582 2010-12-20  Bruno Haible  <bruno@clisp.org>
59584         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
59585         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
59586         through wcrtomb.
59588 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59590         ftoastr: fix comment
59591         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
59592         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
59594 2010-12-19  Bruno Haible  <bruno@clisp.org>
59596         isnan: Ensure it is a macro.
59597         * lib/math.in.h (isnan): Define as a macro if not already a macro.
59598         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
59599         Solaris.
59601 2010-12-19  Bruno Haible  <bruno@clisp.org>
59603         ldexpl test: Fix link error on OSF/1 5.1.
59604         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
59606 2010-12-19  Bruno Haible  <bruno@clisp.org>
59608         wctype: Make it work in C++ mode on OSF/1 5.1.
59609         * lib/wctype.in.h (iswblank): Declare but not define here.
59610         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
59611         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
59612         * modules/wctype (Files): Add lib/iswblank.c.
59614 2010-12-19  Bruno Haible  <bruno@clisp.org>
59616         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
59617         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
59618         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
59620 2010-12-19  Bruno Haible  <bruno@clisp.org>
59622         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
59623         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
59624         _POSIX_PII_SOCKET.
59625         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
59626         * doc/posix-functions/recvfrom.texi: Likewise.
59627         * doc/posix-functions/send.texi: Likewise.
59628         * doc/posix-functions/sendto.texi: Likewise.
59630 2010-12-19  Bruno Haible  <bruno@clisp.org>
59632         tcgetsid: Add missing declaration on OSF/1 5.1.
59633         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
59634         HAVE_TCGETSID.
59635         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
59636         Don't set HAVE_TCGETSID.
59637         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
59638         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
59639         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
59640         HAVE_TCGETSID.
59641         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
59643 2010-12-19  Bruno Haible  <bruno@clisp.org>
59645         stdio: Fix problem with popen() declaration on OSF/1 5.1.
59646         * lib/stdio.in.h: During the include_next statement, let recursive
59647         includes of this file include only the system header file.
59649 2010-12-19  Bruno Haible  <bruno@clisp.org>
59651         iconv_open: Fix regression from 2010-12-04.
59652         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
59653         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
59655 2010-12-19  Bruno Haible  <bruno@clisp.org>
59657         stdbool test: Avoid a gcc warning.
59658         * tests/test-stdbool.c (main): Fail if e1 is false.
59659         Reported by Jim Meyering.
59661 2010-12-19  Jim Meyering  <meyering@redhat.com>
59663         setenv: restore to working order
59664         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
59665         mistakenly removed.
59666         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
59667         HAVE_SETENV.
59668         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
59669         HAVE_SETENV.
59671 2010-12-19  Bruno Haible  <bruno@clisp.org>
59673         Document some different function declarations on OSF/1 5.1.
59674         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
59675         * doc/posix-functions/inet_ntop.texi: Likewise.
59676         * doc/posix-functions/gethostname.texi: Likewise.
59677         * lib/unistd.in.h (gethostname): Update comment.
59679 2010-12-19  Bruno Haible  <bruno@clisp.org>
59681         doc: Mention vasprintf-posix module.
59682         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
59683         the 'vasprintf-posix' module.
59684         * doc/glibc-functions/vasprintf.texi: Likewise.
59686 2010-12-19  Bruno Haible  <bruno@clisp.org>
59688         unsetenv: Add missing declaration on OSF/1 5.1.
59689         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
59690         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
59691         Don't set HAVE_UNSETENV. In the test program, set _BSD.
59692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
59693         not HAVE_UNSETENV.
59694         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
59695         HAVE_UNSETENV.
59696         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
59698 2010-12-19  Bruno Haible  <bruno@clisp.org>
59700         setenv: Add missing declaration on OSF/1 5.1.
59701         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
59702         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
59703         declared. Don't set HAVE_SETENV.
59704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
59705         not HAVE_SETENV.
59706         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
59707         HAVE_SETENV.
59708         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
59710 2010-12-19  Bruno Haible  <bruno@clisp.org>
59712         nl_langinfo tests: Avoid gcc warning.
59713         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
59715 2010-12-19  Bruno Haible  <bruno@clisp.org>
59717         mknod: Avoid error in C++ mode on OSF/1 with GCC.
59718         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
59719         _GL_CXXALIAS_SYS.
59721 2010-12-19  Bruno Haible  <bruno@clisp.org>
59723         stdbool: Relax test.
59724         * tests/test-stdbool.c (e): Don't require that casts from a variable's
59725         address to 'bool' work in static initializer, for compilers other than
59726         GCC.
59728 2010-12-19  Bruno Haible  <bruno@clisp.org>
59730         ftello: Add missing declaration on OSF/1 5.1.
59731         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
59732         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
59733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
59734         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
59735         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
59737 2010-12-19  Bruno Haible  <bruno@clisp.org>
59739         fseeko: Add missing declaration on OSF/1 5.1.
59740         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
59741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
59742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
59743         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
59744         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
59746 2010-12-19  Bruno Haible  <bruno@clisp.org>
59748         fchdir: Add missing declaration on OSF/1 5.1.
59749         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
59750         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
59751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
59752         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
59753         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
59755 2010-12-19  Bruno Haible  <bruno@clisp.org>
59757         relocatable-prog-wrapper: Separate from relocatable-prog.
59758         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
59759         uninstall-relocwrapper rule here.
59760         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
59761         Reported by Ian Beckwith <ianb@erislabs.net>.
59763 2010-12-19  Bruno Haible  <bruno@clisp.org>
59765         unistr/u8-mbsnlen: Add missing dependency.
59766         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
59767         Reported by Ian Beckwith <ianb@erislabs.net>.
59769 2010-12-19  Bruno Haible  <bruno@clisp.org>
59771         iconv: Make it possible again to use this module without 'iconv-h'.
59772         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
59773         if it is not defined.
59774         Reported by Ian Beckwith <ianb@erislabs.net>.
59776 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59778         acl: port to Solaris 8 when copying from tmpfs to ufs
59779         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
59780         error number.  Problem observed on Solaris 8 with latest
59781         coreutils, with "mv A B", where A is on a tmpfs file system and B
59782         is on a ufs file system.  This caused coreutils' mv/part-symlink
59783         test to fail.
59785         tests: set fail=0 at start
59786         * tests/init.sh (setup_): Move fail=0 initialization here ...
59787         (mktempd_): ... from here, so that tests can rely on fail being
59788         set to 0 initially.  This fixes a problem in coreutils; see:
59789         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
59791 2010-12-18  Bruno Haible  <bruno@clisp.org>
59793         memmem-simple: Stylistic changes.
59794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
59795         Fix preprocessor directive indentation.
59797 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59799         memmem, memmem-simple: reorganize and expand empty needle check
59800         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
59801         functional checks to memmem-simple so that one has a fully functional
59802         memmem by using just this module.
59803         Restrict the performance only check to the memmem module.
59804         Also expand the empty needle check to ensure the correct
59805         pointer is returned, not just a non NULL pointer.
59806         * doc/glibc-functions/memmem.texi: Rearrange the portability
59807         documentation to correlate with the rearranged checks.
59808         Clarify exactly how the memmem and memmem-simple modules
59809         relate to each other.
59811 2010-12-15  Pádraig Brady  <P@draigBrady.com>
59812             Bruno Haible  <bruno@clisp.org>
59814         Improve cross-compilation guesses for uClibc.
59815         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
59816         that uClibc does not have the glibc bug.
59817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
59818         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
59820 2010-12-14  Eric Blake  <eblake@redhat.com>
59822         configmake: provide fallbacks for oldest supported autotools
59823         * m4/configmake.m4: New file.
59824         * modules/configmake (Files): Ship it.
59825         (configure.ac): Use it to guarantee fallbacks.
59827 2010-12-13  Pádraig Brady  <P@draigBrady.com>
59829         read-file: Improve handling of large files
59830         * lib/read-file.c (fread_file): Minimize realloc()s
59831         for regular files, and better manage sizes around SIZE_MAX.
59833 2010-12-13  Eric Blake  <eblake@redhat.com>
59835         cloexec, fcntl: relax license
59836         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
59837         consent from all contributors.
59838         * modules/fcntl (License): Likewise.
59840 2010-12-10  Bruno Haible  <bruno@clisp.org>
59842         Tests for module 'pipe-posix'.
59843         * modules/pipe-posix-tests: New file.
59844         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
59846 2010-12-10  Bruno Haible  <bruno@clisp.org>
59848         pipe-posix: Make it work in C++ mode.
59849         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
59850         (pipe): Use common idiom, not a macro definition.
59851         * lib/pipe.c: New file.
59852         * m4/pipe.m4: New file.
59853         * modules/pipe-posix (Description): Enhance.
59854         (Files): Add lib/pipe.c, m4/pipe.m4.
59855         (configure.ac): Invoke gl_FUNC_PIPE.
59856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
59857         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
59858         * tests/test-unistd-c++.cc: Check the signature of pipe.
59860 2010-12-10  Bruno Haible  <bruno@clisp.org>
59862         Rename module 'pipe' to 'spawn-pipe'.
59863         * modules/spawn-pipe: New file, renamed from modules/pipe.
59864         (Files, configure.ac, Makefile.am): Update.
59865         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
59866         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
59867         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
59868         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
59869         "spawn-pipe.h" instead of "pipe.h".
59870         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
59871         to gl_SPAWN_PIPE.
59872         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
59873         (Files, Makefile.am): Update.
59874         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
59875         Update.
59876         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
59877         Include "spawn-pipe.h" instead of "pipe.h".
59878         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
59879         * lib/javacomp.c: Likewise.
59880         * lib/javaversion.c: Likewise.
59881         * lib/pipe-filter-gi.c: Likewise.
59882         * lib/pipe-filter-ii.c: Likewise.
59883         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
59884         * modules/javacomp (Depends-on): Likewise.
59885         * modules/javaversion (Depends-on): Likewise.
59886         * modules/pipe-filter-gi (Depends-on): Likewise.
59887         * modules/pipe-filter-ii (Depends-on): Likewise.
59888         * MODULES.html.sh (Executing programs): Update.
59889         * NEWS: Mention the change.
59891 2010-12-10  Eric Blake  <eblake@redhat.com>
59893         pipe-posix: new module
59894         * modules/pipe-posix: New file.
59895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
59896         (gl_UNISTD_H): Check for declaration.
59897         * modules/unistd (Makefile.am): Substitute it.
59898         * lib/unistd.in.h (pipe): Provide it for mingw.
59899         * doc/posix-functions/pipe.texi (pipe): Update documentation.
59900         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
59902 2010-12-07  Bruno Haible  <bruno@clisp.org>
59904         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
59905         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
59906         u8_strcmp_gnu.
59907         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
59909 2010-12-06  Bruno Haible  <bruno@clisp.org>
59911         Update internal documentation.
59912         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
59914 2010-12-04  Bruno Haible  <bruno@clisp.org>
59916         Put more information about failed tests into the test return codes.
59917         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
59918         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
59919         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
59920         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
59921         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
59922         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59923         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59924         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
59925         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
59926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59927         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
59928         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59929         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
59930         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59931         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
59932         returns a bit mask.
59933         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
59934         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
59935         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
59936         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
59937         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
59938         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
59939         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59941         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
59942         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
59943         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59944         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
59945         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
59946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
59947         * m4/link.m4 (gl_FUNC_LINK): Likewise.
59948         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59949         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
59950         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
59951         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
59952         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
59953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59954         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
59955         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
59956         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59957         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
59958         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59959         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
59960         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
59961         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
59962         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
59963         gl_PRINTF_PRECISION): Likewise.
59964         * m4/regex.m4 (gl_REGEX): Likewise.
59965         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
59966         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
59967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
59968         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59969         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59970         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
59972         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
59973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59974         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
59975         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59976         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59977         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
59978         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59979         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59980         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
59981         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
59982         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
59983         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59984         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
59985         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
59986         enumerated value.
59987         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
59989 2010-12-04  Bruno Haible  <bruno@clisp.org>
59991         Update for Solaris 11 2010-11.
59992         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
59993         Express, released in November 2010.
59995 2010-12-04  Bruno Haible  <bruno@clisp.org>
59997         nproc: Relax license.
59998         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
59999         and Paul Eggert.
60000         Requested by Ludovic Courtès <ludo@gnu.org>.
60002 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
60004         utimecmp: fine-grained src to nearby coarse-grained dest
60006         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
60007         and the source is on a file system with higher-resolution time
60008         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
60009         not work, and the time stamps are close together, the algorithm to
60010         determine the exact resolution from the read-back mtime was buggy:
60011         it had a "!=" where it should have had an "==".  This bug has been
60012         in the code ever since it was introduced to gnulib.
60013         Problem reported by Dan Jacobson in
60014         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
60016 2010-11-30  Bruno Haible  <bruno@clisp.org>
60018         strerror_r-posix: Fix autoconf test.
60019         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
60021 2010-11-28  Bruno Haible  <bruno@clisp.org>
60022             Paul Eggert  <eggert@cs.ucla.edu>
60024         Tests for module 'getdomainname'.
60025         * modules/getdomainname-tests: New file.
60026         * tests/test-getdomainname.c: New file, based on
60027         tests/test-gethostname.c.
60029 2010-11-28  Bruno Haible  <bruno@clisp.org>
60030             Paul Eggert  <eggert@cs.ucla.edu>
60032         getdomainname: Use the system function when possible.
60033         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
60034         (getdomainname): Replace if needed. Provide the declaration if it is
60035         missing. Don't use _GL_CXXALIAS_SYS_CAST.
60036         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
60037         (getdomainname): When the system has getdomainname, call the system
60038         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
60039         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
60040         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
60041         found in libnsl. Look for the declaration also in <netdb.h>. Replace
60042         the function if its second argument is of type 'int' or if it is found
60043         in libnsl.
60044         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
60045         <sys/systeminfo.h> and sysinfo().
60046         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
60047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60048         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
60049         HAVE_GETDOMAINNAME.
60050         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
60051         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
60052         * doc/glibc-functions/getdomainname.texi: Document the problems with
60053         the getdomainname declaration.
60055 2010-11-28  Bruno Haible  <bruno@clisp.org>
60057         sys_socket: Ensure ss_family field on AIX.
60058         * lib/sys_socket.in.h (ss_family): New macro definition.
60059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
60060         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
60061         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
60062         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60063         * modules/sys_socket (Makefile.am): Substitute
60064         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
60065         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
60067 2010-11-27  Bruno Haible  <bruno@clisp.org>
60069         readline: Improve configure output.
60070         * m4/readline.m4 (gl_FUNC_READLINE): Make the
60071         "checking for readline..." result understandable.
60073 2010-11-27  Bruno Haible  <bruno@clisp.org>
60075         *printf-posix: Detect a bug on Solaris 10/x86.
60076         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
60077         for floating-point output.
60078         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
60079         directive.
60080         * tests/test-snprintf-posix.h (test_function): Likewise.
60081         * tests/test-sprintf-posix.h (test_function): Likewise.
60082         * tests/test-vasprintf-posix.c (test_function): Likewise.
60083         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
60084         * doc/posix-functions/printf.texi: Likewise.
60085         * doc/posix-functions/snprintf.texi: Likewise.
60086         * doc/posix-functions/sprintf.texi: Likewise.
60087         * doc/posix-functions/vfprintf.texi: Likewise.
60088         * doc/posix-functions/vprintf.texi: Likewise.
60089         * doc/posix-functions/vsnprintf.texi: Likewise.
60090         * doc/posix-functions/vsprintf.texi: Likewise.
60091         * doc/glibc-functions/obstack_printf.texi: Likewise.
60092         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
60094 2010-11-27  Bruno Haible  <bruno@clisp.org>
60096         Fix link error when module libunistring-optional is in use.
60097         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
60098         * modules/striconveha-tests (Makefile.am): Likewise.
60100 2010-11-27  Bruno Haible  <bruno@clisp.org>
60102         regex: Mention link dependencies.
60103         * modules/regex (Link): New section.
60104         * modules/rpmatch (Link): Likewise.
60105         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
60107 2010-11-27  Bruno Haible  <bruno@clisp.org>
60109         ftoastr: Fix compilation error on Solaris.
60110         * lib/ftoastr.c: Include <config.h>.
60112 2010-11-27  Bruno Haible  <bruno@clisp.org>
60114         getloadavg: Update documentation.
60115         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
60117 2010-11-27  Bruno Haible  <bruno@clisp.org>
60119         sys_socket: Fix test whether the functions are declared.
60120         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
60121         not <sys/select.h>.
60123 2010-11-27  Bruno Haible  <bruno@clisp.org>
60125         getpass: Make sure to get system declaration on some platforms.
60126         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
60127         gl_USE_SYSTEM_EXTENSIONS.
60128         * modules/getpass (Depends-on): Add extensions.
60130 2010-11-26  Bruno Haible  <bruno@clisp.org>
60132         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
60133         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
60134         'iconv' module is present.
60135         (ICONV_CONST): New macro.
60136         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
60137         ICONV_CONST.
60138         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
60139         set ICONV_CONST.
60140         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
60141         here.
60142         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
60143         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
60144         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
60145         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
60146         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
60147         present.
60149 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60151         ftoastr: comment fix
60152         * lib/ftoastr.c: "little" -> "little or no" in comment
60154 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
60156         stdint: port to GCC 4.3 + OSX + Octave
60157         On this platform, stdint.h is buggy and defines int64_t to long
60158         long int.  The replacement defined it to long int, causing
60159         problems with C++ style name mangling.  Instead, trust the system
60160         definition if INT64_MAX is defined, and likewise for the unsigned
60161         variant.   Problem reported by Jarno Rajahalme in
60162         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
60163         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
60164         and don't mess with int64_t and INT64_MAX in this case.
60165         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
60167 2010-11-24  Bruno Haible  <bruno@clisp.org>
60169         doc: Corrections regarding MacOS X 10.4 and 10.5.
60170         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
60171         MacOS X.
60172         Reported by Simon Josefsson.
60174 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
60176         Uninstall ".bin" files installed by relocwrapper.
60177         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
60178         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
60179         unless it is already there.
60181 2010-11-21  Bruno Haible  <bruno@clisp.org>
60183         Update for NetBSD 5.0.
60184         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60185         NetBSD; the test fails on NetBSD 5.0.
60186         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60187         about NetBSD.
60189 2010-11-21  Bruno Haible  <bruno@clisp.org>
60191         Update for HP-UX 11.23 and HP-UX 11.31.
60192         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
60193         HP-UX.
60195 2010-11-21  Bruno Haible  <bruno@clisp.org>
60197         Update for MacOS X 10.5.
60198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
60199         MacOS X; the test fails on MacOS X 10.5.8.
60200         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
60201         about MacOS X.
60203 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
60205         bootstrap: add bootstrap_sync option.
60206         See discussion at
60207         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
60208         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
60209         * build-aux/bootstrap: Accept --bootstrap-sync to update
60210         bootstrap if it is not identical to the local gnulib's
60211         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
60212         enable this by default.  Accept --no-bootstrap-sync to disable
60213         it.
60215 2010-11-20  Bruno Haible  <bruno@clisp.org>
60217         Ensure that <features.h> is included before __GLIBC__ is tested.
60218         * lib/printf-parse.h: Include <features.h>.
60219         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
60220         Reported by Mike Frysinger <vapier@gentoo.org>.
60222         Ensure that <features.h> is included before __GLIBC__ is tested.
60223         * lib/wchar.in.h: Include <features.h>.
60224         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
60225         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
60226         Reported by Mike Frysinger <vapier@gentoo.org>.
60228         Ensure that <features.h> is included before __GLIBC__ is tested.
60229         * lib/arpa_inet.in.h: Include <features.h>.
60230         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
60231         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
60232         Reported by Mike Frysinger <vapier@gentoo.org>.
60234         Ensure that <features.h> is included before __GLIBC__ is tested.
60235         * build-aux/link-warning.h: Include <features.h>.
60236         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
60237         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
60238         Reported by Mike Frysinger <vapier@gentoo.org>.
60240         Ensure that <features.h> is included before __GLIBC__ is tested.
60241         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
60242         Reported by Mike Frysinger <vapier@gentoo.org>.
60244 2010-11-20  Bruno Haible  <bruno@clisp.org>
60246         memmem: Fix autoconf test.
60247         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
60249 2010-11-20  Bruno Haible  <bruno@clisp.org>
60251         Port to uClibc.
60252         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
60253         * lib/fcntl.in.h: Likewise.
60254         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
60255         * lib/mbrtowc.c (mbrtowc): Likewise.
60256         * lib/relocatable.c (find_shared_library_fullname): Likewise.
60257         * lib/strerror_r.c: Likewise.
60258         * lib/unistr/u8-strnlen.c: Likewise.
60259         * lib/vasnprintf.c (decimal_point_char): Likewise.
60260         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60261         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
60262         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60263         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
60264         * tests/test-sigaction.c (handler, main): Likewise.
60265         * lib/freading.h: Treat uClibc like a non-glibc platform.
60266         * lib/freading.c: Likewise.
60267         * lib/gettext.h: Likewise.
60268         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
60269         Likewise.
60270         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
60271         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
60272         * lib/propername.c (proper_name_utf8): Likewise.
60273         * lib/spawn.in.h: Likewise.
60274         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
60275         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
60276         mem_cd_iconveh_internal): Likewise.
60277         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
60278         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
60279         strstr, strcasestr): Likewise.
60280         * lib/unicodeio.c (unicode_to_mb): Likewise.
60281         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
60282         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
60283         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
60284         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
60285         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
60286         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
60287         * lib/unistr/u8-stpncpy.c: Likewise.
60288         * lib/vasnprintf.c (VASNPRINTF): Likewise.
60289         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
60290         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60291         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
60292         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
60293         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
60294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
60295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
60296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
60297         Likewise.
60298         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
60299         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60300         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
60301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60303         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60304         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60305         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60306         * tests/test-getopt.h (OPTIND_MIN): Likewise.
60307         * tests/test-striconveha.c (main): Likewise.
60308         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60309         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
60310         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
60311         * doc/posix-functions/getline.texi: Likewise.
60312         Reported by Mike Frysinger <vapier@gentoo.org>.
60314 2010-11-20  Bruno Haible  <bruno@clisp.org>
60316         nproc: Fix condition.
60317         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
60318         HAVE_PTHREAD_AFFINITY_NP.
60320 2010-11-20  Bruno Haible  <bruno@clisp.org>
60322         Fix a comment.
60323         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
60325 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
60327         ftoastr: don't assume snprintf
60328         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
60329         Implement a subset of snprintf here, by using sprintf safely.
60330         * modules/ftoastr (Depends-on): Remove snprintf.
60332 2010-11-19  Jim Meyering  <meyering@redhat.com>
60334         test-rename.h: fix compilation failure
60335         * tests/test-rename.h (test_rename): Add omitted "}".
60337 2010-11-17  Jim Meyering  <meyering@redhat.com>
60339         maint.mk: add a URL discussing the no-@acronym policy
60340         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
60342 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
60344         ftoastr: depend on snprintf, improve comments
60345         * lib/ftoastr.c: Also mention Loitsch's draft.
60346         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
60347         needed in the current implementation, but it might simplify
60348         speeding up the code later.
60349         * modules/ftoastr: Depend on snprintf; this improves portability.
60350         Suggested by Bruno Haible in the same email.
60352         ftoastr: port to hosts lacking strtof and strtold
60353         Problem reported by Bruno Haible in
60354         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
60355         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
60356         environment and strtold (and presumably strtof) are not available.
60357         * modules/ftoastr (Files): Add m4/c-strtod.m4.
60358         (configure.ac): Require gl_C99_STRTOLD.
60360 2010-11-18  Bruno Haible  <bruno@clisp.org>
60362         c-strtold: Avoid link error on AIX 7.
60363         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
60364         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
60365         (gl_C_STRTOLD): Test whether strtold_l exists.
60366         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60368 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60370         intprops: new macro INT_BITS_STRLEN_BOUND
60371         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
60372         ftoastr.h.  This exposes an internal of intprops.h that was formerly
60373         not exposed.  Also, it uses a slightly tighter bound than before;
60374         though this makes no practical difference, we might as well be as
60375         tight as we easily can.
60377         ftoastr: new module, for lossless conversion of floats to short strings
60378         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
60379         * modules/ftoastr: New files.
60381 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60383         bootstrap: port to Solaris sed
60384         * build-aux/bootstrap (get_version): Port to Solaris sed.
60385         See Ralf Wildenhues's note in
60386         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
60388 2010-11-14  Jim Meyering  <meyering@redhat.com>
60390         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
60391         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
60392         and move definition closer to sole use.
60394 2010-11-13  Jim Meyering  <meyering@redhat.com>
60396         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
60397         Now we require at least autoconf-2.59, which means the work-around
60398         is no longer needed.
60399         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
60400         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60401         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
60402         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
60403         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
60405 2010-11-13  Bruno Haible  <bruno@clisp.org>
60407         rename, renameat: Avoid test failures at NFS mounted locations.
60408         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
60409         functions.
60410         (test_rename): Use assert_nonexistent.
60411         * tests/test-rename.c: Include <dirent.h>.
60412         * tests/test-renameat.c: Likewise.
60413         Reported by Gary V. Vaughan <gary@gnu.org>.
60415         rename, renameat: Document Linux bug with NFS
60416         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
60417         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
60418         * doc/posix-functions/renameat.texi: Likewise.
60419         Suggested by Eric Blake.
60421 2010-11-13  Bruno Haible  <bruno@clisp.org>
60423         rename test: Add comments.
60424         * tests/test-rename.h (test_rename): Add structure and comments.
60426 2010-11-13  Eric Blake  <eblake@redhat.com>
60428         maintainer-makefile: cover a few more files
60429         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
60430         scripts generated within C files, for libvirt.
60432 2010-11-13  Bruno Haible  <bruno@clisp.org>
60434         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
60435         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
60436         character, return the number of bytes that belong together, not always
60437         1.
60438         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
60439         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
60440         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
60441         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
60442         number of bytes of an invalid character.
60443         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
60444         (main): Invoke it.
60445         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
60446         results.
60447         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
60448         malformed byte sequences.
60449         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
60450         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
60451         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
60452         Reported by Ben Pfaff and Paolo Bonzini.
60454 2010-11-13  Bruno Haible  <bruno@clisp.org>
60456         openat: Work around glibc bug with fchownat() and empty file names.
60457         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
60458         (gl_FUNC_FCHOWNAT): Invoke it.
60459         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
60460         * doc/posix-functions/fchownat.texi: Document the glibc bug.
60461         Reported by Gary V. Vaughan <gary@gnu.org>.
60463 2010-11-13  Bruno Haible  <bruno@clisp.org>
60465         openat: Ensure autoconf macro ordering.
60466         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
60467         gl_USE_SYSTEM_EXTENSIONS.
60468         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
60470 2010-11-13  Bruno Haible  <bruno@clisp.org>
60472         Update comments.
60473         * lib/unistr/u8-check.c: Update file name in comments.
60474         * lib/unistr/u8-mblen.c: Likewise.
60475         * lib/unistr/u8-prev.c: Likewise.
60476         * lib/unistr/u8-strmblen.c: Likewise.
60477         * lib/unistr/u8-strmbtouc.c: Likewise.
60479 2010-11-13  Jim Meyering  <meyering@redhat.com>
60481         tests: avoid test failure on Solaris 10 due to lack of PATH export
60482         * tests/test-update-copyright.sh: Don't forget to export PATH.
60484         init.sh: ensure that IFS is defined, just in case...
60485         * tests/init.sh (setup_): Ensure that IFS is defined,
60486         so that saving and restoring it works as expected.  This
60487         appears to be useful at least for an old version of dash
60488         from a long time ago (RH 6).  See here for details:
60489         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
60491         maint.mk: tighten "test a == b" check
60492         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
60493         test to files that contain something like #!/bin/sh.
60494         Without this, coreutils would get two false positives in
60495         the comments of C source files.
60497 2010-11-12  Eric Blake  <eblake@redhat.com>
60499         bootstrap: fix typo in previous attempt
60500         * build-aux/bootstrap (buildreq): Correct the grouping.
60501         Reported by Paul Eggert.
60503         maintainer-makefile: prohibit test x == x
60504         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
60505         Based on a report by Matthias Bolte.
60507         bootstrap: allow FreeBSD gzip
60508         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
60509         which has no '.' and goes to stderr.
60510         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
60511         Reported by Matthias Bolte.
60513         maintainer-makefile: check for i18n setup
60514         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
60515         will likely work.
60517 2010-11-12  Bruno Haible  <bruno@clisp.org>
60519         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
60520         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
60521         * lib/nanosleep.c (nanosleep): Likewise.
60523 2010-11-11  Bruno Haible  <bruno@clisp.org>
60525         fcntl-h: Fix for use of C++ on glibc systems.
60526         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
60527         also on glibc systems in C++ mode.
60528         Reported by Gary V. Vaughan <gary@gnu.org>.
60530 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60532         mknod: avoid false failure with dash
60533         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
60535 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60537         unlink: Fix "is it should" typo in diagnostic.
60538         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
60539         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
60541 2010-11-11  Bruno Haible  <bruno@clisp.org>
60543         Tests for module 'strerror_r-posix'.
60544         * modules/strerror_r-posix-tests: New file.
60545         * tests/test-strerror_r.c: New file.
60546         * tests/test-string-c++.cc: Check the signature of strerror_r.
60548         New module 'strerror_r-posix'.
60549         * lib/string.in.h (strerror_r): New declaration.
60550         * lib/strerror_r.c: New file.
60551         * m4/strerror_r.m4: New file.
60552         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
60553         of strerror_r.
60554         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
60555         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60556         * modules/strerror_r-posix: New file.
60557         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
60558         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
60559         * doc/posix-functions/strerror_r.texi: Mention the new module and the
60560         portability problems.
60562 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
60564         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
60565         line is also considered for output. Quoted function name in shell
60566         command, so temporary files for functions like MyClass::operator()
60567         are removed correctly without errors.
60569 2010-11-09  Bruno Haible  <bruno@clisp.org>
60571         * doc/posix-functions/strerror.texi: List more failing platforms.
60573         * doc/posix-functions/strerror.texi: Add a comment.
60575 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
60577         fdopendir: fix bug on MacOS X when low on file descriptors
60579         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
60580         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
60581         All callers changed.
60582         (fdopendir): Invoke save_cwd at the top level, not after using
60583         multiple dup() calls to use up file descriptors.  Then retry
60584         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
60585         less than the maximum number of open file descriptors, because
60586         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
60587         on Mac OS X 10.6.4 for tar 1.24
60588         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
60589         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
60590         and for tar 1.25
60591         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
60593 2010-11-07  Bruno Haible  <bruno@clisp.org>
60595         vasnprintf: Support I flag on glibc systems.
60596         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
60597         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
60598         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
60599         snprintf function.
60600         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
60601         glibc systems.
60602         * tests/test-vasnprintf-posix3.c: New file.
60603         * modules/vasnprintf-posix-tests (Files): Add it.
60604         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
60606 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60608         [html] Fix copy/paste bug: Use unique name for compiler warnings.
60609         * MODULES.html.sh: For compiler warnings, use name
60610         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
60612 2010-11-05  Eric Blake  <eblake@redhat.com>
60614         ceil, floor: avoid spurious failure with icc
60615         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
60616         [denormals-as-zero] when optimizing without -mieee-fp option.
60617         * tests/test-floorf2.c (floorf_reference): Likewise.
60618         * tests/test-ceilf1.c (dummy): New function.
60619         (main): Use it to outsmart icc's optimization.
60620         * tests/test-floorf1.c (dummy, main): Likewise.
60622         tests: require working signbit
60623         * modules/ceilf-tests (Depends-on): Add signbit.
60624         * modules/ceill-tests (Depends-on): Likewise.
60625         * modules/floorf-tests (Depends-on): Likewise.
60626         * modules/floorl-tests (Depends-on): Likewise.
60627         * modules/round-tests (Depends-on): Likewise.
60628         * modules/roundf-tests (Depends-on): Likewise.
60629         * modules/roundl-tests (Depends-on): Likewise.
60630         * modules/trunc-tests (Depends-on): Likewise.
60631         * modules/truncf-tests (Depends-on): Likewise.
60632         * modules/truncl-tests (Depends-on): Likewise.
60634         strtod: work around icc bug
60635         * lib/strtod.c (minus_zero): Define to working value.
60636         (strtod): Use it to avoid icc bug.
60638         copysign: enhance tests
60639         * modules/copysign-tests (Files): Add minus-zero.h.
60640         * tests/test-copysign.c (main): Also test zeros.
60642 2010-11-04  Eric Blake  <eblake@redhat.com>
60644         ceil, floor, round, trunc: enhance tests of -0
60645         * tests/test-ceilf1.c (main): Ensure correct sign of result.
60646         * tests/test-ceill.c (main): Likewise.
60647         * tests/test-floorf1.c (main): Likewise.
60648         * tests/test-floorl.c (main): Likewise.
60649         * tests/test-round1.c (main): Likewise.
60650         * tests/test-roundf1.c (main): Likewise.
60651         * tests/test-roundl.c (main): Likewise.
60652         * tests/test-trunc1.c (main): Likewise.
60653         * tests/test-truncf1.c (main): Likewise.
60654         * tests/test-truncl.c (main): Likewise.
60656 2010-11-04  Eric Blake  <eblake@redhat.com>
60658         frexp, tests: work around ICC bug with -zero
60659         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
60660         works with more compilers.
60661         * tests/minus-zero.h: New file.
60662         * modules/ceilf-tests (Files): Include it.
60663         * modules/ceill-tests (Files): Likewise.
60664         * modules/floorf-tests (Files): Likewise.
60665         * modules/floorl-tests (Files): Likewise.
60666         * modules/frexp-nolibm-tests (Files): Likewise.
60667         * modules/frexp-tests (Files): Likewise.
60668         * modules/frexpl-nolibm-tests (Files): Likewise.
60669         * modules/frexpl-tests (Files): Likewise.
60670         * modules/isnan-tests (Files): Likewise.
60671         * modules/isnand-nolibm-tests (Files): Likewise.
60672         * modules/isnand-tests (Files): Likewise.
60673         * modules/isnanf-nolibm-tests (Files): Likewise.
60674         * modules/isnanf-tests (Files): Likewise.
60675         * modules/isnanl-nolibm-tests (Files): Likewise.
60676         * modules/isnanl-tests (Files): Likewise.
60677         * modules/round-tests (Files): Likewise.
60678         * modules/roundf-tests (Files): Likewise.
60679         * modules/roundl-tests (Files): Likewise.
60680         * modules/ldexpl-tests (Files): Likewise.
60681         * modules/signbit-tests (Files): Likewise.
60682         * modules/snprintf-posix-tests (Files): Likewise.
60683         * modules/sprintf-posix-tests (Files): Likewise.
60684         * modules/strtod-tests (Files): Likewise.
60685         * modules/trunc-tests (Files): Likewise.
60686         * modules/truncf-tests (Files): Likewise.
60687         * modules/truncl-tests (Files): Likewise.
60688         * modules/vsnprintf-posix-tests (Files): Likewise.
60689         * modules/vsprintf-posix-tests (Files): Likewise.
60690         * modules/vasnprintf-posix-tests (Files): Likewise.
60691         * modules/vasprintf-posix-tests (Files): Likewise.
60692         * tests/test-ceilf1.c (main): Use it.
60693         * tests/test-ceill.c (main): Likewise.
60694         * tests/test-floorf1.c (main): Likewise.
60695         * tests/test-floorl.c (main): Likewise.
60696         * tests/test-frexp.c (main): Likewise.
60697         * tests/test-frexpl.c (main): Likewise.
60698         * tests/test-isnan.c (main): Likewise.
60699         * tests/test-isnand.h (main): Likewise.
60700         * tests/test-isnanf.h (main): Likewise.
60701         * tests/test-isnanl.h (main): Likewise.
60702         * tests/test-ldexpl.c (main): Likewise.
60703         * tests/test-round.c (main): Likewise.
60704         * tests/test-roundf.c (main): Likewise.
60705         * tests/test-roundl.c (main): Likewise.
60706         * tests/test-signbit.c (test_signbitf, test_signbitd)
60707         (test_signbitl): Likewise.
60708         * tests/test-snprintf-posix.h (test_function): Likewise.
60709         * tests/test-sprintf-posix.h (test_function): Likewise.
60710         * tests/test-strtod.c (main): Likewise.
60711         * tests/test-trunc1.c (main): Likewise.
60712         * tests/test-truncf1.c (main): Likewise.
60713         * tests/test-truncl.c (main): Likewise.
60715         isnanl: work around icc bug
60716         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
60718 2010-11-03  Eric Blake  <eblake@redhat.com>
60720         tests: fix compiler warnings
60721         * tests/test-getopt.h (test_getopt): Fix condition.
60722         * tests/test-getopt_long.h (test_getopt_long): Likewise.
60723         * tests/test-pipe2.c (main): Likewise.
60724         * tests/test-quotearg-simple.c (main): Avoid icc warning.
60726         utimens: fix broken m4 test
60727         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
60729 2010-10-28  Bruno Haible  <bruno@clisp.org>
60731         posix_spawn*, getdtablesize: Relax license.
60732         * modules/posix_spawn (License): Change to LGPLv2+.
60733         * modules/posix_spawnp (License): Likewise.
60734         * modules/posix_spawn-internal (License): Likewise.
60735         * modules/posix_spawnattr_init (License): Likewise.
60736         * modules/posix_spawnattr_getflags (License): Likewise.
60737         * modules/posix_spawnattr_setflags (License): Likewise.
60738         * modules/posix_spawnattr_getpgroup (License): Likewise.
60739         * modules/posix_spawnattr_setpgroup (License): Likewise.
60740         * modules/posix_spawnattr_getschedparam (License): Likewise.
60741         * modules/posix_spawnattr_setschedparam (License): Likewise.
60742         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
60743         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
60744         * modules/posix_spawnattr_getsigdefault (License): Likewise.
60745         * modules/posix_spawnattr_setsigdefault (License): Likewise.
60746         * modules/posix_spawnattr_getsigmask (License): Likewise.
60747         * modules/posix_spawnattr_setsigmask (License): Likewise.
60748         * modules/posix_spawnattr_destroy (License): Likewise.
60749         * modules/posix_spawn_file_actions_init (License): Likewise.
60750         * modules/posix_spawn_file_actions_addclose (License): Likewise.
60751         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
60752         * modules/posix_spawn_file_actions_addopen (License): Likewise.
60753         * modules/posix_spawn_file_actions_destroy (License): Likewise.
60754         * modules/getdtablesize (License): Likewise.
60755         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
60757 2010-10-26  Bruno Haible  <bruno@clisp.org>
60759         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
60760         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
60761         Cygwin and mingw.
60762         Suggested by Eric Blake.
60764 2010-10-26  Bruno Haible  <bruno@clisp.org>
60766         stdio: Work around compilation error due to renameat() on Solaris 10.
60767         * lib/stdio.in.h: Include <unistd.h> on Solaris.
60768         * lib/renameat.c: Don't include <unistd.h> here.
60769         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
60770         Reported by Paul Eggert and Eric Blake.
60772 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
60774         renameat: port to Solaris 10, which declares renameat in unistd.h
60776         * lib/renameat.c: Include unistd.h before stdio.h, because
60777         Solaris 10 declares renameat in unistd.h.  Problem encountered
60778         when building GNU tar 1.24 on Solaris 10.
60780 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
60782         fdopendir: fix C89 compilation
60783         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
60784         compilers.
60786 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
60788         inttostr: simplify by removing unnecessary redundancy
60789         * lib/anytostr.c: Don't include verify.h.
60790         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
60791         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
60792         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
60793         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
60794         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
60795         Likewise.
60796         * modules/inttostr (Depends-on): Remove 'verify'.
60798 2010-10-23  Bruno Haible  <bruno@clisp.org>
60800         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
60801         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
60802         Reported by Eric Blake.
60804 2010-10-23  Bruno Haible  <bruno@clisp.org>
60806         Tests: Fix LOCALE_JA on MirBSD 10.
60807         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
60808         to an UTF-8 locale.
60809         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
60810         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60811         Reported by Eric Blake.
60813 2010-10-21  Bruno Haible  <bruno@clisp.org>
60815         nl_langinfo test: Avoid test failure on NetBSD 5.
60816         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
60817         Reported by Eric Blake.
60819 2010-10-21  Eric Blake  <eblake@redhat.com>
60821         c-stack: work around libsigsegv 2.8 bug
60822         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
60823         overflow on at least PowerPC64.
60825 2010-10-17  Bruno Haible  <bruno@clisp.org>
60827         userspec: Drop redundant file.
60828         * modules/userspec (Files): Remove lib/inttostr.h.
60830 2010-10-17  Bruno Haible  <bruno@clisp.org>
60832         nl_langinfo tests: Silence some warnings.
60833         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
60834         Reported by Jim Meyering.
60836 2010-10-17  Bruno Haible  <bruno@clisp.org>
60838         Make use of GCC's attribute __alloc_size__.
60839         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
60840         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
60841         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
60842         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
60843         __alloc_size__.
60844         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60845         Suggested by Jim Meyering.
60847 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
60849         bootstrap: anchor .gitignore entries.
60850         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
60851         with...
60852         (insert_vc_ignore): ... this new function, which prepends `/' to
60853         all .gitignore entries before passing them to
60854         insert_sorted_if_absent.
60856 2010-10-16  Bruno Haible  <bruno@clisp.org>
60858         nextafter: Fix configure check.
60859         * modules/nextafter (configure.ac): Correct expected prototype.
60861 2010-10-16  Bruno Haible  <bruno@clisp.org>
60863         termios: Update documentation.
60864         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
60866 2010-10-16  Bruno Haible  <bruno@clisp.org>
60868         tests: Make them compile with TinyCC.
60869         * tests/test-strstr.c (main): Remove parentheses around array
60870         initializer.
60872 2010-10-15  Eric Blake  <eblake@redhat.com>
60874         ignore-value: make header idempotent
60875         * lib/ignore-value.h: Add double-inclusion guards.
60876         Reported by Stefan Berger.
60878 2010-10-15  Jim Meyering  <meyering@redhat.com>
60880         GNUmakefile: handle "stable" target, not "major"
60881         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
60882         lists in maint.mk and announce-gen.  Without this, "make stable"
60883         would fail to ensure that $(VERSION) is up to date.
60885 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
60887         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
60888         & co.
60890 2010-10-14  Bruno Haible  <bruno@clisp.org>
60892         vasnprintf: Don't set errno to 0.
60893         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
60894         block that sets it to 0.
60895         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
60897 2010-10-14  Bruno Haible  <bruno@clisp.org>
60899         socketlib: Fix.
60900         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
60901         gl_PREREQ_SYS_H_WINSOCK2.
60902         Reported by Ian Beckwith <ianb@erislabs.net>.
60904 2010-10-13  Jim Meyering  <meyering@redhat.com>
60906         test-select-stdin.c: avoid warn_unused_result warnings
60907         * tests/test-select-stdin.c: Include "macros.h".
60908         ASSERT that read and fflush succeed.
60910 2010-10-13  Jim Meyering  <meyering@redhat.com>
60912         git-version-gen: do require git-VC'd files in cwd
60913         * build-aux/git-version-gen: Reject a git version string
60914         if there are no commits associated with the current directory.
60915         This avoids an unlikely false-positive (unrelated dir whose parent
60916         repository also contains a tag matching v*), as pointed out
60917         by Giuseppe Scrivano in
60918         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
60920 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
60922         argv-iter: omit nonconforming declaration
60923         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
60924         enum arg_iter_err declaration, which doesn't conform to C99.
60925         Solaris 10 cc warns about this.
60927 2010-10-13  Eric Blake  <eblake@redhat.com>
60929         termios: fix compilation on mingw
60930         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
60931         (gl_TERMIOS_H): Adjust it on mingw.
60932         * modules/termios (Makefile.am): Substitute new key.
60933         * lib/termios.in.h (includes): Make include_next conditional.
60934         * doc/posix-headers/termios.texi (termios.h): Update
60935         documentation.
60936         Reported by Daniel P. Berrange.
60938 2010-10-13  Jim Meyering  <meyering@redhat.com>
60940         git-version-gen: don't require that .git/ be in the current dir
60941         * build-aux/git-version-gen: Adjust this script so that it works
60942         when run from any working directory beneath the top-level .git/-
60943         containing directory.  Inspired by a patch from Giuseppe Scrivano,
60944         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
60946         test-select: avoid warn_unused_result warnings
60947         * tests/test-select.c: Include "macros.h".
60948         ASSERT that each call to read, write, and pipe succeeds.
60949         While not technically required, also check each "close".
60950         * modules/select-tests (Files): Add tests/macros.h.
60952         test-symlinkat: remove declaration of unused local
60953         * tests/test-symlinkat.c (main): Remove unused local, "buf".
60955         test-inttostr: avoid shadowing warnings
60956         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
60957         and use malloc rather than the stack for the same reason as
60958         mentioned in the comment justifying the other allocation.
60960 2010-10-11  Bruno Haible  <bruno@clisp.org>
60962         stdlib: Allow multiple gnulib generated replacements to coexist.
60963         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
60964         Reported by Sam Steingold <sds@gnu.org>.
60966 2010-10-11  Jim Meyering  <meyering@redhat.com>
60968         fix a documentation typo
60969         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
60971 2010-10-11  Eric Blake  <eblake@redhat.com>
60973         futimens: work around Solaris 11 bug
60974         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
60975         * tests/test-futimens.h (test_futimens): Enhance, rather than
60976         weaken test.
60977         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60979 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60981         Indentation.
60982         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
60983         higher-level operators more to the left.
60985 2010-10-11  Jim Meyering  <meyering@redhat.com>
60987         test-futimens: avoid unwarranted test failure on Solaris 5.11
60988         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
60989         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
60990         because it tries to dereference the NULL name argument.
60992 2010-10-11  Bruno Haible  <bruno@clisp.org>
60994         Indentation.
60995         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
60996         indentation.
60998 2010-10-11  Jim Meyering  <meyering@redhat.com>
61000         spawn.in.h: make indentation consistent with parentheses
61001         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
61002         Make indentation consistent with parentheses.
61004 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
61006         Fix mismatched parens in previous commit
61007         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
61008         parens.
61010 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
61012         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
61014         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
61015         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
61016         * lib/malloca.c: Include "verify.h".
61017         (verify1): Remove, replacing with a verify call.
61018         * lib/relocwrapper.c (verify1): Likewise.
61019         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
61020         Likewise.
61021         * modules/malloca (Depends-on): Add 'verify'.
61022         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
61023         * modules/vasnprintf (Depends-on): Add 'verify'.
61024         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61025         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61026         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61027         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61028         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61029         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61032         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
61034         Formerly the style was sometimes 2*X - 1, because the C standard
61035         was wrongly thought to disallow ?: in integral constant expressions.
61036         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
61037         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
61038         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
61039         * lib/stdint.in.h (_verify_intmax_size): Likewise.
61040         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
61041         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
61042         verify that time_t cannot be floating.
61044 2010-10-08  Eric Blake  <eblake@redhat.com>
61046         time: enforce recent POSIX ruling that time_t is integral
61047         * lib/time.in.h (__time_t_must_be_integral): Detect any
61048         problematic systems, allowing the rest of gnulib to assume POSIX.
61050 2010-10-08  Jim Meyering  <meyering@redhat.com>
61052         fdopendir: fix a bug on systems lacking openat and /proc support
61053         OpenBSD 4.7 is one such system.  The most noticeable effect was
61054         failure of any application making nontrivial use of fts: rm, du,
61055         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
61056           ./rm: traversal failed: `a': Bad file descriptor
61057         Debugging that, you see that even though FD 6 was closed just
61058         prior to the opendir call in fd_clone_opendir, its resulting
61059         dir->dd_fd was 8, rather than the expected value of 6:
61061         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
61062         93                close (fd);
61063         (gdb) n
61064         94                dir = fd_clone_opendir (dupfd);
61065         (gdb) n
61066         95                saved_errno = errno;
61067         (gdb) p dir->dd_fd
61068         $11 = 8
61070         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
61071         The problem is that on OpenBSD, fd_clone_opendir has to resort
61072         to using the old-style save/restore CWD mechanism, due to its
61073         lack of openat/proc support, and *that* would steal the FD (6)
61074         that opendir was supposed to use.
61076         The fix is to squirrel away the desired FD so that save_cwd uses a
61077         different one, and then free the dest FD right before calling opendir.
61078         That guarantees opendir will use the required file descriptor.
61080         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
61082 2010-10-08  Bruno Haible  <bruno@clisp.org>
61084         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
61085         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
61087 2010-10-08  Bruno Haible  <bruno@clisp.org>
61089         nanosleep: Make replacement POSIX compliant.
61090         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
61091         is out of range.
61092         Reported by Jim Meyering.
61094 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61096         bootstrap: add hook for altering gnulib.mk, for Bison
61097         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
61098         the Bison bootstrapping process can rewrite file names and variables
61099         in this file before later parts of 'bootstrap' use the file.
61100         Bison wants to include lib/gnulib.mk from the top-level makefile,
61101         so it needs the file names in this file to be relative to the top
61102         level, not relative to lib; plus it needs variable names to be
61103         rewritten.
61104         (slurp): Use the new function.
61106         bootstrap: reformat for readability
61107         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
61109 2010-10-08  Eric Blake  <eblake@redhat.com>
61111         docs: update cygwin progress
61112         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
61113         1.7.7.
61114         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
61115         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
61116         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
61117         * doc/posix-functions/carg.texi (carg): Likewise.
61118         * doc/posix-functions/cargf.texi (cargf): Likewise.
61119         * doc/posix-functions/casin.texi (casin): Likewise.
61120         * doc/posix-functions/casinf.texi (casinf): Likewise.
61121         * doc/posix-functions/casinh.texi (casinh): Likewise.
61122         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
61123         * doc/posix-functions/catan.texi (catan): Likewise.
61124         * doc/posix-functions/catanf.texi (catanf): Likewise.
61125         * doc/posix-functions/catanh.texi (catanh): Likewise.
61126         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
61127         * doc/posix-functions/ccos.texi (ccos): Likewise.
61128         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
61129         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
61130         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
61131         * doc/posix-functions/cexp.texi (cexp): Likewise.
61132         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
61133         * doc/posix-functions/cimag.texi (cimag): Likewise.
61134         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
61135         * doc/posix-functions/clog.texi (clog): Likewise.
61136         * doc/posix-functions/clogf.texi (clogf): Likewise.
61137         * doc/posix-functions/conj.texi (conj): Likewise.
61138         * doc/posix-functions/conjf.texi (conjf): Likewise.
61139         * doc/posix-functions/cpow.texi (cpow): Likewise.
61140         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
61141         * doc/posix-functions/cproj.texi (cproj): Likewise.
61142         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
61143         * doc/posix-functions/creal.texi (creal): Likewise.
61144         * doc/posix-functions/crealf.texi (crealf): Likewise.
61145         * doc/posix-functions/csin.texi (csin): Likewise.
61146         * doc/posix-functions/csinf.texi (csinf): Likewise.
61147         * doc/posix-functions/csinh.texi (csinh): Likewise.
61148         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
61149         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
61150         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
61151         * doc/posix-functions/ctan.texi (ctan): Likewise.
61152         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
61153         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
61154         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
61155         * doc/posix-headers/complex.texi (complex.h): Likewise.
61157 2010-10-07  Jim Meyering  <meyering@redhat.com>
61159         parse-datetime: avoid compilation failure on OpenBSD 4.7
61160         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
61161         This works around a compilation failure on OpenBSD 4.7:
61162         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
61164 2010-10-07  Eric Blake  <eblake@redhat.com>
61166         docs: update cygwin progress
61167         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
61168         1.7.6.
61169         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
61170         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
61171         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
61172         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
61173         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
61174         Likewise.
61175         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
61176         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
61177         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
61178         Likewise.
61179         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
61180         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
61181         Likewise.
61182         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
61183         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
61184         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
61185         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
61186         Likewise.
61187         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
61188         Likewise.
61189         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
61191         docs: update parse-datetime history
61192         * doc/parse-datetime.texi (Authors of parse_datetime): Better
61193         documentation of this function's history and alternatives.
61195         cygwin: use more robust version check
61196         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
61197         exclude an eventual cygwin 1.9.1.
61198         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61199         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61200         (gl_FUNC_STRCASESTR): Likewise.
61201         Reported by Bruno Haible.
61203 2010-10-06  Bruno Haible  <bruno@clisp.org>
61205         string, sys_select: Avoid #including large headers unless necessary.
61206         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
61207         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
61208         OSF/1, BeOS, Haiku.
61209         Reported by Jim Meyering.
61211 2010-10-05  Eric Blake  <eblake@redhat.com>
61213         memmem, strstr, strcasestr: fix bug with long periodic needle
61214         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
61215         periodic needle having false positive.
61216         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
61217         and cygwin 1.7.7.
61218         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
61219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
61220         (gl_FUNC_STRCASESTR): Likewise.
61221         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
61222         * tests/test-memmem.c (main): Expose the bug.
61223         * tests/test-strcasestr.c (main): Likewise.
61224         * tests/test-strstr.c (main): Likewise.
61225         * tests/test-c-strcasestr.c (main): Likewise.
61226         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
61227         * doc/posix-functions/strstr.texi (strstr): Likewise.
61228         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
61229         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
61231 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61233         parse-datetime: do some more renaming
61234         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
61235         parse_datetime, not get_date.  Mention the renaming.
61236         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
61237         in comments.
61238         * m4/bison.m4: Likewise.
61240 2010-10-05  Eric Blake  <eblake@redhat.com>
61242         parse-datetime: better name than get_date
61243         * NEWS: Reword the deprecation notice.
61244         * modules/get_date: Rename to modules/parse-datetime.
61245         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
61246         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
61247         * lib/get_date.y: Rename to lib/parse-datetime.y.
61248         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
61249         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
61250         * doc/getdate.texi: Provide fallback wrapper.
61251         * lib/getdate.h: Move guts, and wrap...
61252         * lib/parse-datetime.h: ...new file.
61253         * lib/parse-datetime.y (get_date): Rename...
61254         (parse_datetime): ...to this.
61255         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
61256         (gl_PARSE_DATETIME): ...to this.
61257         * doc/posix-functions/getdate.texi (get_date): Provide fallback
61258         documentation.
61259         * modules/getdate (Files): Provide fallback docs and header.
61260         (Notice, Depends-on): Update references.
61261         * tests/test-parse-datetime.c: Likewise.
61262         * DEPENDENCIES: Likewise.
61263         * MODULES.html.sh (Date and time <time.h>): Likewise.
61264         * doc/parse-datetime.texi (Date input formats)
61265         (Authors of parse_datetime): Likewise.
61266         * modules/parse-datetime (Files, configure.ac, Makefile.am)
61267         (Include): Likewise.
61268         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
61269         * gnulib-tool: Likewise.
61270         * m4/bison.m4 (gl_BISON): Likewise.
61271         Suggested by Bruno Haible.
61273 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
61275         more ports to Solaris tr, which needs [] around ranges
61276         * gnulib-tool: Solaris tr needs [] around ranges.
61277         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61278         * tests/test-pipe-filter-gi1.c (main): Likewise.
61279         * tests/test-pipe-filter-ii1.c (main): Likewise.
61281 2010-10-05  Eric Blake  <eblake@redhat.com>
61283         bootstrap: fix Solaris regression
61284         * build-aux/bootstrap (check_versions): Solaris tr still needs []
61285         around ranges.
61286         Reported by Pádraig Brady.
61288         bootstrap: work with pkg-config
61289         * build-aux/bootstrap (check_versions): Also transliterate - in
61290         prerequisite name.
61291         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
61292         prerequisites that were already found, to avoid confusion.
61293         Reported by Justin Clift.
61295         faccessat: remove unused wrappers
61296         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
61297         presence of these wrappers dragged in -lgen on Solaris.
61298         Reported by Clemens Brogi; fix suggested by Paul Eggert.
61300 2010-10-05  Jim Meyering  <meyering@redhat.com>
61302         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
61303         * Makefile (sc_pragma_columns): New syntax-check rule.
61305 2010-10-04  Bruno Haible  <bruno@clisp.org>
61307         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
61308         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
61309         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
61310         Reported by Bruce Korb and Eric Blake.
61312 2010-10-04  Bruno Haible  <bruno@clisp.org>
61314         threadlib: Make option --with-libpth-prefix work.
61315         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
61316         use $LIBPTH, not just -lpth.
61318 2010-10-04  Bruno Haible  <bruno@clisp.org>
61320         Avoid line length limitation from HP NonStop system header files.
61321         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
61322         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
61323         * lib/ctype.in.h: Likewise.
61324         * lib/dirent.in.h: Likewise.
61325         * lib/errno.in.h: Likewise.
61326         * lib/fcntl.in.h: Likewise.
61327         * lib/float.in.h: Likewise.
61328         * lib/getopt.in.h: Likewise.
61329         * lib/iconv.in.h: Likewise.
61330         * lib/inttypes.in.h: Likewise.
61331         * lib/langinfo.in.h: Likewise.
61332         * lib/locale.in.h: Likewise.
61333         * lib/math.in.h: Likewise.
61334         * lib/netdb.in.h: Likewise.
61335         * lib/netinet_in.in.h: Likewise.
61336         * lib/poll.in.h: Likewise.
61337         * lib/pthread.in.h: Likewise.
61338         * lib/pty.in.h: Likewise.
61339         * lib/sched.in.h: Likewise.
61340         * lib/se-selinux.in.h: Likewise.
61341         * lib/search.in.h: Likewise.
61342         * lib/signal.in.h: Likewise.
61343         * lib/spawn.in.h: Likewise.
61344         * lib/stdarg.in.h: Likewise.
61345         * lib/stddef.in.h: Likewise.
61346         * lib/stdint.in.h: Likewise.
61347         * lib/stdio.in.h: Likewise.
61348         * lib/stdlib.in.h: Likewise.
61349         * lib/string.in.h: Likewise.
61350         * lib/strings.in.h: Likewise.
61351         * lib/sys_file.in.h: Likewise.
61352         * lib/sys_ioctl.in.h: Likewise.
61353         * lib/sys_select.in.h: Likewise.
61354         * lib/sys_socket.in.h: Likewise.
61355         * lib/sys_stat.in.h: Likewise.
61356         * lib/sys_time.in.h: Likewise.
61357         * lib/sys_times.in.h: Likewise.
61358         * lib/sys_utsname.in.h: Likewise.
61359         * lib/sys_wait.in.h: Likewise.
61360         * lib/sysexits.in.h: Likewise.
61361         * lib/termios.in.h: Likewise.
61362         * lib/time.in.h: Likewise.
61363         * lib/unistd.in.h: Likewise.
61364         * lib/wchar.in.h: Likewise.
61365         * lib/wctype.in.h: Likewise.
61366         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
61367         * modules/ctype (Makefile.am): Likewise.
61368         * modules/dirent (Makefile.am): Likewise.
61369         * modules/errno (Makefile.am): Likewise.
61370         * modules/fcntl-h (Makefile.am): Likewise.
61371         * modules/float (Makefile.am): Likewise.
61372         * modules/getopt-posix (Makefile.am): Likewise.
61373         * modules/iconv-h (Makefile.am): Likewise.
61374         * modules/inttypes (Makefile.am): Likewise.
61375         * modules/langinfo (Makefile.am): Likewise.
61376         * modules/locale (Makefile.am): Likewise.
61377         * modules/math (Makefile.am): Likewise.
61378         * modules/netdb (Makefile.am): Likewise.
61379         * modules/netinet_in (Makefile.am): Likewise.
61380         * modules/poll-h (Makefile.am): Likewise.
61381         * modules/pthread (Makefile.am): Likewise.
61382         * modules/pty (Makefile.am): Likewise.
61383         * modules/sched (Makefile.am): Likewise.
61384         * modules/search (Makefile.am): Likewise.
61385         * modules/selinux-h (Makefile.am): Likewise.
61386         * modules/signal (Makefile.am): Likewise.
61387         * modules/spawn (Makefile.am): Likewise.
61388         * modules/stdarg (Makefile.am): Likewise.
61389         * modules/stddef (Makefile.am): Likewise.
61390         * modules/stdint (Makefile.am): Likewise.
61391         * modules/stdio (Makefile.am): Likewise.
61392         * modules/stdlib (Makefile.am): Likewise.
61393         * modules/string (Makefile.am): Likewise.
61394         * modules/strings (Makefile.am): Likewise.
61395         * modules/sys_file (Makefile.am): Likewise.
61396         * modules/sys_ioctl (Makefile.am): Likewise.
61397         * modules/sys_select (Makefile.am): Likewise.
61398         * modules/sys_socket (Makefile.am): Likewise.
61399         * modules/sys_stat (Makefile.am): Likewise.
61400         * modules/sys_time (Makefile.am): Likewise.
61401         * modules/sys_times (Makefile.am): Likewise.
61402         * modules/sys_utsname (Makefile.am): Likewise.
61403         * modules/sys_wait (Makefile.am): Likewise.
61404         * modules/sysexits (Makefile.am): Likewise.
61405         * modules/termios (Makefile.am): Likewise.
61406         * modules/time (Makefile.am): Likewise.
61407         * modules/unistd (Makefile.am): Likewise.
61408         * modules/wchar (Makefile.am): Likewise.
61409         * modules/wctype (Makefile.am): Likewise.
61411 2010-10-04  Bruno Haible  <bruno@clisp.org>
61413         read-file tests: Avoid a test failure on NonStop Kernel.
61414         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
61415         a regular file.
61416         Reported by Joachim Schmitz <schmitz@hp.com>.
61418 2010-10-03  Bruno Haible  <bruno@clisp.org>
61420         gnulib-tool: Fixes for --create-testdir with --libtool.
61421         * gnulib-tool (func_get_automake_snippet): Don't augment
61422         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
61423         an executable.
61424         (func_create_testdir): Handle module 'alloca' like func_import.
61425         Reported by Bruce Korb <bruce.korb@gmail.com>.
61427 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
61429         Avoid some lines longer than 80 characters.
61430         * lib/stdint.in.h: Break long comment lines.
61431         * lib/math.in.h: Likewise.
61432         (_GL_NUM_UINT_WORDS): New macro, for readability.
61433         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
61434         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
61435         * lib/stdlib.in.h: Likewise.
61436         * lib/spawn.in.h: Likewise.
61437         * lib/sys_socket.in.h: Update an URL.
61438         * lib/sys_stat.in.h: Break long line.
61440 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
61442         Improve pmccabe2html.
61443         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
61444         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
61445         when the sources change. Remove the line in the HTML about "Used
61446         ranges" (which implied that there might be other unused ranges),
61447         rename "Resume" to "Summary" (easier to understand for more users).
61448         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
61449         styles, and some unnecessary blank lines.
61451 2010-10-03  Bruno Haible  <bruno@clisp.org>
61452             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
61454         acl: Add support for ACLs on NonStop Kernel.
61455         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
61456         Check whether the function aclsort() exists.
61457         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
61458         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
61459         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61460         (acl_nontrivial [HAVE_ACLSORT]: New function.
61461         (file_has_acl): Implement for NonStop Kernel.
61462         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61463         (qset_acl): Implement for NonStop Kernel.
61464         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
61465         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
61466         (main): Implement for NonStop Kernel.
61467         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
61468         Kernel. Handle this flavor.
61469         * tests/test-set-mode-acl.sh: Likewise.
61470         * tests/test-copy-acl.sh: Likewise.
61471         * tests/test-copy-file.sh: Likewise.
61473 2010-10-03  Bruno Haible  <bruno@clisp.org>
61475         Info about ACLs on NonStop Kernel.
61476         * doc/acl-resources.txt: Add info about NonStop Kernel.
61477         References by Joachim Schmitz <schmitz@hp.com>.
61479 2010-10-02  Bruno Haible  <bruno@clisp.org>
61481         Define missing EDQUOT on NonStop Kernel.
61482         * lib/errno.in.h (EDQUOT): Assign a value if missing.
61483         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
61484         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
61485         missing.
61486         * doc/posix-headers/errno.texi: Mention the NSK bug.
61487         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
61488         Reported by Joachim Schmitz <schmitz@hp.com>.
61490 2010-10-02  Bruno Haible  <bruno@clisp.org>
61492         Update doc for POSIX:2008.
61493         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
61494         Update URL of POSIX specification.
61496 2010-10-02  Bruno Haible  <bruno@clisp.org>
61498         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
61499         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
61500         from gnulib, not from Automake.
61502 2010-10-02  Bruno Haible  <bruno@clisp.org>
61504         New module 'system-posix'.
61505         * modules/system-posix: New file.
61506         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
61507         module is present.
61508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61509         GNULIB_SYSTEM_POSIX.
61510         * modules/stdlib (Depends-on): Remove sys_wait.
61511         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
61512         * doc/posix-functions/system.texi: Mention the new module.
61513         * doc/posix-headers/stdlib.texi: Likewise.
61514         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
61515         define test_sys_wait_macros to a no-op.
61516         Reported by Sam Steingold <sds@gnu.org>.
61518 2010-09-30  Bruno Haible  <bruno@clisp.org>
61520         More renaming from 'getdate' to 'get_date'.
61521         * doc/get_date.texi: Renamed from doc/getdate.texi.
61522         * modules/get_date (Files): Update.
61523         * MODULES.html.sh (Date and time <time.h>): Update.
61524         * DEPENDENCIES: Update.
61525         * gnulib-tool: Update comment.
61526         * m4/bison.m4 (gl_BISON): Likewise.
61527         * m4/get_date.m4 (gl_GET_DATE): Likewise.
61529 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
61531         bootstrap: support ACLOCAL_FLAGS during aclocal
61532         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
61533         can add additional -I dir for third-party .m4 files.
61535 2010-09-30  Eric Blake  <eblake@redhat.com>
61537         bootstrap: use glibtoolize on MacOS
61538         * build-aux/bootstrap (check_versions): Convert libtool into
61539         libtoolize.
61540         (tool search): Move libtool check earlier, and look for
61541         glibtoolize for MacOS.
61542         (gnulib_tool_options): Auto-add --libtool when appropriate.
61543         Reported by Justin Clift.
61545         poll: fix typo that broke test on MacOS
61546         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
61547         Reported by Justin Clift.
61549         getdate: rename to get_date
61550         Note: getdate.h is not renamed, to minimize client impact.
61551         * modules/getdate: Mark obsolete.  Move old contents...
61552         * modules/get_date: ...to new module name.
61553         * modules/getdate-tests: Move...
61554         * modules/get_date-tests: ...here.
61555         * m4/getdate.m4: Move...
61556         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
61557         * lib/getdate.y: Move...
61558         * lib/get_date.y: ...here.
61559         * tests/test-getdate.c: Move...
61560         * tests/test-get_date.c: ...here.
61561         * doc/posix-functions/getdate.texi (getdate): Update name.
61562         * NEWS: Mention the change.
61564 2010-09-29  Bruno Haible  <bruno@clisp.org>
61566         Separate the module 'waitpid' from the module 'sys_wait'.
61567         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
61568         present.
61569         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
61570         gl_MODULE_INDICATOR_FOR_TESTS.
61571         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
61572         * modules/sys_wait (Depends-on): Remove waitpid.
61573         (Makefile.am): Substitute GNULIB_WAITPID.
61574         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
61575         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
61576         signature only if the 'waitpid' module is present.
61577         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
61578         * NEWS: Mention the change.
61579         * modules/grantpt (Depends-on): Add waitpid.
61580         * modules/wait-process (Depends-on): Likewise.
61582 2010-09-29  Bruno Haible  <bruno@clisp.org>
61584         More tests for module 'sys_wait'.
61585         * modules/sys_wait-c++-tests: New file.
61586         * tests/test-sys_wait-c++.cc: New file.
61587         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
61588         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61590 2010-09-29  Bruno Haible  <bruno@clisp.org>
61592         New module 'waitpid'.
61593         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
61594         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
61595         Don't include <process.h>.
61596         (waitpid): Declare only, using modern idiom.
61597         * m4/waitpid.m4: New file.
61598         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
61599         * modules/waitpid: New file.
61600         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
61601         (Makefile.am): Update.
61602         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
61604 2010-09-28  Bruno Haible  <bruno@clisp.org>
61606         poll: Assume ANSI C.
61607         * lib/poll.c (poll): Use an ANSI C declaration.
61609 2010-09-28  Bruno Haible  <bruno@clisp.org>
61611         poll-h: Create poll.h on all platforms.
61612         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
61613         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
61614         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
61615         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
61616         (gl_REPLACE_POLL_H): Don't set POLL_H.
61617         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
61618         * modules/poll-h (Depends-on): Add include_next.
61619         (Makefile.am): Create poll.h unconditionally. Substitute also
61620         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
61622 2010-09-28  Bruno Haible  <bruno@clisp.org>
61624         Tests for module 'poll-h'.
61625         * modules/poll-h-c++-tests: New file.
61626         * tests/test-poll-h-c++.cc: New file.
61628         Tests for module 'poll-h'.
61629         * modules/poll-h-tests: New file.
61630         * tests/test-poll-h.c: New file.
61632 2010-09-28  Bruno Haible  <bruno@clisp.org>
61634         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
61635         * modules/poll-h (Depends-on): Add 'extensions'.
61637 2010-09-28  Bruno Haible  <bruno@clisp.org>
61639         New module 'poll-h'.
61640         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
61641         (poll): Use modern idiom.
61642         * modules/poll-h: New file.
61643         * modules/poll (Files): Remove lib/poll.in.h.
61644         (Depends-on): Add poll-h.
61645         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
61646         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
61647         * m4/poll_h.m4: New file.
61648         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
61649         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
61650         and invoke gl_REPLACE_POLL_H.
61651         * lib/poll.c: Use common idiom.
61652         * tests/test-poll.c: Likewise.
61653         * doc/posix-headers/poll.texi: Mention the poll-h module.
61654         Suggested by Eric Blake.
61656 2010-09-26  Bruno Haible  <bruno@clisp.org>
61658         sys_wait: Implement WSTOPSIG.
61659         * lib/sys_wait.in.h (WSTOPSIG): New macro.
61660         Reported by Simon Josefsson.
61662 2010-09-26  Simon Josefsson  <simon@josefsson.org>
61664         stdlib, sys_wait: Avoid compilation error on mingw.
61665         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
61667 2010-09-26  Bruno Haible  <bruno@clisp.org>
61669         stdlib tests: Avoid code duplication.
61670         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
61671         * modules/sys_wait-tests (Files): Likewise.
61672         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
61673         * tests/test-stdlib.c: Include test-sys_wait.h.
61674         (main): Invoke test_sys_wait_macros.
61675         * tests/test-sys_wait.c: Include test-sys_wait.h.
61676         (main): Invoke test_sys_wait_macros.
61678 2010-09-25  Simon Josefsson  <simon@josefsson.org>
61680         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
61681         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
61682         sure Windows sockets are working before calling getaddrinfo.
61683         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
61684         * doc/gnulib.texi (Windows sockets): Fix typo.
61686 2010-09-25  Bruno Haible  <bruno@clisp.org>
61688         Tests for module 'regex-quote'.
61689         * modules/regex-quote-tests: New file.
61690         * tests/test-regex-quote.c: New file.
61692         New module 'regex-quote'.
61693         * lib/regex-quote.h: New file.
61694         * lib/regex-quote.c: New file.
61695         * modules/regex-quote: New file.
61696         Suggested by Reuben Thomas <rrt@sc3d.org>.
61698 2010-09-24  Bruno Haible  <bruno@clisp.org>
61700         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
61701         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
61703 2010-09-23  Bruno Haible  <bruno@clisp.org>
61705         setenv: Relax license.
61706         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
61707         Blake.
61708         Requested by Eric Blake.
61710 2010-09-22  Bruno Haible  <bruno@clisp.org>
61712         termios: Relax license.
61713         * modules/termios (License): Change to LGPLv2+.
61714         Requested by Eric Blake.
61716 2010-09-22  Bruno Haible  <bruno@clisp.org>
61718         threadlib: Allow the package to change the default to 'no'.
61719         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
61720         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
61721         Reported by Paul Eggert.
61723 2010-09-22  Pádraig Brady  <P@draigbrady.com>
61724             Bruno Haible  <bruno@clisp.org>
61726         Fix endless loop in mbmemcasecoll.
61727         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
61728         byte.
61729         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
61731 2010-09-22  Bruno Haible  <bruno@clisp.org>
61733         Tests for module 'memcoll'.
61734         * modules/memcoll-tests: New file.
61735         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
61737         memcoll, xmemcoll: Clarify size vs. length.
61738         * modules/memcoll.c (memcoll0): Clarify specification.
61739         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
61740         passed to collate_error.
61742 2010-09-22  Bruno Haible  <bruno@clisp.org>
61744         Tests for module 'memcasecmp'.
61745         * modules/memcasecmp-tests: New file.
61746         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
61748 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
61750         * lib/pthread.in.h: Add split double-inclusion guard, and include
61751         system <pthread.h> if there is one.  Use @@-style as in other
61752         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
61753         pthread.h doesn't.
61754         (pthread_mutexattr_destroy, pthread_mutexattr_init):
61755         (pthread_mutexattr_settype, pthread_mutex_trylock):
61756         New static inline functions, if there's no system <pthread.h>.
61757         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
61758         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
61759         Approximate with mutexes if the system lacks spinlocks, as in
61760         MacOS.
61761         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
61762         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
61763         @@-style.  Check for spinlocks separately.
61764         (gl_PTHREAD_DEFAULTS): New macro.
61765         * modules/pthread: Redo to use a more typical style for in.h files.
61767 2010-09-21  Eric Blake  <eblake@redhat.com>
61769         net_if: enhance tests
61770         * tests/test-net_if.c (main): Move signature checks earlier.
61771         Print failures to stderr.
61772         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
61773         Document the bug that we do not yet fix.
61775 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61777         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
61778         about gnulib, not GSS.
61780 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
61782         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
61783         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
61784         for Emacs.
61785         * build-aux/pmccabe2html: Make Makefile.am example code more
61786         cut-and-paste friendly.
61788 2010-09-21  Simon Josefsson  <simon@josefsson.org>
61790         * tests/test-net_if.c: New file.
61791         * modules/net_if-tests: New file.
61793 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61795         pthread: add pthread_spin_destroy
61796         * lib/pthread.in.h (pthread_spin_destroy): New function.
61798 2010-09-19  Bruno Haible  <bruno@clisp.org>
61800         gnulib-tool: Fix --help output.
61801         * gnulib-tool (func_usage): Fix help message.
61802         Reported by Reuben Thomas <rrt@sc3d.org>.
61804 2010-09-18  Jim Meyering  <meyering@redhat.com>
61806         maint.mk: avoid unexpanded \n in two diagnostics
61807         * top/maint.mk (sc_prohibit_always_true_header_tests):
61808         Don't use a literal \n in a halt=... assignment.  It would not be
61809         expanded, and the two \n bytes would appear in the diagnostic output
61810         rather than the desired newline.  Use halt=$$(printf ... instead.
61811         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
61813 2010-09-18  Bruno Haible  <bruno@clisp.org>
61815         netinet_in: Doc tweak.
61816         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
61817         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61819 2010-09-18  Jim Meyering  <meyering@redhat.com>
61821         init.sh: correct an outdated comment
61822         * tests/init.sh (create_exe_shims_):  s/function/alias/
61824         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
61825         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
61826         a file named "*.exe" is removed between the glob expansion and the
61827         processing of that oddly named file.
61829 2010-09-17  Eric Blake  <eblake@redhat.com>
61831         mirbsd: add some more support
61832         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
61833         in BSD family.
61834         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
61835         devices as OpenBSD.
61836         * m4/host-os.m4 (mirbsd): Add MirBSD.
61838         tests: fix unportable assumption on sys/wait.h
61839         * tests/test-sys_wait.c (main): Relax test.
61840         * tests/test-stdlib.c (main): Likewise.
61842         init.sh: accommodate directory with no .exes
61843         * tests/init.sh: Accomodate directory containing only scripts.
61845         tests: avoid compiler warning
61846         * tests/test-stdlib.c (main): Use the variable.
61848         fdutimens, fdutimensat: update signature, again
61849         * lib/utimens.h (gl_futimens): Delete, and move signature...
61850         (fdutimens): ...here.
61851         (fdutimensat): Rearrange signature.
61852         (lutimensat): Rename variable for clarity.
61853         * lib/fdutimensat.c (fdutimensat): Update signature.
61854         * lib/utimens.c (fdutimens): Likewise.
61855         (gl_futimens): Delete.
61856         (utimens, lutimens): Update callers.
61857         * lib/futimens.c (futimens): Likewise.
61858         * tests/test-fdutimensat.c: Likewise.
61859         * tests/test-utimens.c: Likewise.
61860         * tests/test-futimens.h: Update comment.
61861         * NEWS: Mention this.
61862         Suggested by Paul Eggert.
61864 2010-09-17  Bruno Haible  <bruno@clisp.org>
61866         Take over the maintenance of some older macros from Autoconf.
61867         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
61868         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
61869         GNU Autoconf.
61870         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
61871         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
61873 2010-09-17  Eric Blake  <eblake@redhat.com>
61875         fdutimensat: drop atflag validation
61876         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
61877         with valid fd, to close a race scenario where futimens is
61878         unsupported and FILE was replaced by a symlink.
61879         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
61880         accordingly.
61881         Suggested by Paul Eggert.
61883 2010-09-16  Bruno Haible  <bruno@clisp.org>
61885         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
61886         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
61888 2010-09-16  Bruno Haible  <bruno@clisp.org>
61890         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
61891         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
61892         login_tty exists.
61893         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61895 2010-09-16  Bruno Haible  <bruno@clisp.org>
61897         login_tty: Make the replacement code work on BSD systems.
61898         * lib/login_tty.c: Include <sys/ioctl.h>.
61899         (login_tty): Use ioctl TIOCSCTTY when available.
61900         * modules/login_tty (Depends-on): Add sys_ioctl.
61901         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61903 2010-09-16  Bruno Haible  <bruno@clisp.org>
61905         login_tty: Stricter unit test.
61906         * modules/login_tty-tests (Depends-on): Add tcgetsid.
61907         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
61908         and tcgetsid() after login_tty.
61909         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
61911 2010-09-16  Bruno Haible  <bruno@clisp.org>
61913         New module 'tcgetsid'.
61914         * lib/tcgetsid.c: New file.
61915         * m4/tcgetsid.m4: New file.
61916         * modules/tcgetsid: New file.
61917         * modules/termios (Depends-on): Add c++defs, warn-on-use.
61918         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
61919         GNULIB_TCGETSID, HAVE_TCGETSID.
61920         * lib/termios.in.h: Include <sys/types.h>.
61921         (tcgetsid): New declaration.
61922         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
61923         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
61924         * doc/posix-functions/tcgetsid.texi: Mention the new module.
61925         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
61927 2010-09-16  Bruno Haible  <bruno@clisp.org>
61929         Tests for module 'termios'.
61930         * modules/termios-c++-tests: New file.
61931         * modules/termios-tests: New file.
61932         * tests/test-termios-c++.cc: New file.
61933         * tests/test-termios.c: New file.
61935         New module 'termios'.
61936         * modules/termios: New file.
61937         * lib/termios.in.h: New file.
61938         * m4/termios_h.m4: New file.
61939         * doc/posix-headers/termios.texi: Mention the new module.
61941 2010-09-16  Eric Blake  <eblake@redhat.com>
61943         fdutimensat: add an atflag parameter
61944         * lib/fdutimensat.c (fdutimensat): Add new parameter.
61945         * lib/utimens.h (fdutimensat): Update prototype.
61946         * tests/test-fdutimensat.c: Adjust test to match.
61947         * NEWS: Document the change.
61948         Suggested by Paul Eggert.
61950 2010-09-16  Bruno Haible  <bruno@clisp.org>
61952         Fix typos in comments.
61953         * lib/striconveh.h: Fix typo in comment.
61954         * lib/login_tty.c (login_tty): Likewise.
61956 2010-09-15  Bruno Haible  <bruno@clisp.org>
61958         stdlib: clarify MirBSD WEXITSTATUS bug
61959         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
61960         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61962 2010-09-15  Eric Blake  <eblake@redhat.com>
61964         stdlib: work around MirBSD WEXITSTATUS bug
61965         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
61966         * modules/stdlib (Depends-on): Add sys_wait.
61967         * tests/test-sys_wait.c (main): Enhance test.
61968         * tests/test-stdlib.c (main): Likewise.
61969         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
61971         docs: mention MacOS issue with WEXITSTATUS(constant)
61972         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
61973         issue.
61974         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61976         strnlen: add tests
61977         * modules/strnlen-tests: New file.
61978         * tests/test-strnlen.c: Likewise.
61980 2010-09-14  Bruno Haible  <bruno@clisp.org>
61982         unistr/base: Avoid link errors when module 'libunistring' is also used.
61983         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
61984         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
61985         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
61986         Declare also when HAVE_LIBUNISTRING is set.
61987         Reported by Pádraig Brady <P@draigbrady.com>.
61989 2010-09-14  Eric Blake  <eblake@redhat.com>
61991         test-rawmemchr: make more robust
61992         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
61993         (Depends-on, configure.ac): Add needed prerequisites to use it.
61994         * modules/memchr-tests (Files, Depends-on, configure.ac):
61995         Likewise, to avoid implicit reliance on memchr module prereqs.
61996         * tests/test-memchr.c (main): Ensure proper masking.
61997         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
61998         reads.
62000         memchr: detect glibc Alpha bug
62001         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
62002         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
62003         Alpha.
62004         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
62005         * tests/test-memchr.c (main): Enhance test.
62006         Reported by Nelson H. F. Beebe.
62008 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62010         fts, getcwd, glob: audit for dirfd returning -1
62011         * lib/fts.c (opendir): Remove #define; no longer used.
62012         (opendirat): New arg PDIR_FD.  All callers changed.
62013         (fts_build, _opendir2): Use new opendirat to avoid the need for
62014         dirfd, or for checking whether dirfd returns a negative value.
62015         Don't use opendir; always use openat followed by fdopendir.
62016         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
62017         it.
62018         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
62019         returns -1 here.
62020         * modules/fts (Depends-on): Remove dirfd.
62021         * modules/getcwd (Depends-on): Likewise.
62023 2010-09-13  Eric Blake  <eblake@redhat.com>
62025         float: fix broken MirBSD header
62026         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
62027         * doc/posix-headers/float.texi (float.h): Document it.
62029 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62031         fts: use O_NOFOLLOW to avoid race condition when opening a directory
62032         * lib/fts.c (opendirat): New arg extra_flags.
62033         (__opendir2): Use it to avoid following symlinks when opening
62034         a directory, if symlinks are not supposed to be followed.  See
62035         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
62037         fdopendir: preserve argument fd before returning
62038         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
62039         (fdopendir_with_dup, fd_clone_opendir): New static functions.
62040         (fdopendir): Use them, arranging for FD to be open to the same
62041         directory that it was when it started.  (It might be temporarily
62042         closed while fdopendir is running, so this not thread- or
62043         signal-safe.)  Be careful to do the right thing even when file
62044         descriptors are scarce and dup fails with errno == EMFILE.  See
62045         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
62047 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
62049         regex: Pass the system regex if its only problem is 32-bit regoff_t.
62050         * NEWS: Document change.
62051         * m4/regex.m4: Disable test for regoff_t size.
62053 2010-09-13  Jim Meyering  <meyering@redhat.com>
62055         fts: don't operate on an invalid file descriptor after failed dup
62056         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
62057         negative file descriptor.
62059 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
62061         savedir: add streamsavedir, deprecate fdsavedir
62062         * NEWS: Mention deprecation of fdsavedir.
62063         * lib/savedir.c (streamsavedir): New extern function, whose name
62064         ends in "savedir" to be consistent with the others.  This differs
62065         from savedirstream in that it doesn't close its argument.  The
62066         next version of GNU tar will use this instead of fdsavedir, to
62067         avoid some race conditions and conserve file descriptors.
62068         (savedirstream): Reimplement as a wrapper around streamsavedir.
62069         (fdsavedir): Add a comment deprecating this function.  As far as
62070         I know, only GNU tar used it, and GNU tar doesn't need it any more.
62071         * lib/savedir.h (streamsavedir): New decl.
62072         (fdsavedir): Add a comment deprecating this.
62074 2010-09-10  Bruno Haible  <bruno@clisp.org>
62076         langinfo: Fix last commit.
62077         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
62078         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
62079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62081 2010-09-10  Bruno Haible  <bruno@clisp.org>
62083         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
62084         * lib/progreloc.c (O_EXEC): Define fallback.
62086 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
62088         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
62089         * NEWS: Document recent changes to fcntl-h.
62090         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
62091         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
62092         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
62093         Similarly for O_SEARCH; this last was already true, but not documented.
62094         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
62095         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
62096         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
62097         Likewise.
62098         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
62099         is zero, not whether it is defined.
62100         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
62101         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
62102         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
62104 2010-09-10  Bruno Haible  <bruno@clisp.org>
62106         langinfo, nl_langinfo: Fix for IRIX 5.3.
62107         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
62108         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
62109         HAVE_LANGINFO_YESEXPR.
62110         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
62111         HAVE_LANGINFO_YESEXPR.
62112         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
62113         HAVE_LANGINFO_T_FMT_AMPM is 0.
62114         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
62115         HAVE_LANGINFO_YESEXPR is 0.
62116         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
62117         NOEXPR.
62118         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
62119         * doc/posix-functions/nl_langinfo.texi: Likewise.
62120         Reported by Eric Blake.
62122 2010-09-10  Bruno Haible  <bruno@clisp.org>
62124         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
62125         * doc/glibc-functions/login_tty.texi: Mention the include file problem
62126         on FreeBSD 8.0 and OpenBSD 4.6.
62127         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
62128         * m4/pty_h.m4 (gl_PTY_H): Likewise.
62129         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
62130         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
62131         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
62132         ac_includes_default.
62133         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
62135 2010-09-09  Eric Blake  <eblake@redhat.com>
62137         strsignal: work around NetBSD bug
62138         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
62139         * lib/string.in.h (includes): Likewise.
62140         * doc/posix-functions/strsignal.texi (strsignal): Document the
62141         bug.
62142         Reported by Nelson H. F. Beebe.
62144         gnulib-tool: work with NetBSD /bin/sh
62145         * gnulib-tool (func_cache_var, func_cache_lookup_module)
62146         (func_get_description, func_get_comment, func_get_status)
62147         (func_get_notice, func_get_applicability, func_get_filelist)
62148         (func_get_dependencies, func_get_autoconf_early_snippet)
62149         (func_get_autoconf_snippet, func_get_automake_snippet)
62150         (func_get_include_directive, func_get_link_directive)
62151         (func_get_license, func_get_maintainer, func_import): Avoid
62152         shell syntax errors from parsing syntax extensions.
62154 2010-09-09  Bruno Haible  <bruno@clisp.org>
62156         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62157         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
62158         a reliable way to determine whether the 'alias' command works.
62160 2010-09-08  Jim Meyering  <meyering@redhat.com>
62162         init.sh: penalize a set-x-impaired shell; don't disqualify it
62163         * tests/init.sh: Too many shells corrupt application stderr when
62164         you set -x, so we can't afford to disqualify them, since at least
62165         on Irix-6.5, that would disqualify all bourne shells.
62166         Instead, use a two-pass approach.
62167         On the first pass, try to find a shell that meets the stricter
62168         condition that set -x does not corrupt stderr.
62169         If no shell meets the stricter condition, retest each candidate
62170         shell, but without that extra condition.  Finally, when
62171         VERBOSE=yes is requested and set -x might cause trouble, simply
62172         issue a warning and refrain from enabling debug output.
62174 2010-09-08  Eric Blake  <eblake@redhat.com>
62176         unsetenv: fix OpenBSD bug
62177         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
62178         * doc/posix-functions/unsetenv.texi (unsetenv): Update
62179         documentation.
62180         Reported by Jim Meyering.
62182         strtod: work around IRIX 6.5 bug
62183         * lib/strtod.c (strtod): Reparse number on shorter string if
62184         exponent parse was invalid.
62185         * tests/test-strtod.c (main): Add check for "0x1p 2".
62186         Reported by Tom G. Christensen.
62188         getopt: optimize previous patch
62189         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
62190         empty variable.  Speed up awk script.
62191         Reported by Paolo Bonzini.
62193 2010-09-08  Jim Meyering  <meyering@redhat.com>
62195         test.sh: disqualify shells for which set -x corrupts stderr
62196         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
62197         and OpenBSD 4.7.  They make it so with "set -x", environment settings
62198         appear in stderr output.  For example, this command:
62199             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
62200         prints "P=1" on those two systems:
62202 2010-09-08  Bruno Haible  <bruno@clisp.org>
62204         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
62205         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
62206         commands, because some shells ignore redirections when there is an
62207         error in the command lookup.
62208         Reported by Eric Blake.
62210 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
62212         * lib/regex.h: Fix a mention of `regex_compile' (should be
62213         `re_compile_pattern').
62214         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
62215         (re_set_registers): Correct name of parameter in comment.
62217         * doc/regex.texi: Add documentation for missing syntax flags.
62218         Remove commented-out documentation of defunct syntax option
62219         RE_NO_EMPTY_ALTS.
62220         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
62221         Add documentation of re_set_registers.
62222         Document trick to re-use a pattern buffer by setting fastmap manually.
62223         Update documentation of struct re_pattern_buffer per public members.
62224         Uncomment documentation of equivalence class operators and
62225         collating symbol operators, since they are now implemented,
62226         Explain leftmost-longest matching in relation to alternatives.
62227         Tidy documentation of substring matching.
62228         Remove POSIX documentation, which is done better in
62229         glibc, and refer the reader there. Keep BSD API documentation, as
62230         that is not readily available elsewhere.
62232 2010-09-07  Eric Blake  <eblake@redhat.com>
62234         getopt: handle POSIXLY_CORRECT set but not exported
62235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
62236         export state of POSIXLY_CORRECT, due to bash set -o posix.
62237         Reported by Dustin J. Mitchell.
62239 2010-09-05  Bruno Haible  <bruno@clisp.org>
62241         gnulib-tool: Highlight the changed options.
62242         * gnulib-tool (func_usage): Display the --import, --add-import,
62243         --remove-import explanations in bold font.
62245 2010-09-06  Karl Berry  <karl@gnu.org>
62247         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
62249 2010-09-05  Bruno Haible  <bruno@clisp.org>
62251         uniwidth/width: Update comment.
62252         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
62253         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
62255 2010-09-05  Bruno Haible  <bruno@clisp.org>
62257         isinf, isnan: Relax license.
62258         * modules/isinf (License): Change from GPL to LGPL, with consent from
62259         Ben Pfaff.
62260         * modules/isnan (License): Likewise.
62261         Requested by Ludovic Courtès.
62263 2010-09-04  Bruno Haible  <bruno@clisp.org>
62265         gnulib-tool: Help migration from --import to --add-import or --update.
62266         * gnulib-tool: Emit a verbose error message when --import is used
62267         without any module name.
62269 2010-09-04  Bruno Haible  <bruno@clisp.org>
62271         Update doc about gnulib-tool.
62272         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
62273         'gnulib-tool --update' in more detail.
62274         Reported by Eric Blake.
62276 2010-09-04  Bruno Haible  <bruno@clisp.org>
62278         gnulib-tool: Change --import. New options --add/remove-import.
62279         * gnulib-tool: New options --add-import, --remove-import.
62280         (func_usage): Document them.
62281         (have_associative): Define always.
62282         (func_import): In import mode, don't merge the specified settings with
62283         the cached settings. Implement remove-import mode.
62284         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
62285         Explain when to use them versus --import.
62286         (Simple update): Use --add-import instead of --import.
62287         * NEWS: Mention the change.
62289 2010-09-04  Bruno Haible  <bruno@clisp.org>
62291         * doc/gnulib-tool.texi (Initial import): Update paragraph about
62292         separate gnulib.mk.
62294 2010-09-04  Bruno Haible  <bruno@clisp.org>
62296         gnulib-tool: Don't talk about CVS any more.
62297         * gnulib-tool (func_usage, func_import): Write "version control"
62298         instead of CVS.
62300 2010-09-04  Jim Meyering  <meyering@redhat.com>
62302         maint.mk: avoid obscure sc_copyright_check failure in coreutils
62303         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
62304         false positives (whose names may be ill-chosen) when searching
62305         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
62306         would cause a false-positive.
62308         avoid coreutils "make distcheck" failure
62309         Coreutils tests with an absolute build directory name that contains
62310         a space.  Not quoting this directory name caused a failure.
62311         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
62312         * tests/test-vc-list-files-cvs.sh: Likewise.
62314 2010-09-04  Bruno Haible  <bruno@clisp.org>
62316         gnulib-tool: Avoid error when run in a package without Makefile.am.
62317         * gnulib-tool: When collecting the m4dirs in a package that does not
62318         have a Makefile.am, eliminate those directories that contain no
62319         gnulib-cache.m4. Fix expression that counts these directories.
62321 2010-09-04  Bruno Haible  <bruno@clisp.org>
62323         update-copyright test: Improve output when perl is missing or too old.
62324         * tests/test-update-copyright.sh: Move test of Perl version down after
62325         the test whether Perl exists. Provide an explanation relating Perl's
62326         error message to Automake's SKIP: message.
62328 2010-09-04  Bruno Haible  <bruno@clisp.org>
62330         Don't augment PATH in TESTS_ENVIRONMENT.
62331         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
62332         set abs_aux_dir instead of augmenting PATH.
62333         * modules/vc-list-files-tests (Makefile.am): Likewise.
62334         * tests/test-update-copyright.sh: Augment PATH here.
62335         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
62336         path_prepend_.
62337         * tests/test-vc-list-files-git.sh: Likewise.
62339 2010-09-04  Jim Meyering  <meyering@redhat.com>
62341         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
62342         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
62344 2010-09-04  Bruno Haible  <bruno@clisp.org>
62346         strdup: Fix compilation error in C++ mode.
62347         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
62348         the macro.
62350 2010-09-04  Bruno Haible  <bruno@clisp.org>
62352         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
62353         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
62354         macro into a function.
62355         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
62357 2010-09-04  Bruno Haible  <bruno@clisp.org>
62359         Set PATH_SEPARATOR the same way autoconf does.
62360         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
62361         the value of PATH_SEPARATOR the same way autoconf-generated configure
62362         scripts do.
62363         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
62364         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
62366 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
62368         Set PATH_SEPARATOR the same way autoconf does.
62369         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
62370         the same way autoconf-generated configure scripts do.
62371         * posix-modules: Likewise.
62373 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
62375         hash: fix safe_hasher const typo
62376         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
62377         const; otherwise, there is a type error later.
62379 2010-09-02  Jim Meyering  <meyering@redhat.com>
62381         test-update-copyright.sh: require perl 5.8.0
62382         * tests/test-update-copyright.sh: Require 5.8.0,
62383         which Tom G. Christensen has confirmed is adequate,
62384         while 5.6.1 is not.
62386 2010-09-02  Eric Blake  <eblake@redhat.com>
62388         tests: init.sh improvements for re-exec'ing with zsh
62389         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
62390         -vx through shell re-exec.
62391         Reported by Tom G. Christensen.
62393         wctype: fix typo in previous commit
62394         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
62395         Reported by Ludovic Courtès.
62397 2010-09-02  Jim Meyering  <meyering@redhat.com>
62399         test-update-copyright.sh: skip test if Perl is too old
62400         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
62401         Reported by Tom G. Christensen.
62403 2010-09-02  Bruno Haible  <bruno@clisp.org>
62405         wctype: Avoid compilation error on IRIX 6.5.30.
62406         * lib/wctype.in.h (iswblank): Declare with a replacement if
62407         REPLACE_ISWBLANK is set.
62408         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
62409         declared. Set REPLACE_ISWBLANK.
62410         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
62411         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
62412         * doc/posix-headers/wctype.texi: Likewise.
62413         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
62415 2010-09-01  Bruno Haible  <bruno@clisp.org>
62417         New module 'socketlib'.
62418         * modules/socketlib: New file.
62419         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
62420         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
62421         * modules/sockets (Depends-on): Add socketlib.
62422         Suggested by Sam Steingold <sds@gnu.org>.
62424 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
62426         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
62428         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
62429         when one needs search access to a directory but not read access.
62430         On systems where it is available, it works in some cases where
62431         O_RDONLY does not, namely on directories that are searchable but
62432         not readable, and which need only to be searchable.  If O_SEARCH
62433         is not available, fall back to the traditional method of using
62434         O_RDONLY.
62436         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
62437         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
62438         when opening a directory that needs only to be searchable.
62439         * lib/chdir-safer.c (chdir_no_follow): Likewise.
62440         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
62441         * lib/openat-proc.c (openat_proc_name): Likewise.
62442         * lib/openat.c (openat_needs_fchdir): Likewise.
62443         * lib/save-cwd.c (save_cwd): Likewise.
62444         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
62446 2010-08-28  Bruno Haible  <bruno@clisp.org>
62448         New module 'host-cpu-c-abi'.
62449         * modules/host-cpu-c-abi: New file.
62450         * m4/host-cpu-c-abi.m4: New file, based on part of
62451         clisp/src/m4/general.m4.
62452         Requested by Sam Steingold <sds@gnu.org>.
62454 2010-08-31  Eric Blake  <eblake@redhat.com>
62455         and Jim Meyering  <meyering@redhat.com>
62457         hash: factor, and guard against misbehaving hasher function
62458         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
62459         of table->hasher's return value.  Also protect against a hash value
62460         so large that adding it to table->bucket results in a NULL pointer.
62461         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
62462         Use it in place of open-coded check-and-abort.
62464 2010-08-30  Bruno Haible  <bruno@clisp.org>
62466         hash: silence spurious clang warning
62467         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
62468         Reported by Eric Blake.
62470 2010-08-30  Eric Blake  <eblake@redhat.com>
62472         strstr, memmem, strcasestr: avoid leaked shell message
62473         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
62474         FreeBSD.
62475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62478         tests: silence clang warning
62479         * tests/test-malloca.c (do_allocation): Avoid dead store.
62481 2010-08-29  Bruno Haible  <bruno@clisp.org>
62483         gettext: Fix recent mistake.
62484         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
62486 2010-08-29  Bruno Haible  <bruno@clisp.org>
62488         selinux-h: Offer a --without-selinux option.
62489         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
62490         --without-selinux was specified, skip all tests and define
62491         HAVE_SELINUX_SELINUX_H to 0.
62492         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
62493         set LIB_SELINUX to empty.
62494         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
62495         gl_LIBSELINUX. If --without-selinux was specified, replace
62496         selinux/context.h.
62497         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
62499 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62500             Bruno Haible  <bruno@clisp.org>
62502         Make the module 'realloc-gnu' work again on AIX and OSF/1.
62503         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
62504         of HAVE_REALLOC.
62505         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
62506         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
62507         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
62508         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62510 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62511             Bruno Haible  <bruno@clisp.org>
62513         Make the module 'calloc-gnu' work again on AIX and OSF/1.
62514         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
62515         HAVE_CALLOC.
62516         * lib/xmalloc.c: Update accordingly.
62517         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
62518         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
62519         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
62521 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62522             Bruno Haible  <bruno@clisp.org>
62524         Make the module 'malloc-gnu' work again on AIX and OSF/1.
62525         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
62526         HAVE_MALLOC.
62527         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
62528         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
62529         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
62531 2010-08-29  Bruno Haible  <bruno@clisp.org>
62533         Update modules list.
62534         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
62535         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
62536         (String handling <string.h>): Add astrxfrm.
62537         (File system functions): Add readlinkat.
62539 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62541         Tests for module 'realloc-gnu'.
62542         * modules/realloc-gnu-tests: New file.
62543         * tests/test-realloc-gnu.c: New file.
62545         Tests for module 'calloc-gnu'.
62546         * modules/calloc-gnu-tests: New file.
62547         * tests/test-calloc-gnu.c: New file.
62549         Tests for module 'malloc-gnu'.
62550         * modules/malloc-gnu-tests: New file.
62551         * tests/test-malloc-gnu.c: New file.
62553 2010-08-28  Bruno Haible  <bruno@clisp.org>
62555         Rename module 'realloc' -> 'realloc-gnu'.
62556         * modules/realloc-gnu: New file, copied from modules/realloc.
62557         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
62558         obsolete.
62559         * modules/mgetgroups (Depends-on): Update.
62560         * doc/posix-functions/realloc.texi: Update.
62561         * NEWS: Mention the change.
62563         Rename module 'calloc' -> 'calloc-gnu'.
62564         * modules/calloc-gnu: New file, copied from modules/calloc.
62565         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
62566         obsolete.
62567         * doc/posix-functions/calloc.texi: Update.
62568         * NEWS: Mention the change.
62570         Rename module 'malloc' -> 'malloc-gnu'.
62571         * modules/malloc-gnu: New file, copied from modules/malloc.
62572         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
62573         obsolete.
62574         * modules/argp (Depends-on): Update.
62575         * modules/regex (Depends-on): Update.
62576         * doc/posix-functions/malloc.texi: Update.
62577         * NEWS: Mention the change.
62579 2010-08-28  Eric Blake  <eblake@redhat.com>
62581         pread, pwrite: add missing dependency
62582         * modules/pread (Depends-on): Add extensions.
62583         * modules/pwrite (Depends-on): Likewise.
62585 2010-08-28  Bruno Haible  <bruno@clisp.org>
62587         unistr/u*-strchr: Fix tests dependencies.
62588         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
62589         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
62590         Reported by Ian Beckwith <ianb@erislabs.net>.
62592 2010-08-28  Bruno Haible  <bruno@clisp.org>
62594         read-file: Don't occupy too much unused memory.
62595         * lib/read-file.c (fread_file): Shrink the buffer at the end.
62597 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
62598             Eric Blake  <eblake@redhat.com>
62599             Bruno Haible  <bruno@clisp.org>
62601         read-file: Avoid memory reallocations with regular files.
62602         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
62603         (fread_file): With regular files, use the remaining length as the
62604         initial buffer size.  Check against overflow.
62605         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
62606         sys_stat.
62608 2010-08-28  Bruno Haible  <bruno@clisp.org>
62610         ftello: Relax license.
62611         * modules/ftello (License): Relax to LGPLv2+.
62612         Reported by Eric Blake.
62614 2010-08-28  Bruno Haible  <bruno@clisp.org>
62616         Avoid relocwrapper link errors due to gnulib replacement functions.
62617         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
62618         function.
62619         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62621 2010-08-28  Bruno Haible  <bruno@clisp.org>
62623         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
62624         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
62625         defined.
62626         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
62627         Suggested by Eric Blake.
62629 2010-08-28  Bruno Haible  <bruno@clisp.org>
62631         sys_socket, netdb: Ensure socklen_t gets defined.
62632         * modules/sys_socket (Depends-on): Add socklen.
62633         * modules/netdb (Depends-on): Likewise.
62634         * modules/getaddrinfo (Depends-on): Remove socklen.
62635         * modules/getsockopt (Depends-on): Likewise.
62636         * modules/setsockopt (Depends-on): Likewise.
62637         * tests/test-sys_socket.c: Check that socklen_t is defined.
62638         * tests/test-netdb.c: Likewise.
62639         * m4/socklen.m4: Update comments.
62640         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62642 2010-08-27  Eric Blake  <eblake@redhat.com>
62644         login_tty: add missing dependency
62645         * modules/login_tty (Depends-on): Add pty.
62647 2010-08-26  Eric Blake  <eblake@redhat.com>
62649         lib-symbol-versions: fix m4 quoting
62650         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
62651         format for AC_LINK_IFELSE.
62653         glob: fix compile test
62654         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
62656         btowc: fix missing file
62657         * modules/btowc (Files): Also ship locale-fr.m4.
62659         lseek: fix link test
62660         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
62661         AC_LINK_IFELSE.
62663         include_next: silence autoconf 2.68 warning
62664         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
62665         AC_COMPILE_IFELSE as special.
62666         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
62667         autoconf < 2.68.
62669         acl: fix compilation test
62670         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
62671         AC_COMPILE_IFELSE.
62673 2010-08-26  Bruno Haible  <bruno@clisp.org>
62675         Modernize AC_TRY_RUN invocations.
62676         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
62677         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62678         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
62679         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
62680         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
62681         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
62682         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
62683         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62684         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62685         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62686         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62687         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
62688         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62689         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62690         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62691         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62692         gl_MBRLEN_NUL_RETVAL): Likewise.
62693         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62694         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
62695         Likewise.
62696         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62697         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62698         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62699         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62700         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
62701         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
62702         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
62703         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
62704         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
62705         Likewise.
62706         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
62707         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
62708         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62709         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62710         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62711         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62712         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62713         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
62714         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62717 2010-08-26  Bruno Haible  <bruno@clisp.org>
62719         Modernize AC_TRY_LINK invocations.
62720         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
62721         AC_TRY_LINK.
62722         * m4/argp.m4 (gl_ARGP): Likewise.
62723         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
62724         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62725         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62726         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62727         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62728         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
62729         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
62730         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
62731         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62732         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
62733         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62734         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
62735         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
62736         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
62737         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62738         * m4/hostent.m4 (gl_HOSTENT): Likewise.
62739         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62740         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
62741         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
62742         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
62743         Likewise.
62744         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
62745         Likewise.
62746         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
62747         Likewise.
62748         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
62749         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
62750         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
62751         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
62752         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
62753         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
62754         * m4/servent.m4 (gl_SERVENT): Likewise.
62755         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
62756         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
62757         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
62758         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
62759         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
62760         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
62761         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
62762         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
62763         * modules/tsearch-tests (configure.ac): Likewise.
62765 2010-08-26  Bruno Haible  <bruno@clisp.org>
62767         Modernize AC_TRY_COMPILE invocations.
62768         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
62769         AC_TRY_COMPILE.
62770         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
62771         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
62772         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
62773         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
62774         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
62775         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
62776         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62777         * m4/lock.m4 (gl_LOCK): Likewise.
62778         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
62779         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62780         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
62781         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
62782         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
62783         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
62784         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
62785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
62786         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
62787         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
62788         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
62789         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
62790         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
62791         extraneous semicolon.
62793 2010-08-26  Jim Meyering  <meyering@redhat.com>
62795         stat-time: relax license LGPL
62796         * modules/stat-time (License): Change from GPL to LGPL,
62797         with consent from all contributors, for use in libguile.
62798         Requested by Ludovic Courtès.
62800 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
62802         poll: return immediately on POLLHUP.
62803         * lib/poll.c (poll): Always set timeout before wait_timeout is
62804         computed.
62806 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62808         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
62809         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
62810         rmdir ("dir/.//"), unlinkat.
62812 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
62814         stdbool: avoid spurious failure with modern xlc
62815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62817 2010-08-24  Bruno Haible  <bruno@clisp.org>
62819         getloadavg: simplify code
62820         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
62821         gl_have_func. Update comments.
62823 2010-08-24  Eric Blake  <eblake@redhat.com>
62825         getloadavg: don't define SVR4 on cygwin
62826         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
62827         only define SVR4 when -lkvm is required.
62828         Reported by Yaakov Selkowitz.
62830 2010-08-24  Bruno Haible  <bruno@clisp.org>
62832         priv-set: fix comment
62833         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
62835 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
62837         priv-set: fix comments
62838         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
62839         to match code, as suggested by David Bartley in:
62840         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
62842 2010-08-23  Eric Blake  <eblake@redhat.com>
62844         stdbool: avoid rejecting clang
62845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
62846         * tests/test-stdbool.c: Enable more tests if using the system
62847         <stdbool.h> instead of the gnulib replacement.
62848         (main): Move xlc bug test to a runtime test for all compilers.
62849         Reported by Anders Kaseorg.
62851         argz: fix shell quoting issue
62852         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
62853         Reported by Charles Wilson.
62855 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
62856             Erik Faye-Lund <kusmabite@gmail.com>
62858         poll, select: handle ERROR_BROKEN_PIPE.
62859         * lib/poll.c (win32_compute_revents): Return POLLHUP when
62860         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62861         * lib/select.c (win32_compute_revents): Do not mark a pipe
62862         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
62864 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
62866         fts: allow compilation with C++
62867         * lib/fts_.h: Specify extern "C" linkage with C++.
62869 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62871         Fix gnulib-tool sed script de-commentation for AIX sed.
62872         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
62873         sed.
62875 2010-08-17  Eric Blake  <eblake@redhat.com>
62877         test-stddef: test for (some) offsetof bugs
62878         * tests/test-stddef.c: Enhance test to ensure correct type of
62879         offsetof.
62880         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
62881         that we are not fixing at this time.
62883 2010-08-15  Bruno Haible  <bruno@clisp.org>
62885         stpncpy: Allow stpncpy to be defined as a macro.
62886         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
62887         if it's already correctly declared.
62888         * lib/string.in.h (stpncpy): Undefine before redefining.
62889         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
62891 2010-08-14  Bruno Haible  <bruno@clisp.org>
62893         Rename module 'memxfrm' to 'amemxfrm'.
62894         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
62895         (amemxfrm): Renamed from memxfrm.
62896         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
62897         (amemxfrm): Renamed from memxfrm.
62898         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
62899         * NEWS: Mention the change.
62900         * MODULES.html.sh (String handling <string.h>): Update.
62901         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
62902         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
62903         * lib/unicase/u16-casexfrm.c: Likewise.
62904         * lib/unicase/u32-casexfrm.c: Likewise.
62905         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
62906         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
62907         * lib/uninorm/u16-normxfrm.c: Likewise.
62908         * lib/uninorm/u32-normxfrm.c: Likewise.
62909         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
62910         memxfrm.
62911         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
62912         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
62913         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
62914         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
62915         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
62916         Suggested by Paul Eggert.
62918 2010-08-14  Bruno Haible  <bruno@clisp.org>
62920         Tests for module 'astrxfrm'.
62921         * modules/astrxfrm-tests: New file.
62922         * tests/test-astrxfrm.c: New file.
62924         New module 'astrxfrm'.
62925         * lib/astrxfrm.h: New file.
62926         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
62927         * modules/astrxfrm: New file.
62929 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
62931         regex: Tweak doc.
62932         * doc/regex.texi (Overview): Don't mention regex.c.
62933         (GNU Regular Expression Compiling): Likewise.
62934         (Match-end-of-line Operator): Mention 'not_eol'.
62936 2010-08-14  Brian Gough  <bjg@gnu.org>
62937             Bruno Haible  <bruno@clisp.org>
62939         git-merge-changelog: add doc relating to use with bzr and hg.
62940         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
62942 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
62944         pthread: fix pthread.h creation for srcdir != builddir
62945         * modules/pthread (Makefile.am): Fix the rule to work also in a
62946         non-srcdir build.
62948 2010-08-13  Karl Berry  <karl@gnu.org>
62950         * doc/regex.texi (Predefined Syntaxes): @smallexample.
62951         * doc/posix-*/*: force line break before @url of POSIX
62952         specifications.
62953         Suggested by Werner Lemberg.
62955 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62957         strtod: fix const diagnostic
62958         * lib/strtod.c (strtod): Don't assign const char * to char *,
62959         as this elicits a warning from GCC when warnings are enabled.
62961 2010-08-10  Pádraig Brady  <P@draigbrady.com>
62962         and Eric Blake  <eblake@redhat.com>
62964         copy-acl: ignore ENOTSUP on HP-UX
62965         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
62966         so that it is available for HP-UX.
62967         * lib/copy-acl.c (qcopy_acl): Use it.
62968         Reported by Patrick M. Callahan.
62970 2010-08-10  Eric Blake  <eblake@redhat.com>
62972         open, chown: relax license
62973         * modules/open (License): Change to LGPLv2+, with consent by all
62974         authors, for use in augeas.
62975         * modules/chown (License): Likewise.
62976         * modules/lchown (Likewise): Likewise.
62977         Requested by Adam Stokes.
62979 2010-08-09  Karl Berry  <karl@gnu.org>
62981         * build-aux/ar-lib: new file, import from Automake.
62982         * config/srclist.txt: autocheck for updates.
62984 2010-08-09  Eric Blake  <eblake@redhat.com>
62986         readlinkat: adjust client modules
62987         * modules/areadlinkat (Depends-on): Use readlinkat, not
62988         symlinkat.
62989         * modules/areadlinkat-with-size (Depends-on): Likewise.
62991         mknod: be more vocal about danger of running tests as root
62992         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
62993         root, since that is just asking for problems.
62994         Suggested by Bruno Haible, based on a report by Rainer Tammer.
62996         readlinkat: split into its own module
62997         * modules/symlinkat: Split readlinkat...
62998         * modules/readlinkat: ...into separate module.
62999         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
63000         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
63001         * lib/symlinkat.c (readlinkat): Move...
63002         * lib/readlinkat.c: ...into new file.
63003         * modules/symlinkat-tests: Split readlinkat test...
63004         * modules/readlinkat-tests: ...into separate module.
63005         * tests/test-symlinkat.c: Split...
63006         * tests/test-readlinkat.c: ...into new file.
63007         * NEWS: Document the split.
63008         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63009         * lib/unistd.in.h (readlinkat): Likewise.
63010         Suggested by Bruno Haible.
63012 2010-08-08  Bruno Haible  <bruno@clisp.org>
63014         memxfrm: Speed up.
63015         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
63016         that usually only one call to strxfrm is necessary for each string
63017         part.
63018         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63020 2010-08-07  Karl Berry  <karl@gnu.org>
63022         * doc/posix-headers/limits.texi,
63023         * doc/posix-functions/malloc.texi,
63024         * doc/posix-functions/strsignal.texi: missing @item.
63025         * doc/ld-version-script.texi: spurious leading i.
63026         * doc/regex.texi (Interval Operators): no commas inside @var.
63028 2010-08-01  Bruno Haible  <bruno@clisp.org>
63030         Integrate the regex documentation.
63031         * doc/gnulib.texi: Define 'cn' index.
63032         (Regular expressions): New a chapter that includes regex.texi and
63033         regexprops-generic.texi.
63034         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
63035         syntax.
63037         Whitespace cleanup.
63038         * doc/regex.texi: Remove trailing spaces.
63040         Add regex documentation.
63041         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
63042         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
63043         Written by Kathy A. Hargreaves and Karl Berry.
63045 2010-08-01  Bruno Haible  <bruno@clisp.org>
63047         link: Update documentation.
63048         * doc/posix-functions/link.texi: Update regarding Solaris.
63050 2010-07-31  Bruno Haible  <bruno@clisp.org>
63052         Update modules list.
63053         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
63054         (String handling <string.h>): Add memcmp2, memxfrm.
63055         (Container data structures): Add xlist, xsublist, xoset.
63056         (Core language properties): Add alignof, unused-parameter.
63057         (Process control, Numeric conversion functions <stdlib.h>): Renamed
63058         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
63059         (Unibyte characters <ctype.h>): New section.
63060         (String handling <string.h>): New section.
63061         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
63062         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
63063         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
63064         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
63065         tan, tanh, tanl, y0, y1, yn.
63066         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
63067         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
63068         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
63069         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
63070         unlockpt, vdprintf, vdprintf-posix.
63071         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
63072         (File system functions): Add concat-filename, sys_file, sys_ioctl,
63073         xconcat-filename.
63074         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
63075         getdtablesize, pipe2, pipe2-safer.
63076         (Security): New section.
63077         (Networking functions): Add accept4.
63078         (Signal handling): Add sigpipe.
63079         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
63080         mbmemcasecoll.
63081         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
63082         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
63083         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
63084         pipe-filter-ii.
63085         (Misc): Add argp-version-etc, login_tty, parse-duration.
63087 2010-07-31  Bruno Haible  <bruno@clisp.org>
63089         Improve doc in MODULES.html.
63090         * modules/linkat (Description): Add the word "function".
63091         * modules/mkfifo (Description): Likewise.
63092         * modules/mknod (Description): Likewise.
63093         * modules/remove (Description): Likewise.
63094         * modules/renameat (Description): Likewise.
63095         * modules/stat (Description): Likewise.
63096         * modules/symlink (Description): Likewise.
63097         * modules/unlink (Description): Likewise.
63099 2010-07-31  Bruno Haible  <bruno@clisp.org>
63101         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
63102         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
63103         option --enable/disable-c++ instead of --enable/disable-cxx.
63104         * NEWS: Mention the change.
63106 2010-07-31  Bruno Haible  <bruno@clisp.org>
63108         readlink, areadlink: Relax test a bit.
63109         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
63110         alternative to ENOTDIR.
63111         * tests/test-areadlink.h (test_areadlink): Likewise.
63112         Reported by Rainer Tammer.
63114 2010-07-31  Bruno Haible  <bruno@clisp.org>
63116         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
63117         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
63118         character, perform the search using U_STRCHR.
63119         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
63120         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
63121         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
63122         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
63123         Suggested by Paolo Bonzini.
63125 2010-07-31  Bruno Haible  <bruno@clisp.org>
63127         unistr/u*-strstr: Fix dependencies.
63128         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
63129         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
63130         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
63132 2010-07-31  Bruno Haible  <bruno@clisp.org>
63134         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
63135         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
63136         the beginning of the loop.
63137         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
63138         cases in 'switch' statement.
63140         unistr/u8-strchr: Fix several bugs.
63141         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
63142         the string. When not found, return NULL, not a pointer near the end.
63144         More tests for unistr/u8-strchr.
63145         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
63146         that the function does not read past the first occurrence of the byte
63147         being searched.
63148         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
63149         * tests/unistr/test-u16-strchr.c (main): New function.
63150         * tests/unistr/test-u32-strchr.c (main): New function.
63152 2010-07-31  Bruno Haible  <bruno@clisp.org>
63154         posix-modules: Ignore backup files of documentation files.
63155         * posix-modules: grep only through files named *.texi.
63157 2010-07-31  Bruno Haible  <bruno@clisp.org>
63159         symlinkat: Fix documentation.
63160         * doc/posix-functions/readlinkat.texi: Fix module name.
63162 2010-07-31  Bruno Haible  <bruno@clisp.org>
63164         fchownat: Replace also when chown has the trailing slash bug.
63165         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
63166         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
63167         introduced on 2010-04-10.
63168         Reported by Rainer Tammer.
63170 2010-07-31  Bruno Haible  <bruno@clisp.org>
63172         linkat: Work around AIX 7.1 bug.
63173         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
63174         whether linkat handles trailing slash correctly. If not, replace linkat
63175         and define LINKAT_TRAILING_SLASH_BUG.
63176         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
63177         check whether (fd1,file1) points to a directory if file1 or file2 ends
63178         in a slash. Code taken from lib/link.c.
63179         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
63180         Reported by Rainer Tammer.
63182 2010-07-31  Bruno Haible  <bruno@clisp.org>
63184         Correctly determine whether pow is available in libc on AIX 7 with xlc.
63185         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
63186         This disables an xlc optimization that was causing wrong test results.
63187         Reported by Rainer Tammer.
63189 2010-07-31  Bruno Haible  <bruno@clisp.org>
63191         iconv: Work around AIX 6.1..7.1 bug.
63192         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
63193         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
63194         cross-compiling, guess no on all versions of AIX.
63195         Reported by Rainer Tammer.
63197 2010-07-31  Bruno Haible  <bruno@clisp.org>
63199         readlink: Relax test a bit.
63200         * tests/test-readlink.h (test_readlink): Allow different errno value
63201         when readlink is called with a file name that ends in / and refers to
63202         a file.
63203         Suggested by Eric Blake.
63204         Reported by Rainer Tammer.
63206 2010-07-31  Bruno Haible  <bruno@clisp.org>
63208         copysign: Does not require -lm on glibc systems.
63209         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
63210         gl_COMMON_DOUBLE_MATHFUNC.
63211         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
63213 2010-07-31  Bruno Haible  <bruno@clisp.org>
63215         duplocale: Work around AIX 7.1 bug.
63216         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
63217         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
63218         * lib/duplocale.c (rpl_duplocale): Update comment.
63219         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
63220         Reported by Rainer Tammer.
63222 2010-07-30  Bruno Haible  <bruno@clisp.org>
63224         dirfd: Avoid link error on AIX 7.1.
63225         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
63226         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
63227         exist, set REPLACE_DIRFD.
63228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
63229         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
63230         * doc/posix-functions/dirfd.texi: Update.
63231         Reported by Rainer Tammer.
63233 2010-07-30  Eric Blake  <eblake@redhat.com>
63235         strtod: next round of AIX fixes
63236         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
63237         exponent.
63238         * tests/test-strtod.c (main): Enhance tests.
63239         * doc/posix-functions/strtod.texi (strtod): Document next bug.
63240         Reported by Rainer Tammer.
63242         futimens: fix configure check
63243         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
63244         Reported by Bruno Haible.
63246 2010-07-30  Bruno Haible  <bruno@clisp.org>
63248         getline: Update regarding AIX.
63249         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
63250         Reported by Rainer Tammer.
63252 2010-07-30  Bruno Haible  <bruno@clisp.org>
63254         wcwidth: Drop replacement on AIX 7.
63255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
63256         AIX 7.
63257         Reported by Rainer Tammer.
63259 2010-07-30  Bruno Haible  <bruno@clisp.org>
63261         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
63262         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
63263         a 'char *'.
63264         Reported by Rainer Tammer.
63266 2010-07-30  Bruno Haible  <bruno@clisp.org>
63268         unlink: Update regarding AIX.
63269         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
63270         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
63271         Reported by Rainer Tammer.
63273 2010-07-30  Bruno Haible  <bruno@clisp.org>
63275         symlink: Update regarding AIX.
63276         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
63277         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
63278         Reported by Rainer Tammer.
63280 2010-07-30  Bruno Haible  <bruno@clisp.org>
63282         strndup: Update regarding AIX.
63283         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
63284         AIX 7.
63285         Reported by Rainer Tammer.
63287 2010-07-30  Bruno Haible  <bruno@clisp.org>
63289         stat: Update regarding AIX.
63290         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
63291         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
63292         Reported by Rainer Tammer.
63294 2010-07-30  Bruno Haible  <bruno@clisp.org>
63296         truncl: Fix autoconf test.
63297         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
63298         whether truncl works.
63299         Reported by Rainer Tammer.
63301 2010-07-30  Bruno Haible  <bruno@clisp.org>
63303         round: Update regarding AIX.
63304         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
63305         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
63306         Reported by Rainer Tammer.
63308 2010-07-30  Bruno Haible  <bruno@clisp.org>
63310         rename: Update regarding AIX.
63311         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
63312         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
63313         Reported by Rainer Tammer.
63315 2010-07-30  Bruno Haible  <bruno@clisp.org>
63317         printf.m4: Update regarding AIX.
63318         * m4/printf.m4: Update comments regarding AIX.
63319         Reported by Rainer Tammer.
63321 2010-07-30  Bruno Haible  <bruno@clisp.org>
63323         iconv: Update regarding AIX.
63324         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
63325         AIX 7.
63326         Reported by Rainer Tammer.
63328 2010-07-30  Bruno Haible  <bruno@clisp.org>
63330         getopt: Update regarding AIX.
63331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
63332         no on AIX.
63333         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
63334         Reported by Rainer Tammer.
63336 2010-07-30  Bruno Haible  <bruno@clisp.org>
63338         ldexpl; Update regarding AIX.
63339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
63340         on AIX 7.
63341         Reported by Rainer Tammer.
63343 2010-07-30  Bruno Haible  <bruno@clisp.org>
63345         frexpl: Update regarding AIX.
63346         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
63347         on AIX 7.
63348         Reported by Rainer Tammer.
63350 2010-07-30  Bruno Haible  <bruno@clisp.org>
63352         open, fopen: Update regarding AIX.
63353         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
63354         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
63355         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
63356         * doc/posix-functions/fopen.texi: Likewise.
63357         Reported by Rainer Tammer.
63359 2010-07-30  Bruno Haible  <bruno@clisp.org>
63361         chown: Update doc regarding AIX.
63362         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
63363         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
63364         Reported by Rainer Tammer.
63366 2010-07-30  Eric Blake  <eblake@redhat.com>
63368         strtod: fix bug in replacement function on AIX
63369         * lib/strtod.c (strtod): Special case broken "0x" parse in
63370         underlying strtod.
63371         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
63372         * doc/posix-functions/strtod.texi (strtod): Likewise.
63373         Reported by Rainer Tammer.
63375 2010-07-30  Bruno Haible  <bruno@clisp.org>
63377         mbrlen: Fix cross-compilation guess for AIX.
63378         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
63379         guess. Leftover from 2008-12-22.
63381 2010-07-30  Bruno Haible  <bruno@clisp.org>
63383         mbrtowc: Fix cross-compilation guess for AIX.
63384         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
63385         guess. Leftover from 2008-12-21.
63387 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
63389         init.sh: work around trap limitation of some shells
63390         * tests/init.sh (setup_): Move exit trap outside of shell function.
63392 2010-07-29  Eric Blake  <eblake@redhat.com>
63394         strtod: aid debugging
63395         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
63396         understanding why strtod is rejected.
63398 2010-07-28  Bruno Haible  <bruno@clisp.org>
63400         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
63401         * lib/unistr/u8-chr.c: Include <string.h>.
63402         * tests/unistr/test-u8-chr.c: Likewise.
63403         * tests/unistr/test-u16-chr.c: Likewise.
63404         * tests/unistr/test-u32-chr.c: Likewise.
63405         * tests/unistr/test-u8-strchr.c: Likewise.
63406         * tests/unistr/test-u16-strchr.c: Likewise.
63407         * tests/unistr/test-u32-strchr.c: Likewise.
63408         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
63409         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
63410         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
63411         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
63413 2010-07-28  Bruno Haible  <bruno@clisp.org>
63415         Use spaces for indentation, not tabs.
63416         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
63418 2010-07-27  Bruno Haible  <bruno@clisp.org>
63420         mbspcasecmp: Fix function specification.
63421         * lib/string.in.h (mbspcasecmp): Fix specification comment.
63422         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
63423         Reported by Eric Blake <eblake@redhat.com>.
63425 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
63427         timespec: use cast and not conditional, as truncation isn't possible
63428         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
63429         instead of a conditional.  Comment about the situation in more detail.
63430         This undoes most of the 2009-10-29 patch.
63432 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
63434         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
63435         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
63436         * lib/unistr/u8-strchr.c: Likewise.
63437         * modules/unistr/u8-chr: Depend on memchr.
63439         unistr/u*-strchr: add tests
63440         * modules/unistr/u8-strchr-tests: New file.
63441         * modules/unistr/u16-strchr-tests: New file.
63442         * modules/unistr/u32-strchr-tests: New file.
63443         * tests/unistr/test-strchr.h: New file.
63444         * tests/unistr/test-u8-strchr.c: New file.
63445         * tests/unistr/test-u16-strchr.c: New file.
63446         * tests/unistr/test-u32-strchr.c: New file.
63448         unistr/u*-chr: test multibyte sequences more
63449         * tests/unistr/test-chr.h: Do complete testing of the characters in the
63450         test vector.
63451         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
63452         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
63453         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
63455         unistr/u*-chr: test multibyte sequences
63456         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
63458         unistr/u*-chr: prepare for multibyte tests
63459         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
63460         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
63461         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
63462         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
63463         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
63464         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
63466 2010-07-18  Bruno Haible  <bruno@clisp.org>
63468         unistr/u8-strchr: Optimize non-ASCII argument case.
63469         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
63470         because the first byte often matches anyway.
63471         Reported by Pádraig Brady <P@draigbrady.com>.
63473 2010-07-15  Karl Berry  <karl@gnu.org>
63475         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
63477 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
63479         getcwd: on Solaris, work better if ancestors are inaccessible
63480         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
63481         buffer and size, try again with a large buffer.  This works better
63482         on Solaris, since its getcwd succeeds even if the path to the root
63483         is inaccessible, and this is helpful in common cases such as .zfs
63484         hidden directories.  Problem reported by J Chapman Flack in
63485         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
63486         Use system getcwd if it's declared, not merely if it's partly
63487         working; use the partly-working test only to avoid needless effort
63488         if the system getcwd fails.
63489         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
63490         comment that was already obsolete and is now even more obsolete.
63491         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
63492         now might call strdup.
63494 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
63496         pthread: Add enough so that coreutils/src/sort.c compiles.
63497         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
63498         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
63499         gnulib. Include <sched.h> and <time.h>, as per POSIX.
63500         Include <sys/types.h>, in case it defines pthread_t.
63501         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
63502         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
63503         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
63504         (pthread_rwlockattr_t, pthread_spinlock_t):
63505         New typedefs, if HAVE_PTHREAD_T is not defined.
63506         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
63507         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
63508         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
63509         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
63510         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
63511         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
63512         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
63513         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
63514         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
63515         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
63516         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
63517         New macros.
63518         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
63519         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
63520         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
63521         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
63522         (pthread_spin_unlock): New dummy functions.
63523         (pthread_create): Return EAGAIN; don't set errno.
63524         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
63525         require AC_C_INLINE.
63526         * modules/pthread (Depends-on): Add sched, time.
63527         (pthread.h): Use AM_V_GEN.
63529 2010-07-13  Bruno Haible  <bruno@clisp.org>
63531         striconveh: Don't malloc memory if the result buffer is sufficient.
63532         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
63533         buffer if its size is sufficient.
63534         Reported by Ludovic Courtès <ludo@gnu.org>.
63536 2010-07-13  Bruno Haible  <bruno@clisp.org>
63538         strtod: Add safety check.
63539         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
63541 2010-07-12  Bruno Haible  <bruno@clisp.org>
63543         Unify tests that set gl_cv_func_ldexpl_no_libm.
63544         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
63545         gl_FUNC_LDEXPL.
63546         (gl_FUNC_LDEXPL): Invoke it.
63547         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63549 2010-07-12  Bruno Haible  <bruno@clisp.org>
63551         Unify tests that set gl_cv_func_ldexp_no_libm.
63552         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
63553         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
63554         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
63555         (configure.ac): Simply invoke gl_FUNC_LDEXP.
63556         * modules/strtod (Files): Add m4/ldexp.m4.
63558 2010-07-12  Bruno Haible  <bruno@clisp.org>
63560         Unify tests that set gl_cv_func_frexpl_no_libm.
63561         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
63562         gl_FUNC_FREXPL_NO_LIBM.
63563         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
63564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63566 2010-07-12  Bruno Haible  <bruno@clisp.org>
63568         Unify tests that set gl_cv_func_frexp_no_libm.
63569         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
63570         gl_FUNC_FREXP_NO_LIBM.
63571         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
63572         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
63574 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63576         memcoll: clarify sizes versus lengths, document better, and tweak perf
63577         * lib/memcoll.c (strcoll_loop, memcoll0):
63578         Improve quality of descriptive comments.  Name variables
63579         consistently as to whether they are lengths (which do not include
63580         terminating null) versus sizes (which do).
63581         * lib/xmemcoll.c (xmemcoll0): Likewise.
63582         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
63583         returned when s1size == 0; this is easier to compile and saves
63584         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
63586 2010-07-12  Bruno Haible  <bruno@clisp.org>
63588         Tests for module '_Exit'.
63589         * modules/_Exit-tests: New file.
63590         * tests/test-_Exit.sh: New file.
63591         * tests/test-_Exit.c: New file.
63593         New module '_Exit'.
63594         * lib/stdlib.in.h (__attribute__): New macro.
63595         (_Exit): New declaration.
63596         * lib/_Exit.c: New file.
63597         * m4/_Exit.m4: New file.
63598         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
63599         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
63600         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
63601         * modules/_Exit: New file.
63602         * tests/test-stdlib-c++.cc (_Exit): Check signature.
63603         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
63605 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
63607         strtod: make it more-accurate typically, and don't require libm
63608         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
63609         Include limits.h.  Don't include string.h.
63610         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
63611         (locale_isspace): New function, so that no casts are needed to
63612         check whether *s is a space.
63613         (ldexp): Provide an unused dummy if not available.
63614         (scale_radix_exp, parse_number, underlying_strtod): New functions.
63615         (strtod): Use them.  This implementation prefers to use the
63616         underlying strtod if available, falling back on our own code
63617         only to fix known bugs.  This is more likely to produce an
63618         accurate result.  Also, it avoids the use of libm functions.
63619         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
63620         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
63621         was absent, but it caused a test failure with coreutils.
63622         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
63623         with libm.
63624         * modules/strtod (Makefile.am, Link): libm is no longer needed.
63625         * modules/strtod-tests (Makefile.am): Likewise.
63627 2010-07-11  Pádraig Brady  <P@draigBrady.com>
63628             Bruno Haible  <bruno@clisp.org>
63630         unistr/u8-strchr: Optimize ASCII argument case.
63631         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
63633 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
63635         (x)memcoll: minor tweaks
63636         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
63637         is after the type that it qualifies.
63638         (memcoll0): Likewise.
63639         * lib/memcoll.h (memcoll0): Likewise.
63640         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
63641         * lib/xmemcoll.h (xmemcoll0): Likewise.
63642         * lib/memcoll.c (memcoll0): Correct the comment.  This function
63643         differs from memcoll in that the NUL byte is part of the argument.
63644         Omit the abort-checks, as performance is a real issue here.  Plus,
63645         the checks were wrong anyway (an off-by-one error).  Omit local
63646         variable 'diff', as it's a bit clearer that way.
63647         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
63648         no longer needed.
63650 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
63652         (x)memcoll: speedup when input is known to be NUL delimited
63653         * lib/memcoll.c: Include stdlib.
63654         (memcoll0): New function.
63655         (strcoll_loop): New function, refactored for use in both memcoll
63656         and memcoll0.
63657         * lib/memcoll.h (memcoll0): Add prototype.
63658         * lib/xmemcoll.c (xmemcoll0): New function.
63659         (collate_error): New function, refactored for use in both xmemcoll
63660         and xmemcoll0.
63661         * lib/xmemcoll.h (xmemcoll0): Add prototype.
63662         * m4/memcoll.m4: add inline invocation.
63664 2010-07-06  Pádraig Brady  <P@draigBrady.com>
63666         * build-aux/bootstrap: Remove any local translations
63667         from the translation project synchronization directory,
63668         so that local only translations are not distributed.
63670 2010-07-04  Bruno Haible  <bruno@clisp.org>
63672         fsusage: Clarify which code applies to which platforms.
63673         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
63674         platform.
63675         * lib/fsusage.c (get_fs_usage): Likewise.
63677 2010-07-04  Bruno Haible  <bruno@clisp.org>
63679         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
63680         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
63681         Reported by Martin Lambers <marlam@marlam.de>.
63683 2010-07-04  Jim Meyering  <meyering@redhat.com>
63685         hash: once again explicitly disallow insertion of NULL
63686         * lib/hash.c (hash_insert0): Reinstate just-removed test:
63687         inserting a NULL pointer cannot work with these functions.
63688         Add a comment with details.
63689         This reverts part of the 2010-07-01 commit, 5bef1a35
63690         "hash: extend module to deal with non-pointer keys".
63692 2010-07-01  Bruno Haible  <bruno@clisp.org>
63694         stdbool: Update doc.
63695         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
63696         Info from Christian Weisgerber <naddy@mips.inka.de>.
63698 2010-07-01  Jim Meyering  <meyering@redhat.com>
63700         hash: extend module to deal with non-pointer keys
63701         * lib/hash.c (hash_insert0): New interface, much like hash_insert
63702         but that allows insertion of non-pointer entries.
63703         Do not disallow an ENTRY value of NULL.
63704         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
63705         * lib/hash.h (hash_insert0): Declare.
63707 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63709         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
63710         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
63711         not present (i.e. with autoconf 2.59 and when using gettextize, not
63712         gnulib), require AC_GNU_SOURCE instead.
63714 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
63716         idpriv-drop: Fix tests.
63717         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
63718         not to the test-idpriv-droptemp program.
63720 2010-06-29  Bruno Haible  <bruno@clisp.org>
63722         string: Fix syntax error with g++ 2.96.
63723         * lib/string.in.h (__pure__): Remove definition.
63724         (_GL_ATTRIBUTE_PURE): New macro.
63725         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
63726         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
63727         Reported by Christian Weisgerber <naddy@mips.inka.de>.
63729 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
63731         unitypes: Fix bug introduced on 2010-05-18.
63732         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
63734 2010-06-22  Eric Blake  <eblake@redhat.com>
63736         memmem: slight optimization
63737         * lib/str-two-way.h (critical_factorization): Update comments.
63738         Reduce work during factorization phase.
63739         Reported by Carlos Bueno <carlos@bueno.org>.
63741 2010-06-21  Bruno Haible  <bruno@clisp.org>
63743         Fix HAVE_CALLOC_POSIX misnomer.
63744         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
63745         !HAVE_CALLOC_POSIX.
63746         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
63747         HAVE_CALLOC_POSIX.
63748         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
63749         instead of HAVE_CALLOC_POSIX.
63750         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
63751         HAVE_CALLOC_POSIX.
63753         Use modern idiom for calloc() replacement.
63754         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
63755         AC_FUNC_CALLOC.
63756         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
63757         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
63758         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63759         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
63760         (gl_REPLACE_CALLOC): New macro.
63762 2010-06-21  Bruno Haible  <bruno@clisp.org>
63764         Fix HAVE_REALLOC_POSIX misnomer.
63765         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
63766         !HAVE_REALLOC_POSIX.
63767         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
63768         HAVE_REALLOC_POSIX.
63769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
63770         instead of HAVE_REALLOC_POSIX.
63771         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
63772         HAVE_REALLOC_POSIX.
63774         Use modern idiom for realloc() replacement.
63775         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
63776         AC_FUNC_REALLOC.
63777         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
63778         Autoconf's AC_FUNC_REALLOC.
63779         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63780         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
63781         (gl_REPLACE_REALLOC): New macro.
63782         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63784 2010-06-21  Bruno Haible  <bruno@clisp.org>
63786         Fix HAVE_MALLOC_POSIX misnomer.
63787         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
63788         !HAVE_MALLOC_POSIX.
63789         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
63790         HAVE_MALLOC_POSIX.
63791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
63792         instead of HAVE_MALLOC_POSIX.
63793         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
63794         HAVE_MALLOC_POSIX.
63796         Use modern idiom for malloc() replacement.
63797         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
63798         AC_FUNC_MALLOC.
63799         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
63800         Autoconf's AC_FUNC_MALLOC.
63801         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
63802         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
63803         (gl_REPLACE_MALLOC): New macro.
63804         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
63806 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
63808         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
63809         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
63810         This macro takes 3 arguments, not 4.
63812 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
63814         ipv6: fix detection under mingw
63815         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
63816         in6_addr.
63818 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
63820         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
63821         that strtod() works when cross-compiling to a glibc version known
63822         to work.
63824 2010-06-15  Bruno Haible  <bruno@clisp.org>
63826         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
63828 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
63830         select: Correct timeout.
63831         * lib/select.c (rpl_select): Compute wait_timeout correctly.
63833 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63835         git-version-gen: init shell var to avoid env var influence
63836         * build-aux/git-version-gen (v): Init shell var to empty.
63838 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
63840         priv-set: Don't assume that priv.h exists merely because getppriv does.
63841         See Jan Andersen's bug report about AIX 5L in
63842         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
63843         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
63844         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
63845         * lib/priv-set.h: Likewise.
63846         * tests/test-priv-set.c: Likewise.
63848 2010-06-13  Bruno Haible  <bruno@clisp.org>
63850         relocatable: Make it easier to test whether to install wrappers.
63851         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
63852         RELOCATABLE_VIA_WRAPPER.
63854 2010-06-13  Bruno Haible  <bruno@clisp.org>
63856         gnulib-tool: Display specified modules and dependencies differently.
63857         * gnulib-tool (func_show_module_list): New function.
63858         (func_import, func_create_testdir): Invoke it.
63859         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
63861 2010-06-13  Bruno Haible  <bruno@clisp.org>
63863         gnulib-tool: Align code of func_import and func_create_testdir.
63864         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
63865         specified_modules.
63867 2010-06-12  Jim Meyering  <meyering@redhat.com>
63869         test-inttostr: avoid spurious failure on Solaris 9
63870         * tests/test-inttostr.c (main): Skip the test when snprintf fails
63871         to accept "%ju".  Reported by Bruno Haible.
63873 2010-06-11  Jim Meyering  <meyering@redhat.com>
63875         test-sys_socket: mark variables as used more readably
63876         * tests/test-sys_socket.c (main): Mark otherwise unused variables
63877         as "used" explicitly via (void) statement casts.  This is more
63878         readable than using them in an artificial return expression.
63879         Suggestion from Bruno Haible.
63881 2010-06-11  Bruno Haible  <bruno@clisp.org>
63883         Avoid some more warnings from "gcc -Wwrite-strings".
63884         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
63885         to 'const char *'.
63886         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
63887         * tests/test-c-strcasestr.c (main): Likewise.
63888         * tests/test-mbscasestr1.c (main): Likewise.
63889         * tests/test-mbscasestr2.c (main): Likewise.
63890         * tests/test-memmem.c (main): Likewise.
63891         * tests/test-strstr.c (main): Likewise.
63892         * tests/test-strcasestr.c (main): Likewise.
63894 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63896         init.sh: change framework_failure_ to fail with status 99, not 1
63897         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
63898         automake's parallel-tests rule that this is an unexpected failure,
63899         even if the test is listed in XFAIL_TESTS.
63901 2010-06-11  Jim Meyering  <meyering@redhat.com>
63903         test-inttostr: avoid warnings about 4-6KB literal strings
63904         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
63905         Include "macros.h", for its definition of ASSERT.
63906         (CK): s/assert/ASSERT/
63907         * modules/inttostr-tests (Files): Add macros.h.
63909         init.sh: don't use $ME_ or skip_ before they are defined
63910         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
63911         their first uses.  Also hoist their companions: warn_, fail_,
63912         framework_failure_, $stderr_fileno.  Prompted by a patch from
63913         Stefano Lattarini.
63915         test-sys_socket: avoid set-but-not-used warnings from gcc
63916         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
63917         avoid warning about set-but-not-used variables.
63919         test-xvasprintf: avoid 'const' discard warnings
63920         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
63921         "const" when assigning from literal strings.
63922         (test_xasprintf): Add "void" in function argument list to placate
63923         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
63925         tests: avoid compilation warnings in argmatch and exclude tests...
63926         in packages that define ARGMATCH_DIE_DECL, like coreutils.
63927         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
63928         Since it always exits, declare with the "noreturn" attribute.
63929         * tests/test-argmatch.c: Likewise.
63931         tests: avoid 'const' discard warnings in mbsstr tests
63932         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
63933         * tests/test-mbsstr2.c (main): Likewise.
63935         test-verify: avoid warning from gcc's -Wmissing-declarations
63936         * tests/test-verify.c (function): Declare to be static.
63938         test-inttostr.c: include <string.h> for use of strcmp
63939         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
63941         test-linkat: avoid failed assertion on "other" architectures
63942         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
63943         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
63944         sparc: https://bugs.launchpad.net/bugs/591968
63946 2010-06-11  Jim Meyering  <meyering@redhat.com>
63948         printf.m4: avoid autoconf's "Expanded Before Required" warning
63949         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
63950         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
63951         autoconf warning.
63953 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
63955         Replacement header templates are now named with ".in", not "_".
63956         * doc/gnulib-intro.texi: Correct.
63958 2010-06-10  Jim Meyering  <meyering@redhat.com>
63960         inttostr-tests: depend on snprintf, not snprintf-posix
63961         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
63962         snprintf-posix, to avoid this aclocal failure:
63963           missing file gnulib-tests/vasnprintf.c
63964           configure.ac:45: error: expected source file, required through \
63965           AC_LIBSOURCES, not found
63967 2010-06-10  Jim Meyering  <meyering@redhat.com>
63969         inttostr: add a new function, inttostr, and tests
63970         The namesake function was not available.  The existence of the
63971         template file, inttostr.c makes its addition nontrivial.
63972         * lib/anytostr.c: Rename from inttostr.c.
63973         (anytostr): Rename from inttostr.
63974         * lib/inttostr.c: New file.
63975         * modules/inttostr (Files): Add anytostr.c.
63976         (Makefile.am): Set lib_SOURCES instead of ...
63977         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
63978         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
63979         * lib/offtostr.c: Likewise.
63980         * lib/uinttostr.c: Likewise.
63981         * lib/umaxtostr.c: Likewise.
63982         * modules/inttostr-tests: New file.
63983         * tests/test-inttostr.c: New file.  Test these functions.
63985 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
63986             Bruno Haible  <bruno@clisp.org>
63988         Add "Extending Gnulib" chapter to manual.
63989         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
63990         chapter.
63991         (Extending Gnulib): New chapter.
63992         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
63993         chapter.
63995 2010-06-09  Bruno Haible  <bruno@clisp.org>
63997         Avoid relocwrapper link errors due to gnulib replacement functions.
63998         * lib/areadlink.c: Use the system's malloc, realloc functions.
63999         (areadlink): Set errno to ENOMEM explicitly.
64000         * modules/areadlink (Depends-on): Remove malloc-posix.
64001         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64003 2010-06-09  Bruno Haible  <bruno@clisp.org>
64005         Avoid relocwrapper link errors due to gnulib replacement functions.
64006         * lib/canonicalize-lgpl.c: Use the system's malloc function.
64007         * lib/malloca.c: Likewise.
64008         * lib/relocatable.c: Likewise.
64009         * lib/progreloc.c: Use the system's malloc, sprintf functions.
64010         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
64011         * lib/setenv.c: Use the system's malloc, realloc functions.
64012         * lib/strerror.c: Use the system's sprintf function.
64013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64015 2010-06-04  Bruno Haible  <bruno@clisp.org>
64017         Prefer documented low-level autoconf macro names.
64018         * m4/lib-link.m4: Use m4_translit instead of translit.
64019         * m4/environ.m4: Likewise.
64020         * m4/mathfunc.m4: Likewise.
64021         * m4/onceonly.m4: Likewise.
64022         * m4/stdint.m4: Likewise.
64023         Suggested by Eric Blake.
64025 2010-06-04  Martin Lambers  <marlam@marlam.de>
64026             Bruno Haible  <bruno@clisp.org>
64028         havelib: Allow library names with '+' characters.
64029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64030         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
64032 2010-06-09  Bruno Haible  <bruno@clisp.org>
64034         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
64035         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
64036         realloc failed.
64038 2010-06-08  Peter Simons  <simons@cryp.to>
64040         maint.mk: make the news-check rule more configurable
64041         * top/maint.mk (news-check-lines-spec): New variable.
64042         (news-check): Use "sed -n 1,10p" in place of "head".
64044 2010-06-07  Jim Meyering  <meyering@redhat.com>
64046         do-release-commit-and-tag: fix typo in --help
64047         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
64049         regex: avoid new dead-code warning with gcc-4.6.0
64050         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
64051         if-block containing a while-loop.  It's been unused for at least
64052         5 years.
64054 2010-06-05  Bruno Haible  <bruno@clisp.org>
64056         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
64057         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
64059 2010-06-04  Bruno Haible  <bruno@clisp.org>
64061         Update to GNU gettext 0.18.1.
64062         * modules/gettext (configure.ac): Require gettext infrastructure from
64063         version 0.18.1.
64065 2010-06-03  Bruno Haible  <bruno@clisp.org>
64067         Don't use AC_LIBOBJ with file names in subdirectories.
64068         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
64069         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
64070         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
64071         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
64072         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
64073         gl_LIBUNISTRING_LIBSOURCE.
64074         (Makefile.am): Augment lib_SOURCES here, conditionally.
64075         * NEWS: Drop requirement for Automake option 'subdir-objects'.
64077 2010-06-03  Bruno Haible  <bruno@clisp.org>
64079         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
64080         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
64081         expansion does not end with a newline.
64082         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
64083         unnecessary newline.
64085 2010-06-03  Bruno Haible  <bruno@clisp.org>
64087         Reduce dependencies.
64088         * tests/test-quotearg.h: New file, extracted from
64089         tests/test-quotearg.c.
64090         * tests/test-quotearg-simple.c: New file, extracted from
64091         tests/test-quotearg.c.
64092         * tests/test-quotearg.c: Don't include <ctype.h>.
64093         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
64094         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
64095         use_quote_double_quotes, use_quotearg_colon): Moved to
64096         tests/test-quotearg.h.
64097         (results_g, flag_results, custom_quotes, custom_results): Moved
64098         to tests/test-quotearg-simple.c.
64099         (main): Moved the part that does not depend on gettext to
64100         tests/test-quotearg-simple.c. Return 77 if the test cannot be
64101         performed.
64102         * modules/quotearg-simple: New file.
64103         * modules/quotearg-simple-tests: New file.
64104         * modules/quotearg (Depends-on): Add quotearg-simple.
64105         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
64106         (Files): Add tests/test-quotearg.h.
64107         Reported by Paolo Bonzini.
64109 2010-06-03  Bruno Haible  <bruno@clisp.org>
64111         Reduce dependencies.
64112         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
64114 2010-06-03  Bruno Haible  <bruno@clisp.org>
64116         time: Undefine more broken macros.
64117         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
64118         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
64119         Reported by Eric Blake.
64121 2010-06-03  Bruno Haible  <bruno@clisp.org>
64123         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
64124         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
64125         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
64126         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
64127         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
64128         Reported by Ludovic Courtès <ludo@gnu.org>.
64130 2010-06-02  Eric Blake  <eblake@redhat.com>
64132         time: work with mingw + pthreads-win32 library
64133         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
64134         if timespec is defined only in pthread.h.
64135         * modules/time (Makefile.am): Substitute it.
64136         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
64137         <pthread.h>, when needed.
64138         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
64139         from the library.
64141 2010-05-31  Bruno Haible  <bruno@clisp.org>
64143         Avoid expanding two macros in the wrong order.
64144         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
64145         gl_LIBUNISTRING if it is defined.
64146         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
64147         autoconf >= 2.64.
64148         Reported by Ludovic Courtès <ludo@gnu.org>.
64150 2010-05-27  Jim Meyering  <meyering@redhat.com>
64152         maint.mk: also prohibit "#undef" of always-defined symbols
64153         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
64154         Allow more than one space before the symbol name.
64155         (sc_prohibit_always-defined_macros): Use grep's -E, now that
64156         the regexp uses alternation.
64158 2010-05-26  Eric Blake  <eblake@redhat.com>
64160         maint.mk: avoid echo -e
64161         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
64162         Convert all uses of echo -* to printf.
64163         Reported by Matthias Bolte.
64165 2010-05-25  Bruno Haible  <bruno@clisp.org>
64167         Update to GNU gettext 0.18, part 2.
64168         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
64169         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
64171 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64173         Add missing include in test-pwrite.c.
64174         * tests/test-pwrite.c: Include string.h, for strcmp.
64176 2010-05-24  Bruno Haible  <bruno@clisp.org>
64178         * NEWS: Mention requirement for Automake option 'subdir-objects'.
64180 2010-05-24  Bruno Haible  <bruno@clisp.org>
64182         Don't use conversion with transliteration in u{8,16,32}_strcoll.
64183         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
64184         iconveh_error argument.
64185         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
64186         U_STRCONV_TO_LOCALE.
64187         * lib/unistr/u16-strcoll.c: Likewise.
64188         * lib/unistr/u32-strcoll.c: Likewise.
64189         * modules/unistr/u8-strcoll (Depends-on): Add
64190         uniconv/u8-strconv-to-enc, localcharset. Remove
64191         uniconv/u8-strconv-to-locale.
64192         (configure.ac): Bump version number.
64193         * modules/unistr/u16-strcoll (Depends-on): Add
64194         uniconv/u16-strconv-to-enc, localcharset. Remove
64195         uniconv/u16-strconv-to-locale.
64196         (configure.ac): Bump version number.
64197         * modules/unistr/u32-strcoll (Depends-on): Add
64198         uniconv/u32-strconv-to-enc, localcharset. Remove
64199         uniconv/u32-strconv-to-locale.
64200         (configure.ac): Bump version number.
64202 2010-05-24  Bruno Haible  <bruno@clisp.org>
64204         Avoid a test failure on NetBSD 5.0.
64205         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
64206         an iconv() bug.
64208 2010-05-24  Bruno Haible  <bruno@clisp.org>
64210         Adjust #include directive style.
64211         * modules/regex (Includes): Recommend to write <regex.h>.
64213 2010-05-24  Bruno Haible  <bruno@clisp.org>
64215         regex: Don't require alloca.
64216         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
64217         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
64218         only inside if (0).
64220 2010-05-23  Jim Meyering  <meyering@redhat.com>
64222         test-renameat.c: include <sys/stat.h>
64223         * tests/test-renameat.c: Include <sys/stat.h>; required for
64224         definition of S_IS* macros.
64226 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
64228         Update maintainer documentation for 'relocatable-prog' module.
64229         * doc/relocatable-maint.texi: Update.
64230         Comments by Bruno Haible.
64232 2010-05-23  Bruno Haible  <bruno@clisp.org>
64234         git-merge-changelog: Enable --split-merged-entry by default.
64235         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
64236         (usage): Don't mention this option any more.
64237         Reported by Ralf Wildenhues.
64239 2010-05-23  Jim Meyering  <meyering@redhat.com>
64241         test-pwrite: do not leave behind a test file named "out"
64242         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
64243         The trivial-looking use of init.sh is really necessary.
64244         It ensures that the temporary file, "out", is created in
64245         a temporary directory, and removed upon termination.
64246         * tests/test-pwrite.sh: Re-add file.
64247         * modules/pwrite-tests: Reference it.
64249 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64251         Fix output redirection buglet in init.sh.
64252         * tests/init.sh: Fix redirection of stderr.
64254 2010-05-20  Simon Josefsson  <simon@josefsson.org>
64256         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
64258 2010-05-17  Simon Josefsson  <simon@josefsson.org>
64260         * modules/valgrind-tests: New file.
64261         * m4/valgrind-tests.m4: New file.
64262         * doc/valgrind-tests.texi: New file.
64263         * doc/gnulib.texi (Running self-tests under valgrind): New
64264         section.
64266 2010-05-19  Bruno Haible  <bruno@clisp.org>
64268         Clean up dead code in recent commit.
64269         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
64270         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
64271         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
64272         Suggested by Paolo Bonzini.
64274 2010-05-19  Bruno Haible  <bruno@clisp.org>
64276         Avoid valgrind error reports from libunistring.
64277         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
64278         * modules/libunistring (Files): Add it.
64279         * modules/libunistring-optional (Files): Likewise.
64281 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
64282             Bruno Haible  <bruno@clisp.org>
64284         New module 'libunistring-optional'.
64285         * modules/libunistring-optional: New file.
64286         * m4/libunistring-base.m4: New file.
64287         * m4/libunistring-optional.m4: New file.
64288         * lib/unicase.in.h: Renamed from lib/unicase.h.
64289         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
64290         * lib/unictype.in.h: Renamed from lib/unictype.h.
64291         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
64292         * lib/uniname.in.h: Renamed from lib/uniname.h.
64293         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
64294         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
64295         * lib/unistr.in.h: Renamed from lib/unistr.h.
64296         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
64297         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
64298         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
64299         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
64300         gl_LIBUNISTRING. If the library was found, determine the installed
64301         version and set LIBUNISTRING_VERSION.
64302         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
64303         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
64304         handle a configuration option --with-included-libunistring.
64305         * modules/libunistring (Files): Add m4/absolute-header.m4.
64306         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
64307         Add m4/libunistring-base.m4.
64308         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64309         (Makefile.am): Build unicase.h from unicase.in.h.
64310         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
64311         Add m4/libunistring-base.m4.
64312         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64313         (Makefile.am): Build uniconv.h from uniconv.in.h.
64314         * modules/unictype/base (Files): Use unictype.in.h instead of
64315         unictype.h. Add m4/libunistring-base.m4.
64316         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64317         (Makefile.am): Build unictype.h from unictype.in.h.
64318         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
64319         Add m4/libunistring-base.m4.
64320         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64321         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
64322         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
64323         Add m4/libunistring-base.m4.
64324         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64325         (Makefile.am): Build uniname.h from uniname.in.h.
64326         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
64327         Add m4/libunistring-base.m4.
64328         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64329         (Makefile.am): Build uninorm.h from uninorm.in.h.
64330         * modules/unistdio/base (Files): Use unistdio.in.h instead of
64331         unistdio.h. Add m4/libunistring-base.m4.
64332         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64333         (Makefile.am): Build unistdio.h from unistdio.in.h.
64334         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
64335         Add m4/libunistring-base.m4.
64336         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64337         (Makefile.am): Build unistr.h from unistr.in.h.
64338         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
64339         Add m4/libunistring-base.m4.
64340         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64341         (Makefile.am): Build unitypes.h from unitypes.in.h.
64342         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
64343         Add m4/libunistring-base.m4.
64344         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64345         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
64346         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
64347         uniwidth.h. Add m4/libunistring-base.m4.
64348         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
64349         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
64350         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
64351         instead of augmenting lib_SOURCES.
64352         * modules/unicase/empty-suffix-context: Likewise.
64353         * modules/unicase/locale-language: Likewise.
64354         * modules/unicase/tolower: Likewise.
64355         * modules/unicase/totitle: Likewise.
64356         * modules/unicase/toupper: Likewise.
64357         * modules/unicase/u8-casecmp: Likewise.
64358         * modules/unicase/u8-casecoll: Likewise.
64359         * modules/unicase/u8-casefold: Likewise.
64360         * modules/unicase/u8-casexfrm: Likewise.
64361         * modules/unicase/u8-ct-casefold: Likewise.
64362         * modules/unicase/u8-ct-tolower: Likewise.
64363         * modules/unicase/u8-ct-totitle: Likewise.
64364         * modules/unicase/u8-ct-toupper: Likewise.
64365         * modules/unicase/u8-is-cased: Likewise.
64366         * modules/unicase/u8-is-casefolded: Likewise.
64367         * modules/unicase/u8-is-lowercase: Likewise.
64368         * modules/unicase/u8-is-titlecase: Likewise.
64369         * modules/unicase/u8-is-uppercase: Likewise.
64370         * modules/unicase/u8-prefix-context: Likewise.
64371         * modules/unicase/u8-suffix-context: Likewise.
64372         * modules/unicase/u8-tolower: Likewise.
64373         * modules/unicase/u8-totitle: Likewise.
64374         * modules/unicase/u8-toupper: Likewise.
64375         * modules/unicase/u16-casecmp: Likewise.
64376         * modules/unicase/u16-casecoll: Likewise.
64377         * modules/unicase/u16-casefold: Likewise.
64378         * modules/unicase/u16-casexfrm: Likewise.
64379         * modules/unicase/u16-ct-casefold: Likewise.
64380         * modules/unicase/u16-ct-tolower: Likewise.
64381         * modules/unicase/u16-ct-totitle: Likewise.
64382         * modules/unicase/u16-ct-toupper: Likewise.
64383         * modules/unicase/u16-is-cased: Likewise.
64384         * modules/unicase/u16-is-casefolded: Likewise.
64385         * modules/unicase/u16-is-lowercase: Likewise.
64386         * modules/unicase/u16-is-titlecase: Likewise.
64387         * modules/unicase/u16-is-uppercase: Likewise.
64388         * modules/unicase/u16-prefix-context: Likewise.
64389         * modules/unicase/u16-suffix-context: Likewise.
64390         * modules/unicase/u16-tolower: Likewise.
64391         * modules/unicase/u16-totitle: Likewise.
64392         * modules/unicase/u16-toupper: Likewise.
64393         * modules/unicase/u32-casecmp: Likewise.
64394         * modules/unicase/u32-casecoll: Likewise.
64395         * modules/unicase/u32-casefold: Likewise.
64396         * modules/unicase/u32-casexfrm: Likewise.
64397         * modules/unicase/u32-ct-casefold: Likewise.
64398         * modules/unicase/u32-ct-tolower: Likewise.
64399         * modules/unicase/u32-ct-totitle: Likewise.
64400         * modules/unicase/u32-ct-toupper: Likewise.
64401         * modules/unicase/u32-is-cased: Likewise.
64402         * modules/unicase/u32-is-casefolded: Likewise.
64403         * modules/unicase/u32-is-lowercase: Likewise.
64404         * modules/unicase/u32-is-titlecase: Likewise.
64405         * modules/unicase/u32-is-uppercase: Likewise.
64406         * modules/unicase/u32-prefix-context: Likewise.
64407         * modules/unicase/u32-suffix-context: Likewise.
64408         * modules/unicase/u32-tolower: Likewise.
64409         * modules/unicase/u32-totitle: Likewise.
64410         * modules/unicase/u32-toupper: Likewise.
64411         * modules/unicase/ulc-casecmp: Likewise.
64412         * modules/unicase/ulc-casecoll: Likewise.
64413         * modules/unicase/ulc-casexfrm: Likewise.
64414         * modules/uniconv/u8-conv-from-enc: Likewise.
64415         * modules/uniconv/u8-conv-to-enc: Likewise.
64416         * modules/uniconv/u8-strconv-from-enc: Likewise.
64417         * modules/uniconv/u8-strconv-from-locale: Likewise.
64418         * modules/uniconv/u8-strconv-to-enc: Likewise.
64419         * modules/uniconv/u8-strconv-to-locale: Likewise.
64420         * modules/uniconv/u16-conv-from-enc: Likewise.
64421         * modules/uniconv/u16-conv-to-enc: Likewise.
64422         * modules/uniconv/u16-strconv-from-enc: Likewise.
64423         * modules/uniconv/u16-strconv-from-locale: Likewise.
64424         * modules/uniconv/u16-strconv-to-enc: Likewise.
64425         * modules/uniconv/u16-strconv-to-locale: Likewise.
64426         * modules/uniconv/u32-conv-from-enc: Likewise.
64427         * modules/uniconv/u32-conv-to-enc: Likewise.
64428         * modules/uniconv/u32-strconv-from-enc: Likewise.
64429         * modules/uniconv/u32-strconv-from-locale: Likewise.
64430         * modules/uniconv/u32-strconv-to-enc: Likewise.
64431         * modules/uniconv/u32-strconv-to-locale: Likewise.
64432         * modules/unictype/bidicategory-byname: Likewise.
64433         * modules/unictype/bidicategory-name: Likewise.
64434         * modules/unictype/bidicategory-of: Likewise.
64435         * modules/unictype/bidicategory-test: Likewise.
64436         * modules/unictype/block-list: Likewise.
64437         * modules/unictype/block-test: Likewise.
64438         * modules/unictype/category-C: Likewise.
64439         * modules/unictype/category-Cc: Likewise.
64440         * modules/unictype/category-Cf: Likewise.
64441         * modules/unictype/category-Cn: Likewise.
64442         * modules/unictype/category-Co: Likewise.
64443         * modules/unictype/category-Cs: Likewise.
64444         * modules/unictype/category-L: Likewise.
64445         * modules/unictype/category-Ll: Likewise.
64446         * modules/unictype/category-Lm: Likewise.
64447         * modules/unictype/category-Lo: Likewise.
64448         * modules/unictype/category-Lt: Likewise.
64449         * modules/unictype/category-Lu: Likewise.
64450         * modules/unictype/category-M: Likewise.
64451         * modules/unictype/category-Mc: Likewise.
64452         * modules/unictype/category-Me: Likewise.
64453         * modules/unictype/category-Mn: Likewise.
64454         * modules/unictype/category-N: Likewise.
64455         * modules/unictype/category-Nd: Likewise.
64456         * modules/unictype/category-Nl: Likewise.
64457         * modules/unictype/category-No: Likewise.
64458         * modules/unictype/category-P: Likewise.
64459         * modules/unictype/category-Pc: Likewise.
64460         * modules/unictype/category-Pd: Likewise.
64461         * modules/unictype/category-Pe: Likewise.
64462         * modules/unictype/category-Pf: Likewise.
64463         * modules/unictype/category-Pi: Likewise.
64464         * modules/unictype/category-Po: Likewise.
64465         * modules/unictype/category-Ps: Likewise.
64466         * modules/unictype/category-S: Likewise.
64467         * modules/unictype/category-Sc: Likewise.
64468         * modules/unictype/category-Sk: Likewise.
64469         * modules/unictype/category-Sm: Likewise.
64470         * modules/unictype/category-So: Likewise.
64471         * modules/unictype/category-Z: Likewise.
64472         * modules/unictype/category-Zl: Likewise.
64473         * modules/unictype/category-Zp: Likewise.
64474         * modules/unictype/category-Zs: Likewise.
64475         * modules/unictype/category-and: Likewise.
64476         * modules/unictype/category-and-not: Likewise.
64477         * modules/unictype/category-byname: Likewise.
64478         * modules/unictype/category-name: Likewise.
64479         * modules/unictype/category-none: Likewise.
64480         * modules/unictype/category-of: Likewise.
64481         * modules/unictype/category-or: Likewise.
64482         * modules/unictype/category-test: Likewise.
64483         * modules/unictype/combining-class: Likewise.
64484         * modules/unictype/ctype-alnum: Likewise.
64485         * modules/unictype/ctype-alpha: Likewise.
64486         * modules/unictype/ctype-blank: Likewise.
64487         * modules/unictype/ctype-cntrl: Likewise.
64488         * modules/unictype/ctype-digit: Likewise.
64489         * modules/unictype/ctype-graph: Likewise.
64490         * modules/unictype/ctype-lower: Likewise.
64491         * modules/unictype/ctype-print: Likewise.
64492         * modules/unictype/ctype-punct: Likewise.
64493         * modules/unictype/ctype-space: Likewise.
64494         * modules/unictype/ctype-upper: Likewise.
64495         * modules/unictype/ctype-xdigit: Likewise.
64496         * modules/unictype/decimal-digit: Likewise.
64497         * modules/unictype/digit: Likewise.
64498         * modules/unictype/mirror: Likewise.
64499         * modules/unictype/numeric: Likewise.
64500         * modules/unictype/property-alphabetic: Likewise.
64501         * modules/unictype/property-ascii-hex-digit: Likewise.
64502         * modules/unictype/property-bidi-arabic-digit: Likewise.
64503         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
64504         * modules/unictype/property-bidi-block-separator: Likewise.
64505         * modules/unictype/property-bidi-boundary-neutral: Likewise.
64506         * modules/unictype/property-bidi-common-separator: Likewise.
64507         * modules/unictype/property-bidi-control: Likewise.
64508         * modules/unictype/property-bidi-embedding-or-override: Likewise.
64509         * modules/unictype/property-bidi-eur-num-separator: Likewise.
64510         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
64511         * modules/unictype/property-bidi-european-digit: Likewise.
64512         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
64513         * modules/unictype/property-bidi-left-to-right: Likewise.
64514         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
64515         * modules/unictype/property-bidi-other-neutral: Likewise.
64516         * modules/unictype/property-bidi-pdf: Likewise.
64517         * modules/unictype/property-bidi-segment-separator: Likewise.
64518         * modules/unictype/property-bidi-whitespace: Likewise.
64519         * modules/unictype/property-byname: Likewise.
64520         * modules/unictype/property-combining: Likewise.
64521         * modules/unictype/property-composite: Likewise.
64522         * modules/unictype/property-currency-symbol: Likewise.
64523         * modules/unictype/property-dash: Likewise.
64524         * modules/unictype/property-decimal-digit: Likewise.
64525         * modules/unictype/property-default-ignorable-code-point: Likewise.
64526         * modules/unictype/property-deprecated: Likewise.
64527         * modules/unictype/property-diacritic: Likewise.
64528         * modules/unictype/property-extender: Likewise.
64529         * modules/unictype/property-format-control: Likewise.
64530         * modules/unictype/property-grapheme-base: Likewise.
64531         * modules/unictype/property-grapheme-extend: Likewise.
64532         * modules/unictype/property-grapheme-link: Likewise.
64533         * modules/unictype/property-hex-digit: Likewise.
64534         * modules/unictype/property-hyphen: Likewise.
64535         * modules/unictype/property-id-continue: Likewise.
64536         * modules/unictype/property-id-start: Likewise.
64537         * modules/unictype/property-ideographic: Likewise.
64538         * modules/unictype/property-ids-binary-operator: Likewise.
64539         * modules/unictype/property-ids-trinary-operator: Likewise.
64540         * modules/unictype/property-ignorable-control: Likewise.
64541         * modules/unictype/property-iso-control: Likewise.
64542         * modules/unictype/property-join-control: Likewise.
64543         * modules/unictype/property-left-of-pair: Likewise.
64544         * modules/unictype/property-line-separator: Likewise.
64545         * modules/unictype/property-logical-order-exception: Likewise.
64546         * modules/unictype/property-lowercase: Likewise.
64547         * modules/unictype/property-math: Likewise.
64548         * modules/unictype/property-non-break: Likewise.
64549         * modules/unictype/property-not-a-character: Likewise.
64550         * modules/unictype/property-numeric: Likewise.
64551         * modules/unictype/property-other-alphabetic: Likewise.
64552         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
64553         * modules/unictype/property-other-grapheme-extend: Likewise.
64554         * modules/unictype/property-other-id-continue: Likewise.
64555         * modules/unictype/property-other-id-start: Likewise.
64556         * modules/unictype/property-other-lowercase: Likewise.
64557         * modules/unictype/property-other-math: Likewise.
64558         * modules/unictype/property-other-uppercase: Likewise.
64559         * modules/unictype/property-paired-punctuation: Likewise.
64560         * modules/unictype/property-paragraph-separator: Likewise.
64561         * modules/unictype/property-pattern-syntax: Likewise.
64562         * modules/unictype/property-pattern-white-space: Likewise.
64563         * modules/unictype/property-private-use: Likewise.
64564         * modules/unictype/property-punctuation: Likewise.
64565         * modules/unictype/property-quotation-mark: Likewise.
64566         * modules/unictype/property-radical: Likewise.
64567         * modules/unictype/property-sentence-terminal: Likewise.
64568         * modules/unictype/property-soft-dotted: Likewise.
64569         * modules/unictype/property-space: Likewise.
64570         * modules/unictype/property-terminal-punctuation: Likewise.
64571         * modules/unictype/property-test: Likewise.
64572         * modules/unictype/property-titlecase: Likewise.
64573         * modules/unictype/property-unassigned-code-value: Likewise.
64574         * modules/unictype/property-unified-ideograph: Likewise.
64575         * modules/unictype/property-uppercase: Likewise.
64576         * modules/unictype/property-variation-selector: Likewise.
64577         * modules/unictype/property-white-space: Likewise.
64578         * modules/unictype/property-xid-continue: Likewise.
64579         * modules/unictype/property-xid-start: Likewise.
64580         * modules/unictype/property-zero-width: Likewise.
64581         * modules/unictype/scripts: Likewise.
64582         * modules/unictype/syntax-c-ident: Likewise.
64583         * modules/unictype/syntax-c-whitespace: Likewise.
64584         * modules/unictype/syntax-java-ident: Likewise.
64585         * modules/unictype/syntax-java-whitespace: Likewise.
64586         * modules/unilbrk/u8-possible-linebreaks: Likewise.
64587         * modules/unilbrk/u8-width-linebreaks: Likewise.
64588         * modules/unilbrk/u16-possible-linebreaks: Likewise.
64589         * modules/unilbrk/u16-width-linebreaks: Likewise.
64590         * modules/unilbrk/u32-possible-linebreaks: Likewise.
64591         * modules/unilbrk/u32-width-linebreaks: Likewise.
64592         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
64593         * modules/unilbrk/ulc-width-linebreaks: Likewise.
64594         * modules/uniname/uniname: Likewise.
64595         * modules/uninorm/canonical-decomposition: Likewise.
64596         * modules/uninorm/composition: Likewise.
64597         * modules/uninorm/decomposing-form: Likewise.
64598         * modules/uninorm/decomposition: Likewise.
64599         * modules/uninorm/filter: Likewise.
64600         * modules/uninorm/nfc: Likewise.
64601         * modules/uninorm/nfd: Likewise.
64602         * modules/uninorm/nfkc: Likewise.
64603         * modules/uninorm/nfkd: Likewise.
64604         * modules/uninorm/u8-normalize: Likewise.
64605         * modules/uninorm/u8-normcmp: Likewise.
64606         * modules/uninorm/u8-normcoll: Likewise.
64607         * modules/uninorm/u8-normxfrm: Likewise.
64608         * modules/uninorm/u16-normalize: Likewise.
64609         * modules/uninorm/u16-normcmp: Likewise.
64610         * modules/uninorm/u16-normcoll: Likewise.
64611         * modules/uninorm/u16-normxfrm: Likewise.
64612         * modules/uninorm/u32-normalize: Likewise.
64613         * modules/uninorm/u32-normcmp: Likewise.
64614         * modules/uninorm/u32-normcoll: Likewise.
64615         * modules/uninorm/u32-normxfrm: Likewise.
64616         * modules/unistdio/u8-asnprintf: Likewise.
64617         * modules/unistdio/u8-asprintf: Likewise.
64618         * modules/unistdio/u8-snprintf: Likewise.
64619         * modules/unistdio/u8-sprintf: Likewise.
64620         * modules/unistdio/u8-u8-asnprintf: Likewise.
64621         * modules/unistdio/u8-u8-asprintf: Likewise.
64622         * modules/unistdio/u8-u8-snprintf: Likewise.
64623         * modules/unistdio/u8-u8-sprintf: Likewise.
64624         * modules/unistdio/u8-u8-vasnprintf: Likewise.
64625         * modules/unistdio/u8-u8-vasprintf: Likewise.
64626         * modules/unistdio/u8-u8-vsnprintf: Likewise.
64627         * modules/unistdio/u8-u8-vsprintf: Likewise.
64628         * modules/unistdio/u8-vasnprintf: Likewise.
64629         * modules/unistdio/u8-vasprintf: Likewise.
64630         * modules/unistdio/u8-vsnprintf: Likewise.
64631         * modules/unistdio/u8-vsprintf: Likewise.
64632         * modules/unistdio/u16-asnprintf: Likewise.
64633         * modules/unistdio/u16-asprintf: Likewise.
64634         * modules/unistdio/u16-snprintf: Likewise.
64635         * modules/unistdio/u16-sprintf: Likewise.
64636         * modules/unistdio/u16-u16-asnprintf: Likewise.
64637         * modules/unistdio/u16-u16-asprintf: Likewise.
64638         * modules/unistdio/u16-u16-snprintf: Likewise.
64639         * modules/unistdio/u16-u16-sprintf: Likewise.
64640         * modules/unistdio/u16-u16-vasnprintf: Likewise.
64641         * modules/unistdio/u16-u16-vasprintf: Likewise.
64642         * modules/unistdio/u16-u16-vsnprintf: Likewise.
64643         * modules/unistdio/u16-u16-vsprintf: Likewise.
64644         * modules/unistdio/u16-vasnprintf: Likewise.
64645         * modules/unistdio/u16-vasprintf: Likewise.
64646         * modules/unistdio/u16-vsnprintf: Likewise.
64647         * modules/unistdio/u16-vsprintf: Likewise.
64648         * modules/unistdio/u32-asnprintf: Likewise.
64649         * modules/unistdio/u32-asprintf: Likewise.
64650         * modules/unistdio/u32-snprintf: Likewise.
64651         * modules/unistdio/u32-sprintf: Likewise.
64652         * modules/unistdio/u32-u32-asnprintf: Likewise.
64653         * modules/unistdio/u32-u32-asprintf: Likewise.
64654         * modules/unistdio/u32-u32-snprintf: Likewise.
64655         * modules/unistdio/u32-u32-sprintf: Likewise.
64656         * modules/unistdio/u32-u32-vasnprintf: Likewise.
64657         * modules/unistdio/u32-u32-vasprintf: Likewise.
64658         * modules/unistdio/u32-u32-vsnprintf: Likewise.
64659         * modules/unistdio/u32-u32-vsprintf: Likewise.
64660         * modules/unistdio/u32-vasnprintf: Likewise.
64661         * modules/unistdio/u32-vasprintf: Likewise.
64662         * modules/unistdio/u32-vsnprintf: Likewise.
64663         * modules/unistdio/u32-vsprintf: Likewise.
64664         * modules/unistdio/ulc-asnprintf: Likewise.
64665         * modules/unistdio/ulc-asprintf: Likewise.
64666         * modules/unistdio/ulc-fprintf: Likewise.
64667         * modules/unistdio/ulc-snprintf: Likewise.
64668         * modules/unistdio/ulc-sprintf: Likewise.
64669         * modules/unistdio/ulc-vasnprintf: Likewise.
64670         * modules/unistdio/ulc-vasprintf: Likewise.
64671         * modules/unistdio/ulc-vfprintf: Likewise.
64672         * modules/unistdio/ulc-vsnprintf: Likewise.
64673         * modules/unistdio/ulc-vsprintf: Likewise.
64674         * modules/unistr/u8-check: Likewise.
64675         * modules/unistr/u8-chr: Likewise.
64676         * modules/unistr/u8-cmp: Likewise.
64677         * modules/unistr/u8-cmp2: Likewise.
64678         * modules/unistr/u8-cpy: Likewise.
64679         * modules/unistr/u8-cpy-alloc: Likewise.
64680         * modules/unistr/u8-endswith: Likewise.
64681         * modules/unistr/u8-mblen: Likewise.
64682         * modules/unistr/u8-mbsnlen: Likewise.
64683         * modules/unistr/u8-mbtouc: Likewise.
64684         * modules/unistr/u8-mbtouc-unsafe: Likewise.
64685         * modules/unistr/u8-mbtoucr: Likewise.
64686         * modules/unistr/u8-move: Likewise.
64687         * modules/unistr/u8-next: Likewise.
64688         * modules/unistr/u8-prev: Likewise.
64689         * modules/unistr/u8-set: Likewise.
64690         * modules/unistr/u8-startswith: Likewise.
64691         * modules/unistr/u8-stpcpy: Likewise.
64692         * modules/unistr/u8-stpncpy: Likewise.
64693         * modules/unistr/u8-strcat: Likewise.
64694         * modules/unistr/u8-strchr: Likewise.
64695         * modules/unistr/u8-strcmp: Likewise.
64696         * modules/unistr/u8-strcoll: Likewise.
64697         * modules/unistr/u8-strcpy: Likewise.
64698         * modules/unistr/u8-strcspn: Likewise.
64699         * modules/unistr/u8-strdup: Likewise.
64700         * modules/unistr/u8-strlen: Likewise.
64701         * modules/unistr/u8-strmblen: Likewise.
64702         * modules/unistr/u8-strmbtouc: Likewise.
64703         * modules/unistr/u8-strncat: Likewise.
64704         * modules/unistr/u8-strncmp: Likewise.
64705         * modules/unistr/u8-strncpy: Likewise.
64706         * modules/unistr/u8-strnlen: Likewise.
64707         * modules/unistr/u8-strpbrk: Likewise.
64708         * modules/unistr/u8-strrchr: Likewise.
64709         * modules/unistr/u8-strspn: Likewise.
64710         * modules/unistr/u8-strstr: Likewise.
64711         * modules/unistr/u8-strtok: Likewise.
64712         * modules/unistr/u8-to-u16: Likewise.
64713         * modules/unistr/u8-to-u32: Likewise.
64714         * modules/unistr/u8-uctomb: Likewise.
64715         * modules/unistr/u16-check: Likewise.
64716         * modules/unistr/u16-chr: Likewise.
64717         * modules/unistr/u16-cmp: Likewise.
64718         * modules/unistr/u16-cmp2: Likewise.
64719         * modules/unistr/u16-cpy: Likewise.
64720         * modules/unistr/u16-cpy-alloc: Likewise.
64721         * modules/unistr/u16-endswith: Likewise.
64722         * modules/unistr/u16-mblen: Likewise.
64723         * modules/unistr/u16-mbsnlen: Likewise.
64724         * modules/unistr/u16-mbtouc: Likewise.
64725         * modules/unistr/u16-mbtouc-unsafe: Likewise.
64726         * modules/unistr/u16-mbtoucr: Likewise.
64727         * modules/unistr/u16-move: Likewise.
64728         * modules/unistr/u16-next: Likewise.
64729         * modules/unistr/u16-prev: Likewise.
64730         * modules/unistr/u16-set: Likewise.
64731         * modules/unistr/u16-startswith: Likewise.
64732         * modules/unistr/u16-stpcpy: Likewise.
64733         * modules/unistr/u16-stpncpy: Likewise.
64734         * modules/unistr/u16-strcat: Likewise.
64735         * modules/unistr/u16-strchr: Likewise.
64736         * modules/unistr/u16-strcmp: Likewise.
64737         * modules/unistr/u16-strcoll: Likewise.
64738         * modules/unistr/u16-strcpy: Likewise.
64739         * modules/unistr/u16-strcspn: Likewise.
64740         * modules/unistr/u16-strdup: Likewise.
64741         * modules/unistr/u16-strlen: Likewise.
64742         * modules/unistr/u16-strmblen: Likewise.
64743         * modules/unistr/u16-strmbtouc: Likewise.
64744         * modules/unistr/u16-strncat: Likewise.
64745         * modules/unistr/u16-strncmp: Likewise.
64746         * modules/unistr/u16-strncpy: Likewise.
64747         * modules/unistr/u16-strnlen: Likewise.
64748         * modules/unistr/u16-strpbrk: Likewise.
64749         * modules/unistr/u16-strrchr: Likewise.
64750         * modules/unistr/u16-strspn: Likewise.
64751         * modules/unistr/u16-strstr: Likewise.
64752         * modules/unistr/u16-strtok: Likewise.
64753         * modules/unistr/u16-to-u32: Likewise.
64754         * modules/unistr/u16-to-u8: Likewise.
64755         * modules/unistr/u16-uctomb: Likewise.
64756         * modules/unistr/u32-check: Likewise.
64757         * modules/unistr/u32-chr: Likewise.
64758         * modules/unistr/u32-cmp: Likewise.
64759         * modules/unistr/u32-cmp2: Likewise.
64760         * modules/unistr/u32-cpy: Likewise.
64761         * modules/unistr/u32-cpy-alloc: Likewise.
64762         * modules/unistr/u32-endswith: Likewise.
64763         * modules/unistr/u32-mblen: Likewise.
64764         * modules/unistr/u32-mbsnlen: Likewise.
64765         * modules/unistr/u32-mbtouc: Likewise.
64766         * modules/unistr/u32-mbtouc-unsafe: Likewise.
64767         * modules/unistr/u32-mbtoucr: Likewise.
64768         * modules/unistr/u32-move: Likewise.
64769         * modules/unistr/u32-next: Likewise.
64770         * modules/unistr/u32-prev: Likewise.
64771         * modules/unistr/u32-set: Likewise.
64772         * modules/unistr/u32-startswith: Likewise.
64773         * modules/unistr/u32-stpcpy: Likewise.
64774         * modules/unistr/u32-stpncpy: Likewise.
64775         * modules/unistr/u32-strcat: Likewise.
64776         * modules/unistr/u32-strchr: Likewise.
64777         * modules/unistr/u32-strcmp: Likewise.
64778         * modules/unistr/u32-strcoll: Likewise.
64779         * modules/unistr/u32-strcpy: Likewise.
64780         * modules/unistr/u32-strcspn: Likewise.
64781         * modules/unistr/u32-strdup: Likewise.
64782         * modules/unistr/u32-strlen: Likewise.
64783         * modules/unistr/u32-strmblen: Likewise.
64784         * modules/unistr/u32-strmbtouc: Likewise.
64785         * modules/unistr/u32-strncat: Likewise.
64786         * modules/unistr/u32-strncmp: Likewise.
64787         * modules/unistr/u32-strncpy: Likewise.
64788         * modules/unistr/u32-strnlen: Likewise.
64789         * modules/unistr/u32-strpbrk: Likewise.
64790         * modules/unistr/u32-strrchr: Likewise.
64791         * modules/unistr/u32-strspn: Likewise.
64792         * modules/unistr/u32-strstr: Likewise.
64793         * modules/unistr/u32-strtok: Likewise.
64794         * modules/unistr/u32-to-u16: Likewise.
64795         * modules/unistr/u32-to-u8: Likewise.
64796         * modules/unistr/u32-uctomb: Likewise.
64797         * modules/uniwbrk/u8-wordbreaks: Likewise.
64798         * modules/uniwbrk/u16-wordbreaks: Likewise.
64799         * modules/uniwbrk/u32-wordbreaks: Likewise.
64800         * modules/uniwbrk/ulc-wordbreaks: Likewise.
64801         * modules/uniwbrk/wordbreak-property: Likewise.
64802         * modules/uniwidth/u8-strwidth: Likewise.
64803         * modules/uniwidth/u8-width: Likewise.
64804         * modules/uniwidth/u16-strwidth: Likewise.
64805         * modules/uniwidth/u16-width: Likewise.
64806         * modules/uniwidth/u32-strwidth: Likewise.
64807         * modules/uniwidth/u32-width: Likewise.
64808         * modules/uniwidth/width: Likewise.
64809         * modules/unicase/cased-tests (Makefile.am): Link all test programs
64810         with $(LIBUNISTRING).
64811         * modules/unicase/ignorable-tests: Likewise.
64812         * modules/unicase/locale-language-tests: Likewise.
64813         * modules/unicase/tolower-tests: Likewise.
64814         * modules/unicase/totitle-tests: Likewise.
64815         * modules/unicase/toupper-tests: Likewise.
64816         * modules/unicase/u8-casecmp-tests: Likewise.
64817         * modules/unicase/u8-casecoll-tests: Likewise.
64818         * modules/unicase/u8-casefold-tests: Likewise.
64819         * modules/unicase/u8-is-cased-tests: Likewise.
64820         * modules/unicase/u8-is-casefolded-tests: Likewise.
64821         * modules/unicase/u8-is-lowercase-tests: Likewise.
64822         * modules/unicase/u8-is-titlecase-tests: Likewise.
64823         * modules/unicase/u8-is-uppercase-tests: Likewise.
64824         * modules/unicase/u8-tolower-tests: Likewise.
64825         * modules/unicase/u8-totitle-tests: Likewise.
64826         * modules/unicase/u8-toupper-tests: Likewise.
64827         * modules/unicase/u16-casecmp-tests: Likewise.
64828         * modules/unicase/u16-casecoll-tests: Likewise.
64829         * modules/unicase/u16-casefold-tests: Likewise.
64830         * modules/unicase/u16-is-cased-tests: Likewise.
64831         * modules/unicase/u16-is-casefolded-tests: Likewise.
64832         * modules/unicase/u16-is-lowercase-tests: Likewise.
64833         * modules/unicase/u16-is-titlecase-tests: Likewise.
64834         * modules/unicase/u16-is-uppercase-tests: Likewise.
64835         * modules/unicase/u16-tolower-tests: Likewise.
64836         * modules/unicase/u16-totitle-tests: Likewise.
64837         * modules/unicase/u16-toupper-tests: Likewise.
64838         * modules/unicase/u32-casecmp-tests: Likewise.
64839         * modules/unicase/u32-casecoll-tests: Likewise.
64840         * modules/unicase/u32-casefold-tests: Likewise.
64841         * modules/unicase/u32-is-cased-tests: Likewise.
64842         * modules/unicase/u32-is-casefolded-tests: Likewise.
64843         * modules/unicase/u32-is-lowercase-tests: Likewise.
64844         * modules/unicase/u32-is-titlecase-tests: Likewise.
64845         * modules/unicase/u32-is-uppercase-tests: Likewise.
64846         * modules/unicase/u32-tolower-tests: Likewise.
64847         * modules/unicase/u32-totitle-tests: Likewise.
64848         * modules/unicase/u32-toupper-tests: Likewise.
64849         * modules/unicase/ulc-casecmp-tests: Likewise.
64850         * modules/unicase/ulc-casecoll-tests: Likewise.
64851         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
64852         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
64853         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
64854         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
64855         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
64856         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
64857         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
64858         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
64859         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
64860         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
64861         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
64862         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
64863         * modules/unictype/bidicategory-byname-tests: Likewise.
64864         * modules/unictype/bidicategory-name-tests: Likewise.
64865         * modules/unictype/bidicategory-of-tests: Likewise.
64866         * modules/unictype/bidicategory-test-tests: Likewise.
64867         * modules/unictype/block-list-tests: Likewise.
64868         * modules/unictype/block-of-tests: Likewise.
64869         * modules/unictype/block-test-tests: Likewise.
64870         * modules/unictype/category-C-tests: Likewise.
64871         * modules/unictype/category-Cc-tests: Likewise.
64872         * modules/unictype/category-Cf-tests: Likewise.
64873         * modules/unictype/category-Cn-tests: Likewise.
64874         * modules/unictype/category-Co-tests: Likewise.
64875         * modules/unictype/category-Cs-tests: Likewise.
64876         * modules/unictype/category-L-tests: Likewise.
64877         * modules/unictype/category-Ll-tests: Likewise.
64878         * modules/unictype/category-Lm-tests: Likewise.
64879         * modules/unictype/category-Lo-tests: Likewise.
64880         * modules/unictype/category-Lt-tests: Likewise.
64881         * modules/unictype/category-Lu-tests: Likewise.
64882         * modules/unictype/category-M-tests: Likewise.
64883         * modules/unictype/category-Mc-tests: Likewise.
64884         * modules/unictype/category-Me-tests: Likewise.
64885         * modules/unictype/category-Mn-tests: Likewise.
64886         * modules/unictype/category-N-tests: Likewise.
64887         * modules/unictype/category-Nd-tests: Likewise.
64888         * modules/unictype/category-Nl-tests: Likewise.
64889         * modules/unictype/category-No-tests: Likewise.
64890         * modules/unictype/category-P-tests: Likewise.
64891         * modules/unictype/category-Pc-tests: Likewise.
64892         * modules/unictype/category-Pd-tests: Likewise.
64893         * modules/unictype/category-Pe-tests: Likewise.
64894         * modules/unictype/category-Pf-tests: Likewise.
64895         * modules/unictype/category-Pi-tests: Likewise.
64896         * modules/unictype/category-Po-tests: Likewise.
64897         * modules/unictype/category-Ps-tests: Likewise.
64898         * modules/unictype/category-S-tests: Likewise.
64899         * modules/unictype/category-Sc-tests: Likewise.
64900         * modules/unictype/category-Sk-tests: Likewise.
64901         * modules/unictype/category-Sm-tests: Likewise.
64902         * modules/unictype/category-So-tests: Likewise.
64903         * modules/unictype/category-Z-tests: Likewise.
64904         * modules/unictype/category-Zl-tests: Likewise.
64905         * modules/unictype/category-Zp-tests: Likewise.
64906         * modules/unictype/category-Zs-tests: Likewise.
64907         * modules/unictype/category-and-not-tests: Likewise.
64908         * modules/unictype/category-and-tests: Likewise.
64909         * modules/unictype/category-byname-tests: Likewise.
64910         * modules/unictype/category-name-tests: Likewise.
64911         * modules/unictype/category-none-tests: Likewise.
64912         * modules/unictype/category-of-tests: Likewise.
64913         * modules/unictype/category-or-tests: Likewise.
64914         * modules/unictype/category-test-withtable-tests: Likewise.
64915         * modules/unictype/combining-class-tests: Likewise.
64916         * modules/unictype/ctype-alnum-tests: Likewise.
64917         * modules/unictype/ctype-alpha-tests: Likewise.
64918         * modules/unictype/ctype-blank-tests: Likewise.
64919         * modules/unictype/ctype-cntrl-tests: Likewise.
64920         * modules/unictype/ctype-digit-tests: Likewise.
64921         * modules/unictype/ctype-graph-tests: Likewise.
64922         * modules/unictype/ctype-lower-tests: Likewise.
64923         * modules/unictype/ctype-print-tests: Likewise.
64924         * modules/unictype/ctype-punct-tests: Likewise.
64925         * modules/unictype/ctype-space-tests: Likewise.
64926         * modules/unictype/ctype-upper-tests: Likewise.
64927         * modules/unictype/ctype-xdigit-tests: Likewise.
64928         * modules/unictype/decimal-digit-tests: Likewise.
64929         * modules/unictype/digit-tests: Likewise.
64930         * modules/unictype/mirror-tests: Likewise.
64931         * modules/unictype/numeric-tests: Likewise.
64932         * modules/unictype/property-alphabetic-tests: Likewise.
64933         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
64934         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
64935         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
64936         * modules/unictype/property-bidi-block-separator-tests: Likewise.
64937         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
64938         * modules/unictype/property-bidi-common-separator-tests: Likewise.
64939         * modules/unictype/property-bidi-control-tests: Likewise.
64940         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
64941         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
64942         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
64943         * modules/unictype/property-bidi-european-digit-tests: Likewise.
64944         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
64945         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
64946         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
64947         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
64948         * modules/unictype/property-bidi-pdf-tests: Likewise.
64949         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
64950         * modules/unictype/property-bidi-whitespace-tests: Likewise.
64951         * modules/unictype/property-byname-tests: Likewise.
64952         * modules/unictype/property-combining-tests: Likewise.
64953         * modules/unictype/property-composite-tests: Likewise.
64954         * modules/unictype/property-currency-symbol-tests: Likewise.
64955         * modules/unictype/property-dash-tests: Likewise.
64956         * modules/unictype/property-decimal-digit-tests: Likewise.
64957         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
64958         * modules/unictype/property-deprecated-tests: Likewise.
64959         * modules/unictype/property-diacritic-tests: Likewise.
64960         * modules/unictype/property-extender-tests: Likewise.
64961         * modules/unictype/property-format-control-tests: Likewise.
64962         * modules/unictype/property-grapheme-base-tests: Likewise.
64963         * modules/unictype/property-grapheme-extend-tests: Likewise.
64964         * modules/unictype/property-grapheme-link-tests: Likewise.
64965         * modules/unictype/property-hex-digit-tests: Likewise.
64966         * modules/unictype/property-hyphen-tests: Likewise.
64967         * modules/unictype/property-id-continue-tests: Likewise.
64968         * modules/unictype/property-id-start-tests: Likewise.
64969         * modules/unictype/property-ideographic-tests: Likewise.
64970         * modules/unictype/property-ids-binary-operator-tests: Likewise.
64971         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
64972         * modules/unictype/property-ignorable-control-tests: Likewise.
64973         * modules/unictype/property-iso-control-tests: Likewise.
64974         * modules/unictype/property-join-control-tests: Likewise.
64975         * modules/unictype/property-left-of-pair-tests: Likewise.
64976         * modules/unictype/property-line-separator-tests: Likewise.
64977         * modules/unictype/property-logical-order-exception-tests: Likewise.
64978         * modules/unictype/property-lowercase-tests: Likewise.
64979         * modules/unictype/property-math-tests: Likewise.
64980         * modules/unictype/property-non-break-tests: Likewise.
64981         * modules/unictype/property-not-a-character-tests: Likewise.
64982         * modules/unictype/property-numeric-tests: Likewise.
64983         * modules/unictype/property-other-alphabetic-tests: Likewise.
64984         * modules/unictype/property-other-default-ignorable-code-point-tests:
64985         Likewise.
64986         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
64987         * modules/unictype/property-other-id-continue-tests: Likewise.
64988         * modules/unictype/property-other-id-start-tests: Likewise.
64989         * modules/unictype/property-other-lowercase-tests: Likewise.
64990         * modules/unictype/property-other-math-tests: Likewise.
64991         * modules/unictype/property-other-uppercase-tests: Likewise.
64992         * modules/unictype/property-paired-punctuation-tests: Likewise.
64993         * modules/unictype/property-paragraph-separator-tests: Likewise.
64994         * modules/unictype/property-pattern-syntax-tests: Likewise.
64995         * modules/unictype/property-pattern-white-space-tests: Likewise.
64996         * modules/unictype/property-private-use-tests: Likewise.
64997         * modules/unictype/property-punctuation-tests: Likewise.
64998         * modules/unictype/property-quotation-mark-tests: Likewise.
64999         * modules/unictype/property-radical-tests: Likewise.
65000         * modules/unictype/property-sentence-terminal-tests: Likewise.
65001         * modules/unictype/property-soft-dotted-tests: Likewise.
65002         * modules/unictype/property-space-tests: Likewise.
65003         * modules/unictype/property-terminal-punctuation-tests: Likewise.
65004         * modules/unictype/property-test-tests: Likewise.
65005         * modules/unictype/property-titlecase-tests: Likewise.
65006         * modules/unictype/property-unassigned-code-value-tests: Likewise.
65007         * modules/unictype/property-unified-ideograph-tests: Likewise.
65008         * modules/unictype/property-uppercase-tests: Likewise.
65009         * modules/unictype/property-variation-selector-tests: Likewise.
65010         * modules/unictype/property-white-space-tests: Likewise.
65011         * modules/unictype/property-xid-continue-tests: Likewise.
65012         * modules/unictype/property-xid-start-tests: Likewise.
65013         * modules/unictype/property-zero-width-tests: Likewise.
65014         * modules/unictype/scripts-tests: Likewise.
65015         * modules/unictype/syntax-c-ident-tests: Likewise.
65016         * modules/unictype/syntax-c-whitespace-tests: Likewise.
65017         * modules/unictype/syntax-java-ident-tests: Likewise.
65018         * modules/unictype/syntax-java-whitespace-tests: Likewise.
65019         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
65020         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
65021         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
65022         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
65023         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
65024         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
65025         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
65026         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
65027         * modules/uniname/uniname-tests: Likewise.
65028         * modules/uninorm/canonical-decomposition-tests: Likewise.
65029         * modules/uninorm/compat-decomposition-tests: Likewise.
65030         * modules/uninorm/composition-tests: Likewise.
65031         * modules/uninorm/decomposing-form-tests: Likewise.
65032         * modules/uninorm/decomposition-tests: Likewise.
65033         * modules/uninorm/filter-tests: Likewise.
65034         * modules/uninorm/nfc-tests: Likewise.
65035         * modules/uninorm/nfd-tests: Likewise.
65036         * modules/uninorm/nfkc-tests: Likewise.
65037         * modules/uninorm/nfkd-tests: Likewise.
65038         * modules/uninorm/u8-normcmp-tests: Likewise.
65039         * modules/uninorm/u8-normcoll-tests: Likewise.
65040         * modules/uninorm/u16-normcmp-tests: Likewise.
65041         * modules/uninorm/u16-normcoll-tests: Likewise.
65042         * modules/uninorm/u32-normcmp-tests: Likewise.
65043         * modules/uninorm/u32-normcoll-tests: Likewise.
65044         * modules/unistdio/u8-asnprintf-tests: Likewise.
65045         * modules/unistdio/u8-vasnprintf-tests: Likewise.
65046         * modules/unistdio/u8-vasprintf-tests: Likewise.
65047         * modules/unistdio/u8-vsnprintf-tests: Likewise.
65048         * modules/unistdio/u8-vsprintf-tests: Likewise.
65049         * modules/unistdio/u16-asnprintf-tests: Likewise.
65050         * modules/unistdio/u16-vasnprintf-tests: Likewise.
65051         * modules/unistdio/u16-vasprintf-tests: Likewise.
65052         * modules/unistdio/u16-vsnprintf-tests: Likewise.
65053         * modules/unistdio/u16-vsprintf-tests: Likewise.
65054         * modules/unistdio/u32-asnprintf-tests: Likewise.
65055         * modules/unistdio/u32-vasnprintf-tests: Likewise.
65056         * modules/unistdio/u32-vasprintf-tests: Likewise.
65057         * modules/unistdio/u32-vsnprintf-tests: Likewise.
65058         * modules/unistdio/u32-vsprintf-tests: Likewise.
65059         * modules/unistdio/ulc-asnprintf-tests: Likewise.
65060         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
65061         * modules/unistdio/ulc-vasprintf-tests: Likewise.
65062         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
65063         * modules/unistdio/ulc-vsprintf-tests: Likewise.
65064         * modules/unistr/u8-check-tests: Likewise.
65065         * modules/unistr/u8-chr-tests: Likewise.
65066         * modules/unistr/u8-cmp-tests: Likewise.
65067         * modules/unistr/u8-cmp2-tests: Likewise.
65068         * modules/unistr/u8-cpy-alloc-tests: Likewise.
65069         * modules/unistr/u8-cpy-tests: Likewise.
65070         * modules/unistr/u8-mblen-tests: Likewise.
65071         * modules/unistr/u8-mbsnlen-tests: Likewise.
65072         * modules/unistr/u8-mbtouc-tests: Likewise.
65073         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
65074         * modules/unistr/u8-mbtoucr-tests: Likewise.
65075         * modules/unistr/u8-move-tests: Likewise.
65076         * modules/unistr/u8-next-tests: Likewise.
65077         * modules/unistr/u8-prev-tests: Likewise.
65078         * modules/unistr/u8-set-tests: Likewise.
65079         * modules/unistr/u8-stpcpy-tests: Likewise.
65080         * modules/unistr/u8-stpncpy-tests: Likewise.
65081         * modules/unistr/u8-strcat-tests: Likewise.
65082         * modules/unistr/u8-strcmp-tests: Likewise.
65083         * modules/unistr/u8-strcoll-tests: Likewise.
65084         * modules/unistr/u8-strcpy-tests: Likewise.
65085         * modules/unistr/u8-strdup-tests: Likewise.
65086         * modules/unistr/u8-strlen-tests: Likewise.
65087         * modules/unistr/u8-strmblen-tests: Likewise.
65088         * modules/unistr/u8-strmbtouc-tests: Likewise.
65089         * modules/unistr/u8-strncat-tests: Likewise.
65090         * modules/unistr/u8-strncmp-tests: Likewise.
65091         * modules/unistr/u8-strncpy-tests: Likewise.
65092         * modules/unistr/u8-strnlen-tests: Likewise.
65093         * modules/unistr/u8-to-u16-tests: Likewise.
65094         * modules/unistr/u8-to-u32-tests: Likewise.
65095         * modules/unistr/u8-uctomb-tests: Likewise.
65096         * modules/unistr/u16-check-tests: Likewise.
65097         * modules/unistr/u16-chr-tests: Likewise.
65098         * modules/unistr/u16-cmp-tests: Likewise.
65099         * modules/unistr/u16-cmp2-tests: Likewise.
65100         * modules/unistr/u16-cpy-alloc-tests: Likewise.
65101         * modules/unistr/u16-cpy-tests: Likewise.
65102         * modules/unistr/u16-mblen-tests: Likewise.
65103         * modules/unistr/u16-mbsnlen-tests: Likewise.
65104         * modules/unistr/u16-mbtouc-tests: Likewise.
65105         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
65106         * modules/unistr/u16-mbtoucr-tests: Likewise.
65107         * modules/unistr/u16-move-tests: Likewise.
65108         * modules/unistr/u16-next-tests: Likewise.
65109         * modules/unistr/u16-prev-tests: Likewise.
65110         * modules/unistr/u16-set-tests: Likewise.
65111         * modules/unistr/u16-stpcpy-tests: Likewise.
65112         * modules/unistr/u16-stpncpy-tests: Likewise.
65113         * modules/unistr/u16-strcat-tests: Likewise.
65114         * modules/unistr/u16-strcmp-tests: Likewise.
65115         * modules/unistr/u16-strcoll-tests: Likewise.
65116         * modules/unistr/u16-strcpy-tests: Likewise.
65117         * modules/unistr/u16-strdup-tests: Likewise.
65118         * modules/unistr/u16-strlen-tests: Likewise.
65119         * modules/unistr/u16-strmblen-tests: Likewise.
65120         * modules/unistr/u16-strmbtouc-tests: Likewise.
65121         * modules/unistr/u16-strncat-tests: Likewise.
65122         * modules/unistr/u16-strncmp-tests: Likewise.
65123         * modules/unistr/u16-strncpy-tests: Likewise.
65124         * modules/unistr/u16-strnlen-tests: Likewise.
65125         * modules/unistr/u16-to-u32-tests: Likewise.
65126         * modules/unistr/u16-to-u8-tests: Likewise.
65127         * modules/unistr/u16-uctomb-tests: Likewise.
65128         * modules/unistr/u32-check-tests: Likewise.
65129         * modules/unistr/u32-chr-tests: Likewise.
65130         * modules/unistr/u32-cmp-tests: Likewise.
65131         * modules/unistr/u32-cmp2-tests: Likewise.
65132         * modules/unistr/u32-cpy-alloc-tests: Likewise.
65133         * modules/unistr/u32-cpy-tests: Likewise.
65134         * modules/unistr/u32-mblen-tests: Likewise.
65135         * modules/unistr/u32-mbsnlen-tests: Likewise.
65136         * modules/unistr/u32-mbtouc-tests: Likewise.
65137         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
65138         * modules/unistr/u32-mbtoucr-tests: Likewise.
65139         * modules/unistr/u32-move-tests: Likewise.
65140         * modules/unistr/u32-next-tests: Likewise.
65141         * modules/unistr/u32-prev-tests: Likewise.
65142         * modules/unistr/u32-set-tests: Likewise.
65143         * modules/unistr/u32-stpcpy-tests: Likewise.
65144         * modules/unistr/u32-stpncpy-tests: Likewise.
65145         * modules/unistr/u32-strcat-tests: Likewise.
65146         * modules/unistr/u32-strcmp-tests: Likewise.
65147         * modules/unistr/u32-strcoll-tests: Likewise.
65148         * modules/unistr/u32-strcpy-tests: Likewise.
65149         * modules/unistr/u32-strdup-tests: Likewise.
65150         * modules/unistr/u32-strlen-tests: Likewise.
65151         * modules/unistr/u32-strmblen-tests: Likewise.
65152         * modules/unistr/u32-strmbtouc-tests: Likewise.
65153         * modules/unistr/u32-strncat-tests: Likewise.
65154         * modules/unistr/u32-strncmp-tests: Likewise.
65155         * modules/unistr/u32-strncpy-tests: Likewise.
65156         * modules/unistr/u32-strnlen-tests: Likewise.
65157         * modules/unistr/u32-to-u16-tests: Likewise.
65158         * modules/unistr/u32-to-u8-tests: Likewise.
65159         * modules/unistr/u32-uctomb-tests: Likewise.
65160         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
65161         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
65162         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
65163         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
65164         * modules/uniwidth/u8-strwidth-tests: Likewise.
65165         * modules/uniwidth/u8-width-tests: Likewise.
65166         * modules/uniwidth/u16-strwidth-tests: Likewise.
65167         * modules/uniwidth/u16-width-tests: Likewise.
65168         * modules/uniwidth/u32-strwidth-tests: Likewise.
65169         * modules/uniwidth/u32-width-tests: Likewise.
65170         * modules/uniwidth/width-tests: Likewise.
65172 2010-05-18  Richard Jones  <rjones@redhat.com>
65174         doc: users.txt: list hivex
65175         * users.txt: Add hivex.
65177 2010-05-18  Richard Jones  <rjones@redhat.com>
65179         doc: users.txt: list febootstrap
65180         * users.txt: Add febootstrap.
65182 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
65184         bootstrap: fix an error when gnulib is not used as a git submodule
65185         * build-aux/bootstrap (gnulib_path): If its length is zero then
65186         assign "gnulib" to it.
65187         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
65189 2010-05-16  Bruno Haible  <bruno@clisp.org>
65191         Avoid autoconf warnings about AM_ICONV.
65192         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
65193         2.64.
65195 2010-05-16  Bruno Haible  <bruno@clisp.org>
65197         absolute-header: Make the macro usable in more situations.
65198         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
65199         from gl_ABSOLUTE_HEADER.
65200         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
65202 2010-05-16  James Youngman  <jay@gnu.org>
65204         doc: update users.txt
65205         * users.txt: Add CSSC.
65207 2010-05-16  Jim Meyering  <meyering@redhat.com>
65209         init.sh: fix an error in the previous change; add more comments
65210         * tests/init.sh: Compare exit code in loop against 9, not 2.
65211         Patch by Bruno Haible.
65212         Make the two tests more similar by adding an empty "then" clause.
65213         Add comments.
65215         init.sh: avoid unnecessary shell re-exec
65216         * tests/init.sh: Improve the re-exec-required check to first test the
65217         current shell.  If it passes the test, do not search for a shell that
65218         does pass, and do not re-exec.  This test is particularly contorted to
65219         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
65220         of $(...) evokes a syntax error and causes immediate shell exit with
65221         status 2.  Bruno Haible reported that the re-exec made it impossible
65222         to single-step through any init.sh-using script.
65224 2010-05-16  Bruno Haible  <bruno@clisp.org>
65226         Fix collision between gnulib's and libintl's printf replacements.
65227         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
65228         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
65229         (printf): When using GNU C, map the __printf__ function to rpl_printf
65230         via __asm__. When not using GNU C, define rpl_printf instead of
65231         __printf__.
65232         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
65233         commit.
65234         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
65235         commit.
65236         * m4/asm-underscore.m4: New file.
65237         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
65238         * modules/stdio (Files): Add m4/asm-underscore.m4.
65239         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
65240         Reported by Ben Pfaff.
65242 2010-05-16  Bruno Haible  <bruno@clisp.org>
65244         verify: Avoid skipping the test on openSUSE 11.0.
65245         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
65247 2010-05-13  Bruno Haible  <bruno@clisp.org>
65249         Avoid useless warnings from G++.
65250         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
65251         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
65252         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65254 2010-05-11  Jim Meyering  <meyering@redhat.com>
65256         maint.mk: tweak preceding change
65257         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
65258         regexps tighter by anchoring at EOL, and make the new group "shy"
65259         for slightly decreased overhead.
65261 2010-05-11  Eric Blake  <eblake@redhat.com>
65263         maint.mk: gnulib doesn't guarantee NSIG
65264         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
65266 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65268         test-pwrite.c: Remove unused variable declaration.
65269         * tests/test-pwrite.c (main): Remove read_buf declaration.
65271         Remove useless test-pwrite.sh file.
65272         * tests/test-pwrite.sh: Delete file.
65273         * modules/pwrite-tests: Remove references.
65274         Reported by Bruno Haible.
65276 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
65278         init.sh: fix a typo
65279         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
65281 2010-05-10  Jim Meyering  <meyering@redhat.com>
65283         maint.mk: avoid using a temporary file in the always-defined-macros check
65284         * top/maint.mk (.re-defmac): Remove rule.
65285         (gl_trap_): Remove definition.
65286         (sc_prohibit_always-defined_macros): Rewrite not to create and
65287         depend on a temporary file.  Instead, depend on GNU grep's ability
65288         to read a list of regular expressions from stdin when given "-f -".
65290 2010-05-09  Bruno Haible  <bruno@clisp.org>
65292         Update to GNU gettext 0.18, part 1.
65293         * m4/gettext.m4: Update to GNU gettext 0.18.
65294         * m4/intl.m4: Likewise.
65295         * m4/po.m4: Likewise.
65296         * modules/gettext (Files): Add m4/fcntl-o.m4.
65297         (configure.ac): Require gettext infrastructure from version 0.18.
65299 2010-05-09  Jim Meyering  <meyering@redhat.com>
65301         init.sh: enable MALLOC_PERTURB_
65302         * tests/init.sh: Enable glibc's malloc-perturbing option.
65304         maint.mk: improve sc_cross_check_PATH_usage_in_tests
65305         With my recent change in init.sh from the two-line form:
65306             -#   : ${srcdir=.}
65307             -#   . "$srcdir/init.sh"; path_prepend_ .
65308             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
65309         I noticed that using the one-line form would cause this test
65310         to fail with a false-positive, or to stop working altogether,
65311         depending on whether help-version changed or all the tests did.
65312         * top/maint.mk (_hv_regex): Remove this definition.
65313         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
65314         (_hv_regex_strong): Use a stronger regex to check for conformance.
65315         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
65316         Give a separate diagnostic for lack of conforming use.
65318         maint.mk: prohibit definition of symbols defined by gnulib
65319         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
65320         definition of symbols defined by gnulib.
65322 2010-05-09  Bruno Haible  <bruno@clisp.org>
65324         acl: Avoid test failure on Cygwin-hosted mingw.
65325         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
65327 2010-05-09  Bruno Haible  <bruno@clisp.org>
65329         error: Use system's fcntl function.
65330         * lib/error.c (fcntl): Undefine.
65332 2010-05-09  Jim Meyering  <meyering@redhat.com>
65334         verify: adjust formatting to be more consistent
65335         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
65336         argument-list '('s, and after one comma.
65338 2010-05-09  Bruno Haible  <bruno@clisp.org>
65340         error: More reliable output on mingw.
65341         * lib/error.c: Include <windows.h>.
65342         (is_open): New function.
65343         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
65344         defined.
65346 2010-05-09  Bruno Haible  <bruno@clisp.org>
65348         vasnprintf: Fix syntax errors in libintl build on mingw.
65349         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
65350         pad_ourselves and prec_ourselves after use.
65352 2010-05-08  Bruno Haible  <bruno@clisp.org>
65354         * lib/config.charset: Update comments for Cygwin 1.7.
65355         * lib/localcharset.c: Likewise.
65357 2010-05-07  Jim Meyering  <meyering@redhat.com>
65359         init.sh: improve comments
65360         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
65361         . "${srcdir=.}/init.sh"; path_prepend_ .
65362         Add a note about path_prepend_ and the alternative of using
65363         TESTS_ENVIRONMENT.
65365 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
65367         exclude: Unescape hashed patterns in wildcard mode.
65368         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
65369         to the hash list.
65370         * tests/test-exclude8.sh: New test case.
65371         * modules/exclude-tests: Add new test.
65373 2010-05-05  Eric Blake  <eblake@redhat.com>
65375         verify: automate tests
65376         * modules/verify-tests: New module.
65377         * tests/test-verify.sh: New file.
65378         * tests/test-verify.c: Guard each negative test with a unique id.
65379         Also avoid warning about unused left hand of comma expressions.
65381 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
65383         Further improvements to verify.h, suggested by Eric Blake.
65384         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
65385         the GL_* versions, to avoid collision with OpenGL.
65386         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
65387         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
65388         than testing merely whether it's defined.
65390         Modify verify.h to pacify gcc -Wredundant_decls.
65391         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
65392         These use the prefix "GL_" since they're likely to be useful elsewhere.
65393         We may need to break them out into a different .h file.
65394         (__COUNTER__): Define to 0 if the compiler doesn't support it.
65395         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
65396         of verify_function__.
65398 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65400         Tests for module pwrite.
65401         * modules/pwrite-tests: New file.
65402         * tests/test-pwrite.sh: New file.
65403         * tests/test-pwrite.c: New file.
65405         New module pwrite.
65406         * lib/unistd.in.h (pwrite): New declaration.
65407         * lib/pwrite.c: New file, from glibc with modifications.
65408         * m4/pwrite.m4: New file.
65409         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
65410         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
65411         REPLACE_PWRITE.
65412         * modules/pwrite: New file.
65413         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
65414         REPLACE_PWRITE.
65415         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
65416         * doc/posix-functions/pwrite.texi: Mention the new module.
65418 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
65420         pread: Update documentation.
65421         * doc/posix-functions/pread.texi: Mention the 'pread' module.
65423 2010-05-04  Eric Blake  <eblake@redhat.com>
65425         docs: update cygwin progress
65426         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
65427         this bug.
65428         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
65429         Added in cygwin 1.7.2.
65430         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
65431         Likewise.
65432         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
65433         Likewise.
65434         * doc/glibc-functions/dup3.texi (dup3): Likewise.
65435         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
65436         * doc/glibc-functions/accept4.texi (accept4): Likewise.
65437         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
65438         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
65439         Mention nproc module.
65440         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
65441         bug in cygwin 1.7.5 addition.
65442         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
65443         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
65444         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
65445         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
65446         1.7.5.
65447         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
65448         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
65449         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
65450         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
65451         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
65452         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
65453         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
65454         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
65455         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
65456         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
65457         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
65458         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
65459         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
65460         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
65461         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
65462         Likewise.
65463         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
65464         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
65465         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
65466         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
65467         Likewise.
65468         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
65469         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
65470         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
65471         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
65472         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
65473         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
65474         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
65475         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
65476         Likewise.
65477         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
65478         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
65479         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
65480         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
65481         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
65482         Likewise.
65483         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
65484         Likewise.
65485         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
65486         Likewise.
65487         * doc/glibc-functions/xdrrec_endofrecord.texi
65488         (xdrrec_endofrecord): Likewise.
65489         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
65490         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
65491         Likewise.
65492         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
65493         Likewise.
65495 2010-05-04  Jim Meyering  <meyering@redhat.com>
65497         gendocs.sh: make its "-s FILE" option more useful
65498         * build-aux/gendocs.sh: When honoring the -s FILE option, update
65499         $PACKAGE to reflect the probably-different basename of "FILE".
65501 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65503         bootstrap: don't ignore download_po_files failure
65504         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
65505         failure.
65507 2010-05-03  Jim Meyering  <meyering@redhat.com>
65509         maint.mk: allow to pass options to gendocs.sh
65510         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
65511         (gendocs_options_): New overridable variable.
65513         gnu-web-doc-update: don't ignore configure or build failure
65514         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
65516         announce-gen: backslash-escape '@'s in --help output
65517         * build-aux/announce-gen: Fix syntax errors.
65519         maint.mk, announce-gen: allow project-specific announcement mail headers
65520         * top/maint.mk (translation_project_): Define default.
65521         (announcement_Cc_, announcement_mail_headers_): Likewise.
65522         (announcement): Invoke announce-gen with new --mail-headers option.
65523         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
65525         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
65526         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
65527         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
65528         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
65529         line in the "err2" output file when running "make check" in verbose
65530         mode (i.e., with set -x enabled).
65532 2010-05-03  Bruno Haible  <bruno@clisp.org>
65534         wctob: Fix for weird platforms.
65535         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
65536         argument value.
65538 2010-05-03  Jim Meyering  <meyering@redhat.com>
65540         maint.mk: prohibit unwarranted use of <strings.h>
65541         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
65542         strings.h in a file that does not also use strcasecmp, strncasecmp,
65543         ffs or ffsll.
65545         maint.mk: remove obsolete comments
65546         * top/maint.mk: Remove stale, commented-out rules.
65548 2010-05-02  Bruno Haible  <bruno@clisp.org>
65550         wcwidth: Declare also when it's aliased.
65551         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
65552         macro.
65554 2010-05-02  Bruno Haible  <bruno@clisp.org>
65556         Fix regression from 2010-04-25.
65557         * gnulib-tool (func_modules_transitive_closure): Check the status of
65558         all modules, not only of the tests that are of the form foo-tests where
65559         foo is a module.
65561 2010-05-02  Bruno Haible  <bruno@clisp.org>
65563         wctob: Work around nasty Cygwin 1.7.2 bug.
65564         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
65565         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
65567 2010-05-01  Bruno Haible  <bruno@clisp.org>
65569         fpurge: Sharper test.
65570         * tests/test-fpurge.c (main): Add one more ftell check.
65571         * modules/fpurge-tests (Depends-on): Add ftell.
65572         Suggested by Eric Blake.
65574 2010-05-01  Bruno Haible  <bruno@clisp.org>
65576         ftello: Another test.
65577         * tests/test-ftello3.c: New file.
65578         * modules/ftello-tests (Files): Add it.
65579         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65580         MOSTLYCLEANFILES.
65582         ftell: Another test.
65583         * tests/test-ftell3.c: New file.
65584         * modules/ftell-tests (Files): Add it.
65585         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
65586         MOSTLYCLEANFILES.
65588 2010-05-01  Bruno Haible  <bruno@clisp.org>
65590         ftell, ftello: Work around Solaris bug.
65591         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
65592         * lib/ftello.c: Include stdio-impl.h.
65593         (ftello): On Solaris, when _IOWRT is set, compute the result without
65594         looking at _IOREAD.
65595         * modules/ftello (Files): Add lib/stdio-impl.h.
65596         * doc/posix-functions/ftell.texi: Mention Solaris bug.
65597         * doc/posix-functions/ftello.texi: Likewise.
65598         Reported by Eric Blake.
65600 2010-05-01  Bruno Haible  <bruno@clisp.org>
65602         freading: Adapt to special meaning of _IOREAD flag on Solaris.
65603         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
65604         the _IOWRT flag is also set.
65606 2010-05-01  Bruno Haible  <bruno@clisp.org>
65608         Fix doc about a HP-UX stdio bug.
65609         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
65610         * doc/posix-functions/ftello.texi: Likewise.
65612 2010-05-01  Bruno Haible  <bruno@clisp.org>
65614         lseek test: Fix failure on Solaris.
65615         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
65616         output.
65618 2010-04-30  Jim Meyering  <meyering@redhat.com>
65620         bootstrap: don't ignore failure to generate po*/Makevars
65621         * build-aux/bootstrap (with_gettext): Don't ignore failure
65622         to create po/Makevars or runtime-po/Makevars.
65624 2010-04-29  Eric Blake  <eblake@redhat.com>
65626         headers: relax license to LGPLv2+
65627         * modules/fcntl-h (License): Relax license.
65628         * modules/getopt-posix (License): Likewise.
65629         * modules/locale (License): Likewise.
65630         * modules/math (License): Likewise.
65631         * modules/pty (License): Likewise.
65632         * modules/sched (License): Likewise.
65633         * modules/search (License): Likewise.
65634         * modules/spawn (License): Likewise.
65635         * modules/stdarg (License): Likewise.
65636         * modules/sysexits (License): Likewise.
65638 2010-04-29  Jim Meyering  <meyering@redhat.com>
65640         inttypes: relax license to LGPLv2+
65641         * modules/inttypes (License): Relax license.
65643 2010-04-29  Simon Josefsson  <simon@josefsson.org>
65645         * top/maint.mk (indent): Run twice to produce idempotent results.
65647 2010-04-28  Bruno Haible  <bruno@clisp.org>
65649         getdate: Generate getdate.c in the source directory.
65650         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
65651         MOSTLYCLEANFILES.
65652         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
65654 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
65656         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
65657         is not declared as a const *; avoid warnings in that case.
65659 2010-04-28  Eric Blake  <eblake@redhat.com>
65661         canonicalize-lgpl: avoid compiler warning
65662         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
65663         declaration' / 'extraneous semicolon' warning with some compilers.
65664         Reported by Andreas Gruenbacher.
65666 2010-04-28  Jim Meyering  <meyering@redhat.com>
65668         init.sh: ensure a more reliable exit status when exiting via trap
65669         * tests/init.sh (setup_): Don't rely on $? in signal handler.
65670         Inspired by patches from Dmitry V. Levin.
65671         Also trap on signal 3 (SIGQUIT).
65673 2010-04-27  Bruno Haible  <bruno@clisp.org>
65675         Update doc about utimes().
65676         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
65677         'utimens' module.
65678         Reported by Andreas Gruenbacher <agruen@suse.de>.
65680 2010-04-27  Eric Blake  <eblake@redhat.com>
65682         full-read, full-write: relax license
65683         * modules/full-read (License): Drop to LGPLv2+.
65684         * modules/full-write (License): Likewise.
65685         * modules/safe-read (License): Likewise.
65686         * modules/safe-write (License): Likewise.
65688         pthread: mention library for linking
65689         * modules/pthread (Link): Mention $(LIB_PTHREAD).
65691 2010-04-27  Jim Meyering  <meyering@redhat.com>
65693         maint.mk: fix a bug introduced in last change
65694         * top/maint.mk (gl_assured_headers_): Now that all names are on
65695         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
65696         is not anchored to end of word, it should be adequate.
65698         maint.mk: avoid side-effect in latest syntax-check
65699         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
65700         to run commands via $(shell...), and hence to incur cost only when
65701         the new rule is actually run.
65703         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
65704         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
65705         and use that to create a regexp used to detect all #if HAVE_..._H uses.
65706         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
65707         (gl_assured_headers_, az_, AZ_): Define.
65708         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
65710 2010-04-26  Jim Meyering  <jim@meyering.net>
65711             Bruno Haible  <bruno@clisp.org>
65713         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
65714         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
65715         Prompted by an exchange with Gilles Espinasse.
65717 2010-04-26  Jim Meyering  <meyering@redhat.com>
65719         git-version-gen: aesthetic tweak
65720         * build-aux/git-version-gen: Use "$nl" rather than a literal,
65721         so that the command remains on a single line.
65723 2010-04-26  Eric Blake  <eblake@redhat.com>
65725         git-version-gen: allow use on EBCDIC hosts
65726         * build-aux/git-version-gen (dirty): Use literal rather than tying
65727         ourselves to ascii.
65728         Reported by Steve Goetze.
65730 2010-04-25  Bruno Haible  <bruno@clisp.org>
65732         netdb: Add support for GNULIB_POSIXCHECK.
65733         * lib/netdb.in.h: Include warn-on-use.h.
65734         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
65735         functions are used when GNULIB_POSIXCHECK is defined and the
65736         getaddrinfo module is not in use.
65737         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
65738         freeaddrinfo, gai_strerror, getnameinfo are declared.
65739         * modules/netdb (Depends-on): Add warn-on-use.
65740         (Makefile.am): Include warn-on-use.h in netdb.h.
65742 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
65744         build: avoid "make check" failure without .git/ directory
65745         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
65746         there is no .git/ directory.
65748 2010-04-25  Bruno Haible  <bruno@clisp.org>
65750         ptsname: Fix misuse of ttyname_r.
65751         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
65752         of errno.
65754 2010-04-25  Bruno Haible  <bruno@clisp.org>
65756         ttyname_r: Make it work on Solaris 10.
65757         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
65758         if the system function has the POSIX declaration. Test whether the
65759         function fails if the buffer is less than 128 bytes large.
65760         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
65761         system's ttyname_r function. Provide a reasonably large buffer.
65762         * modules/ttyname_r (Depends-on): Add extensions.
65763         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
65765 2010-04-25  Bruno Haible  <bruno@clisp.org>
65767         Use the 'extensions' module for some more functions on Solaris.
65768         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
65769         module.
65770         * doc/posix-functions/ctime_r.texi: Likewise.
65771         * doc/posix-functions/getgrgid_r.texi: Likewise.
65772         * doc/posix-functions/getgrnam_r.texi: Likewise.
65773         * doc/posix-functions/getpwnam_r.texi: Likewise.
65774         * doc/posix-functions/getpwuid_r.texi: Likewise.
65775         * doc/posix-functions/readdir_r.texi: Likewise.
65776         * doc/posix-functions/sigwait.texi: Likewise.
65777         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
65778         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
65780 2010-04-25  Bruno Haible  <bruno@clisp.org>
65782         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
65783         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
65784         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
65785         * lib/ttyname_r.c: Include <limits.h>.
65786         (ttyname_r): Define using the system's ttyname_r function, if it exists
65787         and not on Solaris.
65788         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
65789         set.
65790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
65791         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
65792         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
65793         Reported by Simon Josefsson.
65795 2010-04-25  Bruno Haible  <bruno@clisp.org>
65797         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
65798         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
65799         * doc/posix-functions/ctime_r.texi: Likewise.
65800         * doc/posix-functions/getgrgid_r.texi: Likewise.
65801         * doc/posix-functions/getgrnam_r.texi: Likewise.
65802         * doc/posix-functions/getlogin_r.texi: Likewise.
65803         * doc/posix-functions/getpwnam_r.texi: Likewise.
65804         * doc/posix-functions/getpwuid_r.texi: Likewise.
65805         * doc/posix-functions/readdir_r.texi: Likewise.
65806         * doc/posix-functions/sigwait.texi: Likewise.
65807         * doc/posix-functions/ttyname_r.texi: Likewise.
65808         Reported by Simon Josefsson.
65810 2010-04-25  Bruno Haible  <bruno@clisp.org>
65812         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
65813         * gnulib-tool (func_usage): Document that --with-*-tests options apply
65814         also to --create-testdir.
65815         (func_acceptable): Don't consider the status of *-tests modules here.
65816         (func_modules_transitive_closure): Consider it here, before including a
65817         test module.
65818         (func_import, func_create_testdir): Set inc_all_direct_tests,
65819         inc_all_indirect_tests.
65820         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
65821         --create-testdir and --create-megatestdir.
65823 2010-04-25  Bruno Haible  <bruno@clisp.org>
65825         gnulib-tool: Add --without-*-tests options.
65826         * gnulib-tool (func_usage): Document the --without-*-tests options.
65827         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
65828         excl_unportable_tests): New variables.
65829         Fail if they are specified with --import or --update.
65830         (func_acceptable): Respect the excl_*_tests variables.
65831         (func_import): Set the excl_*_tests variables to empty.
65833 2010-04-25  Simon Josefsson  <simon@josefsson.org>
65834             Bruno Haible  <bruno@clisp.org>
65836         Work around a MacOS X 10.4 bug with openpty.
65837         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
65838         * tests/test-openpty.c (main): Close the master side explicitly.
65840 2010-04-25  Bruno Haible  <bruno@clisp.org>
65842         strnlen: Fix a C++ test error on MacOS X and Solaris.
65843         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
65844         the function is not declared.
65845         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
65846         Simon Josefsson.
65848 2010-04-24  Bruno Haible  <bruno@clisp.org>
65850         Avoid a gcc warning.
65851         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
65852         of correct type for %08lx directive.
65853         Reported by Eric Blake.
65855 2010-04-24  Bruno Haible  <bruno@clisp.org>
65857         vasnprintf: Correct errno value in case of out-of-memory.
65858         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
65859         or sprintf. Use the errno value from SNPRINTF or sprintf.
65860         Reported by Ian Beckwith <ianb@erislabs.net>.
65862 2010-04-24  Bruno Haible  <bruno@clisp.org>
65864         ansi-c++-opt: Find correct compiler when cross-compiling.
65865         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
65866         AC_CHECK_PROGS.
65867         Reported by Simon Josefsson.
65869 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
65871         vc-list-files: Add support for subversion
65872         * build-aux/vc-list-files: Use "svn list" to generate the list of
65873         files controlled by subversion.
65875 2010-04-23  Jim Meyering  <meyering@redhat.com>
65877         vc-list-files tests: convert to use init.sh
65878         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
65879         path_prepend_.
65880         Use Exit, not exit.
65881         Use skip_ rather than open coding it.
65882         Remove trap set-up and compare definitions.
65883         * tests/test-vc-list-files-git.sh: Likewise.
65884         * modules/vc-list-files-tests (Files): Add tests/init.sh.
65886 2010-04-22  Simon Josefsson  <simon@josefsson.org>
65888         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
65889         backup files.
65891 2010-04-21  Simon Josefsson  <simon@josefsson.org>
65893         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
65895 2010-04-20  Eric Blake  <eblake@redhat.com>
65897         tests: be robust to ignored SIGPIPE
65898         * tests/test-select-in.sh: Consume all output.
65899         * tests/test-lseek.sh: Check correct exit status, while avoiding
65900         EPIPE.
65902 2010-04-20  Simon Josefsson  <simon@josefsson.org>
65903             Bruno Haible  <bruno@clisp.org>
65905         visibility: Don't use -fvisibility if it leads to a warning.
65906         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
65907         yes, don't pretend that visibility works if it leads to a warning.
65908         Reported by Mike Gran <spk121@yahoo.com>.
65910 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
65912         * build-aux/bootstrap: Use "git -h" for testing for supported options
65913         instead of "git --help".  The short-form option only shows a summary,
65914         and doesn't layout the full man page.  Grep for the full option name
65915         in the summary, too.
65917 2010-04-19  Bruno Haible  <bruno@clisp.org>
65919         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
65920         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
65921         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
65922         mention of RELOCATABLE_STRIP.
65923         Reported by Sylvain Beucler <beuc@beuc.net>.
65925 2010-04-19  Bruno Haible  <bruno@clisp.org>
65927         * lib/diffseq.h: Fix typo in comment.
65928         Reported by Eric Blake.
65930 2010-04-19  Bruno Haible  <bruno@clisp.org>
65932         ioctl: Move autoconf macro to a .m4 file.
65933         * m4/ioctl.m4: New file, extracted from modules/ioctl.
65934         * modules/ioctl (Files): Add it.
65935         (configure.ac): Simply invoke gl_FUNC_IOCTL.
65936         Reported by Ian Beckwith <ianb@erislabs.net>.
65938 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
65939             Bruno Haible  <bruno@clisp.org>
65941         diffseq: Accommodate use-case with abstract arrays.
65942         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
65943         is not defined.
65944         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
65945         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
65947 2010-04-18  Bruno Haible  <bruno@clisp.org>
65949         * doc/posix-headers/stdbool.texi: More precise wording.
65951 2010-04-17  Jim Meyering  <meyering@redhat.com>
65953         maint.mk: use gnu-style indentation in an embedded perl script
65954         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
65955         Rename variable: s/two/last_two_bytes/
65957 2010-04-16  Eric Blake  <eblake@redhat.com>
65959         test-stdbool: skip test that fails with Solaris CC
65960         * tests/test-stdbool.c (f): Skip test that causes compilation
65961         error under buggy C++ compiler.
65962         * lib/stdbool.in.h: Document the limitation.
65963         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
65965         setenv: allow compilation with C++
65966         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
65967         register keyword.
65969         stdint: allow test to pass with C++
65970         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
65972         getopt: allow compilation with C++
65973         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
65974         struct.
65975         * lib/getopt.c (_getopt_internal_r): Use correct type.
65976         Reported by Dagobert Michelson, via Joel E. Denny.
65978 2010-04-16  Bruno Haible  <bruno@clisp.org>
65980         Override netdb.h always.
65981         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
65982         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
65983         Reported by Ludovic Courtès <ludo@gnu.org>.
65985 2010-04-15  Bruno Haible  <bruno@clisp.org>
65987         openpty: Fix mistake from 2010-03-21.
65988         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
65989         Reported by Simon Josefsson.
65991 2010-04-15  Eric Blake  <eblake@redhat.com>
65993         test-forkpty: fix expected signature
65994         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
65995         Reported by Simon Josefsson.
65997 2010-04-15  Jim Meyering  <meyering@redhat.com>
65999         maint.mk: texinfo_suffix_re_: correct the default regexp
66000         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
66002         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
66003         make it configurable via texinfo_suffix_re_.
66005 2010-04-14  Eric Blake  <eblake@redhat.com>
66007         strtok_r: relax license to LGPLv2+
66008         * modules/strtok_r (License): Relax license.
66009         Reported by Matthias Bolte.
66011 2010-04-14  Simon Josefsson  <simon@josefsson.org>
66013         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
66014         version 1.4.4 by default instead of requiring the libgcrypt
66015         version used during build.  This makes it possible to use the
66016         application with older but still binary compatible libgcrypt
66017         versions.
66019 2010-04-13  Eric Blake  <eblake@redhat.com>
66021         getopt-gnu: match recent glibc fixes and posix ruling
66022         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
66023         '+' handling, when requesting extensions.
66024         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
66025         'W;' handling.
66026         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
66027         * doc/posix-functions/getopt.texi (getopt): Document this.
66028         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66029         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66030         Likewise.
66032         getopt: merge bug fixes from glibc
66033         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
66034         diagnostics.  Honor '+:' correctly.  Reject ';'.
66036         getopt-posix: detect MacOS bug
66037         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
66038         optind when missing a required argument.
66039         * doc/posix-functions/getopt.texi (getopt): Document the bug.
66040         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
66041         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66042         Likewise.
66044         getopt-posix: avoid spurious failure on Solaris
66045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
66046         an indicator that setting optind=1 is sufficient for reset.
66048         getopt-posix: avoid spurious failure on FreeBSD
66049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
66050         in POSIX mode, since the m4 test uses it.
66052         gnulib-tool: silence warning on BSD sh
66053         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
66055 2010-04-13  Jim Meyering  <meyering@redhat.com>
66057         doc: users.txt: GNU patch now uses gnulib
66058         * users.txt: Add patch.
66060 2010-04-12  Jim Meyering  <meyering@redhat.com>
66062         maint.mk: generate more concise timing data for syntax-check rules
66063         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
66064         " done" from each line that reports a syntax-check test duration.
66066 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
66068         git-version-gen: use "git update-index..." rather than "git status"
66069         * build-aux/git-version-gen: Use git update-index --refresh, not
66070         "git status".  With some versions of git, "git status" would fail
66071         to update the index and result in an unwarranted "-dirty" suffix.
66073 2010-04-11  Jim Meyering  <meyering@redhat.com>
66075         openat: correct formatting (no semantic change)
66076         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
66077         Suggested by Bruno Haible.
66079 2010-04-11  Bruno Haible  <bruno@clisp.org>
66081         Stricter declaration checking in testdirs.
66082         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66083         If for_tests is true, augment AM_CPPFLAGS to define
66084         GNULIB_STRICT_CHECKING.
66085         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
66086         GNULIB_STRICT_CHECKING is defined, verify that the function is
66087         declared.
66089 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
66090             Bruno Haible  <bruno@clisp.org>
66092         libunistring: Improve configure output.
66093         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
66094         Don't say "consider installing GNU libunistring" when checking again
66095         with libiconv.
66097 2010-04-11  Bruno Haible  <bruno@clisp.org>
66099         libunistring: Correct value of $LTLIBUNISTRING.
66100         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
66101         correct the value of $LTLIBUNISTRING.
66103 2010-04-11  Bruno Haible  <bruno@clisp.org>
66105         havelib: Add static libraries to LIBS in the right order.
66106         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
66107         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
66109 2010-04-11  Bruno Haible  <bruno@clisp.org>
66111         libunistring: Detect libunistring also when it depends on libiconv.
66112         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
66113         the second AC_LIB_HAVE_LINKFLAGS invocation.
66115 2010-04-11  James Youngman  <jay@gnu.org>
66117         close-stream: declare local scalars to be "const"
66118         * lib/close-stream.c (close_stream): Make boolean variables const
66119         to document the fact that we set but do not change them.
66121 2010-04-11  Bruno Haible  <bruno@clisp.org>
66123         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
66125 2010-04-11  Jim Meyering  <meyering@redhat.com>
66127         maint.mk: don't include dist-check.mk
66128         * top/maint.mk: Remove bogus include directive.
66130         maint.mk: improve empty-line-at-EOF check
66131         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
66132         solution, rather than tail+Perl-based one.  The latter would read
66133         a few kilobytes from the end of each file, and did not handle empty
66134         files properly.
66136         maint.mk: print the elapsed time for each syntax-check rule
66137         * top/maint.mk (sc_m_rules_): Save start time in a file.
66138         (sc_z_rules_): New rules: remove temp file and print elapsed time.
66139         (local-check): Interpose the .z rules
66141 2010-04-11  Jim Meyering  <meyering@redhat.com>
66143         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
66144         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
66145         empty file with one that ends in an empty line.
66147 2010-04-10  Bruno Haible  <bruno@clisp.org>
66149         mkdir: Make it work on mingw64.
66150         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
66151         * lib/mkdir.c: Update comment.
66152         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
66154 2010-04-10  Bruno Haible  <bruno@clisp.org>
66156         Don't override improved macro from newer autoconf.
66157         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
66158         autoconf >= 2.62.
66159         Reported by Joel E. Denny <jdenny@clemson.edu>.
66161 2010-04-10  Jim Meyering  <meyering@redhat.com>
66163         maint.mk: new syntax-check rule: prohibit empty lines at end of file
66164         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
66166         maint.mk: correct a diagnostic
66167         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
66168         in diagnostic; now use $prohibit.
66170 2010-04-10  Bruno Haible  <address@hidden>
66172         fchownat: Fix a C++ test error on Solaris 8.
66173         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
66174         the function does not exist.
66176 2010-04-10  Bruno Haible  <bruno@clisp.org>
66178         vasnprintf: Add more tests.
66179         * tests/test-vasnprintf-posix.c: Include <errno.h>.
66180         (test_function): Test converting an invalid wide string.
66182         vasnprintf: Correct handling of unconvertible wide string arguments.
66183         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
66184         VASNPRINTF.
66185         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
66186         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
66187         smaller than the expected maximum need for the directive. Set errno to
66188         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
66189         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
66190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
66191         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
66192         * modules/vasnprintf (Files): Add m4/printf.m4.
66193         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66195 2010-04-10  Bruno Haible  <bruno@clisp.org>
66197         vasnprintf: Fix crash in %ls directive.
66198         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
66199         string is passed as argument to %ls, with no precision and no width.
66200         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66202 2010-04-10  Bruno Haible  <bruno@clisp.org>
66204         vasnprintf: Fix multiple test failures on mingw.
66205         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
66206         _snprintf, or snwprintf, not _snwprintf.
66208 2010-04-10  Bruno Haible  <bruno@clisp.org>
66210         write: Fix a C++ test error on mingw.
66211         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
66213 2010-04-10  Bruno Haible  <bruno@clisp.org>
66215         vasnprintf test: Reduce code duplication.
66216         * tests/test-vasnprintf.c (test_function): New function, extracted from
66217         test_vasnprintf.
66218         (test_vasnprintf, test_asnprintf): Invoke it.
66220 2010-04-10  Bruno Haible  <bruno@clisp.org>
66222         strnlen: Fix warning in C++ mode on MacOS X.
66223         * lib/string.in.h (strnlen): Use the modern idiom.
66224         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
66225         defining strnlen as a macro already in <config.h>.
66226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66227         REPLACE_STRNLEN.
66228         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
66229         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66231 2010-04-08  James Youngman  <jay@gnu.org>
66233         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
66234         the example.
66236 2010-04-09  Jim Meyering  <meyering@redhat.com>
66238         maint.mk: print better diagnostic when there is no $(_hv_file)
66239         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
66240         announce that when $(_hv_file) (aka help-version) does not exist.
66242         init.sh: run tr in the "C" locale to avoid multibyte interpretation
66243         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
66244         not try to interpret its random input bytes.  Jarno Rajahalme reported
66245         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
66246         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
66247         (mktempd_): Likewise, just in case.
66249         ftruncate: add two years to projected module removal date: 2012
66250         * m4/ftruncate.m4: Adjust comments.
66252         ftruncate: mark module as obsolete; even MinGW provides it, now
66253         * modules/ftruncate (Status): Obsolete.
66254         (Notice): Say that.
66255         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
66256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
66258 2010-04-08  Bruno Haible  <bruno@clisp.org>
66260         Fix side effects from tests-related modules.
66261         * modules/dprintf-posix (Comment): New section.
66262         * modules/fprintf-posix (Comment): Likewise.
66263         * modules/obstack-printf-posix (Comment): Likewise.
66264         * modules/printf-posix (Comment): Likewise.
66265         * modules/snprintf-posix (Comment): Likewise.
66266         * modules/sprintf-posix (Comment): Likewise.
66267         * modules/vasnprintf-posix (Comment): Likewise.
66268         * modules/vasprintf-posix (Comment): Likewise.
66269         * modules/vdprintf-posix (Comment): Likewise.
66270         * modules/vfprintf-posix (Comment): Likewise.
66271         * modules/vprintf-posix (Comment): Likewise.
66272         * modules/vsnprintf-posix (Comment): Likewise.
66273         * modules/vsprintf-posix (Comment): Likewise.
66274         * modules/xprintf-posix (Comment): Likewise.
66275         * modules/xvasprintf-posix (Comment): Likewise.
66276         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
66277         * modules/floorf-tests (Depends-on): Likewise.
66278         * modules/round-tests (Depends-on): Likewise.
66279         * modules/roundf-tests (Depends-on): Likewise.
66280         * modules/trunc-tests (Depends-on): Likewise.
66281         * modules/truncf-tests (Depends-on): Likewise.
66282         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
66283         'fprintf-posix' module is not present.
66284         * tests/test-floorf2.c (check): Likewise.
66285         * tests/test-trunc2.c (check): Likewise.
66286         * tests/test-truncf2.c (check): Likewise.
66287         * tests/test-round2.c (equal): Likewise.
66288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
66290 2010-04-07  Karl Berry  <karl@gnu.org>
66292         * config/srclist.txt,
66293         * config/srclistvars.sh,
66294         * config/srclist-update: doc fixes.
66296 2010-04-07  Jim Meyering  <meyering@redhat.com>
66298         maint.mk: add a PATH crosschecking syntax-check rule
66299         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
66300         Useful if you use a test like the one in help-version (coreutils,
66301         diffutils, grep, gzip) that ensures $(VERSION) matches what is
66302         printed by prog --version.
66304 2010-04-06  Bruno Haible  <bruno@clisp.org>
66306         Fix link error on mingw.
66307         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
66308         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
66310 2010-04-06  Bruno Haible  <bruno@clisp.org>
66312         Assume rmdir exists.
66313         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
66315 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
66317         doc: update users.txt
66318         * users.txt: Add gcal.
66320 2010-04-06  Jim Meyering  <meyering@redhat.com>
66322         init.sh: simply unset TMPDIR rather than risking env -i
66323         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
66324         although it probably works fine on all Unix-based systems, some
66325         systems (Cygwin?) cannot tolerate a totally cleared environment.
66326         Suggestion from Eric Blake.
66328 2010-04-06  Jim Meyering  <meyering@redhat.com>
66330         init.sh: portability fix: use env's POSIX-specified -i option not -u
66331         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
66332         than unportable env -u.  Solaris 5.11's env lacks support for -u.
66334 2010-04-05  Bruno Haible  <bruno@clisp.org>
66336         btowc: Work around Cygwin 1.7.2 bug.
66337         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
66338         does not map NUL to 0.
66339         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
66341 2010-04-05  Bruno Haible  <bruno@clisp.org>
66343         Make the multithread modules work on Cygwin 1.7.2.
66344         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
66345         imported symbols can be declared weak, so that it returns "no" on
66346         Cygwin 1.7.2.
66348 2010-04-05  Bruno Haible  <bruno@clisp.org>
66350         Use the module 'strncat'.
66351         * modules/unistr/u8-strncat (Depends-on): Add strncat.
66353         Tests for module 'strncat'.
66354         * modules/strncat-tests: New file.
66355         * tests/test-strncat.c: New file.
66357         New module 'strncat'.
66358         * lib/string.in.h (strncat): New declaration.
66359         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
66360         * m4/strncat.m4: New file, based on m4/memchr.m4.
66361         * modules/strncat: New file.
66362         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
66363         is declared.
66364         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
66365         REPLACE_STRNCAT.
66366         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
66367         REPLACE_STRNCAT.
66368         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
66369         module.
66370         * tests/test-string-c++.cc: Check signature of strncat.
66372 2010-04-05  Jim Meyering  <meyering@redhat.com>
66374         xstrtoumax-tests: convert to use init.sh
66375         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
66376         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66377         Use Exit, not exit.
66378         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66380         xstrtoimax-tests: convert to use init.sh
66381         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
66382         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66383         Use Exit, not exit.
66384         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66386 2010-04-05  Bruno Haible  <bruno@clisp.org>
66388         sys_socket: Avoid #define replacements in C++ mode.
66389         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
66390         warning to the function if possible, rather than #defining the symbol
66391         to a dysfunctional alias.
66393 2010-04-05  Bruno Haible  <bruno@clisp.org>
66395         fseeko: Fix C++ test error on mingw.
66396         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
66397         gl_FUNC_FSEEKO.
66398         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
66399         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
66400         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
66401         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
66403 2010-04-05  Bruno Haible  <bruno@clisp.org>
66405         duplocale: Improve test output.
66406         * tests/test-duplocale.c (main): Print reason for skipped test.
66408 2010-04-05  Bruno Haible  <bruno@clisp.org>
66410         Assume rmdir exists.
66411         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
66412         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
66414 2010-04-05  Bruno Haible  <bruno@clisp.org>
66416         Fix link error on Solaris 8 with cc.
66417         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
66419 2010-04-05  Bruno Haible  <bruno@clisp.org>
66421         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66422         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
66424 2010-04-05  Bruno Haible  <bruno@clisp.org>
66426         vasprintf: Update documentation.
66427         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
66429 2010-04-05  Bruno Haible  <bruno@clisp.org>
66431         ptsname: Improve test.
66432         * tests/test-ptsname.c (main): Also try the various master names of BSD
66433         systems.
66435 2010-04-05  Bruno Haible  <bruno@clisp.org>
66437         memchr: Avoid a possible C++ test error.
66438         * lib/string.in.h (memchr): Provide declaration if function is missing.
66439         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
66440         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
66441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
66442         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
66444 2010-04-05  Bruno Haible  <bruno@clisp.org>
66446         strtok_r: Improve idiom.
66447         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
66448         AC_LIBOBJ is used.
66450 2010-04-05  Bruno Haible  <bruno@clisp.org>
66452         strdup: Improve idiom.
66453         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
66454         AC_LIBOBJ is used.
66455         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
66456         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
66457         when AC_LIBOBJ is used.
66459 2010-04-05  Bruno Haible  <bruno@clisp.org>
66461         mbsinit, mbrtowc, wcrtomb: Improve idioms.
66462         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
66463         don't set REPLACE_MBSINIT to 1.
66464         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
66465         don't set REPLACE_MBRTOWC to 1.
66466         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
66467         exist, don't set REPLACE_MBSRTOWCS to 1.
66468         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
66469         exist, don't set REPLACE_MBSNRTOWCS to 1.
66470         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
66471         don't set REPLACE_WCRTOMB to 1.
66472         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
66473         exist, don't set REPLACE_WCSRTOMBS to 1.
66474         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
66475         exist, don't set REPLACE_WCSNRTOMBS to 1.
66477 2010-04-05  Bruno Haible  <bruno@clisp.org>
66479         ldexpl: Improve idiom.
66480         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
66481         make sure to set HAVE_DECL_LDEXPL to 0.
66483 2010-04-05  Jim Meyering  <meyering@redhat.com>
66485         xstrtol-tests: convert to use init.sh
66486         * modules/xstrtol-tests (Files): Add tests/init.sh.
66487         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66488         Use Exit, not exit.
66489         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66491         atexit-tests: convert to use init.sh
66492         * modules/atexit-tests (Files): Add tests/init.sh.
66493         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
66494         Use Exit, not exit.
66495         Remove uses of $EXEEXT and "./" to run a program in the current dir.
66497         init.sh: fix typo
66498         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
66500         init.sh: make it easier for a test script to write to the tty, ...
66501         when using automake's parallel-tests mode.
66502         * tests/init.sh (stderr_fileno_): Define overridable variable.
66503         (warn_): New function, to use it.
66504         (fail_, skip_, framework_failure_): Use warn_.
66506 2010-04-04  Bruno Haible  <bruno@clisp.org>
66508         btowc: Avoid warning.
66509         * lib/btowc.c: Include <stdlib.h>.
66510         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
66512 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66513             Bruno Haible  <bruno@clisp.org>
66515         wchar: Port to NetBSD 1.5.
66516         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
66517         * lib/wctype.in.h (WEOF): Likewise.
66519 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
66520             Bruno Haible  <bruno@clisp.org>
66522         Port extended stdio to NetBSD 1.5.
66523         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
66524         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
66525         older.
66527 2010-04-04  Bruno Haible  <bruno@clisp.org>
66529         string: Remove unused substitution.
66530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66531         HAVE_DECL_STRERROR.
66532         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
66534 2010-04-04  Bruno Haible  <bruno@clisp.org>
66536         strtod: Avoid a possible C++ test error.
66537         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
66538         set REPLACE_STRTOD.
66540 2010-04-04  Bruno Haible  <bruno@clisp.org>
66542         strerror: Update documentation.
66543         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
66545 2010-04-04  Bruno Haible  <bruno@clisp.org>
66547         stdio: Fix some C++ test errors on Solaris 8 with GCC.
66548         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
66549         _GL_CXXALIAS_SYS_CAST.
66551 2010-04-04  Bruno Haible  <bruno@clisp.org>
66553         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
66554         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
66555         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
66556         REPLACE_FREXPL to 1.
66557         * doc/posix-functions/frexpl.texi: Update documentation.
66559 2010-04-04  Bruno Haible  <bruno@clisp.org>
66561         math: Fix some C++ test errors on Solaris 8 and Cygwin.
66562         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
66564 2010-04-04  Bruno Haible  <bruno@clisp.org>
66566         Implement nanosleep for native Windows.
66567         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
66569 2010-04-04  Bruno Haible  <bruno@clisp.org>
66571         math: Fix some C++ test errors on Solaris 8.
66572         * lib/math.in.h (truncf, trunc): Use simpler idiom.
66574 2010-04-04  Bruno Haible  <bruno@clisp.org>
66576         math: Fix some C++ test errors on Cygwin.
66577         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
66578         truncl): Provide declaration if the system does not have it.
66579         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
66580         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
66581         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
66582         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
66583         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
66584         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
66585         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
66586         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
66587         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
66588         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
66589         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
66590         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
66591         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
66592         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
66593         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
66594         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
66595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
66596         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66597         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66598         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
66599         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
66600         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
66602 2010-04-04  Bruno Haible  <bruno@clisp.org>
66604         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
66605         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
66606         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
66607         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
66608         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
66609         * m4/isinf.m4 (gl_ISINF): Likewise.
66610         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66612 2010-04-04  Bruno Haible  <bruno@clisp.org>
66614         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
66615         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66617 2010-04-04  Bruno Haible  <bruno@clisp.org>
66619         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
66620         * modules/tmpfile (configure.ac): Update.
66622         tmpfile: Fix C++ test error on mingw.
66623         * lib/stdio.in.h (tmpfile): New declaration.
66624         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
66625         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
66626         * modules/tmpfile (Depends-on): Add stdio.
66627         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
66628         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
66629         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
66630         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
66631         REPLACE_TMPFILE.
66632         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
66634 2010-04-04  Bruno Haible  <bruno@clisp.org>
66636         ioctl: Fix C++ test error on mingw.
66637         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
66638         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
66639         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
66641 2010-04-03  Bruno Haible  <bruno@clisp.org>
66643         wcwidth: Fix C++ test error on mingw.
66644         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
66645         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
66646         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
66648 2010-04-03  Bruno Haible  <bruno@clisp.org>
66650         nanosleep: Fix C++ test error on mingw.
66651         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
66652         * lib/time.in.h (nanosleep): Use modern idiom.
66653         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
66654         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
66655         REPLACE_NANOSLEEP to 1.
66656         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
66657         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
66659 2010-04-03  Bruno Haible  <bruno@clisp.org>
66661         strptime: Fix C++ test error on mingw.
66662         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
66663         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
66664         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
66665         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
66666         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
66667         not REPLACE_STRPTIME.
66668         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
66669         REPLACE_STRPTIME.
66671 2010-04-03  Bruno Haible  <bruno@clisp.org>
66673         timegm: Fix C++ test error on mingw.
66674         * lib/time.in.h (timegm): Use modern idiom.
66675         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
66676         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
66677         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
66678         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
66680 2010-04-03  Bruno Haible  <bruno@clisp.org>
66682         timegm: Assume declaration if function exists.
66683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
66684         if it exists. Don't clobber ac_cv_func_timegm.
66686 2010-04-03  Bruno Haible  <bruno@clisp.org>
66688         time_r: Fix C++ test error on mingw.
66689         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
66690         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
66691         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
66692         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
66693         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
66695 2010-04-03  Bruno Haible  <bruno@clisp.org>
66697         time_r: Minor updates.
66698         * modules/time_r (Description): Mention the provided functions.
66699         * lib/time_r.c: Don't include <string.h>.
66700         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
66701         * doc/posix-functions/localtime_r.texi: Likewise.
66703 2010-04-03  Bruno Haible  <bruno@clisp.org>
66705         time: Fix regression introduced on 2010-03-08.
66706         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
66707         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
66709 2010-04-03  Jim Meyering  <meyering@redhat.com>
66711         maint.mk: don't silently disable project-specific syntax-check rules
66712         * top/maint.mk (_prohibit_regexp): Define, to help people realize
66713         that they need to convert their project-specific syntax-check rules
66714         to use the new _sc_search_regexp.
66716 2010-04-03  Bruno Haible  <bruno@clisp.org>
66718         fchdir: Fix regression introduced on 2010-03-08.
66719         * lib/unistd.in.h (fchdir): Fix declaration.
66720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
66721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
66722         REPLACE_FCHDIR.
66723         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
66724         REPLACE_FCHDIR.
66726 2010-04-03  Bruno Haible  <bruno@clisp.org>
66728         getpagesize: Fix C++ test error on mingw.
66729         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
66730         system does not declare the function.
66731         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
66732         declared.
66733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66734         HAVE_DECL_GETPAGESIZE.
66735         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
66737 2010-04-03  Bruno Haible  <bruno@clisp.org>
66739         stdio: Make C++ tests work on mingw.
66740         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
66741         does not declare the function.
66743 2010-04-03  Bruno Haible  <bruno@clisp.org>
66745         ftello: Fix C++ test error on mingw.
66746         * lib/stdio.in.h (ftello): Use modern idiom.
66747         * lib/ftello.c (ftello): Renamed from rpl_ftello.
66748         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
66749         is missing and that it needs to be replaced.
66750         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
66751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
66752         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
66754 2010-04-03  Bruno Haible  <bruno@clisp.org>
66756         fseeko: Fix C++ test error on mingw.
66757         * lib/stdio.in.h (fseeko): Use modern idiom.
66758         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
66759         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
66760         is missing and that it needs to be replaced.
66761         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
66762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
66763         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
66765 2010-04-03  Bruno Haible  <bruno@clisp.org>
66767         mkstemp: Fix C++ test error on mingw.
66768         * lib/stdlib.in.h (mkstemp): Use modern idiom.
66769         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
66770         function is missing and that it needs to be replaced.
66771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
66772         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
66774 2010-04-03  Bruno Haible  <bruno@clisp.org>
66776         stpncpy: Fix C++ test error on mingw.
66777         * lib/string.in.h (stpncpy): Use modern idiom.
66778         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
66779         function is missing and that it needs to be replaced.
66780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66781         REPLACE_STPNCPY.
66782         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
66784 2010-04-03  Bruno Haible  <bruno@clisp.org>
66786         sys_stat: Fix C++ test error on mingw.
66787         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
66788         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
66790 2010-04-03  Bruno Haible  <bruno@clisp.org>
66792         pty: Update doc.
66793         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
66795 2010-04-03  Bruno Haible  <bruno@clisp.org>
66797         unistd: Fix C++ test error on mingw.
66798         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
66800 2010-04-03  Bruno Haible  <bruno@clisp.org>
66802         Update doc regarding mingw.
66803         * doc/glibc-functions/openpty.texi: Update regarding mingw.
66804         * doc/glibc-functions/login_tty.texi: Likewise.
66805         * doc/glibc-functions/forkpty.texi: Likewise.
66807 2010-04-03  Bruno Haible  <bruno@clisp.org>
66809         stdlib: Avoid compilation failure of c-strtold on mingw.
66810         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
66812 2010-04-03  Bruno Haible  <bruno@clisp.org>
66814         locale: Make C++ tests work on Cygwin and mingw.
66815         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
66816         cannot provide the function.
66817         Reported by Simon Josefsson.
66819 2010-04-03  Bruno Haible  <bruno@clisp.org>
66821         localename: Port to MacOS X 10.6.
66822         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
66823         memory layout of the locales in MacOS X 10.6 as well.
66824         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
66826 2010-04-02  Bruno Haible  <bruno@clisp.org>
66828         gnulib-tool: Ensure that long-running tests are executed last.
66829         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
66830         running tests after the one for the other tests.
66832 2010-04-02  Bruno Haible  <bruno@clisp.org>
66834         gnulib-tool: Ensure the tests in the main directory are executed first.
66835         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
66836         start with the current directory.
66838 2010-04-02  Bruno Haible  <bruno@clisp.org>
66840         Tests for module 'havelib', moved here from GNU gettext.
66841         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
66842         modifications.
66843         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
66844         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
66845         with modifications.
66846         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
66847         modifications.
66848         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
66849         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
66850         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
66851         with modifications.
66852         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
66853         with modifications.
66854         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
66855         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
66856         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
66857         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
66858         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
66859         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
66860         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
66861         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
66862         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
66863         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
66864         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
66865         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
66866         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
66867         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
66868         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
66869         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
66870         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
66871         with modifications.
66872         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
66873         with modifications.
66874         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
66875         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
66876         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
66877         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
66878         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
66879         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
66880         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
66881         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
66882         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
66883         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
66884         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
66885         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
66886         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
66887         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
66888         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
66889         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
66890         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
66891         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
66892         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
66893         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
66894         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
66895         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
66896         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
66897         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
66898         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
66899         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
66900         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
66901         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
66902         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
66903         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
66904         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
66905         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
66906         * tests/havelib/rpathx/rpathx.c: New file, from
66907         gettext/autoconf-lib-link.
66908         * tests/havelib/rpathx/Makefile.am: New file, from
66909         gettext/autoconf-lib-link.
66910         * tests/havelib/rpathx/configure.ac: New file, from
66911         gettext/autoconf-lib-link with modifications.
66912         * tests/havelib/rpathy/rpathy.c: New file, from
66913         gettext/autoconf-lib-link.
66914         * tests/havelib/rpathy/Makefile.am: New file, from
66915         gettext/autoconf-lib-link.
66916         * tests/havelib/rpathy/configure.ac: New file, from
66917         gettext/autoconf-lib-link with modifications.
66918         * tests/havelib/rpathz/rpathz.c: New file, from
66919         gettext/autoconf-lib-link.
66920         * tests/havelib/rpathz/Makefile.am: New file, from
66921         gettext/autoconf-lib-link.
66922         * tests/havelib/rpathz/configure.ac: New file, from
66923         gettext/autoconf-lib-link with modifications.
66924         * tests/havelib/rpathlx/usex.c: New file, from
66925         gettext/autoconf-lib-link.
66926         * tests/havelib/rpathlx/Makefile.am: New file, from
66927         gettext/autoconf-lib-link.
66928         * tests/havelib/rpathlx/configure.ac: New file, from
66929         gettext/autoconf-lib-link with modifications.
66930         * tests/havelib/rpathly/usey.c: New file, from
66931         gettext/autoconf-lib-link.
66932         * tests/havelib/rpathly/Makefile.am: New file, from
66933         gettext/autoconf-lib-link.
66934         * tests/havelib/rpathly/configure.ac: New file, from
66935         gettext/autoconf-lib-link with modifications.
66936         * tests/havelib/rpathlz/usez.c: New file, from
66937         gettext/autoconf-lib-link.
66938         * tests/havelib/rpathlz/Makefile.am: New file, from
66939         gettext/autoconf-lib-link.
66940         * tests/havelib/rpathlz/configure.ac: New file, from
66941         gettext/autoconf-lib-link with modifications.
66942         * tests/havelib/rpathlyx/usey.c: New file, from
66943         gettext/autoconf-lib-link.
66944         * tests/havelib/rpathlyx/Makefile.am: New file, from
66945         gettext/autoconf-lib-link.
66946         * tests/havelib/rpathlyx/configure.ac: New file, from
66947         gettext/autoconf-lib-link with modifications.
66948         * tests/havelib/rpathlzyx/usez.c: New file, from
66949         gettext/autoconf-lib-link.
66950         * tests/havelib/rpathlzyx/Makefile.am: New file, from
66951         gettext/autoconf-lib-link.
66952         * tests/havelib/rpathlzyx/configure.ac: New file, from
66953         gettext/autoconf-lib-link with modifications.
66954         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
66955         with modifications.
66957 2010-04-02  Bruno Haible  <bruno@clisp.org>
66959         gnulib-tool: Create distributed built sources also for the tests.
66960         * gnulib-tool (func_create_testdir): Also generate distributed built
66961         sources in the tests directory.
66963 2010-04-02  Bruno Haible  <bruno@clisp.org>
66965         gnulib-tool: Obey user's environment variables.
66966         * gnulib-tool (func_create_testdir): When creating built sources,
66967         respect the environment variables for autoconf, automake, etc. given by
66968         the user.
66970 2010-04-02  Bruno Haible  <bruno@clisp.org>
66972         gnulib-tool: Provide the value of --m4-base to modules.
66973         * gnulib-tool (func_import, func_create_testdir): Emit a definition
66974         of gl_m4_base.
66976 2010-04-02  Eric Blake  <eblake@redhat.com>
66978         maint.mk: fix some fallout
66979         * NEWS: Document the incompatible change, and its effect on cfg.mk.
66980         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
66982 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
66984         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
66985         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
66986         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
66987         (sc_cast_of_x_alloc_return_value): Likewise.
66988         (sc_cast_of_alloca_return_value): Likewise.
66989         (sc_space_tab): Likewise.
66990         (sc_prohibit_atoi_atof): Likewise.
66991         (sc_prohibit_magic_number_exit): Likewise.
66992         (sc_error_exit_success): Likewise.
66993         (sc_file_system): Likewise.
66994         (sc_prohibit_have_config_h): Likewise.
66995         (sc_require_config_h): Likewise.
66996         (sc_prohibit_HAVE_MBRTOWC): Likewise.
66997         (sc_obsolete_symbols): Likewise.
66998         (sc_changelog): Likewise.
66999         (sc_program_name): Likewise.
67000         (sc_the_the): Likewise.
67001         (sc_trailing_blank): Likewise.
67002         (sc_two_space_separator_in_usage): Likewise.
67003         (sc_useless_cpp_parens): Likewise.
67004         (sc_GPL_version): Likewise.
67005         (sc_GFDL_version): Likewise.
67006         (sc_texinfo_acronym): Likewise.
67007         (sc_prohibit_cvs_keyword): Likewise.
67008         (sc_prohibit_stat_st_blocks): Likewise.
67009         (sc_prohibit_S_IS_definition): Likewise.
67010         (sc_redundant_const): Likewise.
67011         (sc_makefile_TAB_only_indentation): Likewise.
67012         (sc_m4_quote_check): Likewise.
67013         (sc_makefile_path_separator_check): Likewise.
67014         (sc_copyright_check): Likewise.
67015         (sc_Wundef_boolean): Likewise.
67016         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
67018         maint.mk: match 0 or more whitespace-before-function-call '('
67019         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
67020         that have zero or two-and-more spaces between the function name
67021         and the open parenthesis.
67022         (sc_error_message_warn_fatal): Likewise.
67023         (sc_error_message_uppercase): Likewise.
67024         (sc_error_message_period): Likewise.
67026 2010-03-31  Eric Blake  <eblake@redhat.com>
67028         maint.mk: check for [ as well as test
67029         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
67030         Based on a libvirt report by Matthias Bolte.
67032         gnumakefile: don't squelch _version output
67033         * top/GNUmakefile (_version): Create one-shot dependency rather
67034         than using $(shell) when version must be regenerated.
67035         (_autoreconf): Run verbosely, by default.
67037         sys_time: avoid compiler warnings
67038         * lib/sys_time.in.h (includes): Ensure gcc pragma is
67039         unconditional, fixing regression from 2010-03-29.
67040         Reported by Simon Josefsson.
67042 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
67044         maint.mk: s/_header_without_use/_sc_header_without_use/
67045         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
67046         (sc_prohibit_assert_without_use): Use the new name.
67047         (sc_prohibit_close_stream_without_use): Likewise.
67048         (sc_prohibit_getopt_without_use): Likewise.
67049         (sc_prohibit_quotearg_without_use): Likewise.
67050         (sc_prohibit_quote_without_use): Likewise.
67051         (sc_prohibit_long_options_without_use): Likewise.
67052         (sc_prohibit_inttostr_without_use): Likewise.
67053         (sc_prohibit_ignore_value_without_use): Likewise.
67054         (sc_prohibit_error_without_use): Likewise.
67055         (sc_prohibit_xalloc_without_use): Likewise.
67056         (sc_prohibit_hash_without_use): Likewise.
67057         (sc_prohibit_hash_pjw_without_use): Likewise.
67058         (sc_prohibit_safe_read_without_use): Likewise.
67059         (sc_prohibit_argmatch_without_use): Likewise.
67060         (sc_prohibit_canonicalize_without_use): Likewise.
67061         (sc_prohibit_root_dev_ino_without_use): Likewise.
67062         (sc_prohibit_openat_without_use): Likewise.
67063         (sc_prohibit_c_ctype_without_use): Likewise.
67064         (sc_prohibit_signal_without_use): Likewise.
67065         (sc_prohibit_intprops_without_use): Likewise.
67067 2010-03-30  Eric Blake  <eblake@redhat.com>
67069         maint: improve module indicators
67070         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
67071         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
67072         columns, and avoid extra macro expansion.
67074         fdopendir: work around FreeBSD bug
67075         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
67076         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
67077         * modules/dirent (Makefile.am): Substitute it.
67078         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
67079         declaration.
67080         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
67081         fix.
67082         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67084 2010-03-29  Bruno Haible  <bruno@clisp.org>
67086         Emit #pragma system_header after the inclusion guard, not before.
67087         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
67088         guard that spans the entire file, not before. This enables an
67089         optimization in GCC's preprocessor.
67090         * lib/ctype.in.h: Likewise.
67091         * lib/dirent.in.h: Likewise.
67092         * lib/errno.in.h: Likewise.
67093         * lib/float.in.h: Likewise.
67094         * lib/getopt.in.h: Likewise.
67095         * lib/iconv.in.h: Likewise.
67096         * lib/langinfo.in.h: Likewise.
67097         * lib/locale.in.h: Likewise.
67098         * lib/math.in.h: Likewise.
67099         * lib/netdb.in.h: Likewise.
67100         * lib/netinet_in.in.h: Likewise.
67101         * lib/pty.in.h: Likewise.
67102         * lib/sched.in.h: Likewise.
67103         * lib/se-selinux.in.h: Likewise.
67104         * lib/search.in.h: Likewise.
67105         * lib/spawn.in.h: Likewise.
67106         * lib/stdarg.in.h: Likewise.
67107         * lib/stdint.in.h: Likewise.
67108         * lib/string.in.h: Likewise.
67109         * lib/strings.in.h: Likewise.
67110         * lib/sys_file.in.h: Likewise.
67111         * lib/sys_ioctl.in.h: Likewise.
67112         * lib/sys_time.in.h: Likewise.
67113         * lib/sys_times.in.h: Likewise.
67114         * lib/sys_utsname.in.h: Likewise.
67115         * lib/sys_wait.in.h: Likewise.
67116         * lib/sysexits.in.h: Likewise.
67117         * lib/wctype.in.h: Likewise.
67119 2010-03-28  James Youngman  <jay@gnu.org>
67121         save-cwd: don't leak a file descriptor when the caller execs.
67122         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
67123         saved file descriptor.
67124         * modules/save-cwd (Depends-on): Depend on cloexec.
67126 2010-03-29  Bruno Haible  <bruno@clisp.org>
67128         Remove vestiges of fts-lgpl module.
67129         * lib/fts_.h: Assume GNULIB_FTS is 1.
67130         * lib/fts.c: Likewise.
67131         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67133 2010-03-28  Bruno Haible  <bruno@clisp.org>
67135         Fix definition of tests witness macro.
67136         * gnulib-tool (func_import): Fix definition of witness macro.
67138 2010-03-28  Bruno Haible  <bruno@clisp.org>
67140         Fix ioctl's protoype on glibc systems.
67141         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
67142         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
67143         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
67144         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
67145         signature. If not, arrange to replace the ioctl function.
67146         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
67147         REPLACE_IOCTL.
67148         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
67149         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
67150         Reported by Ludovic Courtès <ludo@gnu.org>.
67152 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
67154         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
67155         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
67156         made it so grep -r --include=GLOB* ... did not work.
67158 2010-03-26  Jim Meyering  <meyering@redhat.com>
67159             Eric Blake  <eblake@redhat.com>
67161         maint.mk: prohibit use of test's -o and -a operators
67162         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
67164 2010-03-28  Bruno Haible  <bruno@clisp.org>
67166         Remove unused GNULIB_XYZ macro definitions.
67167         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
67168         invocation.
67170 2010-03-28  Bruno Haible  <bruno@clisp.org>
67172         Mark privileged tests modules.
67173         * modules/idpriv-drop-tests (Status): New section.
67174         * modules/idpriv-droptemp-tests (Status): New section.
67176 2010-03-28  Bruno Haible  <bruno@clisp.org>
67178         Split C++ tests into separate tests modules.
67179         * modules/dirent-c++-tests: New file, extracted from
67180         modules/dirent-tests.
67181         * modules/dirent-tests: Depend on it.
67182         * modules/fcntl-h-c++-tests: New file, extracted from
67183         modules/fcntl-h-tests.
67184         * modules/fcntl-h-tests: Depend on it.
67185         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
67186         * modules/glob-tests: Depend on it.
67187         * modules/iconv-h-c++-tests: New file, extracted from
67188         modules/iconv-h-tests.
67189         * modules/iconv-h-tests: Depend on it.
67190         * modules/langinfo-c++-tests: New file, extracted from
67191         modules/langinfo-tests.
67192         * modules/langinfo-tests: Depend on it.
67193         * modules/locale-c++-tests: New file, extracted from
67194         modules/locale-tests.
67195         * modules/locale-tests: Depend on it.
67196         * modules/math-c++-tests: New file, extracted from modules/math-tests.
67197         * modules/math-tests: Depend on it.
67198         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
67199         * modules/pty-tests: Depend on it.
67200         * modules/search-c++-tests: New file, extracted from
67201         modules/search-tests.
67202         * modules/search-tests: Depend on it.
67203         * modules/signal-c++-tests: New file, extracted from
67204         modules/signal-tests.
67205         * modules/signal-tests: Depend on it.
67206         * modules/spawn-c++-tests: New file, extracted from
67207         modules/spawn-tests.
67208         * modules/spawn-tests: Depend on it.
67209         * modules/stdio-c++-tests: New file, extracted from
67210         modules/stdio-tests.
67211         * modules/stdio-tests: Depend on it.
67212         * modules/stdlib-c++-tests: New file, extracted from
67213         modules/stdlib-tests.
67214         * modules/stdlib-tests: Depend on it.
67215         * modules/string-c++-tests: New file, extracted from
67216         modules/string-tests.
67217         * modules/string-tests: Depend on it.
67218         * modules/sys_ioctl-c++-tests: New file, extracted from
67219         modules/sys_ioctl-tests.
67220         * modules/sys_ioctl-tests: Depend on it.
67221         * modules/sys_select-c++-tests: New file, extracted from
67222         modules/sys_select-tests.
67223         * modules/sys_select-tests: Depend on it.
67224         * modules/sys_socket-c++-tests: New file, extracted from
67225         modules/sys_socket-tests.
67226         * modules/sys_socket-tests: Depend on it.
67227         * modules/sys_stat-c++-tests: New file, extracted from
67228         modules/sys_stat-tests.
67229         * modules/sys_stat-tests: Depend on it.
67230         * modules/sys_time-c++-tests: New file, extracted from
67231         modules/sys_time-tests.
67232         * modules/sys_time-tests: Depend on it.
67233         * modules/time-c++-tests: New file, extracted from modules/time-tests.
67234         * modules/time-tests: Depend on it.
67235         * modules/unistd-c++-tests: New file, extracted from
67236         modules/unistd-tests.
67237         * modules/unistd-tests: Depend on it.
67238         * modules/wchar-c++-tests: New file, extracted from
67239         modules/wchar-tests.
67240         * modules/wchar-tests: Depend on it.
67241         * modules/wctype-c++-tests: New file, extracted from
67242         modules/wctype-tests.
67243         * modules/wctype-tests: Depend on it.
67244         Reported by Simon Josefsson.
67246 2010-03-28  Bruno Haible  <bruno@clisp.org>
67248         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
67249         * gnulib-tool (func_exists_module): New function, extracted from
67250         func_verify_module.
67251         (func_verify_module): Use it.
67252         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
67253         'foo' only if 'foo' exists.
67254         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
67255         module.
67257 2010-03-28  Bruno Haible  <bruno@clisp.org>
67259         gnulib-tool: Add support for special categories of tests.
67260         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
67261         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
67262         (func_usage): Document them.
67263         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
67264         inc_unportable_tests, inc_all_tests): New variables.
67265         (func_acceptable): Consider these variables.
67266         (func_modules_transitive_closure): Make it work when the 'Status' field
67267         consists of multiple words.
67268         (func_import): Store and restore the values of inc_cxx_tests,
67269         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
67270         inc_all_tests in gnulib-comp.m4.
67271         (func_create_testdir): Set inc_all_tests to true.
67272         * doc/gnulib.texi (Extra tests modules): New section.
67273         Suggested by Jim Meyering.
67275 2010-03-28  Bruno Haible  <bruno@clisp.org>
67277         ansi-c++-opt: Allow turning off the C++ build by default.
67278         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
67279         gl_CXX_CHOICE_DEFAULT_NO is defined.
67280         Requested by Eric Blake.
67282 2010-03-28  Bruno Haible  <bruno@clisp.org>
67284         unistd: Avoid #define replacements in C++ mode.
67285         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
67286         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
67287         setsockopt, shutdown, select): In C++, attach a warning to the function
67288         if possible, rather than #defining the symbol to a dysfunctional alias.
67289         Reported by John W. Eaton <jwe@gnu.org>.
67291 2010-03-28  Bruno Haible  <bruno@clisp.org>
67293         Fix link errors on mingw.
67294         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
67295         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
67296         $(LIBSOCKET).
67297         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
67298         $(LIBSOCKET).
67300 2010-03-28  Bruno Haible  <bruno@clisp.org>
67301             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67303         lib-ignore: Determine different options for different compilers.
67304         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
67305         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
67306         Add comments.
67307         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
67308         * NEWS: Mention the change.
67310 2010-03-27  Bruno Haible  <bruno@clisp.org>
67312         Remove unused GNULIB_XYZ macro definitions.
67313         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
67314         * modules/fseek (configure.ac): Likewise.
67315         * modules/ioctl (configure.ac): Likewise.
67316         * modules/open (configure.ac): Likewise.
67317         * modules/stdlib-safer (configure.ac): Likewise.
67319 2010-03-27  Bruno Haible  <bruno@clisp.org>
67321         Add a remark about certain modules.
67322         * modules/malloc (Comment): New section.
67323         * modules/realloc (Comment): Likewise.
67324         * modules/sigpipe (Comment): Likewise.
67326 2010-03-27  Bruno Haible  <bruno@clisp.org>
67328         Resolve conflict between the two kinds of module indicators.
67329         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
67330         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
67331         * modules/canonicalize (configure.ac): Invoke
67332         gl_MODULE_INDICATOR_FOR_TESTS.
67333         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
67334         GNULIB_XYZ.
67335         * tests/test-dirent-c++.cc: Likewise.
67336         * tests/test-dirent-safer.c: Likewise.
67337         * tests/test-dup2.c: Likewise.
67338         * tests/test-fchdir.c: Likewise.
67339         * tests/test-fcntl-h-c++.cc: Likewise.
67340         * tests/test-getopt.c: Likewise.
67341         * tests/test-getopt.h: Likewise.
67342         * tests/test-langinfo-c++.cc: Likewise.
67343         * tests/test-locale-c++.cc: Likewise.
67344         * tests/test-math-c++.cc: Likewise.
67345         * tests/test-pty-c++.cc: Likewise.
67346         * tests/test-search-c++.cc: Likewise.
67347         * tests/test-signal-c++.cc: Likewise.
67348         * tests/test-spawn-c++.cc: Likewise.
67349         * tests/test-stdio-c++.cc: Likewise.
67350         * tests/test-stdlib-c++.cc: Likewise.
67351         * tests/test-string-c++.cc: Likewise.
67352         * tests/test-sys_ioctl-c++.cc: Likewise.
67353         * tests/test-sys_select-c++.cc: Likewise.
67354         * tests/test-sys_socket-c++.cc: Likewise.
67355         * tests/test-sys_stat-c++.cc: Likewise.
67356         * tests/test-sys_time-c++.cc: Likewise.
67357         * tests/test-time-c++.cc: Likewise.
67358         * tests/test-unistd-c++.cc: Likewise.
67359         * tests/test-wchar-c++.cc: Likewise.
67360         * tests/uninorm/test-u8-nfc.c: Likewise.
67361         * tests/uninorm/test-u8-nfd.c: Likewise.
67362         * tests/uninorm/test-u8-nfkc.c: Likewise.
67363         * tests/uninorm/test-u8-nfkd.c: Likewise.
67364         * tests/uninorm/test-u16-nfc.c: Likewise.
67365         * tests/uninorm/test-u16-nfd.c: Likewise.
67366         * tests/uninorm/test-u16-nfkc.c: Likewise.
67367         * tests/uninorm/test-u16-nfkd.c: Likewise.
67368         * tests/uninorm/test-u32-nfc.c: Likewise.
67369         * tests/uninorm/test-u32-nfc-big.c: Likewise.
67370         * tests/uninorm/test-u32-nfd.c: Likewise.
67371         * tests/uninorm/test-u32-nfd-big.c: Likewise.
67372         * tests/uninorm/test-u32-nfkc.c: Likewise.
67373         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
67374         * tests/uninorm/test-u32-nfkd.c: Likewise.
67375         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
67376         * tests/uninorm/test-u32-normalize-big.c: Likewise.
67378 2010-03-27  Bruno Haible  <bruno@clisp.org>
67380         Distinguish two kinds of module indicators.
67381         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
67382         gl_MODULE_INDICATOR.
67383         (gl_MODULE_INDICATOR): New macro.
67384         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
67385         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
67386         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67387         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67388         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67389         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67390         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67391         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67392         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67393         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67394         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67395         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67398         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67399         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67400         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67401         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67402         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67403         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67404         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67405         * modules/cloexec (configure.ac): Likewise.
67406         * modules/getopt-gnu (configure.ac): Likewise.
67407         * modules/uninorm/u8-normalize (configure.ac): Likewise.
67408         * modules/uninorm/u16-normalize (configure.ac): Likewise.
67409         * modules/uninorm/u32-normalize (configure.ac): Likewise.
67410         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
67412 2010-03-27  Bruno Haible  <bruno@clisp.org>
67414         New module description field 'Comment'.
67415         * gnulib-tool: New option --extract-comment.
67416         (func_usage): Document it.
67417         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
67418         (func_get_comment): New function.
67419         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
67421 2010-03-27  Bruno Haible  <bruno@clisp.org>
67423         Addendum to 2010-02-07 commit.
67424         * gnulib-tool (func_usage): Document --extract-applicability option.
67426 2010-03-27  Bruno Haible  <bruno@clisp.org>
67428         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
67429         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
67430         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
67431         rather than link errors.
67433 2010-03-27  Bruno Haible  <bruno@clisp.org>
67435         Avoid side effects from tests-related modules on the compilation of lib.
67436         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
67437         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
67438         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
67439         parameter. Emit into AM_CPPFLAGS a definition of the designated C
67440         macro.
67441         (func_import): Define a witness macro. Assign it a value that depends
67442         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
67443         tests-related modules.
67444         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
67445         Reported by Jim Meyering.
67447 2010-03-27  Bruno Haible  <bruno@clisp.org>
67449         Factorize common .m4 code.
67450         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
67451         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
67452         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
67453         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
67454         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
67455         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
67456         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
67457         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
67458         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
67459         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
67460         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
67461         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
67462         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
67463         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
67464         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
67465         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
67466         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
67467         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
67468         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
67469         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
67470         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
67471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
67472         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
67473         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
67474         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
67475         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
67476         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
67477         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
67478         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
67479         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
67480         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
67481         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
67483 2010-03-27  Bruno Haible  <bruno@clisp.org>
67485         Fix a compilation error on Cygwin with g++ >= 4.3.
67486         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
67487         if it is undefined or if we alias it to chmod.
67488         (lstat): Don't warn about the use of this function if it is undefined
67489         or if we alias it to stat.
67490         Reported by Simon Josefsson.
67492 2010-03-27  Bruno Haible  <bruno@clisp.org>
67494         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
67495         * modules/getlogin (configure.ac): Update.
67497         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
67498         * modules/getlogin_r (configure.ac): Update.
67500         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
67501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
67502         * modules/inet_ntop (configure.ac): Update.
67504         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
67505         * modules/inet_pton (configure.ac): Update.
67507         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
67508         * modules/mbslen (configure.ac): Update.
67510         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
67511         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
67512         * modules/forkpty (configure.ac): Update.
67513         * modules/openpty (configure.ac): Update.
67515 2010-03-26  Simon Josefsson  <simon@josefsson.org>
67517         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
67518         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
67520 2010-03-25  Eric Blake  <eblake@redhat.com>
67522         maint: use pragma consistently across replacement headers
67523         * lib/ctype.in.h (system_header): Hoist for consistent placement.
67524         * lib/dirent.in.h (system_header): Likewise.
67525         * lib/errno.in.h (system_header): Likewise.
67526         * lib/float.in.h (system_header): Likewise.
67527         * lib/getopt.in.h (system_header): Likewise.
67528         * lib/iconv.in.h (system_header): Likewise.
67529         * lib/inttypes.in.h (system_header): Likewise.
67530         * lib/langinfo.in.h (system_header): Likewise.
67531         * lib/locale.in.h (system_header): Likewise.
67532         * lib/math.in.h (system_header): Likewise.
67533         * lib/netdb.in.h (system_header): Likewise.
67534         * lib/netinet_in.in.h (system_header): Likewise.
67535         * lib/pty.in.h (system_header): Likewise.
67536         * lib/sched.in.h (system_header): Likewise.
67537         * lib/se-selinux.in.h (system_header): Likewise.
67538         * lib/search.in.h (system_header): Likewise.
67539         * lib/spawn.in.h (system_header): Likewise.
67540         * lib/stdarg.in.h (system_header): Likewise.
67541         * lib/stdint.in.h (system_header): Likewise.
67542         * lib/string.in.h (system_header): Likewise.
67543         * lib/strings.in.h (system_header): Likewise.
67544         * lib/sys_file.in.h (system_header): Likewise.
67545         * lib/sys_ioctl.in.h (system_header): Likewise.
67546         * lib/sys_socket.in.h (system_header): Likewise.
67547         * lib/sys_times.in.h (system_header): Likewise.
67548         * lib/sys_utsname.in.h (system_header): Likewise.
67549         * lib/sys_wait.in.h (system_header): Likewise.
67550         * lib/sysexits.in.h (system_header): Likewise.
67551         * lib/unistd.in.h (system_header): Likewise.
67552         * lib/wctype.in.h (system_header): Likewise.
67554         arpa/inet: fix mingw compilation warning
67555         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
67556         Reported by Matthew Bolte.
67558 2010-03-25  Bruno Haible  <bruno@clisp.org>
67560         Avoid collision between gnulib wrapper and libintl wrapper.
67561         * lib/printf.c (printf): Don't define if a printf wrapper is already
67562         defined in intl/printf.c.
67563         Reported by Michel Boaventura <michel@michelboaventura.com>.
67565 2010-03-25  Bruno Haible  <bruno@clisp.org>
67567         Use ANSI C.
67568         * lib/readutmp.h (getutent): Provide ANSI C prototype.
67570 2010-03-25  Bruno Haible  <bruno@clisp.org>
67572         Minor formatting changes.
67573         * lib/acosl.c: Insert space before function argument list.
67574         * lib/argz.c: Likewise.
67575         * lib/asinl.c: Likewise.
67576         * lib/expl.c: Likewise.
67577         * lib/gen-uni-tables.c: Likewise.
67578         * lib/gettext.h: Likewise.
67579         * lib/glthread/lock.h: Likewise.
67580         * lib/tanl.c: Likewise.
67581         * lib/uniname/uniname.c: Likewise.
67582         * tests/test-idpriv-drop.c: Likewise.
67583         * tests/test-idpriv-droptemp.c: Likewise.
67584         * tests/test-lock.c: Likewise.
67585         * tests/test-tls.c: Likewise.
67586         * lib/argp-help.c: Insert space before function-like macro argument
67587         list.
67588         * lib/memcmp.c: Likewise.
67589         * tests/test-base64.c: Likewise.
67590         * lib/localename.c: Insert space before sizeof's argument list.
67591         * lib/safe-alloc.h: Likewise.
67592         * lib/file-set.h: Insert space before macro argument list.
67593         * tests/test-argp.c: Likewise.
67594         * lib/argp-namefrob.h: Insert space before function parameter list.
67595         * lib/getaddrinfo.c: Likewise.
67596         * lib/netdb.in.h: Likewise.
67597         * lib/parse-duration.h: Likewise.
67598         * lib/parse-duration.c: Likewise.
67599         * lib/poll.c: Likewise.
67600         * lib/select.c: Likewise.
67601         * lib/trim.h: Likewise.
67602         * tests/test-usleep.c: Likewise.
67603         * lib/ldexpl.c: Insert space before function parameter list and before
67604         function argument list.
67605         * lib/logl.c: Likewise.
67606         * lib/sqrtl.c: Likewise.
67607         * lib/trim.c: Likewise.
67608         * lib/cosl.c: Use GNU style indentation. Insert space before function
67609         argument list.
67610         * lib/sinl.c: Likewise.
67611         * lib/tsearch.c: Insert space after 'for'.
67612         Reported by Jim Meyering.
67614 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
67616         * maint.mk (sc_Wundef_boolean): Check for the presence of the
67617         config header before grepping, as it's not present before
67618         autoreconf/configure are run.  Reported by Simon Josefsson.
67620 2010-03-23  Bruno Haible  <bruno@clisp.org>
67622         pt_chown: Make it work with automake < 1.11.
67623         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
67624         Reported by Simon Josefsson.
67626 2010-03-23  Bruno Haible  <bruno@clisp.org>
67628         pt_chown: Don't depend on GPLed modules.
67629         * lib/pt_chown.c: Don't include idpriv.h.
67630         (main): Don't drop privileges.
67631         * modules/pt_chown (Depends-on): Remove idpriv-drop.
67632         Reported by Simon Josefsson.
67634 2010-03-24  Simon Josefsson  <simon@josefsson.org>
67636         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
67637         suggestions from karl@freefriends.org (Karl Berry).
67639 2010-03-22  Eric Blake  <eblake@redhat.com>
67641         gethostname: further tweaks
67642         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
67643         are overriding gethostname.
67644         Suggested by Bruno Haible.
67646 2010-03-21  Bruno Haible  <bruno@clisp.org>
67648         Fix comments.
67649         * lib/forkpty.c (rpl_forkpty): Fix comment.
67650         * lib/openpty.c (rpl_openpty): Likewise.
67651         Reported by Eric Blake.
67653 2010-03-22  Eric Blake  <eblake@redhat.com>
67655         gethostname: fix build on mingw
67656         * lib/unistd.in.h (includes): Work around fact that mingw
67657         <winsock2.h> re-includes <unistd.h>, by avoiding any
67658         redeclarations if we are being included by <winsock2.h>.
67659         Reported by Matthias Bolte.
67661 2010-03-21  Bruno Haible  <bruno@clisp.org>
67663         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67664         * lib/forkpty.c (forkpty): New replacement function, from glibc with
67665         modifications.
67666         * lib/pty.in.h (forkpty): Update declaration. Add comments.
67667         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
67668         provide the replacement.
67669         * modules/forkpty (Depends-on): Add openpty, login_tty.
67670         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
67671         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
67672         * doc/glibc-functions/forkpty.texi: More supported platforms.
67673         * config/srclist.txt: Add forkpty.c (commented).
67675 2010-03-21  Bruno Haible  <bruno@clisp.org>
67677         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
67678         (Makefile.am): Verify that PTY_LIB is defined.
67680         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
67682 2010-03-21  Bruno Haible  <bruno@clisp.org>
67684         Tests for module 'login_tty'.
67685         * modules/login_tty-tests: New file.
67686         * tests/test-login_tty.c: New file.
67688         New module 'login_tty'.
67689         * lib/login_tty.c: New file.
67690         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
67691         * modules/login_tty: New file.
67692         * doc/glibc-functions/login_tty.texi: Mention the new module.
67694 2010-03-21  Bruno Haible  <bruno@clisp.org>
67696         login_tty: Documentation.
67697         * doc/glibc-functions/login_tty.texi: New file.
67698         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
67700 2010-03-21  Bruno Haible  <bruno@clisp.org>
67702         pty: Consistent macro naming.
67703         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
67704         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
67705         * modules/pty (configure.ac): Update.
67707 2010-03-21  Bruno Haible  <bruno@clisp.org>
67709         Tests for openpty: Make stricter.
67710         * tests/test-openpty.c (main): Add test of canonical processing and
67711         erase.
67712         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
67714         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
67715         * lib/openpty.c (openpty): New replacement function.
67716         * lib/pty.in.h: Include <termios.h>.
67717         (openpty): Update declaration. Add comments.
67718         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
67719         is not declared, arrange to provide the replacement. Check for _getpty
67720         and posix_openpt.
67721         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
67722         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
67723         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
67724         * modules/pty-tests (test_pty_c___LDADD): New variable.
67725         * doc/glibc-functions/openpty.texi: More supported platforms.
67727 2010-03-21  Bruno Haible  <bruno@clisp.org>
67729         setenv: Tweaks.
67730         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
67731         the test program.
67732         * doc/posix-functions/setenv.texi: Update platforms list.
67734 2010-03-21  Bruno Haible  <bruno@clisp.org>
67736         New module 'unlockpt'.
67737         * lib/unlockpt.c: New file, from glibc with modifications.
67738         * m4/unlockpt.m4: New file.
67739         * modules/unlockpt: New file.
67740         * lib/stdlib.in.h (unlockpt): New declaration.
67741         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
67742         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
67743         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
67744         HAVE_UNLOCKPT.
67745         * doc/posix-functions/unlockpt.texi: Mention the new module.
67746         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
67747         * config/srclist.txt: Add unlockpt.c (commented).
67749 2010-03-21  Jim Meyering  <meyering@redhat.com>
67751         maint.mk: prohibit inclusion of "intprops.h" without use
67752         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
67754 2010-03-21  Bruno Haible  <bruno@clisp.org>
67756         New module 'grantpt'.
67757         * lib/grantpt.c: New file, from glibc with modifications.
67758         * m4/grantpt.m4: New file.
67759         * modules/grantpt: New file.
67760         * lib/stdlib.in.h (grantpt): New declaration.
67761         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
67762         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
67763         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
67764         HAVE_GRANTPT.
67765         * doc/posix-functions/grantpt.texi: Mention the new module.
67766         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
67767         * config/srclist.txt: Add grantpt.c (commented).
67769 2010-03-21  Bruno Haible  <bruno@clisp.org>
67771         New module 'pt_chown'.
67772         * lib/pt_chown.c: New file, from glibc with modifications.
67773         * lib/pty-private.h: New file, from glibc with modifications.
67774         * modules/pt_chown: New file.
67775         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
67777 2010-03-21  Bruno Haible  <bruno@clisp.org>
67779         Tests for module 'ptsname'.
67780         * modules/ptsname-tests: New file.
67781         * tests/test-ptsname.c: New file.
67783         New module 'ptsname'.
67784         * lib/ptsname.c: New file, from glibc with modifications.
67785         * m4/ptsname.m4: New file.
67786         * modules/ptsname: New file.
67787         * lib/stdlib.in.h (ptsname): New declaration.
67788         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
67789         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
67790         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
67791         HAVE_PTSNAME.
67792         * doc/posix-functions/ptsname.texi: Mention the new module.
67793         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
67794         * config/srclist.txt: Add ptsname.c (commented).
67796 2010-03-21  Bruno Haible  <bruno@clisp.org>
67798         Tests for module 'ttyname_r'.
67799         * modules/ttyname_r-tests: New file.
67800         * tests/test-ttyname_r.c: New file.
67802         New module 'ttyname_r'.
67803         * lib/ttyname_r.c: New file.
67804         * m4/ttyname_r.m4: New file.
67805         * modules/ttyname_r: New file.
67806         * lib/unistd.in.h (ttyname_r): New declaration.
67807         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
67808         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
67809         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
67810         HAVE_TTYNAME_R.
67811         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
67812         * doc/posix-functions/ttyname_r.texi: Mention the new module.
67814 2010-03-20  Bruno Haible  <bruno@clisp.org>
67816         signal: Undefine macro definitions in C++ mode.
67817         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
67818         sigfillset): Undefine macro definitions from the system header in C++
67819         mode.
67820         Reported by John W. Eaton <jwe@gnu.org>.
67822 2010-03-20  Bruno Haible  <bruno@clisp.org>
67824         Ensure no #include statements inside extern "C" { ... }.
67825         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
67826         contain #include statements.
67827         * lib/time.in.h: Likewise.
67829 2010-03-20  Bruno Haible  <bruno@clisp.org>
67831         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
67832         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
67833         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
67834         Reported by John W. Eaton <jwe@gnu.org>.
67836 2010-03-20  Bruno Haible  <bruno@clisp.org>
67838         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
67839         Reported by Jim Meyering.
67841 2010-03-20  Bruno Haible  <bruno@clisp.org>
67843         pipe: Set errno upon failure.
67844         * lib/pipe.h: Specify that when -1 is returned, errno is set.
67845         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
67846         errno value in error message.
67848 2010-03-20  Bruno Haible  <bruno@clisp.org>
67849             Jim Meyering  <meyering@redhat.com>
67851         lchown: Avoid "unused variable" warning.
67852         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
67854 2010-03-20  Bruno Haible  <bruno@clisp.org>
67856         Work around unlink() bug on MacOS X 10.5.6.
67857         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
67858         attempting to unlink a parent directory.
67859         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
67860         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
67861         activate for the replacement function.
67862         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
67864 2010-03-20  Bruno Haible  <bruno@clisp.org>
67866         Fix link errors on Solaris 8.
67867         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
67868         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
67870 2010-03-19  Jim Meyering  <meyering@redhat.com>
67872         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
67873         The _LIBC implementation of build_range_exp correctly honors the
67874         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
67875         However, the non-_LIBC implementation would ignore that syntax-bit
67876         flag and return REG_ERANGE unconditionally.
67877         This change makes it honor that flag.
67878         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
67879         Make two pointer parameters "const".
67880         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
67881         (parse_bracket_exp): Update caller.
67883         regex.m4: correct the reversed range endpoint ([b-a]) test
67884         * m4/regex.m4: When requiring that [b-a] evoke failure,
67885         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
67886         test pass once again for x86-based systems.
67888 2010-03-19  Bruno Haible  <bruno@clisp.org>
67890         scandir: Fix link error on Solaris 8.
67891         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
67892         macros.
67894 2010-03-19  Bruno Haible  <bruno@clisp.org>
67896         getusershell: Fix documentation.
67897         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
67898         module.
67899         * doc/glibc-functions/setusershell.texi: Likewise.
67901         getusershell: Provide declaration, missing on Solaris 9.
67902         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
67903         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
67904         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
67905         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
67906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
67907         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
67908         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
67909         HAVE_GETUSERSHELL.
67910         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
67912 2010-03-19  Bruno Haible  <bruno@clisp.org>
67914         wctype: Provide iswblank function.
67915         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
67916         exists and is fine.
67917         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
67918         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
67919         * tests/test-wctype.c (main): Re-enable the iswblank tests.
67920         * doc/posix-functions/iswblank.texi: Update.
67922 2010-03-19  Bruno Haible  <bruno@clisp.org>
67924         Tests of module 'pty' in C++ mode.
67925         * modules/pty-tests: New file.
67926         * tests/test-pty-c++.cc: New file.
67927         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
67929 2010-03-19  Eric Blake  <eblake@redhat.com>
67931         logb: fix documentation
67932         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
67933         1.5 declaration bug.
67935         forkpty, openpty: prefer glibc's const-safe prototype
67936         * lib/forkpty.c (rpl_forkpty): New file.
67937         * lib/openpty.c (rpl_openpty): Likewise.
67938         * modules/forkpty (Files): Distribute it.
67939         * modules/openpty (Files): Likewise.
67940         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
67941         check...
67942         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
67943         replacement for non-const BSD signature.
67944         * modules/pty (Makefile.am): Substitute witnesses.
67945         * lib/pty.in.h (forkpty, openpty): Declare replacements.
67946         * tests/test-forkpty.c: Update signature check.
67947         * tests/test-openpty.c: Likewise.
67948         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
67949         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67951         forkpty, openpty: split functions into new modules
67952         * modules/pty (Makefile.am): Substitute new witnesses.
67953         (Libraries): Move library detection...
67954         * modules/forkpty: ...into new module.
67955         * modules/openpty: Another new module.
67956         * modules/pty-tests: Rename and split...
67957         * modules/forkpty-tests: ...to this...
67958         * modules/openpty-tests: ...and this.
67959         * tests/test-pty.c: Rename and split...
67960         * tests/test-forkpty.c: ...to this...
67961         * tests/test-openpty.c: ...and this.
67962         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
67963         (gl_PTY): Split library searching...
67964         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
67965         (gl_FORKPTY, gl_OPENPTY): New macros.
67966         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
67967         * NEWS: Mention the split.
67968         * MODULES.html.sh (Misc): Document the modules.
67969         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
67970         * doc/glibc-functions/openpty.texi (openpty): Likewise.
67972         pty: improve replacement header
67973         * lib/pty.in.h: New file.
67974         * modules/pty (Files): Ship it.
67975         (Makefile.am): Always build replacement.
67976         * m4/pty.m4: Rename...
67977         * m4/pty_h.m4: ...to this.
67978         (gl_PTY): Modernize setting of witness macros; update check of
67979         forkpty to take proper advantage of cache.
67980         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
67982         getopt: avoid compiler warning
67983         * lib/getopt.c (attribute_hidden): Remove unused macro.
67985 2010-03-18  Bruno Haible  <bruno@clisp.org>
67987         Fix link errors on Solaris 8.
67988         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
67989         * modules/search-tests (test_search_c___LDADD): Likewise.
67990         * modules/signal-tests (test_signal_c___LDADD): Likewise.
67991         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
67992         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
67993         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
67994         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
67995         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
67996         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
67998 2010-03-18  Bruno Haible  <bruno@clisp.org>
68000         Fix bug introduced on 2010-03-14.
68001         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
68002         (gl_SPAWN_H): Require it.
68003         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
68004         Reported by Simon Josefsson.
68006 2010-03-18  Bruno Haible  <bruno@clisp.org>
68008         Fix typo introduced on 2009-12-31.
68009         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
68010         posix_spawn_file_actions_adddup2.
68012 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
68013         and Eric Blake  <eblake@redhat.com>
68015         test-vc-list-files-git: make more robust
68016         * tests/test-vc-list-files-git.sh: Unset problematic environment
68017         variables.  Chain commands together.
68019 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
68021         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
68022         `AC_CHECK_DECL' invocation.
68024 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
68026         * lib/inttostr.c (inttostr): Make sure the invocation of verify
68027         appears before executable statements. Suggested by Petr Sumbera
68028         <Petr.Sumbera@Sun.COM>.
68030 2010-03-14  Bruno Haible  <bruno@clisp.org>
68032         * tests/test-flock.c (test_exclusive): Comment out a test that causes
68033         portability problems. Instead use a simpler test.
68034         (main): Check that invalid arguments are rejected only on Linux.
68036 2010-03-14  Bruno Haible  <bruno@clisp.org>
68038         Fix bug introduced on 2009-12-31.
68039         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
68040         gl_PREREQ_SYS_H_WINSOCK2 always.
68041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
68042         SYS_SOCKET_H variable.
68043         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
68044         Update comments.
68045         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
68046         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
68047         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
68048         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
68049         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
68051 2010-03-14  Bruno Haible  <bruno@clisp.org>
68053         Fix values returned by sinl, cosl.
68054         * lib/trigl.h: Add specification comments.
68055         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
68056         that combines the values from the precomputed table with the values of
68057         the Chebyshev polynomials.
68059 2010-03-14  Bruno Haible  <bruno@clisp.org>
68061         Fix compilation error when modules 'posix_spawn[p]' are not used.
68062         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
68063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
68065 2010-03-14  Bruno Haible  <bruno@clisp.org>
68067         Fix compilation error on mingw when module 'time_r' is not used.
68068         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
68069         is 1.
68070         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
68071         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68072         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
68073         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
68075 2010-03-14  Bruno Haible  <bruno@clisp.org>
68077         Fix compilation error with Sun C.
68078         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
68079         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
68080         instead of GCC specific ULONG_LONG_MAX.
68081         * lib/xstrtoll.c: Likewise.
68082         * lib/xstrtoull.c: Likewise.
68084 2010-03-13  Bruno Haible  <bruno@clisp.org>
68086         Allow the user to disable C++ code and tests.
68087         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
68088         (gl_PROG_ANSI_CXX): Require it.
68090 2010-03-13  Bruno Haible  <bruno@clisp.org>
68092         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
68093         cases.
68095 2010-03-13  Bruno Haible  <bruno@clisp.org>
68097         Test that gnulib does not break the standard C++ headers.
68098         * tests/test-locale-c++2.cc: New file.
68099         * modules/locale-tests (Files): Add it.
68100         (Makefile.am): Compile it for test-locale-c++.
68101         * tests/test-math-c++2.cc: New file.
68102         * modules/math-tests (Files): Add it.
68103         (Makefile.am): Compile it for test-math-c++.
68104         * tests/test-signal-c++2.cc: New file.
68105         * modules/signal-tests (Files): Add it.
68106         (Makefile.am): Compile it for test-signal-c++.
68107         * tests/test-stdio-c++2.cc: New file.
68108         * modules/stdio-tests (Files): Add it.
68109         (Makefile.am): Compile it for test-stdio-c++.
68110         * tests/test-stdlib-c++2.cc: New file.
68111         * modules/stdlib-tests (Files): Add it.
68112         (Makefile.am): Compile it for test-stdlib-c++.
68113         * tests/test-string-c++2.cc: New file.
68114         * modules/string-tests (Files): Add it.
68115         (Makefile.am): Compile it for test-string-c++.
68116         * tests/test-time-c++2.cc: New file.
68117         * modules/time-tests (Files): Add it.
68118         (Makefile.am): Compile it for test-time-c++.
68119         Reported by John W. Eaton <jwe@gnu.org>.
68121 2010-03-13  Bruno Haible  <bruno@clisp.org>
68123         * gnulib-tool (func_usage): Clarify which options are available for
68124         --create-testdir and --create-megatestdir.
68126 2010-03-13  Bruno Haible  <bruno@clisp.org>
68128         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
68129         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
68130         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
68131         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
68132         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
68133         when appropriate.
68134         Reported by Jim Meyering.
68136 2010-03-12  Simon Josefsson  <simon@josefsson.org>
68138         * gnulib-tool (func_import): Explain origin of code.
68140 2010-03-12  Bruno Haible  <bruno@clisp.org>
68142         Fix problem with automake's definition of CXXLINK.
68143         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
68144         Reported by Simon Josefsson and Ludovic Courtès.
68146 2010-03-12  Bruno Haible  <bruno@clisp.org>
68148         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
68149         stable releases.
68151 2010-03-11  Bruno Haible  <bruno@clisp.org>
68153         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
68154         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
68155         whether the system provides one variant or multiple variants of the
68156         function.
68157         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
68158         C++ compilers.
68159         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
68160         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
68161         Reported by Jim Meyering.
68163 2010-03-09  Simon Josefsson  <simon@josefsson.org>
68165         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
68167 2010-03-08  Bruno Haible  <bruno@clisp.org>
68169         gnulib-tool: Add support for --libtool in --create-testdir.
68170         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
68171         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
68173 2010-03-08  Eric Blake  <eblake@redhat.com>
68175         gnulib-tool.texi: mention possibility of git submodule
68176         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
68177         submodules.
68178         * doc/.gitignore: Ignore another generated file.
68180 2010-03-08  Karl Berry  <karl@gnu.org>
68182         * doc/gnulib-tool.texi (VCS Issues): Mention third option
68183         of committing gnulib files while skipping others.
68185 2010-03-07  Bruno Haible  <bruno@clisp.org>
68187         Tests of module 'wctype' in C++ mode.
68188         * tests/test-wctype-c++.cc: New file.
68189         * modules/wctype-tests (Files): Add it and tests/signature.h.
68190         (Depends-on): Add ansi-c++-opt.
68191         (Makefile.am): Arrange to compile and run test-wctype-c++.
68193         Tests of module 'wchar' in C++ mode.
68194         * tests/test-wchar-c++.cc: New file.
68195         * modules/wchar-tests (Files): Add it and tests/signature.h.
68196         (Depends-on): Add ansi-c++-opt.
68197         (Makefile.am): Arrange to compile and run test-wchar-c++.
68198         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
68199         gl_MODULE_INDICATOR.
68201         Tests of module 'unistd' in C++ mode.
68202         * tests/test-unistd-c++.cc: New file.
68203         * modules/unistd-tests (Files): Add it and tests/signature.h.
68204         (Depends-on): Add ansi-c++-opt.
68205         (Makefile.am): Arrange to compile and run test-unistd-c++.
68206         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
68207         gl_MODULE_INDICATOR.
68209         Tests of module 'time' in C++ mode.
68210         * tests/test-time-c++.cc: New file.
68211         * modules/time-tests (Files): Add it and tests/signature.h.
68212         (Depends-on): Add ansi-c++-opt.
68213         (Makefile.am): Arrange to compile and run test-time-c++.
68214         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68216         Tests of module 'sys_time' in C++ mode.
68217         * tests/test-sys_time-c++.cc: New file.
68218         * modules/sys_time-tests (Files): Add it and tests/signature.h.
68219         (Depends-on): Add ansi-c++-opt.
68220         (Makefile.am): Arrange to compile and run test-sys_time-c++.
68221         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
68222         gl_MODULE_INDICATOR.
68224         Tests of module 'sys_stat' in C++ mode.
68225         * tests/test-sys_stat-c++.cc: New file.
68226         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
68227         (Depends-on): Add ansi-c++-opt.
68228         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
68229         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
68230         gl_MODULE_INDICATOR.
68232         Tests of module 'sys_socket' in C++ mode.
68233         * tests/test-sys_socket-c++.cc: New file.
68234         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
68235         (Depends-on): Add ansi-c++-opt.
68236         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
68237         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
68238         gl_MODULE_INDICATOR.
68240         Tests of module 'sys_select' in C++ mode.
68241         * tests/test-sys_select-c++.cc: New file.
68242         * modules/sys_select-tests (Files): Add it and tests/signature.h.
68243         (Depends-on): Add ansi-c++-opt.
68244         (Makefile.am): Arrange to compile and run test-sys_select-c++.
68245         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
68246         gl_MODULE_INDICATOR.
68248         Tests of module 'sys_ioctl' in C++ mode.
68249         * tests/test-sys_ioctl-c++.cc: New file.
68250         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
68251         (Depends-on): Add ansi-c++-opt.
68252         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
68253         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
68254         gl_MODULE_INDICATOR.
68256         Tests of module 'string' in C++ mode.
68257         * tests/test-string-c++.cc: New file.
68258         * modules/string-tests (Files): Add it and tests/signature.h.
68259         (Depends-on): Add ansi-c++-opt.
68260         (Makefile.am): Arrange to compile and run test-string-c++.
68261         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
68262         gl_MODULE_INDICATOR.
68264         Tests of module 'stdlib' in C++ mode.
68265         * tests/test-stdlib-c++.cc: New file.
68266         * modules/stdlib-tests (Files): Add it and tests/signature.h.
68267         (Depends-on): Add ansi-c++-opt.
68268         (Makefile.am): Arrange to compile and run test-stdlib-c++.
68269         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
68270         gl_MODULE_INDICATOR.
68272         Tests of module 'stdio' in C++ mode.
68273         * tests/test-stdio-c++.cc: New file.
68274         * modules/stdio-tests (Files): Add it and tests/signature.h.
68275         (Depends-on): Add ansi-c++-opt.
68276         (Makefile.am): Arrange to compile and run test-stdio-c++.
68277         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
68278         gl_MODULE_INDICATOR.
68280         Tests of module 'spawn' in C++ mode.
68281         * tests/test-spawn-c++.cc: New file.
68282         * modules/spawn-tests (Files): Add it and tests/signature.h.
68283         (Depends-on): Add ansi-c++-opt.
68284         (Makefile.am): Arrange to compile and run test-spawn-c++.
68285         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
68286         gl_MODULE_INDICATOR.
68288         Tests of module 'signal' in C++ mode.
68289         * tests/test-signal-c++.cc: New file.
68290         * modules/signal-tests (Files): Add it and tests/signature.h.
68291         (Depends-on): Add ansi-c++-opt.
68292         (Makefile.am): Arrange to compile and run test-signal-c++.
68293         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
68294         gl_MODULE_INDICATOR.
68296         Tests of module 'search' in C++ mode.
68297         * tests/test-search-c++.cc: New file.
68298         * modules/search-tests (Files): Add it and tests/signature.h.
68299         (Depends-on): Add ansi-c++-opt.
68300         (Makefile.am): Arrange to compile and run test-search-c++.
68301         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
68302         gl_MODULE_INDICATOR.
68304         Tests of module 'math' in C++ mode.
68305         * tests/test-math-c++.cc: New file.
68306         * modules/math-tests (Files): Add it and tests/signature.h.
68307         (Depends-on): Add ansi-c++-opt.
68308         (Makefile.am): Arrange to compile and run test-math-c++.
68309         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
68311         Tests of module 'locale' in C++ mode.
68312         * tests/test-locale-c++.cc: New file.
68313         * modules/locale-tests (Files): Add it and tests/signature.h.
68314         (Depends-on): Add ansi-c++-opt.
68315         (Makefile.am): Arrange to compile and run test-locale-c++.
68316         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
68317         gl_MODULE_INDICATOR.
68319         Tests of module 'langinfo' in C++ mode.
68320         * tests/test-langinfo-c++.cc: New file.
68321         * modules/langinfo-tests (Files): Add it and tests/signature.h.
68322         (Depends-on): Add ansi-c++-opt.
68323         (Makefile.am): Arrange to compile and run test-langinfo-c++.
68324         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
68325         gl_MODULE_INDICATOR.
68327         Tests of module 'iconv-h' in C++ mode.
68328         * tests/test-iconv-h-c++.cc: New file.
68329         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
68330         (Depends-on): Add ansi-c++-opt.
68331         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
68333         Tests of module 'glob' in C++ mode.
68334         * tests/test-glob-c++.cc: New file.
68335         * modules/glob-tests (Files): Add it.
68336         (Depends-on): Add ansi-c++-opt.
68337         (Makefile.am): Arrange to compile and run test-glob-c++.
68339         Tests of module 'fcntl-h' in C++ mode.
68340         * tests/test-fcntl-h-c++.cc: New file.
68341         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
68342         (Depends-on): Add ansi-c++-opt.
68343         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
68344         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
68345         gl_MODULE_INDICATOR.
68347         Tests of module 'dirent' in C++ mode.
68348         * tests/test-dirent-c++.cc: New file.
68349         * modules/dirent-tests (Files): Add it and tests/signature.h.
68350         (Depends-on): Add ansi-c++-opt.
68351         (Makefile.am): Arrange to compile and run test-dirent-c++.
68352         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
68353         gl_MODULE_INDICATOR.
68355         New module 'ansi-c++-opt'.
68356         * modules/ansi-c++-opt: New file.
68357         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
68359         Document C++ namespace mode.
68360         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
68362         wctype: Avoid #define replacements in C++ mode.
68363         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
68364         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
68365         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
68366         In C++, define a namespaced alias symbol.
68367         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
68368         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
68369         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
68370         rule.
68372         wchar: Avoid #define replacements in C++ mode.
68373         * lib/wchar.in.h: Include c++defs.h.
68374         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
68375         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
68376         symbol.
68377         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
68378         * modules/wchar (Depends-on): Add c++defs.
68379         (Makefile.am): Update wchar.h rule.
68381         unistd: Avoid #define replacements in C++ mode.
68382         * lib/unistd.in.h: Include c++defs.h.
68383         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
68384         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
68385         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
68386         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
68387         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
68388         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
68389         symbol.
68390         (environ): Update.
68391         * modules/unistd (Depends-on): Add c++defs.
68392         (Makefile.am): Update unistd.h rule.
68394         time: Avoid #define replacements in C++ mode.
68395         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
68396         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
68397         define a namespaced alias symbol.
68398         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
68399         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
68400         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
68401         * modules/time (Depends-on): Add c++defs, warn-on-use.
68402         (Makefile.am): Update time.h rule.
68403         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
68404         * modules/nanosleep (configure.ac): Likewise.
68405         * modules/strptime (configure.ac): Likewise.
68406         * modules/timegm (configure.ac): Likewise.
68408         sys_time: Avoid #define replacements in C++ mode.
68409         * lib/sys_time.in.h: Include c++defs.h.
68410         (gettimeofday): In C++, define a namespaced alias symbol.
68411         * modules/sys_time (Depends-on): Add c++defs.
68412         (Makefile.am): Update sys/time.h rule.
68414         sys_stat: Avoid #define replacements in C++ mode.
68415         * lib/sys_stat.in.h: Include c++defs.h.
68416         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
68417         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
68418         namespaced alias symbol.
68419         In C++, define a namespaced alias symbol.
68420         * modules/sys_stat (Depends-on): Add c++defs.
68421         (Makefile.am): Update sys/stat.h rule.
68423         sys_socket: Avoid #define replacements in C++ mode.
68424         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
68425         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
68426         definitions also when the system has a <sys/socket.h>.
68427         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
68428         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
68429         In C++, define a namespaced alias symbol.
68430         * modules/sys_socket (Depends-on): Add c++defs.
68431         (Makefile.am): Update sys/socket.h rule.
68433         sys_select: Avoid #define replacements in C++ mode.
68434         * lib/sys_select.in.h: Include c++defs.h. Enable the function
68435         definitions also when the system has a <sys/select.h>.
68436         (select): In C++, define a namespaced alias symbol.
68437         * modules/sys_select (Depends-on): Add c++defs.
68438         (Makefile.am): Update sys/select.h rule.
68440         sys_ioctl: Avoid #define replacements in C++ mode.
68441         * lib/sys_ioctl.in.h: Include c++defs.h.
68442         (ioctl): In C++, define a namespaced alias symbol.
68443         * modules/sys_ioctl (Depends-on): Add c++defs.
68444         (Makefile.am): Update sys/ioctl.h rule.
68446         string: Avoid #define replacements in C++ mode.
68447         * lib/string.in.h: Include c++defs.h.
68448         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
68449         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
68450         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
68451         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
68452         strsignal, strverscmp): In C++, define a namespaced alias symbol.
68453         * modules/string (Depends-on): Add c++defs.
68454         (Makefile.am): Update string.h rule.
68456         stdlib: Avoid #define replacements in C++ mode.
68457         * lib/stdlib.in.h: Include c++defs.h.
68458         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
68459         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
68460         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
68461         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
68462         symbol.
68463         * modules/stdlib (Depends-on): Add c++defs.
68464         (Makefile.am): Update stdlib.h rule.
68466         stdio: Avoid #define replacements in C++ mode.
68467         * lib/stdio.in.h: Include c++defs.h.
68468         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
68469         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
68470         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
68471         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
68472         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
68473         namespaced alias symbol.
68474         * modules/stdio (Depends-on): Add c++defs.
68475         (Makefile.am): Update stdio.h rule.
68477         spawn: Avoid #define replacements in C++ mode.
68478         * lib/spawn.in.h: Include c++defs.h.
68479         (posix_spawn, posix_spawnp, posix_spawnattr_init,
68480         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
68481         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
68482         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
68483         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
68484         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
68485         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
68486         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
68487         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
68488         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
68489         In C++, define a namespaced alias symbol.
68490         * modules/spawn (Depends-on): Add c++defs.
68491         (Makefile.am): Update spawn.h rule.
68493         signal: Avoid #define replacements in C++ mode.
68494         * lib/signal.in.h: Include c++defs.h.
68495         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
68496         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
68497         namespaced alias symbol.
68498         * modules/signal (Depends-on): Add c++defs.
68499         (Makefile.am): Update signal.h rule.
68501         search: Avoid #define replacements in C++ mode.
68502         * lib/search.in.h: Include c++defs.h.
68503         (_gl_search_compar_fn, _gl_search_action_fn): New types.
68504         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
68505         symbol.
68506         * modules/search (Depends-on): Add c++defs.
68507         (Makefile.am): Update search.h rule.
68509         math: Avoid #define replacements in C++ mode.
68510         * lib/math.in.h: Include c++defs.h.
68511         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
68512         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
68513         trunc, truncl): In C++, define a namespaced alias symbol.
68514         * modules/math (Depends-on): Add c++defs.
68515         (Makefile.am): Update math.h rule.
68517         locale: Avoid #define replacements in C++ mode.
68518         * lib/locale.in.h: Include c++defs.h.
68519         (duplocale): In C++, define a namespaced alias symbol.
68520         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
68521         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
68522         * modules/locale (Depends-on): Add c++defs.
68523         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
68525         langinfo: Avoid #define replacements in C++ mode.
68526         * lib/langinfo.in.h: Include c++defs.h.
68527         (nl_langinfo): In C++, define a namespaced alias symbol.
68528         * modules/langinfo (Depends-on): Add c++defs.
68529         (Makefile.am): Update langinfo.h rule.
68531         iconv-h: Avoid #define replacements in C++ mode.
68532         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
68533         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
68534         symbol.
68535         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
68536         whenever iconv is present.
68537         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
68538         (Makefile.am): Update iconv.h rule.
68540         glob: Avoid #define replacements in C++ mode.
68541         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
68542         (_gl_glob_errfunc_fn): New type.
68543         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
68544         symbol.
68545         * modules/glob (Depends-on): Add c++defs, warn-on-use.
68546         (Makefile.am): Update glob.h rule.
68548         fcntl-h: Avoid #define replacements in C++ mode.
68549         * lib/fcntl.in.h: Include c++defs.h.
68550         (fcntl, open, openat): In C++, define a namespaced alias symbol.
68551         * modules/fcntl-h (Depends-on): Add c++defs.
68552         (Makefile.am): Update fcntl.h rule.
68554         dirent: Avoid #define replacements in C++ mode.
68555         * lib/dirent.in.h: Include c++defs.h.
68556         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
68557         namespaced alias symbol.
68558         (dirfd): Update declaration.
68559         * modules/dirent (Depends-on): Add c++defs.
68560         (Makefile.am): Update dirent.h rule.
68562         ctype: Make it usable in C++ code.
68563         * lib/ctype.in.h: Include c++defs.h.
68564         (isblank): Declare as extern "C".
68565         * modules/ctype (Depends-on): Add c++defs.
68566         (Makefile.am): Update ctype.h rule.
68568         New module 'c++defs'.
68569         * modules/c++defs: New file.
68570         * build-aux/c++defs.h: New file.
68571         Reported by John W. Eaton <jwe@gnu.org>.
68573 2010-03-07  Bruno Haible  <bruno@clisp.org>
68575         logb: Provide missing declaration for Cygwin.
68576         * lib/math.in.h (logb): New declaration.
68577         * m4/logb.m4: New file.
68578         * modules/logb (Files): Add m4/logb.m4.
68579         (Depends-on): Add math.
68580         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
68581         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
68582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
68583         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
68584         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
68586 2010-03-07  Bruno Haible  <bruno@clisp.org>
68588         Fix test-cond link error.
68589         * tests/test-cond.c: Include <stdio.h>.
68591 2010-03-07  Bruno Haible  <bruno@clisp.org>
68593         Fix test-dirent-safer link error.
68594         * modules/dirent-safer-tests (Makefile.am): Define
68595         test_dirent_safer_LDADD.
68597 2010-03-07  Bruno Haible  <bruno@clisp.org>
68599         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
68600         among default module list.
68602 2010-03-07  Bruno Haible  <bruno@clisp.org>
68604         Fix link error on platforms with GNU libiconv.
68605         * modules/unistr/u8-strcoll-tests (Makefile): Define
68606         test_u8_strcoll_LDADD.
68607         * modules/unistr/u16-strcoll-tests (Makefile): Define
68608         test_u16_strcoll_LDADD.
68609         * modules/unistr/u32-strcoll-tests (Makefile): Define
68610         test_u32_strcoll_LDADD.
68612 2010-03-07  Bruno Haible  <bruno@clisp.org>
68614         Use POSIX declarations for socket functions.
68615         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
68616         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
68617         rpl_sendto): Change declaration to match POSIX.
68618         * lib/connect.c (rpl_connect): Likewise.
68619         * lib/accept.c (rpl_accept): Likewise.
68620         * lib/bind.c (rpl_bind): Likewise.
68621         * lib/getpeername.c (rpl_getpeername): Likewise.
68622         * lib/getsockname.c (rpl_getsockname): Likewise.
68623         * lib/recv.c (rpl_recv): Likewise.
68624         * lib/send.c (rpl_send): Likewise.
68625         * lib/recvfrom.c (rpl_recvfrom): Likewise.
68626         * lib/sendto.c (rpl_sendto): Likewise.
68628 2010-03-06  Bruno Haible  <bruno@clisp.org>
68630         Clarify access, euidaccess, faccessat.
68631         * doc/posix-functions/faccessat.texi: Mention security problem under
68632         "Other problems", not "Portability problems".
68633         * doc/posix-functions/access.texi: Likewise. Mention a related security
68634         problem.
68635         * doc/glibc-functions/euidaccess.texi: Mention security problems.
68636         * lib/euidaccess.c: Add comments about platforms.
68637         * lib/unistd.in.h (access, euidaccess): Add warnings.
68639 2010-03-07  Bruno Haible  <bruno@clisp.org>
68641         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
68642         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
68643         (POSIX_SPAWN_SETSCHEDULER): Likewise.
68644         (POSIX_SPAWN_USEVFORK): Define in a way that works when
68645         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68646         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
68647         declare when POSIX_SPAWN_SETSCHEDULER is zero.
68648         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
68649         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
68650         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
68651         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
68652         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
68653         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
68654         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
68655         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
68656         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
68657         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
68658         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
68659         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
68660         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
68661         Likewise.
68662         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
68663         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
68664         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
68665         Likewise.
68666         * tests/test-spawn.c (main): Make it work when
68667         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
68669 2010-03-07  Bruno Haible  <bruno@clisp.org>
68671         Fix incorrect Makefile.am generation in German locale.
68672         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68673         Execute sed command with character range in C locale.
68675 2010-03-06  Bruno Haible  <bruno@clisp.org>
68677         Tests for module 'iconv-h'.
68678         * modules/iconv-h-tests: New file.
68679         * tests/test-iconv-h.c: New file.
68681         New module 'iconv-h'.
68682         * modules/iconv-h: New file.
68683         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
68684         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
68685         (configure.ac): Remove gl_ICONV_H.
68686         (Makefile.am): Remove rule for iconv.h.
68688 2010-03-06  Bruno Haible  <bruno@clisp.org>
68690         More consistent naming of *.m4 files.
68691         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
68692         * modules/wctype (Files): Update.
68694         More consistent naming of *.m4 files.
68695         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
68696         * modules/wchar (Files): Update.
68698 2010-03-06  Jim Meyering  <meyering@redhat.com>
68700         euidaccess: relax license to LGPLv2+
68701         * modules/euidaccess (License): Relax to LGPLv2+.
68703 2010-03-06  Bruno Haible  <bruno@clisp.org>
68705         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
68706         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
68707         (Makefile.am): Augment lib_SOURCES instead.
68709 2010-03-04  Jim Meyering  <meyering@redhat.com>
68711         utime: remove obsolete module
68712         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
68713         unnecessary for years, and has been marked as obsolete for 10 months.
68714         * modules/utime: Remove file.
68715         * lib/utime.c: Remove file.
68716         * m4/utime.m4: Remove file.
68717         * m4/utimes-null.m4: Remove file.
68718         * doc/posix-functions/utime.texi (utime): Remove reference to
68719         the module.  Move the sole "fixed by gnulib" item into the
68720         "problems not fixed by Gnulib" list.
68721         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
68723 2010-03-05  Simon Josefsson  <simon@josefsson.org>
68725         * modules/exit (License): Relax license to LGPLv2+.
68726         (Status): Mark as obsolete.
68727         * NEWS: Mention deprecated 'exit' module.
68728         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
68729         of now obsolete 'exit'.
68731 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68733         fts-lgpl: remove unused module
68734         * modules/fts-lgpl: Remove.
68735         * MODULES.html.sh (func_all_modules): Adjust.
68736         * check-module (find_included_lib_files): Adjust.
68737         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
68739 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
68741         copy-acl: enhance Solaris ACL error handling
68742         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
68743         * lib/set-mode-acl.c (qset_acl): Likewise.
68745 2010-03-02  Bruno Haible  <bruno@clisp.org>
68747         spawn: Don't override the system defined values on FreeBSD 8.
68748         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
68749         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
68750         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
68751         if HAVE_POSIX_SPAWN is 1.
68752         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
68754 2010-03-01  Bruno Haible  <bruno@clisp.org>
68756         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
68757         regarding Automake.
68759 2010-02-25  Bruno Haible  <bruno@clisp.org>
68761         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
68762         * gnulib-tool: Define 'echo' as a function only before the ksh alias
68763         setting, not afterwards.
68764         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
68766 2010-02-24  Eric Blake  <eblake@redhat.com>
68768         bootstrap, git-version-gen: use timestamp
68769         * build-aux/git-version-gen (scriptversion): Force UTC.
68770         * build-aux/bootstrap (scriptversion): New variable.
68772         bootstrap: allow older git
68773         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
68774         older than 1.6.4.  Requested by the libvirt project.
68776 2010-02-23  Eric Blake  <eblake@redhat.com>
68778         warn-on-use: work with old autoconf
68779         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
68780         AS_VAR semantics of autoconf 2.60.
68781         Reported by Bruno Haible.
68783         bootstrap: improve some comments
68784         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
68785         clarification comments.
68787         gettimeofday: provide correct function
68788         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
68789         when replacement is declared, otherwise provide gettimeofday.
68790         Reported by Michael Goffioul.
68792 2010-02-23  Jim Meyering  <meyering@redhat.com>
68794         lib-ignore: relax license to "unlimited", not LGPLv2+
68795         * modules/lib-ignore (License): Relax to "unlimited".
68797 2010-02-23  Jim Meyering  <meyering@redhat.com>
68799         lib-ignore: relax license to LGPLv2+
68800         * modules/lib-ignore (License): Relax to LGPLv2+.
68802 2010-02-22  Eric Blake  <eblake@redhat.com>
68804         lseek: avoid bash 3.2 broken pipe bug
68805         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
68806         warning from bash 3.2.
68807         Reported by Ben Pfaff, with analysis from Bruno Haible.
68809         bootstrap: support non-FSF copyright holder
68810         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
68811         bootstrap.conf override of COPYRIGHT_HOLDER.
68812         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
68814         bootstrap: interoperate with gettext 0.14.1
68815         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
68817         bootstrap: allow for alternate submodule location
68818         * build-aux/bootstrap (gnulib_path): New variable; use instead of
68819         hardcoding submodule location.
68820         (gnulib_mk): Allow direct use of Makefile.am.
68822         bootstrap: use GNULIB_SRCDIR to reduce disk usage
68823         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
68824         rather than reconfiguring where the submodule points.
68826         gettimeofday: restore support for platforms that lack function
68827         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
68828         replacement if function is missing.
68829         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
68830         * modules/sys_time (Makefile.am): Substitute it.
68831         * lib/sys_time.in.h (gettimeofday): Check it.
68832         Reported by Michael Goffioul.
68834 2010-02-21  Bruno Haible  <bruno@clisp.org>
68836         * lib/stdio.in.h (obstack_printf): Fix typo.
68838 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
68840         vc-list-files: use bzr ls's -R option
68841         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
68842         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
68844 2010-02-21  Jim Meyering  <meyering@redhat.com>
68846         init.sh: fix EXEEXT shims to work also for names like test-prog
68847         * tests/init.sh: Re-exec a better shell, when needed.
68848         If the current shell lacks support for posix $(...), an init.sh-using
68849         test will now try to find a shell that supports that.  If EXEEXT is
68850         nonempty, we also require support for hyphen-in-alias-name and shell
68851         substitutions like ${var#glob}.  Failure to find such a shell results
68852         in a skipped test.
68854 2010-02-21  Bruno Haible  <bruno@clisp.org>
68856         Really work around "broken pipe" error message from bash 3.2.
68857         * gnulib-tool (func_reset_sigpipe): Remove function.
68858         (echo): In bash 3.2, define to a function that uses printf.
68859         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
68861 2010-02-20  Bruno Haible  <bruno@clisp.org>
68863         Restore support for automake 1.9.6 with autoconf 2.61.
68864         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
68865         Reported by James Youngman <jay@gnu.org>.
68867 2010-02-20  Bruno Haible  <bruno@clisp.org>
68869         Improve *printf warning condition.
68870         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
68871         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
68872         and the function is overridden due to SIGPIPE emulation.
68874 2010-02-20  Bruno Haible  <bruno@clisp.org>
68876         * lib/stdio.in.h: Tweak comments.
68878 2010-02-19  Bruno Haible  <bruno@clisp.org>
68880         Make it easier to find modules. New gnulib-tool option '--find'.
68881         * gnulib-tool: New option --find.
68882         (func_usage): Document it.
68883         (func_sanitize_modulelist): New function, extracted from
68884         func_all_modules.
68885         (func_all_modules): Invoke it.
68886         * doc/gnulib-tool.texi (Which modules?): New node.
68888 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
68890         * lib/sys_select.in.h: Provide select replacement even if
68891         sys/select.h exists on a system, for Interix.
68893 2010-02-18  Jim Meyering  <meyering@redhat.com>
68895         init.sh: don't use $(...) just yet
68896         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
68897         to accommodate e.g., Solaris' /bin/sh.
68899 2010-02-17  Bruno Haible  <bruno@clisp.org>
68901         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
68902         Reported by Ludovic Courtès <ludo@gnu.org>.
68904 2010-02-16  Simon Josefsson  <simon@josefsson.org>
68906         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
68907         linking with -lintl.
68909 2010-02-17  Simon Josefsson  <simon@josefsson.org>
68911         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
68912         if not provided by the system's netdb.h.  Reported by
68913         ludo@gnu.org (Ludovic Courtès).
68915 2010-02-15  Jim Meyering  <meyering@redhat.com>
68917         init.sh: improve portability and efficiency
68918         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
68919         "dummy" in a for loop.
68920         Use '!', not '^' to select the complement of a character set used
68921         in a "case" statement.
68922         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
68923         Suggestions from Eric Blake.
68925         init.sh: automatically accommodate programs with the .exe suffix
68926         Automatically arrange for an invocation of "prog" to execute the
68927         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
68928         may use the simpler "prog", yet still work when built on a system
68929         that requires specifying the added suffix.
68930         Do this by constructing a function named "prog" that invokes
68931         "prog.exe" for each .exe file in selected directories.
68932         * tests/init.sh (find_exe_basenames_): New function.
68933         (create_exe_shim_functions_): New function.
68934         (path_prepend_): Use it.
68936         maint.mk: mark syntax-check sc_*.m rules as .PHONY
68937         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
68938         "make -t syntax-check" doesn't create a ton of sc_*.m files.
68940 2010-02-14  Jim Meyering  <meyering@redhat.com>
68942         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
68943         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
68944         (sc_prohibit_hash_pjw_without_use): New rule.
68946         maint.mk: allow the default upload destination dir to be overridden
68947         * top/maint.mk (upload_dest_dir_): Define with a default that
68948         preserves the status quo.
68949         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
68950         Reported by Peter Simons.
68952         maint.mk: prohibit inclusion of "hash.h" without_use
68953         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
68955 2010-02-10  Jim Meyering  <meyering@redhat.com>
68957         maint.mk: prohibit inclusion of "ignore-value.h" without_use
68958         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
68960 2010-02-09  Eric Blake  <ebb9@byu.net>
68961         and Bruno Haible  <bruno@clisp.org>
68963         obstack-printf-posix: ensure declaration
68964         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
68965         extracted from gl_FUNC_OBSTACK_PRINTF.
68966         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
68967         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
68968         Likewise.
68969         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
68970         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
68971         0.
68973 2010-02-08  Bruno Haible  <bruno@clisp.org>
68975         gnulib-tool: Fix typo in 2010-02-07 commit.
68976         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
68977         Reported by Eric Blake.
68979 2010-02-07  Bruno Haible  <bruno@clisp.org>
68981         gnulib-tool: Fix up caching patches.
68982         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
68983         option --no-cache. Use associative arrays when supported by the shell.
68984         (sed_comments): New variable.
68985         (modcache): Renamed from do_cache.
68986         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
68987         abbreviate unnecessarily.
68988         (have_associative): New variable.
68989         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
68990         way also for ksh and zsh.
68991         (func_init_sed_convert_to_cache_statements): New function, extracted
68992         from func_cache_lookup_module. Add support for associative arrays.
68993         Don't set the c_MODULE_cached variable here. Ignore all lines before
68994         the first field header. Remove only the final newline, not all trailing
68995         newlines. Support empty fields correctly. Limit the use of 'eval' to
68996         assignments.
68997         (func_get_description, func_get_status, func_get_notice,
68998         func_get_applicability, func_get_filelist, func_get_dependencies,
68999         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
69000         func_get_automake_snippet, func_get_include_directive,
69001         func_get_link_directive, func_get_license, func_get_maintainer):
69002         Update documentation. List the unoptimized code first. Add support for
69003         associative arrays. Limit the use of 'eval' to assignments.
69004         (func_get_applicability): Undo stylistic pessimisations.
69005         (func_get_automake_snippet, func_get_include_directive): Reduce code
69006         duplication.
69007         (func_modules_transitive_closure, func_modules_add_dummy,
69008         func_modules_notice, func_modules_to_filelist, func_add_file,
69009         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
69010         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
69011         func_create_testdir, func_create_megatestdir): Update documentation.
69013 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69015         * gnulib-tool (func_cache_lookup_module): Store the module name
69016         belonging to the cache variable; error out if two different
69017         module names map to the same cache variable name.
69019 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69021         gnulib-tool: Make caching optional.
69022         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
69023         Update matching short versions of --no-changelog.
69024         (func_usage): Update.
69025         (sed_extract_cache_prog): Renamed from ...
69026         (sed_extract_prog): ... this; revert to old extraction script.
69027         (func_get_description, func_get_status)
69028         (func_get_notice, func_get_applicability, func_get_filelist)
69029         (func_get_dependencies, func_get_autoconf_early_snippet)
69030         (func_get_autoconf_snippet, func_get_automake_snippet)
69031         (func_get_include_directive, func_get_link_directive)
69032         (func_get_license, func_get_maintainer): If $do_cache is false,
69033         use old, non-caching extraction scripts.
69034         Suggestion by Bruno Haible.
69036 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69038         gnulib-tool: cache module metainformation.
69039         * gnulib-tool (sed_extract_prog): Match newline before each
69040         header, and rewrite header to a shell variable suffix.
69041         (func_cache_var, func_cache_lookup_module): New functions,
69042         to turn a module name into a cache variable prefix, and to
69043         look up and cache module metainformation.
69044         (func_get_description, func_get_status)
69045         (func_get_notice, func_get_applicability, func_get_filelist)
69046         (func_get_dependencies, func_get_autoconf_early_snippet)
69047         (func_get_autoconf_snippet, func_get_automake_snippet)
69048         (func_get_include_directive, func_get_link_directive)
69049         (func_get_license, func_get_maintainer): Use
69050         func_cache_lookup_module.
69052 2010-02-07  Bruno Haible  <bruno@clisp.org>
69054         fnctl: Fix missing dependency.
69055         * modules/fcntl (Depends-on): Add getdtablesize.
69056         Reported by John W. Eaton <jwe@gnu.org>.
69058 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69060         Argp: fix recognition of short alias options.
69062         * lib/argp-parse.c (convert_options): Fix improper use of
69063         `|' between character values.
69064         * tests/test-argp.c (group1_option): New alias option
69065         --read (-r).
69066         (group1_parser): Special handling for 'r'.
69067         (test15): New test case.
69068         (test_fun): Add test15.
69069         * tests/test-argp-2.sh: Update expected --help and --usage
69070         outputs.
69072 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69074         * tests/test-argp.c: Fix indentation.
69076 2010-02-04  Eric Blake  <ebb9@byu.net>
69078         gettimeofday: expose type of second argument
69079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
69080         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
69081         * tests/test-gettimeofday.c: Use it to silence warning.
69082         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
69083         the issue.
69085 2010-02-03  Jim Meyering  <meyering@redhat.com>
69087         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
69088         * lib/regcomp.c (TYPE_SIGNED): Define.
69089         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
69091         regcomp.c: avoid a new -Wshadow warning
69092         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
69094 2010-02-01  Jim Meyering  <meyering@redhat.com>
69096         removing useless parentheses in cpp #define directives
69097         For motivation, see commit c0221df4, "define STREQ(a,b)
69098         consistently, removing useless parentheses"
69099         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
69100         * lib/mountlist.c (MNT_IGNORE): Likewise.
69101         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
69103 2010-02-01  Eric Blake  <ebb9@byu.net>
69105         sys_time: use link-warning
69106         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
69107         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
69108         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
69109         * modules/sys_time (Depends-on): Add warn-on-use.
69110         (Makefile.am): Always build replacement.
69111         (configure.ac): Update substitutions.
69112         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
69113         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
69114         bother with SYS_TIME_H.
69115         * modules/gettimeofday (configure.ac): Declare indicator.
69116         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
69117         in use.
69119         closein-tests: silence compiler warning
69120         * tests/test-closein.c (main): Ignore fread result.
69121         * modules/closein-tests (Depends-on): Add ignore-value.
69123         tests: silence warning about system return
69124         * tests/test-areadlink-with-size.c (main): Ignore system result.
69125         * tests/test-areadlink.c (main): Likewise.
69126         * tests/test-areadlinkat-with-size.c (main): Likewise.
69127         * tests/test-areadlinkat.c (main): Likewise.
69128         * tests/test-canonicalize-lgpl.c (main): Likewise.
69129         * tests/test-canonicalize.c (main): Likewise.
69130         * tests/test-chown.c (main): Likewise.
69131         * tests/test-fchownat.c (main): Likewise.
69132         * tests/test-fdutimensat.c (main): Likewise.
69133         * tests/test-fstatat.c (main): Likewise.
69134         * tests/test-futimens.c (main): Likewise.
69135         * tests/test-lchown.c (main): Likewise.
69136         * tests/test-link.c (main): Likewise.
69137         * tests/test-linkat.c (main): Likewise.
69138         * tests/test-lstat.c (main): Likewise.
69139         * tests/test-mkdir.c (main): Likewise.
69140         * tests/test-mkdirat.c (main): Likewise.
69141         * tests/test-mkfifo.c (main): Likewise.
69142         * tests/test-mkfifoat.c (main): Likewise.
69143         * tests/test-mknod.c (main): Likewise.
69144         * tests/test-readlink.c (main): Likewise.
69145         * tests/test-remove.c (main): Likewise.
69146         * tests/test-rename.c (main): Likewise.
69147         * tests/test-renameat.c (main): Likewise.
69148         * tests/test-rmdir.c (main): Likewise.
69149         * tests/test-symlink.c (main): Likewise.
69150         * tests/test-symlinkat.c (main): Likewise.
69151         * tests/test-unlink.c (main): Likewise.
69152         * tests/test-unlinkat.c (main): Likewise.
69153         * tests/test-utimens.c (main): Likewise.
69154         * tests/test-utimensat.c (main): Likewise.
69155         * modules/areadlink-tests (Depends-on): Add ignore-value.
69156         * modules/areadlink-with-size-tests (Depends-on): Likewise.
69157         * modules/areadlinkat-tests (Depends-on): Likewise.
69158         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
69159         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69160         * modules/canonicalize-tests (Depends-on): Likewise.
69161         * modules/chown-tests (Depends-on): Likewise.
69162         * modules/fdutimensat-tests (Depends-on): Likewise.
69163         * modules/futimens-tests (Depends-on): Likewise.
69164         * modules/lchown-tests (Depends-on): Likewise.
69165         * modules/link-tests (Depends-on): Likewise.
69166         * modules/linkat-tests (Depends-on): Likewise.
69167         * modules/lstat-tests (Depends-on): Likewise.
69168         * modules/mkdir-tests (Depends-on): Likewise.
69169         * modules/mkfifo-tests (Depends-on): Likewise.
69170         * modules/mkfifoat-tests (Depends-on): Likewise.
69171         * modules/mknod-tests (Depends-on): Likewise.
69172         * modules/openat-tests (Depends-on): Likewise.
69173         * modules/readlink-tests (Depends-on): Likewise.
69174         * modules/remove-tests (Depends-on): Likewise.
69175         * modules/rename-tests (Depends-on): Likewise.
69176         * modules/renameat-tests (Depends-on): Likewise.
69177         * modules/rmdir-tests (Depends-on): Likewise.
69178         * modules/symlink-tests (Depends-on): Likewise.
69179         * modules/symlinkat-tests (Depends-on): Likewise.
69180         * modules/unlink-tests (Depends-on): Likewise.
69181         * modules/utimens-tests (Depends-on): Likewise.
69182         * modules/utimensat-tests (Depends-on): Likewise.
69184 2010-01-31  Bruno Haible  <bruno@clisp.org>
69186         Perform the same test for many <math.h> functions.
69187         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
69188         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
69189         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
69190         of gl_MATHFUNC.
69191         * modules/acos (configure.ac): Likewise.
69192         * modules/asin (configure.ac): Likewise.
69193         * modules/atan (configure.ac): Likewise.
69194         * modules/atan2 (configure.ac): Likewise.
69195         * modules/cbrt (configure.ac): Likewise.
69196         * modules/copysign (configure.ac): Likewise.
69197         * modules/cos (configure.ac): Likewise.
69198         * modules/cosh (configure.ac): Likewise.
69199         * modules/erf (configure.ac): Likewise.
69200         * modules/erfc (configure.ac): Likewise.
69201         * modules/exp (configure.ac): Likewise.
69202         * modules/fmod (configure.ac): Likewise.
69203         * modules/hypot (configure.ac): Likewise.
69204         * modules/j0 (configure.ac): Likewise.
69205         * modules/j1 (configure.ac): Likewise.
69206         * modules/jn (configure.ac): Likewise.
69207         * modules/lgamma (configure.ac): Likewise.
69208         * modules/log (configure.ac): Likewise.
69209         * modules/log10 (configure.ac): Likewise.
69210         * modules/log1p (configure.ac): Likewise.
69211         * modules/pow (configure.ac): Likewise.
69212         * modules/remainder (configure.ac): Likewise.
69213         * modules/sin (configure.ac): Likewise.
69214         * modules/sinh (configure.ac): Likewise.
69215         * modules/tan (configure.ac): Likewise.
69216         * modules/tanh (configure.ac): Likewise.
69217         * modules/y0 (configure.ac): Likewise.
69218         * modules/y1 (configure.ac): Likewise.
69219         * modules/yn (configure.ac): Likewise.
69220         Suggested by Paolo Bonzini.
69222 2010-01-31  Bruno Haible  <bruno@clisp.org>
69224         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
69226 2010-01-31  Bruno Haible  <bruno@clisp.org>
69228         Work around getdelim() bug on FreeBSD 8.0.
69229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
69230         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
69231         not work.
69232         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
69233         is 1.
69234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
69235         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
69236         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
69237         a non-zero size.
69238         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
69240 2010-01-31  Bruno Haible  <bruno@clisp.org>
69242         Work around getline() bug on FreeBSD 8.0.
69243         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
69244         and a non-zero size.
69245         * tests/test-getline.c (main): Likewise.
69246         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
69247         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
69249 2010-01-28  Eric Blake  <ebb9@byu.net>
69251         regex: fix build failure
69252         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
69253         platforms.
69255 2010-01-28  Jim Meyering  <meyering@redhat.com>
69257         regex: do not ignore memory allocation failure
69258         * lib/regex_internal.c (create_cd_newstate): Detect
69259         re_node_set_init_copy failure.   Extracted from glibc commit
69260         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69262         regex: sync more white-space changes from libc
69263         * lib/regex_internal.c: White-space only changes.
69264         * lib/regexec.c: Likewise.
69266         regex: add many uses of __attribute_warn_unused_result__
69267         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
69268         * lib/regexec.c: Likewise.
69269         Extracted from a messy glibc commit.
69271         regcomp.c: spelling and merge-artifact from glibc
69272         * lib/regcomp.c: Merge remainder of glibc's
69273         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69275         regcomp.c: sync white-space changes from glibc
69276         * lib/regcomp.c: Merge to accommodate white space
69277         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
69279         regcomp.c: do not ignore internal return values
69280         * lib/regcomp.c: Do not ignore internal return values.
69281         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
69282         but without its white-space changes and spelling fixes.
69284         regex_internal.h: define __attribute_warn_unused_result__
69285         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
69287         maint: add a syntax-check rule to check for vulnerable Makefile.in
69288         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
69290 2010-01-27  Jim Meyering  <meyering@redhat.com>
69292         ncftpput-ftp: clean up spaces
69293         * build-aux/ncftpput-ftp: Make Copyright line consistent.
69294         Remove trailing blanks.
69296 2010-01-27  Simon Josefsson  <simon@josefsson.org>
69298         * build-aux/git-version-gen: Fix copyright statement.
69299         * build-aux/gnupload: Likewise.
69300         * tests/test-arcfour.c: Likewise.
69301         * tests/test-arctwo.c: Likewise.
69302         * tests/test-count-one-bits.c: Likewise.
69303         * tests/test-crc.c: Likewise.
69304         * tests/test-des.c: Likewise.
69305         * tests/test-gc-arcfour.c: Likewise.
69306         * tests/test-gc-arctwo.c: Likewise.
69307         * tests/test-gc-des.c: Likewise.
69308         * tests/test-gc-hmac-md5.c: Likewise.
69309         * tests/test-gc-hmac-sha1.c: Likewise.
69310         * tests/test-gc-md2.c: Likewise.
69311         * tests/test-gc-md4.c: Likewise.
69312         * tests/test-gc-md5.c: Likewise.
69313         * tests/test-gc-pbkdf2-sha1.c: Likewise.
69314         * tests/test-gc-rijndael.c: Likewise.
69315         * tests/test-gc-sha1.c: Likewise.
69316         * tests/test-gc.c: Likewise.
69317         * tests/test-gethostname.c: Likewise.
69318         * tests/test-gettimeofday.c: Likewise.
69319         * tests/test-hash.c: Likewise.
69320         * tests/test-hmac-md5.c: Likewise.
69321         * tests/test-hmac-sha1.c: Likewise.
69322         * tests/test-md2.c: Likewise.
69323         * tests/test-md4.c: Likewise.
69324         * tests/test-md5.c: Likewise.
69325         * tests/test-memchr.c: Likewise.
69326         * tests/test-memchr2.c: Likewise.
69327         * tests/test-memcmp.c: Likewise.
69328         * tests/test-memmem.c: Likewise.
69329         * tests/test-memrchr.c: Likewise.
69330         * tests/test-rawmemchr.c: Likewise.
69331         * tests/test-read-file.c: Likewise.
69332         * tests/test-rijndael.c: Likewise.
69333         * tests/test-sockets.c: Likewise.
69334         * tests/test-strchrnul.c: Likewise.
69335         * tests/test-strstr.c: Likewise.
69336         * tests/test-strtod.c: Likewise.
69337         * build-aux/ncftpput-ftp: Likewise.
69339 2010-01-26  Eric Blake  <ebb9@byu.net>
69341         ignore-value: update recommended header name
69342         * modules/ignore-value (Include): Only use <> for headers that
69343         exist in glibc.
69345 2010-01-26  Jim Meyering  <meyering@redhat.com>
69347         test-userspec.c: avoid compiler warnings
69348         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
69349         and "initialization discards qualifiers..." warnings.
69350         Put the first "uid" in its own scope, and make char* members "const".
69352 2010-01-25  Bruno Haible  <bruno@clisp.org>
69354         gnulib-tool: Make warning diagnostics consistent.
69355         * gnulib-tool (func_warning): New function.
69356         Use it everywhere where gnulib-tool produces output to stderr and it is
69357         not a fatal error.
69359 2010-01-25  Bruno Haible  <bruno@clisp.org>
69361         Fix test dependencies.
69362         * modules/xstrtol-tests (Depends-on): Add inttypes.
69363         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
69365 2010-01-25  Pádraig Brady  <P@draigBrady.com>
69367         syntax-check: detect incorrect boolean macro values in config.h
69368         * modules/maintainer-makefile (configure.ac): Parameterize the location
69369         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
69370         The logic is from Eric Blake and the location indicated by Jim Meyering.
69371         Note the more natural CONFIG_HEADER name is prohibited by automake
69372         for backwards compatibility reasons.
69373         * top/maint.mk (sc_Wundef_boolean): New rule.
69375 2010-01-25  Jim Meyering  <meyering@redhat.com>
69377         bootstrap: detect MacOS 10.6's shasum, too
69378         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
69379         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
69381 2010-01-23  Jim Meyering  <meyering@redhat.com>
69383         xstrtoll: new module
69384         * modules/xstrtoll: New file.
69385         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
69386         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
69387         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
69388         ./configure fails if you use this module and lack "long long".
69389         * modules/xstrtoll-tests: New module.
69390         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
69391         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
69392         new init.sh-based test framework.
69394 2010-01-24  Bruno Haible  <bruno@clisp.org>
69396         Tests for module 'yn'.
69397         * modules/yn-tests: New file.
69398         * tests/test-yn.c: New file.
69400         Tests for module 'y1'.
69401         * modules/y1-tests: New file.
69402         * tests/test-y1.c: New file.
69404         Tests for module 'y0'.
69405         * modules/y0-tests: New file.
69406         * tests/test-y0.c: New file.
69408         Tests for module 'tanh'.
69409         * modules/tanh-tests: New file.
69410         * tests/test-tanh.c: New file.
69412         Tests for module 'tan'.
69413         * modules/tan-tests: New file.
69414         * tests/test-tan.c: New file.
69416         Tests for module 'sqrt'.
69417         * modules/sqrt-tests: New file.
69418         * tests/test-sqrt.c: New file.
69420         Tests for module 'sinh'.
69421         * modules/sinh-tests: New file.
69422         * tests/test-sinh.c: New file.
69424         Tests for module 'sin'.
69425         * modules/sin-tests: New file.
69426         * tests/test-sin.c: New file.
69428         Tests for module 'rint'.
69429         * modules/rint-tests: New file.
69430         * tests/test-rint.c: New file.
69432         Tests for module 'remainder'.
69433         * modules/remainder-tests: New file.
69434         * tests/test-remainder.c: New file.
69436         Tests for module 'pow'.
69437         * modules/pow-tests: New file.
69438         * tests/test-pow.c: New file.
69440         Tests for module 'nextafter'.
69441         * modules/nextafter-tests: New file.
69442         * tests/test-nextafter.c: New file.
69444         Tests for module 'modf'.
69445         * modules/modf-tests: New file.
69446         * tests/test-modf.c: New file.
69448         Tests for module 'logb'.
69449         * modules/logb-tests: New file.
69450         * tests/test-logb.c: New file.
69452         Tests for module 'log1p'.
69453         * modules/log1p-tests: New file.
69454         * tests/test-log1p.c: New file.
69456         Tests for module 'log10'.
69457         * modules/log10-tests: New file.
69458         * tests/test-log10.c: New file.
69460         Tests for module 'log'.
69461         * modules/log-tests: New file.
69462         * tests/test-log.c: New file.
69464         Tests for module 'lgamma'.
69465         * modules/lgamma-tests: New file.
69466         * tests/test-lgamma.c: New file.
69468         Tests for module 'ldexp'.
69469         * modules/ldexp-tests: New file.
69470         * tests/test-ldexp.c: New file.
69472         Tests for module 'jn'.
69473         * modules/jn-tests: New file.
69474         * tests/test-jn.c: New file.
69476         Tests for module 'j1'.
69477         * modules/j1-tests: New file.
69478         * tests/test-j1.c: New file.
69480         Tests for module 'j0'.
69481         * modules/j0-tests: New file.
69482         * tests/test-j0.c: New file.
69484         Tests for module 'hypot'.
69485         * modules/hypot-tests: New file.
69486         * tests/test-hypot.c: New file.
69488         Tests for module 'fmod'.
69489         * modules/fmod-tests: New file.
69490         * tests/test-fmod.c: New file.
69492         Tests for module 'fabs'.
69493         * modules/fabs-tests: New file.
69494         * tests/test-fabs.c: New file.
69496         Tests for module 'exp'.
69497         * modules/exp-tests: New file.
69498         * tests/test-exp.c: New file.
69500         Tests for module 'erfc'.
69501         * modules/erfc-tests: New file.
69502         * tests/test-erfc.c: New file.
69504         Tests for module 'erf'.
69505         * modules/erf-tests: New file.
69506         * tests/test-erf.c: New file.
69508         Tests for module 'cosh'.
69509         * modules/cosh-tests: New file.
69510         * tests/test-cosh.c: New file.
69512         Tests for module 'cos'.
69513         * modules/cos-tests: New file.
69514         * tests/test-cos.c: New file.
69516         Tests for module 'copysign'.
69517         * modules/copysign-tests: New file.
69518         * tests/test-copysign.c: New file.
69520         Tests for module 'cbrt'.
69521         * modules/cbrt-tests: New file.
69522         * tests/test-cbrt.c: New file.
69524         Tests for module 'atan2'.
69525         * modules/atan2-tests: New file.
69526         * tests/test-atan2.c: New file.
69528         Tests for module 'atan'.
69529         * modules/atan-tests: New file.
69530         * tests/test-atan.c: New file.
69532         Tests for module 'asin'.
69533         * modules/asin-tests: New file.
69534         * tests/test-asin.c: New file.
69536         Tests for module 'acos'.
69537         * modules/acos-tests: New file.
69538         * tests/test-acos.c: New file.
69540 2010-01-24  Bruno Haible  <bruno@clisp.org>
69542         Fix tests for common <math.h> functions.
69543         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
69544         code snippet that references the function pointer, rather than merely
69545         calling the function. Substitute the FUNC_LIBM variable.
69546         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
69547         * modules/acos (configure.ac): Likewise.
69548         * modules/asin (configure.ac): Likewise.
69549         * modules/atan (configure.ac): Likewise.
69550         * modules/atan2 (configure.ac): Likewise.
69551         * modules/cbrt (configure.ac): Likewise.
69552         * modules/copysign (configure.ac): Likewise.
69553         * modules/cos (configure.ac): Likewise.
69554         * modules/cosh (configure.ac): Likewise.
69555         * modules/erf (configure.ac): Likewise.
69556         * modules/erfc (configure.ac): Likewise.
69557         * modules/exp (configure.ac): Likewise.
69558         * modules/fabs (configure.ac): Likewise.
69559         * modules/fmod (configure.ac): Likewise.
69560         * modules/hypot (configure.ac): Likewise.
69561         * modules/j0 (configure.ac): Likewise.
69562         * modules/j1 (configure.ac): Likewise.
69563         * modules/jn (configure.ac): Likewise.
69564         * modules/ldexp (configure.ac): Likewise.
69565         * modules/lgamma (configure.ac): Likewise.
69566         * modules/log (configure.ac): Likewise.
69567         * modules/log10 (configure.ac): Likewise.
69568         * modules/log1p (configure.ac): Likewise.
69569         * modules/logb (configure.ac): Likewise.
69570         * modules/modf (configure.ac): Likewise.
69571         * modules/nextafter (configure.ac): Likewise.
69572         * modules/pow (configure.ac): Likewise.
69573         * modules/remainder (configure.ac): Likewise.
69574         * modules/rint (configure.ac): Likewise.
69575         * modules/sin (configure.ac): Likewise.
69576         * modules/sinh (configure.ac): Likewise.
69577         * modules/tan (configure.ac): Likewise.
69578         * modules/tanh (configure.ac): Likewise.
69579         * modules/y0 (configure.ac): Likewise.
69580         * modules/y1 (configure.ac): Likewise.
69581         * modules/yn (configure.ac): Likewise.
69583 2010-01-24  Bruno Haible  <bruno@clisp.org>
69585         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
69586         * tests/test-acosl.c (x): New variable.
69587         (main): Store argument in x and fetch it from x.
69588         * tests/test-asinl.c (x): New variable.
69589         (main): Store argument in x and fetch it from x.
69590         * tests/test-atanl.c (x): New variable.
69591         (main): Store argument in x and fetch it from x.
69592         * tests/test-cosl.c (x): New variable.
69593         (main): Store argument in x and fetch it from x.
69594         * tests/test-expl.c (x): New variable.
69595         (main): Store argument in x and fetch it from x.
69596         * tests/test-logl.c (x): New variable.
69597         (main): Store argument in x and fetch it from x.
69598         * tests/test-sinl.c (x): New variable.
69599         (main): Store argument in x and fetch it from x.
69600         * tests/test-sqrtl.c (x): New variable.
69601         (main): Store argument in x and fetch it from x.
69602         * tests/test-tanl.c (x): New variable.
69603         (main): Store argument in x and fetch it from x.
69605 2010-01-24  Bruno Haible  <bruno@clisp.org>
69607         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
69608         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
69609         assignments to the initial TESTS_ENVIRONMENT.
69610         * doc/gnulib.texi (Unit test modules): Document it.
69611         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
69612         TESTS_ENVIRONMENT.
69613         * modules/btowc-tests (Makefile.am): Likewise.
69614         * modules/c-stack-tests (Makefile.am): Likewise.
69615         * modules/c-strcase-tests (Makefile.am): Likewise.
69616         * modules/copy-file-tests (Makefile.am): Likewise.
69617         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
69618         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
69619         * modules/mbrtowc-tests (Makefile.am): Likewise.
69620         * modules/mbscasecmp-tests (Makefile.am): Likewise.
69621         * modules/mbscasestr-tests (Makefile.am): Likewise.
69622         * modules/mbschr-tests (Makefile.am): Likewise.
69623         * modules/mbscspn-tests (Makefile.am): Likewise.
69624         * modules/mbsinit-tests (Makefile.am): Likewise.
69625         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
69626         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
69627         * modules/mbspbrk-tests (Makefile.am): Likewise.
69628         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
69629         * modules/mbsrchr-tests (Makefile.am): Likewise.
69630         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
69631         * modules/mbsspn-tests (Makefile.am): Likewise.
69632         * modules/mbsstr-tests (Makefile.am): Likewise.
69633         * modules/nl_langinfo-tests (Makefile.am): Likewise.
69634         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
69635         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
69636         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
69637         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
69638         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
69639         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
69640         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
69641         * modules/wcrtomb-tests (Makefile.am): Likewise.
69642         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
69643         * modules/wcsrtombs-tests (Makefile.am): Likewise.
69644         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
69645         assignments from TESTS_ENVIRONMENT.
69646         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
69647         augmentation.
69648         * modules/argp-version-etc-tests (Makefile.am): Likewise.
69649         * modules/atexit-tests (Makefile.am): Likewise.
69650         * modules/binary-io-tests (Makefile.am): Likewise.
69651         * modules/closein-tests (Makefile.am): Likewise.
69652         * modules/dprintf-posix-tests (Makefile.am): Likewise.
69653         * modules/exclude-tests (Makefile.am): Likewise.
69654         * modules/fflush-tests (Makefile.am): Likewise.
69655         * modules/fpending-tests (Makefile.am): Likewise.
69656         * modules/fprintf-posix-tests (Makefile.am): Likewise.
69657         * modules/freadahead-tests (Makefile.am): Likewise.
69658         * modules/freadptr-tests (Makefile.am): Likewise.
69659         * modules/freadseek-tests (Makefile.am): Likewise.
69660         * modules/fseek-tests (Makefile.am): Likewise.
69661         * modules/fseeko-tests (Makefile.am): Likewise.
69662         * modules/ftell-tests (Makefile.am): Likewise.
69663         * modules/ftello-tests (Makefile.am): Likewise.
69664         * modules/idpriv-drop-tests (Makefile.am): Likewise.
69665         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
69666         * modules/lseek-tests (Makefile.am): Likewise.
69667         * modules/parse-duration-tests (Makefile.am): Likewise.
69668         * modules/perror-tests (Makefile.am): Likewise.
69669         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
69670         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
69671         * modules/pipe-tests (Makefile.am): Likewise.
69672         * modules/pread-tests (Makefile.am): Likewise.
69673         * modules/printf-posix-tests (Makefile.am): Likewise.
69674         * modules/select-tests (Makefile.am): Likewise.
69675         * modules/sigpipe-tests (Makefile.am): Likewise.
69676         * modules/tsearch-tests (Makefile.am): Likewise.
69677         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
69678         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
69679         * modules/uniname/uniname-tests (Makefile.am): Likewise.
69680         * modules/uniwidth/width-tests (Makefile.am): Likewise.
69681         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
69682         * modules/version-etc-tests (Makefile.am): Likewise.
69683         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
69684         * modules/vprintf-posix-tests (Makefile.am): Likewise.
69685         * modules/xalloc-die-tests (Makefile.am): Likewise.
69686         * modules/xprintf-posix-tests (Makefile.am): Likewise.
69687         * modules/xstrtoimax-tests (Makefile.am): Likewise.
69688         * modules/xstrtol-tests (Makefile.am): Likewise.
69689         * modules/xstrtoumax-tests (Makefile.am): Likewise.
69690         * modules/yesno-tests (Makefile.am): Likewise.
69691         Suggested by Jim Meyering.
69693 2010-01-24  Bruno Haible  <bruno@clisp.org>
69695         More documentation.
69696         * doc/gnulib.texi (Writing modules): New chapter.
69697         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
69698         the new chapter.
69700 2010-01-24  Jim Meyering  <meyering@redhat.com>
69702         maint.mk: do not prepend "./" after filtering
69703         * top/maint.mk (_prepend_srcdir_prefix): New variable
69704         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
69705         "./" when $(srcdir) is ".".
69707         define STREQ(a,b) consistently, removing useless parentheses
69708         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
69709         since the only risk is that "a" or "b" contains an unparenthesized
69710         comma, but if either did that, STREQ would have 3 or more arguments.
69711         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
69712         * lib/fts.c (STREQ): Remove unnecessary parentheses.
69713         * lib/hash-triple.c (STREQ): Likewise.
69714         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
69715         * lib/getugroups.c (STREQ): Likewise.
69717 2010-01-23  Jim Meyering  <meyering@redhat.com>
69719         maint.mk: fix syntax-check in a non-srcdir build directory
69720         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
69721         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
69723 2010-01-22  Jim Meyering  <meyering@redhat.com>
69725         userspec: add unit tests
69726         * tests/test-userspec.c: New file.
69727         * modules/userspec-tests: Likewise.
69729 2010-01-21  Jim Meyering  <meyering@redhat.com>
69731         maint.mk: handle source file names containing "." robustly
69732         * top/maint.mk (_dot_escaped_srcdir): Define.
69733         (VC_LIST): Use it in LHS of sed substitution.
69735 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
69737         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
69738         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
69739         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
69740         from a non-srcdir build.
69742 2010-01-20  Eric Blake  <ebb9@byu.net>
69744         warn-on-use: use instead of link-warning
69745         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
69746         * modules/unistd (Depends-on, Makefile.am): Likewise.
69747         * modules/arpa_inet (Depends-on): Replace link-warning with
69748         warn-on-use.
69749         (Makefile.am): Update rules accordingly.
69750         * modules/ctype (Depends-on, Makefile.am): Likewise.
69751         * modules/dirent (Depends-on, Makefile.am): Likewise.
69752         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
69753         * modules/inttypes (Depends-on, Makefile.am): Likewise.
69754         * modules/langinfo (Depends-on, Makefile.am): Likewise.
69755         * modules/locale (Depends-on, Makefile.am): Likewise.
69756         * modules/math (Depends-on, Makefile.am): Likewise.
69757         * modules/search (Depends-on, Makefile.am): Likewise.
69758         * modules/signal (Depends-on, Makefile.am): Likewise.
69759         * modules/spawn (Depends-on, Makefile.am): Likewise.
69760         * modules/stdlib (Depends-on, Makefile.am): Likewise.
69761         * modules/string (Depends-on, Makefile.am): Likewise.
69762         * modules/strings (Depends-on, Makefile.am): Likewise.
69763         * modules/sys_file (Depends-on, Makefile.am): Likewise.
69764         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
69765         * modules/sys_select (Depends-on, Makefile.am): Likewise.
69766         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
69767         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
69768         * modules/sys_times (Depends-on, Makefile.am): Likewise.
69769         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
69770         * modules/wchar (Depends-on, Makefile.am): Likewise.
69771         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
69772         should be poisoned.
69773         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
69774         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
69775         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
69776         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69777         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
69778         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69779         * m4/math_h.m4 (gl_MATH_H): Likewise.
69780         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69781         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69782         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
69783         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69784         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69785         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69786         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
69787         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
69788         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
69789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69792         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
69793         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
69794         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69795         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69796         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
69797         GL_LINK_WARNING.
69798         * lib/ctype.in.h: Likewise.
69799         * lib/dirent.in.h: Likewise.
69800         * lib/fcntl.in.h: Likewise.
69801         * lib/inttypes.in.h: Likewise.
69802         * lib/langinfo.in.h: Likewise.
69803         * lib/locale.in.h: Likewise.
69804         * lib/math.in.h: Likewise.
69805         * lib/search.in.h: Likewise.
69806         * lib/signal.in.h: Likewise.
69807         * lib/spawn.in.h: Likewise.
69808         * lib/stdio.in.h: Likewise.
69809         * lib/stdlib.in.h: Likewise.
69810         * lib/string.in.h: Likewise.
69811         * lib/strings.in.h: Likewise.
69812         * lib/sys_file.in.h: Likewise.
69813         * lib/sys_ioctl.in.h: Likewise.
69814         * lib/sys_select.in.h: Likewise.
69815         * lib/sys_socket.in.h: Likewise.
69816         * lib/sys_stat.in.h: Likewise.
69817         * lib/sys_times.in.h: Likewise.
69818         * lib/sys_utsname.in.h: Likewise.
69819         * lib/unistd.in.h: Likewise.
69820         * lib/wchar.in.h: Likewise.
69822 2010-01-20  Bruno Haible  <bruno@clisp.org>
69824         Avoid duplicate -lm.
69825         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
69826         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
69827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
69828         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
69829         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
69830         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
69831         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
69832         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
69833         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
69834         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
69835         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
69836         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
69837         Reported by Paolo Bonzini.
69839 2010-01-19  Bruno Haible  <bruno@clisp.org>
69841         langinfo, nl_langinfo: Relicense under LGPLv2+.
69842         * modules/langinfo (License): Change to LGPLv2+.
69843         * modules/nl_langinfo (License): Likewise.
69844         Patch by David Lutterkort <lutter@redhat.com>.
69846 2010-01-19  Bruno Haible  <bruno@clisp.org>
69848         Avoid compilation error with cc on OSF/1 5.1.
69849         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
69850         statement, not before.
69851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69853 2010-01-18  Bruno Haible  <bruno@clisp.org>
69855         Avoid a link error due to the __printf__ symbol.
69856         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
69857         and 2.6.x.
69858         (__format__, __printf__): Remove definitions.
69859         * lib/argp-fmtstream.h: Likewise.
69860         * lib/argp.h: Likewise.
69861         * lib/error.h: Likewise.
69862         * lib/vasnprintf.h: Likewise.
69863         * lib/xprintf.h: Likewise.
69864         * lib/xvasprintf.h: Likewise.
69865         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69867 2010-01-18  Bruno Haible  <bruno@clisp.org>
69869         Tests for module 'tanl'.
69870         * modules/tanl-tests: New file.
69871         * tests/test-tanl.c: New file.
69873         Tests for module 'sqrtl'.
69874         * modules/sqrtl-tests: New file.
69875         * tests/test-sqrtl.c: New file.
69877         Tests for module 'sinl'.
69878         * modules/sinl-tests: New file.
69879         * tests/test-sinl.c: New file.
69881         Tests for module 'logl'.
69882         * modules/logl-tests: New file.
69883         * tests/test-logl.c: New file.
69885         Tests for module 'expl'.
69886         * modules/expl-tests: New file.
69887         * tests/test-expl.c: New file.
69889         Tests for module 'cosl'.
69890         * modules/cosl-tests: New file.
69891         * tests/test-cosl.c: New file.
69893         Tests for module 'atanl'.
69894         * modules/atanl-tests: New file.
69895         * tests/test-atanl.c: New file.
69897         Tests for module 'asinl'.
69898         * modules/asinl-tests: New file.
69899         * tests/test-asinl.c: New file.
69901         Tests for module 'acosl'.
69902         * modules/acosl-tests: New file.
69903         * tests/test-acosl.c: New file.
69905         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69906         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
69907         tanl): Use the standard gnulib idiom.
69908         * lib/cosl.c: Don't include trigl.c and sincosl.c.
69909         * lib/sinl.c: Likewise.
69910         * lib/tanl.c: Don't include trigl.c.
69911         (kernel_tanl): Make static.
69912         * lib/sincosl.c: Include trigl.h first.
69913         * lib/trigl.c: Likewise.
69914         * m4/acosl.m4: New file.
69915         * m4/asinl.m4: New file.
69916         * m4/atanl.m4: New file.
69917         * m4/cosl.m4: New file.
69918         * m4/expl.m4: New file.
69919         * m4/logl.m4: New file.
69920         * m4/sinl.m4: New file.
69921         * m4/sqrtl.m4: New file.
69922         * m4/tanl.m4: New file.
69923         * m4/mathl.m4: Remove file.
69924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
69925         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
69926         Don't initialize GNULIB_MATHL.
69927         * modules/acosl: New file.
69928         * modules/asinl: New file.
69929         * modules/atanl: New file.
69930         * modules/cosl: New file.
69931         * modules/expl: New file.
69932         * modules/logl: New file.
69933         * modules/sinl: New file.
69934         * modules/sqrtl: New file.
69935         * modules/tanl: New file.
69936         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
69937         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
69938         substitute GNULIB_MATHL.
69939         * modules/mathl: Rewritten.
69940         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
69941         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
69942         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
69943         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
69944         * doc/posix-functions/expl.texi: Mention the 'expl' module.
69945         * doc/posix-functions/logl.texi: Mention the 'logl' module.
69946         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
69947         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
69948         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
69950 2010-01-18  Bruno Haible  <bruno@clisp.org>
69952         sqrt: Make gl_FUNC_SQRT requirable.
69953         * m4/sqrt.m4: New file.
69954         * modules/sqrt (Files): Add it.
69955         (configure.ac): Invoke gl_FUNC_SQRT.
69957 2010-01-18  Bruno Haible  <bruno@clisp.org>
69959         New modules for common <math.h> functions.
69960         * m4/mathfunc.m4: New file.
69961         * modules/acos: New file.
69962         * modules/asin: New file.
69963         * modules/atan: New file.
69964         * modules/atan2: New file.
69965         * modules/cbrt: New file.
69966         * modules/copysign: New file.
69967         * modules/cos: New file.
69968         * modules/cosh: New file.
69969         * modules/erf: New file.
69970         * modules/erfc: New file.
69971         * modules/exp: New file.
69972         * modules/fabs: New file.
69973         * modules/fmod: New file.
69974         * modules/hypot: New file.
69975         * modules/j0: New file.
69976         * modules/j1: New file.
69977         * modules/jn: New file.
69978         * modules/ldexp: New file.
69979         * modules/lgamma: New file.
69980         * modules/log: New file.
69981         * modules/log10: New file.
69982         * modules/log1p: New file.
69983         * modules/logb: New file.
69984         * modules/modf: New file.
69985         * modules/nextafter: New file.
69986         * modules/pow: New file.
69987         * modules/remainder: New file.
69988         * modules/rint: New file.
69989         * modules/sin: New file.
69990         * modules/sinh: New file.
69991         * modules/sqrt: New file.
69992         * modules/tan: New file.
69993         * modules/tanh: New file.
69994         * modules/y0: New file.
69995         * modules/y1: New file.
69996         * modules/yn: New file.
69997         * doc/posix-functions/acos.texi: Mention the 'acos' module.
69998         * doc/posix-functions/asin.texi: Mention the 'asin' module.
69999         * doc/posix-functions/atan.texi: Mention the 'atan' module.
70000         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
70001         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
70002         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
70003         * doc/posix-functions/cos.texi: Mention the 'cos' module.
70004         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
70005         * doc/posix-functions/erf.texi: Mention the 'erf' module.
70006         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
70007         * doc/posix-functions/exp.texi: Mention the 'exp' module.
70008         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
70009         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
70010         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
70011         * doc/posix-functions/j0.texi: Mention the 'j0' module.
70012         * doc/posix-functions/j1.texi: Mention the 'j1' module.
70013         * doc/posix-functions/jn.texi: Mention the 'jn' module.
70014         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
70015         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
70016         * doc/posix-functions/log.texi: Mention the 'log' module.
70017         * doc/posix-functions/log10.texi: Mention the 'log10' module.
70018         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
70019         * doc/posix-functions/logb.texi: Mention the 'logb' module.
70020         * doc/posix-functions/modf.texi: Mention the 'modf' module.
70021         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
70022         * doc/posix-functions/pow.texi: Mention the 'pow' module.
70023         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
70024         * doc/posix-functions/rint.texi: Mention the 'rint' module.
70025         * doc/posix-functions/sin.texi: Mention the 'sin' module.
70026         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
70027         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
70028         * doc/posix-functions/tan.texi: Mention the 'tan' module.
70029         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
70030         * doc/posix-functions/y0.texi: Mention the 'y0' module.
70031         * doc/posix-functions/y1.texi: Mention the 'y1' module.
70032         * doc/posix-functions/yn.texi: Mention the 'yn' module.
70034 2010-01-18  Jim Meyering  <meyering@redhat.com>
70036         ignore-value: relax license to LGPLv2+
70037         * modules/ignore-value (License): Relax to LGPLv2+.
70039         getdate: don't leak when TZ contains two or more '"'s
70040         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
70041         double quote in TZ after the first one.
70043         readtokens: do not leak internal token_lengths buffer
70044         * lib/readtokens.c (readtokens): Free the local, lengths,
70045         when the supplied "token_lengths" parameter is NULL.
70047 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70049         Fix a couple of missing LIBTHREAD link failures on AIX.
70050         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
70051         $(LIBTHREAD).
70052         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
70054         Link test-poll against INET_PTON_LIB.
70055         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
70056         for inet_pton on Solaris 10.
70058 2010-01-17  Bruno Haible  <bruno@clisp.org>
70060         unistdio/*-sprintf: Fix typo in module description.
70061         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
70062         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
70063         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
70064         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
70065         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
70066         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
70067         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
70068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70070 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70072         gnulib-tool: fix filelist for AIX, HP-UX ksh.
70073         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
70074         variables in shell case patterns, for AIX and HP-UX ksh.
70076         Split large sed scripts, for HP-UX sed.
70077         * modules/stdio: Split sed scripts around 50 sed commands,
70078         to avoid HP-UX limit of 99 commands, in the near future.
70079         * modules/string: Likewise.
70080         * modules/unistd: Likewise.
70082         gnulib-tool: avoid writing in the current directory.
70083         * gnulib-tool (func_emit_lib_Makefile_am)
70084         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
70085         not in the current directory, so concurrent gnulib-tool
70086         instances do not interfere.
70088 2010-01-16  Jim Meyering  <meyering@redhat.com>
70090         doc: update users.txt
70091         * users.txt: Add grep.
70092         (diffutils, gzip): Update URLs.
70094 2010-01-12  Bruno Haible  <bruno@clisp.org>
70096         posix_spawn: Avoid test failure on Cygwin.
70097         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
70098         characters.
70099         Reported by Simon Josefsson.
70101 2010-01-12  Bruno Haible  <bruno@clisp.org>
70103         * tests/test-cond.c (main): When skipping the test, show the reason.
70105 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70107         * lib/striconv.c (str_cd_iconv): Avoid if before free.
70109 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70111         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
70112         VC_LIST_ALWAYS_EXCLUDE_REGEX.
70114 2010-01-12  Eric Blake  <ebb9@byu.net>
70116         build: guarantee AS_VAR_IF
70117         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
70118         (gl_AS_VAR_IF): Move...
70119         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
70120         Reported by Simon Josefsson.
70122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70124         * lib/stdio.in.h: Fix typo.
70126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70128         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
70129         libgpg-error.
70131 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70133         * tests/test-xalloc-die.sh: Use $EXEEXT.
70135 2010-01-12  Simon Josefsson  <simon@josefsson.org>
70136             Bruno Haible  <bruno@clisp.org>
70138         getlogin, getlogin_r: Avoid test failure.
70139         * tests/test-getlogin.c: Include <stdio.h>.
70140         (main): Skip the test when the function fails because stdin is not a
70141         tty.
70142         * tests/test-getlogin_r.c: Include <stdio.h>.
70143         (main): Skip the test when the function fails because stdin is not a
70144         tty.
70146 2010-01-11  Eric Blake  <ebb9@byu.net>
70148         tests: avoid more large file warnings
70149         * tests/test-fflush.c: Avoid warning about ftell use.
70150         * tests/test-fseek.c: Avoid warning about fseek use.
70152 2010-01-10  Bruno Haible  <bruno@clisp.org>
70154         nproc: Work better on Linux when /proc and /sys are not mounted.
70155         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
70156         as lower bound when, on glibc/Linux systems,
70157         sysconf (_SC_NPROCESSORS_CONF) returns 1.
70158         Suggested by Pádraig Brady <P@draigbrady.com>.
70159         Reported by Dmitry V. Levin <ldv@altlinux.org>.
70161         nproc: Refactor.
70162         * lib/nproc.c (num_processors_via_affinity_mask): New function,
70163         extracted from num_processors.
70164         (num_processors): Call it.
70166 2010-01-11  Jim Meyering  <meyering@redhat.com>
70168         utimecmp: avoid new warning from upcoming gcc-4.5.0
70169         * lib/utimecmp.c (BILLION): Define using #define rather than an
70170         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
70172 2010-01-11  Eric Blake  <ebb9@byu.net>
70174         math: add portability warnings for classification macros
70175         * modules/math (Depends-on): Add warn-on-use.
70176         (Makefile.am): Provide new substitutions.
70177         * m4/math_h.m4 (gl_MATH_H): Require inline.
70178         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
70179         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
70180         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
70181         implement warnings.
70183         unistd: warn on use of environ without module
70184         * modules/unistd (Depends-on): Add warn-on-use.
70185         (Makefile.am): Provide new substitutions.
70186         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
70187         * lib/unistd.in.h (environ): Wrap with a warning helper function.
70189         stdio: warn on suspicious uses
70190         * modules/stdio (Depends-on): Add warn-on-use.
70191         (Makefile.am): Provide new substitutions.
70192         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
70193         fseeko.
70194         * lib/stdio.in.h (gets): Always warn on use.
70195         (fseek, ftell): Adjust when warnings are issued, and honor
70196         _GL_NO_LARGE_FILES as a way to silence the warning.
70197         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
70198         any warning about large file offsets.
70199         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
70200         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
70201         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
70202         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
70203         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
70204         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
70205         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
70206         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
70208         warn-on-use: new module
70209         * modules/warn-on-use: New file.
70210         * build-aux/warn-on-use.h: Likewise.
70211         * m4/warn-on-use.m4: Likewise.
70212         * MODULES.html.sh (Support for building): Mention it.
70214 2010-01-10  Bruno Haible  <bruno@clisp.org>
70216         Tests for module 'unistr/u32-strdup'.
70217         * modules/unistr/u32-strdup-tests: New file.
70218         * tests/unistr/test-u32-strdup.c: New file.
70220         Tests for module 'unistr/u16-strdup'.
70221         * modules/unistr/u16-strdup-tests: New file.
70222         * tests/unistr/test-u16-strdup.c: New file.
70224         Tests for module 'unistr/u8-strdup'.
70225         * modules/unistr/u8-strdup-tests: New file.
70226         * tests/unistr/test-u8-strdup.c: New file.
70227         * tests/unistr/test-strdup.h: New file.
70229         Tests for module 'unistr/u32-strncmp'.
70230         * modules/unistr/u32-strncmp-tests: New file.
70231         * tests/unistr/test-u32-strncmp.c: New file.
70233         Tests for module 'unistr/u16-strncmp'.
70234         * modules/unistr/u16-strncmp-tests: New file.
70235         * tests/unistr/test-u16-strncmp.c: New file.
70237         Tests for module 'unistr/u8-strncmp'.
70238         * modules/unistr/u8-strncmp-tests: New file.
70239         * tests/unistr/test-u8-strncmp.c: New file.
70240         * tests/unistr/test-strncmp.h: New file.
70242         Tests for module 'unistr/u32-strcoll'.
70243         * modules/unistr/u32-strcoll-tests: New file.
70244         * tests/unistr/test-u32-strcoll.c: New file.
70246         Tests for module 'unistr/u16-strcoll'.
70247         * modules/unistr/u16-strcoll-tests: New file.
70248         * tests/unistr/test-u16-strcoll.c: New file.
70250         Tests for module 'unistr/u8-strcoll'.
70251         * modules/unistr/u8-strcoll-tests: New file.
70252         * tests/unistr/test-u8-strcoll.c: New file.
70254         Tests for module 'unistr/u32-strcmp'.
70255         * modules/unistr/u32-strcmp-tests: New file.
70256         * tests/unistr/test-u32-strcmp.c: New file.
70257         * tests/unistr/test-u32-strcmp.h: New file.
70259         Tests for module 'unistr/u16-strcmp'.
70260         * modules/unistr/u16-strcmp-tests: New file.
70261         * tests/unistr/test-u16-strcmp.c: New file.
70262         * tests/unistr/test-u16-strcmp.h: New file.
70264         Tests for module 'unistr/u8-strcmp'.
70265         * modules/unistr/u8-strcmp-tests: New file.
70266         * tests/unistr/test-u8-strcmp.c: New file.
70267         * tests/unistr/test-u8-strcmp.h: New file.
70268         * tests/unistr/test-strcmp.h: New file.
70270         Tests for module 'unistr/u32-strncat'.
70271         * modules/unistr/u32-strncat-tests: New file.
70272         * tests/unistr/test-u32-strncat.c: New file.
70274         Tests for module 'unistr/u16-strncat'.
70275         * modules/unistr/u16-strncat-tests: New file.
70276         * tests/unistr/test-u16-strncat.c: New file.
70278         Tests for module 'unistr/u8-strncat'.
70279         * modules/unistr/u8-strncat-tests: New file.
70280         * tests/unistr/test-u8-strncat.c: New file.
70281         * tests/unistr/test-strncat.h: New file.
70283         Tests for module 'unistr/u32-strcat'.
70284         * modules/unistr/u32-strcat-tests: New file.
70285         * tests/unistr/test-u32-strcat.c: New file.
70287         Tests for module 'unistr/u16-strcat'.
70288         * modules/unistr/u16-strcat-tests: New file.
70289         * tests/unistr/test-u16-strcat.c: New file.
70291         Tests for module 'unistr/u8-strcat'.
70292         * modules/unistr/u8-strcat-tests: New file.
70293         * tests/unistr/test-u8-strcat.c: New file.
70294         * tests/unistr/test-strcat.h: New file.
70296         Tests for module 'unistr/u32-stpncpy'.
70297         * modules/unistr/u32-stpncpy-tests: New file.
70298         * tests/unistr/test-u32-stpncpy.c: New file.
70300         Tests for module 'unistr/u16-stpncpy'.
70301         * modules/unistr/u16-stpncpy-tests: New file.
70302         * tests/unistr/test-u16-stpncpy.c: New file.
70304         Tests for module 'unistr/u8-stpncpy'.
70305         * modules/unistr/u8-stpncpy-tests: New file.
70306         * tests/unistr/test-u8-stpncpy.c: New file.
70307         * tests/unistr/test-stpncpy.h: New file.
70309         Tests for module 'unistr/u32-strncpy'.
70310         * modules/unistr/u32-strncpy-tests: New file.
70311         * tests/unistr/test-u32-strncpy.c: New file.
70313         Tests for module 'unistr/u16-strncpy'.
70314         * modules/unistr/u16-strncpy-tests: New file.
70315         * tests/unistr/test-u16-strncpy.c: New file.
70317         Tests for module 'unistr/u8-strncpy'.
70318         * modules/unistr/u8-strncpy-tests: New file.
70319         * tests/unistr/test-u8-strncpy.c: New file.
70320         * tests/unistr/test-strncpy.h: New file.
70322         Tests for module 'unistr/u32-stpcpy'.
70323         * modules/unistr/u32-stpcpy-tests: New file.
70324         * tests/unistr/test-u32-stpcpy.c: New file.
70326         Tests for module 'unistr/u16-stpcpy'.
70327         * modules/unistr/u16-stpcpy-tests: New file.
70328         * tests/unistr/test-u16-stpcpy.c: New file.
70330         Tests for module 'unistr/u8-stpcpy'.
70331         * modules/unistr/u8-stpcpy-tests: New file.
70332         * tests/unistr/test-u8-stpcpy.c: New file.
70333         * tests/unistr/test-stpcpy.h: New file.
70335         Tests for module 'unistr/u32-strcpy'.
70336         * modules/unistr/u32-strcpy-tests: New file.
70337         * tests/unistr/test-u32-strcpy.c: New file.
70339         Tests for module 'unistr/u16-strcpy'.
70340         * modules/unistr/u16-strcpy-tests: New file.
70341         * tests/unistr/test-u16-strcpy.c: New file.
70343         Tests for module 'unistr/u8-strcpy'.
70344         * modules/unistr/u8-strcpy-tests: New file.
70345         * tests/unistr/test-u8-strcpy.c: New file.
70346         * tests/unistr/test-strcpy.h: New file.
70348         Tests for module 'unistr/u32-strnlen'.
70349         * modules/unistr/u32-strnlen-tests: New file.
70350         * tests/unistr/test-u32-strnlen.c: New file.
70352         Tests for module 'unistr/u16-strnlen'.
70353         * modules/unistr/u16-strnlen-tests: New file.
70354         * tests/unistr/test-u16-strnlen.c: New file.
70356         Tests for module 'unistr/u8-strnlen'.
70357         * modules/unistr/u8-strnlen-tests: New file.
70358         * tests/unistr/test-u8-strnlen.c: New file.
70359         * tests/unistr/test-strnlen.h: New file.
70361         Tests for module 'unistr/u32-strlen'.
70362         * modules/unistr/u32-strlen-tests: New file.
70363         * tests/unistr/test-u32-strlen.c: New file.
70365         Tests for module 'unistr/u16-strlen'.
70366         * modules/unistr/u16-strlen-tests: New file.
70367         * tests/unistr/test-u16-strlen.c: New file.
70369         Tests for module 'unistr/u8-strlen'.
70370         * modules/unistr/u8-strlen-tests: New file.
70371         * tests/unistr/test-u8-strlen.c: New file.
70373         Tests for module 'unistr/u32-prev'.
70374         * modules/unistr/u32-prev-tests: New file.
70375         * tests/unistr/test-u32-prev.c: New file.
70377         Tests for module 'unistr/u16-prev'.
70378         * modules/unistr/u16-prev-tests: New file.
70379         * tests/unistr/test-u16-prev.c: New file.
70381         Tests for module 'unistr/u8-prev'.
70382         * modules/unistr/u8-prev-tests: New file.
70383         * tests/unistr/test-u8-prev.c: New file.
70385         Tests for module 'unistr/u32-next'.
70386         * modules/unistr/u32-next-tests: New file.
70387         * tests/unistr/test-u32-next.c: New file.
70389         Tests for module 'unistr/u16-next'.
70390         * modules/unistr/u16-next-tests: New file.
70391         * tests/unistr/test-u16-next.c: New file.
70393         Tests for module 'unistr/u8-next'.
70394         * modules/unistr/u8-next-tests: New file.
70395         * tests/unistr/test-u8-next.c: New file.
70397         Tests for module 'unistr/u32-strmbtouc'.
70398         * modules/unistr/u32-strmbtouc-tests: New file.
70399         * tests/unistr/test-u32-strmbtouc.c: New file.
70401         Tests for module 'unistr/u16-strmbtouc'.
70402         * modules/unistr/u16-strmbtouc-tests: New file.
70403         * tests/unistr/test-u16-strmbtouc.c: New file.
70405         Tests for module 'unistr/u8-strmbtouc'.
70406         * modules/unistr/u8-strmbtouc-tests: New file.
70407         * tests/unistr/test-u8-strmbtouc.c: New file.
70409         Tests for module 'unistr/u32-strmblen'.
70410         * modules/unistr/u32-strmblen-tests: New file.
70411         * tests/unistr/test-u32-strmblen.c: New file.
70413         Tests for module 'unistr/u16-strmblen'.
70414         * modules/unistr/u16-strmblen-tests: New file.
70415         * tests/unistr/test-u16-strmblen.c: New file.
70417         Tests for module 'unistr/u8-strmblen'.
70418         * modules/unistr/u8-strmblen-tests: New file.
70419         * tests/unistr/test-u8-strmblen.c: New file.
70421         Tests for module 'unistr/u32-cpy-alloc'.
70422         * modules/unistr/u32-cpy-alloc-tests: New file.
70423         * tests/unistr/test-u32-cpy-alloc.c: New file.
70425         Tests for module 'unistr/u16-cpy-alloc'.
70426         * modules/unistr/u16-cpy-alloc-tests: New file.
70427         * tests/unistr/test-u16-cpy-alloc.c: New file.
70429         Tests for module 'unistr/u8-cpy-alloc'.
70430         * modules/unistr/u8-cpy-alloc-tests: New file.
70431         * tests/unistr/test-u8-cpy-alloc.c: New file.
70432         * tests/unistr/test-cpy-alloc.h: New file.
70434         Tests for module 'unistr/u32-mbsnlen'.
70435         * modules/unistr/u32-mbsnlen-tests: New file.
70436         * tests/unistr/test-u32-mbsnlen.c: New file.
70438         Tests for module 'unistr/u16-mbsnlen'.
70439         * modules/unistr/u16-mbsnlen-tests: New file.
70440         * tests/unistr/test-u16-mbsnlen.c: New file.
70442         Tests for module 'unistr/u8-mbsnlen'.
70443         * modules/unistr/u8-mbsnlen-tests: New file.
70444         * tests/unistr/test-u8-mbsnlen.c: New file.
70446         Tests for module 'unistr/u32-chr'.
70447         * modules/unistr/u32-chr-tests: New file.
70448         * tests/unistr/test-u32-chr.c: New file.
70450         Tests for module 'unistr/u16-chr'.
70451         * modules/unistr/u16-chr-tests: New file.
70452         * tests/unistr/test-u16-chr.c: New file.
70454         Tests for module 'unistr/u8-chr'.
70455         * modules/unistr/u8-chr-tests: New file.
70456         * tests/unistr/test-u8-chr.c: New file.
70457         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
70459         Tests for module 'unistr/u32-cmp2'.
70460         * modules/unistr/u32-cmp2-tests: New file.
70461         * tests/unistr/test-u32-cmp2.c: New file.
70463         Tests for module 'unistr/u16-cmp2'.
70464         * modules/unistr/u16-cmp2-tests: New file.
70465         * tests/unistr/test-u16-cmp2.c: New file.
70467         Tests for module 'unistr/u8-cmp2'.
70468         * modules/unistr/u8-cmp2-tests: New file.
70469         * tests/unistr/test-u8-cmp2.c: New file.
70470         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
70472         Tests for module 'unistr/u32-cmp'.
70473         * modules/unistr/u32-cmp-tests: New file.
70474         * tests/unistr/test-u32-cmp.c: New file.
70476         Tests for module 'unistr/u16-cmp'.
70477         * modules/unistr/u16-cmp-tests: New file.
70478         * tests/unistr/test-u16-cmp.c: New file.
70480         Tests for module 'unistr/u8-cmp'.
70481         * modules/unistr/u8-cmp-tests: New file.
70482         * tests/unistr/test-u8-cmp.c: New file.
70483         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
70485         Tests for module 'unistr/u32-set'.
70486         * modules/unistr/u32-set-tests: New file.
70487         * tests/unistr/test-u32-set.c: New file.
70489         Tests for module 'unistr/u16-set'.
70490         * modules/unistr/u16-set-tests: New file.
70491         * tests/unistr/test-u16-set.c: New file.
70493         Tests for module 'unistr/u8-set'.
70494         * modules/unistr/u8-set-tests: New file.
70495         * tests/unistr/test-u8-set.c: New file.
70496         * tests/unistr/test-set.h: New file.
70498         Tests for module 'unistr/u32-move'.
70499         * modules/unistr/u32-move-tests: New file.
70500         * tests/unistr/test-u32-move.c: New file.
70502         Tests for module 'unistr/u16-move'.
70503         * modules/unistr/u16-move-tests: New file.
70504         * tests/unistr/test-u16-move.c: New file.
70506         Tests for module 'unistr/u8-move'.
70507         * modules/unistr/u8-move-tests: New file.
70508         * tests/unistr/test-u8-move.c: New file.
70509         * tests/unistr/test-move.h: New file.
70511         Tests for module 'unistr/u32-cpy'.
70512         * modules/unistr/u32-cpy-tests: New file.
70513         * tests/unistr/test-u32-cpy.c: New file.
70515         Tests for module 'unistr/u16-cpy'.
70516         * modules/unistr/u16-cpy-tests: New file.
70517         * tests/unistr/test-u16-cpy.c: New file.
70519         Tests for module 'unistr/u8-cpy'.
70520         * modules/unistr/u8-cpy-tests: New file.
70521         * tests/unistr/test-u8-cpy.c: New file.
70522         * tests/unistr/test-cpy.h: New file.
70524 2010-01-09  Bruno Haible  <bruno@clisp.org>
70526         Tests for module 'unistr/u32-uctomb'.
70527         * modules/unistr/u32-uctomb-tests: New file.
70528         * tests/unistr/test-u32-uctomb.c: New file.
70530         Tests for module 'unistr/u16-uctomb'.
70531         * modules/unistr/u16-uctomb-tests: New file.
70532         * tests/unistr/test-u16-uctomb.c: New file.
70534         Tests for module 'unistr/u8-uctomb'.
70535         * modules/unistr/u8-uctomb-tests: New file.
70536         * tests/unistr/test-u8-uctomb.c: New file.
70538         Tests for module 'unistr/u32-mbtoucr'.
70539         * modules/unistr/u32-mbtoucr-tests: New file.
70540         * tests/unistr/test-u32-mbtoucr.c: New file.
70542         Tests for module 'unistr/u16-mbtoucr'.
70543         * modules/unistr/u16-mbtoucr-tests: New file.
70544         * tests/unistr/test-u16-mbtoucr.c: New file.
70546         Tests for module 'unistr/u8-mbtoucr'.
70547         * modules/unistr/u8-mbtoucr-tests: New file.
70548         * tests/unistr/test-u8-mbtoucr.c: New file.
70550         Tests for module 'unistr/u32-mbtouc'.
70551         * modules/unistr/u32-mbtouc-tests: New file.
70552         * tests/unistr/test-u32-mbtouc.c: New file.
70554         Tests for module 'unistr/u16-mbtouc'.
70555         * modules/unistr/u16-mbtouc-tests: New file.
70556         * tests/unistr/test-u16-mbtouc.c: New file.
70558         Tests for module 'unistr/u8-mbtouc'.
70559         * modules/unistr/u8-mbtouc-tests: New file.
70560         * tests/unistr/test-u8-mbtouc.c: New file.
70562         Tests for module 'unistr/u32-mbtouc-unsafe'.
70563         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
70564         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
70565         * tests/unistr/test-u32-mbtouc.h: New file.
70567         Tests for module 'unistr/u16-mbtouc-unsafe'.
70568         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
70569         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
70570         * tests/unistr/test-u16-mbtouc.h: New file.
70572         Tests for module 'unistr/u8-mbtouc-unsafe'.
70573         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
70574         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
70575         * tests/unistr/test-u8-mbtouc.h: New file.
70577         Tests for module 'unistr/u32-mblen'.
70578         * modules/unistr/u32-mblen-tests: New file.
70579         * tests/unistr/test-u32-mblen.c: New file.
70581         Tests for module 'unistr/u16-mblen'.
70582         * modules/unistr/u16-mblen-tests: New file.
70583         * tests/unistr/test-u16-mblen.c: New file.
70585         Tests for module 'unistr/u8-mblen'.
70586         * modules/unistr/u8-mblen-tests: New file.
70587         * tests/unistr/test-u8-mblen.c: New file.
70589         Tests for module 'unistr/u32-to-u16'.
70590         * modules/unistr/u32-to-u16-tests: New file.
70591         * tests/unistr/test-u32-to-u16.c: New file.
70593         Tests for module 'unistr/u32-to-u8'.
70594         * modules/unistr/u32-to-u8-tests: New file.
70595         * tests/unistr/test-u32-to-u8.c: New file.
70597         Tests for module 'unistr/u16-to-u32'.
70598         * modules/unistr/u16-to-u32-tests: New file.
70599         * tests/unistr/test-u16-to-u32.c: New file.
70601         Tests for module 'unistr/u16-to-u8'.
70602         * modules/unistr/u16-to-u8-tests: New file.
70603         * tests/unistr/test-u16-to-u8.c: New file.
70605         Tests for module 'unistr/u8-to-u32'.
70606         * modules/unistr/u8-to-u32-tests: New file.
70607         * tests/unistr/test-u8-to-u32.c: New file.
70609         Tests for module 'unistr/u8-to-u16'.
70610         * modules/unistr/u8-to-u16-tests: New file.
70611         * tests/unistr/test-u8-to-u16.c: New file.
70613         Tests for module 'unistr/u32-check'.
70614         * modules/unistr/u32-check-tests: New file.
70615         * tests/unistr/test-u32-check.c: New file.
70617         Tests for module 'unistr/u16-check'.
70618         * modules/unistr/u16-check-tests: New file.
70619         * tests/unistr/test-u16-check.c: New file.
70621         Tests for module 'unistr/u8-check'.
70622         * modules/unistr/u8-check-tests: New file.
70623         * tests/unistr/test-u8-check.c: New file.
70625         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
70626         (category_equals): New function.
70627         (main): Add more tests.
70628         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
70630         * tests/unictype/test-bidi_byname.c (main): Add more tests.
70632 2010-01-10  Bruno Haible  <bruno@clisp.org>
70634         unistr/u*-strcoll: Try harder to distinguish different strings.
70635         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
70636         compare s1 and s2 to see if they are different.
70638 2010-01-10  Bruno Haible  <bruno@clisp.org>
70640         unistr/u*-stpncpy: Fix the return value.
70641         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
70642         description of the return value consistent with stpncpy in glibc.
70643         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
70644         written non-NUL unit.
70646 2010-01-10  Bruno Haible  <bruno@clisp.org>
70648         unistr/u*-next: Add missing dependencies.
70649         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
70650         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
70651         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
70653 2010-01-10  Bruno Haible  <bruno@clisp.org>
70655         unistr/u8-mbsnlen: Fix return value for incomplete character.
70656         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
70657         u8_mblen.
70658         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
70659         Remove unistr/u8-mblen.
70660         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
70661         u16_mblen.
70662         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
70663         Remove unistr/u16-mblen.
70665 2010-01-10  Bruno Haible  <bruno@clisp.org>
70667         wchar: Fix compilation error when <wchar.h> is used from coreutils.
70668         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
70669         Reported by Brian Gough <bjg@gnu.org> and
70670         Chris Clayton <chris2553@googlemail.com> via
70671         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
70673 2010-01-09  Bruno Haible  <bruno@clisp.org>
70675         unistr/u16-to-u32: Reject invalid input.
70676         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
70677         u16_mbtouc.
70678         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
70679         Remove unistr/u16-mbtouc.
70681         unistr/u16-to-u8: Reject invalid input.
70682         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
70683         u16_mbtouc.
70684         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
70685         Remove unistr/u16-mbtouc.
70687         unistr/u8-to-u32: Reject invalid input.
70688         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
70689         u8_mbtouc.
70690         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
70691         Remove unistr/u8-mbtouc.
70693         unistr/u8-to-u16: Reject invalid input.
70694         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
70695         u8_mbtouc.
70696         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
70697         Remove unistr/u8-mbtouc.
70699 2010-01-09  Bruno Haible  <bruno@clisp.org>
70701         Tests for module 'getlogin'.
70702         * modules/getlogin-tests: New file.
70703         * tests/test-getlogin.c: New file.
70705         New module 'getlogin'.
70706         * lib/unistd.in.h (getlogin): New declaration.
70707         * lib/getlogin.c: New file.
70708         * m4/getlogin.m4: New file.
70709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
70710         HAVE_GETLOGIN.
70711         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
70712         HAVE_GETLOGIN.
70713         * modules/getlogin: New file.
70714         * doc/posix-functions/getlogin.texi: Mention the new module.
70715         Reported by John W. Eaton <jwe@gnu.org>.
70717 2010-01-09  Bruno Haible  <bruno@clisp.org>
70719         getlogin_r: Support for native Windows.
70720         * lib/getlogin_r.c: Include <windows.h>
70721         (getlogin_r): Implement for native Windows.
70722         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
70723         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
70724         via John W. Eaton <jwe@gnu.org>.
70726 2010-01-09  Bruno Haible  <bruno@clisp.org>
70728         getlogin_r: Small fixes.
70729         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
70730         succeeds.
70731         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
70732         before testing whether getlogin_r is declared. No need to set
70733         HAVE_DECL_GETLOGIN_R to 1.
70734         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
70736 2010-01-09  Bruno Haible  <bruno@clisp.org>
70738         * lib/unistd.in.h (getlogin_r): Add comment.
70740 2010-01-09  Bruno Haible  <bruno@clisp.org>
70742         Tests for module 'getlogin_r'.
70743         * modules/getlogin_r-tests: New file.
70744         * tests/test-getlogin_r.c: New file.
70746 2010-01-09  Jim Meyering  <meyering@redhat.com>
70748         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
70749         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
70750         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
70752 2010-01-08  Simon Josefsson  <simon@josefsson.org>
70754         * lib/dup2.c (rpl_dup2): Improve comment.
70756 2010-01-08  Eric Blake  <ebb9@byu.net>
70758         maint.mk: allow packages to add makefile @@ exceptions
70759         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
70760         (sc_makefile_check): Rename...
70761         (sc_makefile_at_at_check): ...to this, and use hook.
70763         dup2: work around mingw bug
70764         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
70765         Reported by Simon Josefsson.
70767 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
70769         glob: Fix C++ compilation.
70770         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
70771         C++.
70773 2010-01-07  Bruno Haible  <bruno@clisp.org>
70775         Fix indentation of wctype.in.h, broken since 2007-01-06.
70776         * lib/wctype.in.h: Fix indentation of preprocessor directives.
70778 2010-01-07  Bruno Haible  <bruno@clisp.org>
70780         mbslen: Avoid collision with system function.
70781         * lib/string.in.h [MirBSD]: Include <wchar.h>.
70782         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
70783         * m4/mbslen.m4: New file.
70784         * modules/mbslen (Files): Add it.
70785         (configure.ac): Invoke gl_MBSLEN.
70786         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
70787         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
70788         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
70789         via Ian Beckwith <ianb@erislabs.net>.
70791 2010-01-07  Bruno Haible  <bruno@clisp.org>
70793         dirent: Document the last fix.
70794         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
70796 2010-01-07  Bruno Haible  <bruno@clisp.org>
70798         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
70799         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
70800         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
70801         va_list are defined.
70802         * doc/posix-headers/stdio.texi: Document the bug of missing types.
70803         Reported by Eric Blake.
70805 2010-01-07  Bruno Haible  <bruno@clisp.org>
70807         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
70808         * modules/xlist (Depends-on): Add 'list',
70809         * modules/xoset (Depends-on): Add 'oset'.
70810         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70812 2010-01-07  Bruno Haible  <bruno@clisp.org>
70814         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
70815         * doc/posix-functions/strncasecmp.texi: Likewise.
70817 2010-01-07  Bruno Haible  <bruno@clisp.org>
70819         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
70821 2010-01-07  John W. Eaton  <jwe@octave.org>
70823         wctype: allow C++ use
70824         * lib/wctype.in.h: Add extern "C" block for C++.
70826 2010-01-06  Eric Blake  <ebb9@byu.net>
70828         maint.mk: detect incorrect GFDL usage
70829         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
70831 2010-01-06  Jim Meyering  <meyering@redhat.com>
70832         and Eric Blake  <ebb9@byu.net>
70834         maint.mk: ignore multi-line copyright in NEWS
70835         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
70837 2010-01-06  Eric Blake  <ebb9@byu.net>
70839         select: add missing dependency
70840         * modules/select-tests (Depends-on): Move sockets dependency...
70841         * modules/select (Depends-on): ...here.
70842         Reported by Ian Beckwith.
70844         doc: regenerate INSTALL
70845         * doc/INSTALL: Reflect recent autoconf update.
70846         * doc/INSTALL.ISO: Likewise.
70847         * doc/INSTALL.UTF-8: Likewise.
70849         pread: fix compilation on glibc
70850         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
70851         Reported by Ralf Wildenhues.
70853         dirent: fix test failure
70854         * lib/dirent.in.h (includes): Guarantee ino_t.
70855         Reported by Ralf Wildenhues.
70857 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
70859         linkat, renameat: avoid bad free
70860         * lib/at-func2.c (at_func2): Fix typo.
70861         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
70863 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70865         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
70866         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
70867         to avoid failure of symlink test later.
70869 2010-01-06  Eric Blake  <ebb9@byu.net>
70871         stdio, unistd: guarantee ssize_t
70872         * lib/unistd.in.h (includes): Ensure that types required by POSIX
70873         2008 are exposed when needed.
70874         * lib/stdio.in.h (includes): Likewise.
70875         Reported by Ralf Wildenhues.
70877 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
70879         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
70880         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
70881         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
70883 2010-01-06  Jim Meyering  <meyering@redhat.com>
70885         readtokens: this module *does* require xalloc.h
70886         It uses only functions that were omitted by the old syntax-check rule.
70887         * lib/readtokens.c: Include "xalloc.h" once again.
70888         * modules/readtokens (Depends-on): Add xalloc.
70889         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
70891 2010-01-05  Eric Blake  <ebb9@byu.net>
70893         maint: support 'make announcement' from a VPATH build
70894         * top/maint.mk (announcement): Look for correct NEWS file.
70896 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
70898         utimens (fdutimens): ignore a negative FD, per contract
70899         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
70900         when we have a valid file descriptor.  Otherwise, using a brand
70901         new glibc (with just-patched futimens that now fails with EBADF)
70902         would cause this function to fail with ENOSYS.
70903         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
70904         See also http://bugzilla.redhat.com/552320.
70906 2010-01-05  Eric Blake  <ebb9@byu.net>
70908         strcase: document what it provides
70909         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
70910         gnulib module.
70911         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
70912         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
70914 2010-01-05  Jim Meyering  <meyering@redhat.com>
70916         maint: remove useless inclusions of "xalloc.h"
70917         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
70918         * lib/readtokens.c: Likewise.
70919         * lib/same.c: Likewise.
70920         * modules/getloadavg (Depends-on): Remove xalloc.
70921         * modules/readtokens: Likewise.
70922         * modules/same: Likewise.
70924         maint.mk: include 4 more function names in alloca.h-checking regexp
70925         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
70926         regexp.  Before, we would give a false-positive (saying alloca.h
70927         is included unnecessarily) when the only uses involved omitted symbols.
70929         xalloc.h: use consistent formatting
70930         * lib/xalloc.h: Move declarations to start in the first column.
70932 2010-01-05  Eric Blake  <ebb9@byu.net>
70934         mkdir: avoid xalloc
70935         * lib/mkdir.c (includes): Drop unused header.
70936         Reported by John W. Eaton.
70938 2010-01-04  Jim Meyering  <meyering@redhat.com>
70940         nl_langinfo: avoid configure-time syntax error
70941         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
70942         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
70943         the empty string.  Don't let that provoke a shell syntax error.
70945         regcomp, regexec, fnmatch: avoid array bounds read error
70946         * lib/regcomp.c (build_equiv_class): From glibc:
70947         Use only the low 24 bits of a findidx return value as an index
70948         into the weights array.  Patch by Ulrich Drepper:
70949         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
70950         * lib/regexec.c (check_node_accept_bytes): Likewise.
70951         * lib/fnmatch_loop.c (FCT): Likewise.
70953         regcomp: skip collseq lookup when there are no rules
70954         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
70955         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
70957         regcomp: recognize ill-formed { } expressions
70958         * lib/regcomp.c (parse_dup_op): From glibc:
70959         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
70961         regcomp: fix typo in comment
70962         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
70963         s/satisfy/satisfies/.
70965         regcomp: sync from glibc: remove dead store
70966         * lib/regcomp.c (duplicate_node_closure): Remove useless
70967         search_duplicated_node call and dead store.
70969         regcomp: sync from glibc; always use nl_langinfo
70970         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
70971         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
70972         * modules/regex (Depends-on): Add nl_langinfo.
70974 2010-01-04  Eric Blake  <ebb9@byu.net>
70976         fdopendir: fix configure test
70977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
70979 2010-01-01  Bruno Haible  <bruno@clisp.org>
70981         wchar: Remove unused configure check.
70982         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
70984 2010-01-01  Eric Blake  <ebb9@byu.net>
70986         headers: make check of system header explicit
70987         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
70988         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
70989         ourselves.
70990         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
70991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70992         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
70993         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
70994         internals.
70995         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
70996         missing.
70997         Suggested by Bruno Haible.
70999 2010-01-01  Jim Meyering  <meyering@redhat.com>
71001         ChangeLog: tweak to eliminate unnecessary copyright line
71002         * ChangeLog: Remove a copyright line that was mistakenly updated
71003         by today's update-copyright run.  Reported by Eric Blake.
71005         test-update-copyright: don't let envvar setting cause test failure
71006         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71008 2010-01-01  Bruno Haible  <bruno@clisp.org>
71010         localename: Avoid gcc warning.
71011         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
71012         function if it is not used.
71014 2010-01-01  Jim Meyering  <meyering@redhat.com>
71016         update nearly all FSF copyright year lists to include 2010
71017         Use the same procedure as for 2009, outlined in
71018         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
71020         version-etc: set COPYRIGHT_YEAR to 2010
71021         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
71023 2009-12-31  Eric Blake  <ebb9@byu.net>
71025         doc: correct availability of cygwin 1.5.x getopt
71026         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
71027         variables.
71028         * doc/posix-functions/opterr.texi (opterr): Likewise.
71029         * doc/posix-functions/optind.texi (optind): Likewise.
71030         * doc/posix-functions/optopt.texi (optopt): Likewise.
71031         * doc/posix-functions/tzname.texi (tzname): Likewise.
71033         openat: update maintainer
71034         * modules/openat (Maintainer): Add myself.
71036         utimens: avoid shadowing warning
71037         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
71038         buffers into one, to avoid shadowing, as well as avoiding a
71039         redundant stat.
71040         Reported by Jim Meyering.
71042         test-dup2: avoid compiler warning
71043         * tests/test-dup2.c (is_inheritable): Only define if used.
71045 2010-01-01  Bruno Haible  <bruno@clisp.org>
71047         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
71048         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
71049         defined, use wctomb instead of wcrtomb.
71051 2010-01-01  Bruno Haible  <bruno@clisp.org>
71053         iconv: Reject native Solaris iconv.
71054         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
71055         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
71057 2009-12-31  Bruno Haible  <bruno@clisp.org>
71059         * tests/test-signal.c (main): Remove test of 'SIG'.
71061 2009-12-31  Bruno Haible  <bruno@clisp.org>
71063         spawn: Fix incomplete fix.
71064         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71065         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71066         warnings for GNULIB_POSIXCHECK again.
71067         Reported by Eric Blake.
71069 2009-12-31  Bruno Haible  <bruno@clisp.org>
71071         Avoid namespace pollution on glibc systems.
71072         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
71073         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
71074         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
71075         glibc systems.
71077 2009-12-31  Bruno Haible  <bruno@clisp.org>
71079         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
71080         (gl_REPLACE_WCHAR_H): Turn into a no-op.
71081         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
71082         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
71083         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
71084         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
71085         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
71087 2009-12-31  Bruno Haible  <bruno@clisp.org>
71089         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71090         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
71091         afterwards.
71093 2009-12-31  Bruno Haible  <bruno@clisp.org>
71095         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
71096         SYS_UTSNAME_H.
71098 2009-12-31  Bruno Haible  <bruno@clisp.org>
71100         spawn: Fix misapplied patch.
71101         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
71102         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
71103         warnings for GNULIB_POSIXCHECK.
71105 2009-12-31  Bruno Haible  <bruno@clisp.org>
71107         times: Update after sys_times changed.
71108         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
71109         * modules/times (Files): Add it.
71110         (configure.ac): Invoke gl_FUNC_TIMES.
71112 2009-12-31  Bruno Haible  <bruno@clisp.org>
71114         Use AC_C_INLINE where necessary.
71115         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
71116         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
71117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71118         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
71119         * m4/mbfile.m4 (gl_MBFILE): Likewise.
71120         * m4/mbiter.m4 (gl_MBITER): Likewise.
71121         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71122         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
71123         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
71124         * modules/u64 (configure.ac): Likewise.
71126 2009-12-31  Bruno Haible  <bruno@clisp.org>
71128         Use AC_C_INLINE instead of module 'inline' where possible.
71129         * modules/inline (Description): Clarify purpose.
71130         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
71131         * modules/count-one-bits (Depends-on): Remove inline.
71132         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
71133         * modules/openat (Depends-on): Remove inline.
71134         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
71135         instead of depending on module 'inline'.
71136         * modules/filevercmp (Depends-on, configure.ac): Likewise.
71137         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
71138         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
71139         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
71140         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
71141         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
71142         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
71143         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
71144         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
71145         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
71146         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
71147         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
71148         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
71149         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
71150         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
71151         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
71152         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
71153         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
71154         Likewise.
71155         * modules/unictype/property-ascii-hex-digit (Depends-on,
71156         configure.ac): Likewise.
71157         * modules/unictype/property-bidi-arabic-digit (Depends-on,
71158         configure.ac): Likewise.
71159         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
71160         configure.ac): Likewise.
71161         * modules/unictype/property-bidi-block-separator (Depends-on,
71162         configure.ac): Likewise.
71163         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
71164         configure.ac): Likewise.
71165         * modules/unictype/property-bidi-common-separator (Depends-on,
71166         configure.ac): Likewise.
71167         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
71168         Likewise.
71169         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
71170         configure.ac): Likewise.
71171         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
71172         configure.ac): Likewise.
71173         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
71174         configure.ac): Likewise.
71175         * modules/unictype/property-bidi-european-digit (Depends-on,
71176         configure.ac): Likewise.
71177         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
71178         configure.ac): Likewise.
71179         * modules/unictype/property-bidi-left-to-right (Depends-on,
71180         configure.ac): Likewise.
71181         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
71182         configure.ac): Likewise.
71183         * modules/unictype/property-bidi-other-neutral (Depends-on,
71184         configure.ac): Likewise.
71185         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
71186         Likewise.
71187         * modules/unictype/property-bidi-segment-separator (Depends-on,
71188         configure.ac): Likewise.
71189         * modules/unictype/property-bidi-whitespace (Depends-on,
71190         configure.ac): Likewise.
71191         * modules/unictype/property-combining (Depends-on, configure.ac):
71192         Likewise.
71193         * modules/unictype/property-composite (Depends-on, configure.ac):
71194         Likewise.
71195         * modules/unictype/property-currency-symbol (Depends-on,
71196         configure.ac): Likewise.
71197         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
71198         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
71199         Likewise.
71200         * modules/unictype/property-default-ignorable-code-point (Depends-on,
71201         configure.ac): Likewise.
71202         * modules/unictype/property-deprecated (Depends-on, configure.ac):
71203         Likewise.
71204         * modules/unictype/property-diacritic (Depends-on, configure.ac):
71205         Likewise.
71206         * modules/unictype/property-extender (Depends-on, configure.ac):
71207         Likewise.
71208         * modules/unictype/property-format-control (Depends-on, configure.ac):
71209         Likewise.
71210         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
71211         Likewise.
71212         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
71213         Likewise.
71214         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
71215         Likewise.
71216         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
71217         Likewise.
71218         * modules/unictype/property-hyphen (Depends-on, configure.ac):
71219         Likewise.
71220         * modules/unictype/property-id-continue (Depends-on, configure.ac):
71221         Likewise.
71222         * modules/unictype/property-id-start (Depends-on, configure.ac):
71223         Likewise.
71224         * modules/unictype/property-ideographic (Depends-on, configure.ac):
71225         Likewise.
71226         * modules/unictype/property-ids-binary-operator (Depends-on,
71227         configure.ac): Likewise.
71228         * modules/unictype/property-ids-trinary-operator (Depends-on,
71229         configure.ac): Likewise.
71230         * modules/unictype/property-ignorable-control (Depends-on,
71231         configure.ac): Likewise.
71232         * modules/unictype/property-iso-control (Depends-on, configure.ac):
71233         Likewise.
71234         * modules/unictype/property-join-control (Depends-on, configure.ac):
71235         Likewise.
71236         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
71237         Likewise.
71238         * modules/unictype/property-line-separator (Depends-on, configure.ac):
71239         Likewise.
71240         * modules/unictype/property-logical-order-exception (Depends-on,
71241         configure.ac): Likewise.
71242         * modules/unictype/property-lowercase (Depends-on, configure.ac):
71243         Likewise.
71244         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
71245         * modules/unictype/property-non-break (Depends-on, configure.ac):
71246         Likewise.
71247         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
71248         Likewise.
71249         * modules/unictype/property-numeric (Depends-on, configure.ac):
71250         Likewise.
71251         * modules/unictype/property-other-alphabetic (Depends-on,
71252         configure.ac): Likewise.
71253         * modules/unictype/property-other-default-ignorable-code-point
71254         (Depends-on, configure.ac): Likewise.
71255         * modules/unictype/property-other-grapheme-extend (Depends-on,
71256         configure.ac): Likewise.
71257         * modules/unictype/property-other-id-continue (Depends-on,
71258         configure.ac): Likewise.
71259         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
71260         Likewise.
71261         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
71262         Likewise.
71263         * modules/unictype/property-other-math (Depends-on, configure.ac):
71264         Likewise.
71265         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
71266         Likewise.
71267         * modules/unictype/property-paired-punctuation (Depends-on,
71268         configure.ac): Likewise.
71269         * modules/unictype/property-paragraph-separator (Depends-on,
71270         configure.ac): Likewise.
71271         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
71272         Likewise.
71273         * modules/unictype/property-pattern-white-space (Depends-on,
71274         configure.ac): Likewise.
71275         * modules/unictype/property-private-use (Depends-on, configure.ac):
71276         Likewise.
71277         * modules/unictype/property-punctuation (Depends-on, configure.ac):
71278         Likewise.
71279         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
71280         Likewise.
71281         * modules/unictype/property-radical (Depends-on, configure.ac):
71282         Likewise.
71283         * modules/unictype/property-sentence-terminal (Depends-on,
71284         configure.ac): Likewise.
71285         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
71286         Likewise.
71287         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
71288         * modules/unictype/property-terminal-punctuation (Depends-on,
71289         configure.ac): Likewise.
71290         * modules/unictype/property-titlecase (Depends-on, configure.ac):
71291         Likewise.
71292         * modules/unictype/property-unassigned-code-value (Depends-on,
71293         configure.ac): Likewise.
71294         * modules/unictype/property-unified-ideograph (Depends-on,
71295         configure.ac): Likewise.
71296         * modules/unictype/property-uppercase (Depends-on, configure.ac):
71297         Likewise.
71298         * modules/unictype/property-variation-selector (Depends-on,
71299         configure.ac): Likewise.
71300         * modules/unictype/property-white-space (Depends-on, configure.ac):
71301         Likewise.
71302         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
71303         Likewise.
71304         * modules/unictype/property-xid-start (Depends-on, configure.ac):
71305         Likewise.
71306         * modules/unictype/property-zero-width (Depends-on, configure.ac):
71307         Likewise.
71308         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
71309         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
71310         Likewise.
71312 2009-12-31  Bruno Haible  <bruno@clisp.org>
71314         Remove unnecessary AC_C_INLINE invocation.
71315         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
71316         since 2009-08-21.
71318 2009-12-31  Jim Meyering  <meyering@redhat.com>
71320         maint.mk: don't require explicit gpg_key_ID in cfg.mk
71321         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
71322         With this change, we can all remove the gpg_key_ID = ... definition
71323         from our respective cfg.mk files.
71325         maint.mk: create announcement template in ~/, not in /tmp
71326         * top/maint.mk (emit_upload_commands): Adjust.
71327         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
71328         Remove temporary file, .ci-msg.
71330 2009-12-31  Eric Blake  <ebb9@byu.net>
71332         link-warning: always build headers with link warnings
71333         * modules/arpa_inet (Makefile.am): Always build replacement
71334         header.
71335         * modules/ctype (Makefile.am): Likewise.
71336         * modules/dirent (Makefile.am): Likewise.
71337         * modules/inttypes (Makefile.am): Likewise.
71338         * modules/langinfo (Makefile.am): Likewise.
71339         * modules/locale (Makefile.am): Likewise.
71340         * modules/spawn (Makefile.am): Likewise.
71341         * modules/sys_file (Makefile.am): Likewise.
71342         * modules/sys_ioctl (Makefile.am): Likewise.
71343         * modules/sys_select (Makefile.am): Likewise.
71344         * modules/sys_socket (Makefile.am): Likewise.
71345         * modules/sys_times (Makefile.am): Likewise.
71346         * modules/sys_utsname (Makefile.am): Likewise.
71347         * modules/sys_wait (Makefile.am): Likewise.
71348         * modules/wchar (Makefile.am): Likewise.
71349         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
71350         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
71351         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
71352         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
71353         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
71354         Likewise.
71355         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71356         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71357         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
71358         Likewise.
71359         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
71360         Likewise.
71361         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
71362         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
71363         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
71364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71365         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71366         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71367         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71368         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
71369         (gl_WCHAR_H_DEFAULTS): Likewise.
71371 2009-12-31  Eric Blake  <ebb9@byu.net>
71373         signal, spawn: use link warnings
71374         * lib/signal.in.h (sigset_t): Make unconditional.
71375         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
71376         (sigpending, sigprocmask, sigaction): Add link warnings.
71377         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
71378         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
71379         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
71380         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
71381         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
71382         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
71383         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
71384         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
71385         (posix_spawn_file_actions_destroy)
71386         (posix_spawn_file_actions_addopen)
71387         (posix_spawn_file_actions_addclose)
71388         (posix_spawn_file_actions_adddup2): Likewise.
71389         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
71390         * tests/test-signal.c (main): Enhance test.
71392         spawn: improve wrapper support
71393         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
71394         (gl_SPAWN_H_DEFAULTS): New defaults.
71395         * modules/spawn (Makefile.am): Substitute them.
71396         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
71397         Only declare if missing or broken.
71399         sys_times, sys_utsname: use include_next
71400         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
71401         header.
71402         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
71403         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
71404         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
71405         * modules/sys_times (Depends-on): Add include_next.
71406         (Makefile.am): Substitute additional values.
71407         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71408         * lib/sys_times.in.h (includes): Include native header, if
71409         available.
71410         * lib/sys_utsname.in.h (includes): Likewise.
71411         * tests/test-sys_times.c (main): Enhance test.
71413         fdutimensat: revert prior patch
71414         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
71415         utimens.h.
71416         Reported by Bruno Haible.
71418 2009-12-30  Eric Blake  <ebb9@byu.net>
71420         sys_wait: drop link-warning dependency
71421         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
71422         link-warning efforts.
71423         * lib/sys_wait.in.h: Likewise.
71425         fdutimensat: remove bogus dependency
71426         * modules/fdutimensat (Depends-on): Drop inline.
71428         unistd: fix typo
71429         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
71431 2009-12-30  Bruno Haible  <bruno@clisp.org>
71433         Fix compilation error with Solaris cc.
71434         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
71435         * lib/unicase/u16-is-invariant.c: Likewise.
71436         * lib/unicase/u32-is-invariant.c: Likewise.
71437         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71439 2009-12-30  Bruno Haible  <bruno@clisp.org>
71441         Fix test crash.
71442         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
71443         locales.
71444         Reported by Simon Josefsson <simon@josefsson.org>.
71446 2009-12-30  Bruno Haible  <bruno@clisp.org>
71448         Fix compilation error on most platforms.
71449         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
71450         Reported by Simon Josefsson <simon@josefsson.org>
71451         and Nelson H. F. Beebe <beebe@math.utah.edu>.
71453 2009-12-30  Eric Blake  <ebb9@byu.net>
71455         futimens, utimensat: work around ntfs-3g bug
71456         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
71457         a ctime bug is present, and expand workaround to cover ntfs-3g.
71458         * lib/utimens.c (fdutimens, lutimens): Likewise.
71459         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
71460         (validate_timespec): Adjust return value.
71461         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
71462         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
71463         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
71465 2009-12-29  Eric Blake  <ebb9@byu.net>
71467         link-warning: make usage consistent
71468         * modules/ctype (Depends-on): Add link-warning.
71469         (Makefile.am): Update rules accordingly.
71470         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71471         * modules/locale (Depends-on, Makefile.am): Likewise.
71472         * modules/sys_file (Makefile.am): Likewise.
71473         * modules/getopt-posix (Makefile.am): Delete unused link warning
71474         efforts.
71475         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
71476         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
71477         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
71478         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
71480         stdio: remove unused variables
71481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
71482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
71483         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
71485         tests: test more substitute headers
71486         * modules/ctype-tests: New file.
71487         * modules/dirent-tests: Likewise.
71488         * modules/spawn-tests: Likewise.
71489         * modules/sys_file-tests: Likewise.
71490         * modules/sys_ioctl-tests: Likewise.
71491         * modules/sys_wait-tests: Likewise.
71492         * tests/test-ctype.c: Likewise.
71493         * tests/test-dirent.c: Likewise.
71494         * tests/test-spawn.c: Likewise.
71495         * tests/test-sys_file.c: Likewise.
71496         * tests/test-sys_ioctl.c: Likewise.
71497         * tests/test-sys_wait.c: Likewise.
71498         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
71499         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
71500         whether or not flock is in use.
71502         tests: remove License section from module
71503         * modules/arpa_inet-tests: Remove unneeded section.
71504         * modules/byteswap-tests: Likewise.
71505         * modules/ceilf-tests: Likewise.
71506         * modules/ceill-tests: Likewise.
71507         * modules/crypto/des-tests: Likewise.
71508         * modules/crypto/gc-arcfour-tests: Likewise.
71509         * modules/crypto/gc-arctwo-tests: Likewise.
71510         * modules/crypto/gc-des-tests: Likewise.
71511         * modules/crypto/gc-hmac-md5-tests: Likewise.
71512         * modules/crypto/gc-hmac-sha1-tests: Likewise.
71513         * modules/crypto/gc-md2-tests: Likewise.
71514         * modules/crypto/gc-md4-tests: Likewise.
71515         * modules/crypto/gc-md5-tests: Likewise.
71516         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
71517         * modules/crypto/gc-rijndael-tests: Likewise.
71518         * modules/crypto/gc-sha1-tests: Likewise.
71519         * modules/crypto/gc-tests: Likewise.
71520         * modules/crypto/md2-tests: Likewise.
71521         * modules/crypto/md4-tests: Likewise.
71522         * modules/fcntl-h-tests: Likewise.
71523         * modules/floorf-tests: Likewise.
71524         * modules/floorl-tests: Likewise.
71525         * modules/frexp-nolibm-tests: Likewise.
71526         * modules/frexp-tests: Likewise.
71527         * modules/frexpl-nolibm-tests: Likewise.
71528         * modules/frexpl-tests: Likewise.
71529         * modules/getaddrinfo-tests: Likewise.
71530         * modules/inttypes-tests: Likewise.
71531         * modules/isfinite-tests: Likewise.
71532         * modules/isinf-tests: Likewise.
71533         * modules/ldexpl-tests: Likewise.
71534         * modules/locale-tests: Likewise.
71535         * modules/math-tests: Likewise.
71536         * modules/netdb-tests: Likewise.
71537         * modules/netinet_in-tests: Likewise.
71538         * modules/printf-frexp-tests: Likewise.
71539         * modules/printf-frexpl-tests: Likewise.
71540         * modules/priv-set-tests: Likewise.
71541         * modules/random_r-tests: Likewise.
71542         * modules/round-tests: Likewise.
71543         * modules/roundf-tests: Likewise.
71544         * modules/roundl-tests: Likewise.
71545         * modules/search-tests: Likewise.
71546         * modules/select-tests: Likewise.
71547         * modules/signal-tests: Likewise.
71548         * modules/stdbool-tests: Likewise.
71549         * modules/stddef-tests: Likewise.
71550         * modules/stdint-tests: Likewise.
71551         * modules/stdio-tests: Likewise.
71552         * modules/stdlib-tests: Likewise.
71553         * modules/string-tests: Likewise.
71554         * modules/strings-tests: Likewise.
71555         * modules/sys_select-tests: Likewise.
71556         * modules/sys_socket-tests: Likewise.
71557         * modules/sys_stat-tests: Likewise.
71558         * modules/sys_time-tests: Likewise.
71559         * modules/sys_utsname-tests: Likewise.
71560         * modules/sysexits-tests: Likewise.
71561         * modules/time-tests: Likewise.
71562         * modules/trunc-tests: Likewise.
71563         * modules/truncf-tests: Likewise.
71564         * modules/truncl-tests: Likewise.
71565         * modules/tsearch-tests: Likewise.
71566         * modules/unistd-tests: Likewise.
71567         * modules/wchar-tests: Likewise.
71568         * modules/wctype-tests: Likewise.
71570         tests: fix license on several tests
71571         * tests/test-des.c: Update to GPLv3+.
71572         * tests/test-flock.c: Likewise.
71573         * tests/test-fsync.c: Likewise.
71574         * tests/test-futimens.h: Likewise.
71575         * tests/test-gc-arcfour.c: Likewise.
71576         * tests/test-gc-arctwo.c: Likewise.
71577         * tests/test-gc-des.c: Likewise.
71578         * tests/test-gc-hmac-md5.c: Likewise.
71579         * tests/test-gc-hmac-sha1.c: Likewise.
71580         * tests/test-gc-md2.c: Likewise.
71581         * tests/test-gc-md4.c: Likewise.
71582         * tests/test-gc-md5.c: Likewise.
71583         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71584         * tests/test-gc-rijndael.c: Likewise.
71585         * tests/test-gc-sha1.c: Likewise.
71586         * tests/test-gc.c: Likewise.
71587         * tests/test-getcwd.c: Likewise.
71588         * tests/test-link.c: Likewise.
71589         * tests/test-link.h: Likewise.
71590         * tests/test-lutimens.h: Likewise.
71591         * tests/test-md2.c: Likewise.
71592         * tests/test-md4.c: Likewise.
71593         * tests/test-mkdir.h: Likewise.
71594         * tests/test-rename.c: Likewise.
71595         * tests/test-rename.h: Likewise.
71596         * tests/test-safe-alloc.c: Likewise.
71597         * tests/test-utimens-common.h: Likewise.
71598         * tests/test-utimens.h: Likewise.
71600         maint: sync license texts
71601         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
71602         * doc/gpl-3.0.texi: Revert copyright year update.
71603         * doc/lgpl-3.0.texi: Likewise.
71605 2009-12-29  Jim Meyering  <meyering@redhat.com>
71607         update nearly all FSF copyright year lists to include 2009
71608         The files named by the following are exempted:
71609             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
71610               test -f "$dst" && { echo "$dst"; continue; }
71611               test -d "$dst" || continue
71612               echo "$dst"/$(basename "$src")
71613             done > exempt
71614             git ls-files tests/unictype >> exempt
71615         In the remaining files, convert to all-interval notation if
71616         - there is already at least one year interval like 2000-2003
71617         - the file is maintained by me
71618         - the file is in lib/uni*/, where that style already prevails
71619         Otherwise, use update-copyright's default.
71621 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71622         and Eric Blake  <ebb9@byu.net>
71624         tests: don't require debug system() to pass
71625         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
71626         * tests/test-rmdir.h (test_rmdir_func): Likewise.
71627         * tests/test-unlink.h (test_unlink_func): Likewise.
71628         * tests/test-fstatat.c (main): ...into callers.
71629         * tests/test-lstat.c (main): Likewise.
71630         * tests/test-rmdir.c (main): Likewise.
71631         * tests/test-unlink.c (main): Likewise.
71632         * tests/test-unlinkat.c (main): Likewise.
71633         * tests/test-areadlink-with-size.c (main): Don't require a
71634         debug-only system call to pass, aiding cross-testing to mingw.
71635         * tests/test-areadlink.c (main): Likewise.
71636         * tests/test-areadlinkat-with-size.c (main): Likewise.
71637         * tests/test-areadlinkat.c (main): Likewise.
71638         * tests/test-canonicalize-lgpl.c (main): Likewise.
71639         * tests/test-canonicalize.c (main): Likewise.
71640         * tests/test-chown.c (main): Likewise.
71641         * tests/test-fchownat.c (main): Likewise.
71642         * tests/test-lchown.c (main): Likewise.
71643         * tests/test-fdutimensat.c (main): Likewise.
71644         * tests/test-futimens.c (main): Likewise.
71645         * tests/test-link.c (main): Likewise.
71646         * tests/test-linkat.c (main): Likewise.
71647         * tests/test-mkdir.c (main): Likewise.
71648         * tests/test-mkdirat.c (main): Likewise.
71649         * tests/test-mkfifo.c (main): Likewise.
71650         * tests/test-mkfifoat.c (main): Likewise.
71651         * tests/test-mknod.c (main): Likewise.
71652         * tests/test-readlink.c (main): Likewise.
71653         * tests/test-remove.c (main): Likewise.
71654         * tests/test-rename.c (main): Likewise.
71655         * tests/test-renameat.c (main): Likewise.
71656         * tests/test-symlink.c (main): Likewise.
71657         * tests/test-symlinkat.c (main): Likewise.
71658         * tests/test-utimens.c (main): Likewise.
71659         * tests/test-utimensat.c (main): Likewise.
71661 2009-12-29  Simon Josefsson  <simon@josefsson.org>
71663         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
71664         on $(UNUSED_PARAMETER_H) to avoid build failure.
71666 2009-12-28  Jim Meyering  <meyering@redhat.com>
71668         update-copyright: you may specify a max. line length other than 72
71669         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
71671         maint: use consistent FSF copyright line syntax
71672         * lib/posixtm.c: Add missing comma in FSF copyright line.
71673         * lib/posixtm.h: Likewise.
71674         * lib/getugroups.c: Add missing ", Inc.".
71676         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
71677         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
71678         FSF copyright line.  Remove trailing blanks.
71680 2009-12-28  Eric Blake  <ebb9@byu.net>
71682         test-dup2: reduce dependencies
71683         * modules/cloexec (Configure.ac): Set witness.
71684         * modules/dup2-tests (Depends-on): Drop cloexec.
71685         * tests/test-dup2.c (main): Skip portion of test if cloexec module
71686         not present.
71687         Suggested by Bruno Haible.
71689 2009-12-26  Bruno Haible  <bruno@clisp.org>
71691         Remove an unneeded dependency.
71692         * modules/fseterr (Depends-on): Remove dup2.
71694 2009-12-26  Eric Blake  <ebb9@byu.net>
71696         tests: use macros.h in more places
71697         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
71698         (ASSERT_STREAM): Provide default of stderr.
71699         * tests/test-dirent-safer.c: Include macros.h, using alternate
71700         stream for assertions.
71701         * tests/test-dup-safer.c: Likewise.
71702         * tests/test-freopen-safer.c: Likewise.
71703         * tests/test-getopt.c: Likewise.
71704         * tests/test-openat-safer.c: Likewise.
71705         * tests/test-pipe.c: Likewise.
71706         * tests/test-popen-safer.c: Likewise.
71707         * modules/dirent-safer-tests (Files): Include macros.h.
71708         * modules/unistd-safer-tests (Files): Likewise.
71709         * modules/freopen-safer-tests (Files): Likewise.
71710         * modules/getopt-posix-tests (Files): Likewise.
71711         * modules/openat-safer-tests (Files): Likewise.
71712         * modules/pipe-tests (Files): Likewise.
71714 2009-12-26  Bruno Haible  <bruno@clisp.org>
71716         javacomp-script: Portability fix.
71717         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
71718         that it also works on Solaris.
71720 2009-12-26  Bruno Haible  <bruno@clisp.org>
71722         localename: Fix storage allocation of gl_locale_name_thread's result.
71723         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
71724         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
71725         all platforms that have 'uselocale'.
71726         (gl_locale_name_thread_unsafe): New function, extracted from
71727         gl_locale_name_thread.
71728         (gl_locale_name_thread): Call struniq on all platforms that have
71729         'uselocale'.
71730         * tests/test-localename.c (test_locale_name_thread): Check that the
71731         resulting strings are permanently allocated.
71732         * modules/localename-tests (Depends-on): Add strdup.
71734 2009-12-26  Bruno Haible  <bruno@clisp.org>
71736         * tests/test-localename.c (categories): Fill in the strings.
71738 2009-12-26  Jim Meyering  <meyering@redhat.com>
71740         isdir: complete the removal of m4/isdir.m4
71741         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
71743         isdir: clean up, since at least grep still uses it
71744         * lib/isdir.c: Include "isdir.h".
71745         (S_ISDIR): Remove now-unneeded definition.
71746         * modules/isdir (Files): Add lib/isdir.h.
71747         * lib/isdir.h: New file, with declaration.
71748         * m4/isdir.m4: Remove file -- unneeded.
71750 2009-12-25  Bruno Haible  <bruno@clisp.org>
71752         selinux-h: Make generated .h files standalone.
71753         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
71754         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
71755         * lib/se-selinux.in.h: Likewise.
71756         * modules/selinux-h (Depends-on): Add unused-parameter.
71757         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
71758         selinux/selinux.h and selinux/context.h.
71759         Suggested by Eric Blake.
71761 2009-12-25  Bruno Haible  <bruno@clisp.org>
71763         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
71764         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
71765         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
71766         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
71767         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
71769 2009-12-24  Bruno Haible  <bruno@clisp.org>
71771         openat: Fix warning.
71772         * lib/openat-proc.c: Include <unistd.h>.
71774 2009-12-24  Bruno Haible  <bruno@clisp.org>
71776         New module 'unused-parameter'.
71777         * build-aux/unused-parameter.h: New file, extracted from earlier
71778         gnulib-common.m4.
71779         * modules/unused-parameter: New file.
71780         * lib/unistr.h: Include unused-parameter.h.
71781         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
71782         _GL_UNUSED.
71783         * modules/unistr/base (Depends-on): Add unused-parameter.
71785 2009-12-24  Bruno Haible  <bruno@clisp.org>
71787         Add missing dependencies to 'extensions' module.
71788         * m4/extensions.m4: Add comment.
71789         * modules/accept4 (Depends-on): Add extensions.
71790         * modules/dup3 (Depends-on): Likewise.
71791         * modules/fcntl (Depends-on): Likewise.
71792         * modules/futimens (Depends-on): Likewise.
71793         * modules/mknod (Depends-on): Likewise.
71794         * modules/pipe2 (Depends-on): Likewise.
71795         * modules/stat-time (Depends-on): Likewise.
71796         * modules/strcasestr-simple (Depends-on): Likewise.
71797         * modules/strsignal (Depends-on): Likewise.
71798         * modules/utimensat (Depends-on): Likewise.
71799         * modules/localcharset (Depends-on): Likewise. Needed because of
71800         gl_FCNTL_O_FLAGS.
71801         * modules/wcrtomb (Depends-on): Likewise. Needed because of
71802         AC_TYPE_MBSTATE_T.
71803         * modules/wcsnrtombs (Depends-on): Likewise.
71804         * modules/wcsrtombs (Depends-on): Likewise.
71806 2009-12-24  Bruno Haible  <bruno@clisp.org>
71808         binary-io: Avoid gcc warning due to SET_BINARY.
71809         * lib/binary-io.h (SET_BINARY): Cast the result to void.
71810         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
71812 2009-12-24  Bruno Haible  <bruno@clisp.org>
71814         Avoid future namespace pollution on glibc systems.
71815         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
71816         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
71817         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
71818         glibc systems.
71820 2009-12-24  Bruno Haible  <bruno@clisp.org>
71822         Refactor common macros used in tests.
71823         * tests/macros.h: New file.
71824         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
71825         and/or <stdlib.h>, if appropriate.
71826         (ASSERT, SIZEOF): Remove macros.
71827         * tests/test-areadlink-with-size.c: Likewise.
71828         * tests/test-areadlinkat.c: Likewise.
71829         * tests/test-areadlinkat-with-size.c: Likewise.
71830         * tests/test-argmatch.c: Likewise.
71831         * tests/test-argv-iter.c: Likewise.
71832         * tests/test-array-mergesort.c: Likewise.
71833         * tests/test-array_list.c: Likewise.
71834         * tests/test-array_oset.c: Likewise.
71835         * tests/test-avltree_list.c: Likewise.
71836         * tests/test-avltree_oset.c: Likewise.
71837         * tests/test-avltreehash_list.c: Likewise.
71838         * tests/test-base64.c: Likewise.
71839         * tests/test-binary-io.c: Likewise.
71840         * tests/test-bitrotate.c: Likewise.
71841         * tests/test-btowc.c: Likewise.
71842         * tests/test-byteswap.c: Likewise.
71843         * tests/test-c-ctype.c: Likewise.
71844         * tests/test-c-stack.c: Likewise.
71845         * tests/test-c-strcasecmp.c: Likewise.
71846         * tests/test-c-strcasestr.c: Likewise.
71847         * tests/test-c-strncasecmp.c: Likewise.
71848         * tests/test-c-strstr.c: Likewise.
71849         * tests/test-canonicalize-lgpl.c: Likewise.
71850         * tests/test-canonicalize.c: Likewise.
71851         * tests/test-carray_list.c: Likewise.
71852         * tests/test-ceilf1.c: Likewise.
71853         * tests/test-ceilf2.c: Likewise.
71854         * tests/test-ceill.c: Likewise.
71855         * tests/test-chown.c: Likewise.
71856         * tests/test-cloexec.c: Likewise.
71857         * tests/test-copy-acl.c: Likewise.
71858         * tests/test-copy-file.c: Likewise.
71859         * tests/test-count-one-bits.c: Likewise.
71860         * tests/test-dprintf-posix.c: Likewise.
71861         * tests/test-dup2.c: Likewise.
71862         * tests/test-dup3.c: Likewise.
71863         * tests/test-duplocale.c: Likewise.
71864         * tests/test-fbufmode.c: Likewise.
71865         * tests/test-fchdir.c: Likewise.
71866         * tests/test-fchownat.c: Likewise.
71867         * tests/test-fcntl-safer.c: Likewise.
71868         * tests/test-fcntl.c: Likewise.
71869         * tests/test-fdopendir.c: Likewise.
71870         * tests/test-fdutimensat.c: Likewise.
71871         * tests/test-fflush2.c: Likewise.
71872         * tests/test-file-has-acl.c: Likewise.
71873         * tests/test-filevercmp.c: Likewise.
71874         * tests/test-flock.c: Likewise.
71875         * tests/test-floorf1.c: Likewise.
71876         * tests/test-floorf2.c: Likewise.
71877         * tests/test-floorl.c: Likewise.
71878         * tests/test-fnmatch.c: Likewise.
71879         * tests/test-fopen.h: Likewise.
71880         * tests/test-fpending.c: Likewise.
71881         * tests/test-fprintf-posix.c: Likewise.
71882         * tests/test-fpurge.c: Likewise.
71883         * tests/test-freadable.c: Likewise.
71884         * tests/test-freadahead.c: Likewise.
71885         * tests/test-freading.c: Likewise.
71886         * tests/test-freadptr.c: Likewise.
71887         * tests/test-freadptr2.c: Likewise.
71888         * tests/test-freadseek.c: Likewise.
71889         * tests/test-freopen.c: Likewise.
71890         * tests/test-frexp.c: Likewise.
71891         * tests/test-frexpl.c: Likewise.
71892         * tests/test-fseek.c: Likewise.
71893         * tests/test-fseeko.c: Likewise.
71894         * tests/test-fstatat.c: Likewise.
71895         * tests/test-fstrcmp.c: Likewise.
71896         * tests/test-fsync.c: Likewise.
71897         * tests/test-ftell.c: Likewise.
71898         * tests/test-ftello.c: Likewise.
71899         * tests/test-func.c: Likewise.
71900         * tests/test-futimens.c: Likewise.
71901         * tests/test-fwritable.c: Likewise.
71902         * tests/test-fwriting.c: Likewise.
71903         * tests/test-getcwd.c: Likewise.
71904         * tests/test-getdate.c: Likewise.
71905         * tests/test-getdelim.c: Likewise.
71906         * tests/test-getdtablesize.c: Likewise.
71907         * tests/test-getgroups.c: Likewise.
71908         * tests/test-getline.c: Likewise.
71909         * tests/test-getndelim2.c: Likewise.
71910         * tests/test-glob.c: Likewise.
71911         * tests/test-hash.c: Likewise.
71912         * tests/test-i-ring.c: Likewise.
71913         * tests/test-iconv-utf.c: Likewise.
71914         * tests/test-iconv.c: Likewise.
71915         * tests/test-idpriv-drop.c: Likewise.
71916         * tests/test-idpriv-droptemp.c: Likewise.
71917         * tests/test-inet_ntop.c: Likewise.
71918         * tests/test-inet_pton.c: Likewise.
71919         * tests/test-isblank.c: Likewise.
71920         * tests/test-isfinite.c: Likewise.
71921         * tests/test-isinf.c: Likewise.
71922         * tests/test-isnan.c: Likewise.
71923         * tests/test-isnand.h: Likewise.
71924         * tests/test-isnanf.h: Likewise.
71925         * tests/test-isnanl.h: Likewise.
71926         * tests/test-lchown.c: Likewise.
71927         * tests/test-ldexpl.c: Likewise.
71928         * tests/test-link.c: Likewise.
71929         * tests/test-linkat.c: Likewise.
71930         * tests/test-linked_list.c: Likewise.
71931         * tests/test-linkedhash_list.c: Likewise.
71932         * tests/test-localename.c: Likewise.
71933         * tests/test-lseek.c: Likewise.
71934         * tests/test-lstat.c: Likewise.
71935         * tests/test-mbmemcasecmp.c: Likewise.
71936         * tests/test-mbmemcasecoll.c: Likewise.
71937         * tests/test-mbrtowc.c: Likewise.
71938         * tests/test-mbscasecmp.c: Likewise.
71939         * tests/test-mbscasestr1.c: Likewise.
71940         * tests/test-mbscasestr2.c: Likewise.
71941         * tests/test-mbscasestr3.c: Likewise.
71942         * tests/test-mbscasestr4.c: Likewise.
71943         * tests/test-mbschr.c: Likewise.
71944         * tests/test-mbscspn.c: Likewise.
71945         * tests/test-mbsinit.c: Likewise.
71946         * tests/test-mbsncasecmp.c: Likewise.
71947         * tests/test-mbsnrtowcs.c: Likewise.
71948         * tests/test-mbspbrk.c: Likewise.
71949         * tests/test-mbspcasecmp.c: Likewise.
71950         * tests/test-mbsrchr.c: Likewise.
71951         * tests/test-mbsrtowcs.c: Likewise.
71952         * tests/test-mbsspn.c: Likewise.
71953         * tests/test-mbsstr1.c: Likewise.
71954         * tests/test-mbsstr2.c: Likewise.
71955         * tests/test-mbsstr3.c: Likewise.
71956         * tests/test-memchr.c: Likewise.
71957         * tests/test-memchr2.c: Likewise.
71958         * tests/test-memcmp.c: Likewise.
71959         * tests/test-memmem.c: Likewise.
71960         * tests/test-memrchr.c: Likewise.
71961         * tests/test-mkdir.c: Likewise.
71962         * tests/test-mkdirat.c: Likewise.
71963         * tests/test-mkfifo.c: Likewise.
71964         * tests/test-mkfifoat.c: Likewise.
71965         * tests/test-mknod.c: Likewise.
71966         * tests/test-nanosleep.c: Likewise.
71967         * tests/test-nl_langinfo.c: Likewise.
71968         * tests/test-obstack-printf.c: Likewise.
71969         * tests/test-open.c: Likewise.
71970         * tests/test-openat.c: Likewise.
71971         * tests/test-pipe-filter-gi1.c: Likewise.
71972         * tests/test-pipe-filter-gi2-main.c: Likewise.
71973         * tests/test-pipe-filter-ii1.c: Likewise.
71974         * tests/test-pipe-filter-ii2-main.c: Likewise.
71975         * tests/test-pipe2.c: Likewise.
71976         * tests/test-popen.h: Likewise.
71977         * tests/test-posixtm.c: Likewise.
71978         * tests/test-pread.c: Likewise.
71979         * tests/test-printf-frexp.c: Likewise.
71980         * tests/test-printf-frexpl.c: Likewise.
71981         * tests/test-printf-posix.c: Likewise.
71982         * tests/test-priv-set.c: Likewise.
71983         * tests/test-quotearg.c: Likewise.
71984         * tests/test-random_r.c: Likewise.
71985         * tests/test-rawmemchr.c: Likewise.
71986         * tests/test-rbtree_list.c: Likewise.
71987         * tests/test-rbtree_oset.c: Likewise.
71988         * tests/test-rbtreehash_list.c: Likewise.
71989         * tests/test-readlink.c: Likewise.
71990         * tests/test-remove.c: Likewise.
71991         * tests/test-rename.c: Likewise.
71992         * tests/test-renameat.c: Likewise.
71993         * tests/test-rmdir.c: Likewise.
71994         * tests/test-round1.c: Likewise.
71995         * tests/test-roundf1.c: Likewise.
71996         * tests/test-roundl.c: Likewise.
71997         * tests/test-safe-alloc.c: Likewise.
71998         * tests/test-sameacls.c: Likewise.
71999         * tests/test-set-mode-acl.c: Likewise.
72000         * tests/test-setenv.c: Likewise.
72001         * tests/test-sigaction.c: Likewise.
72002         * tests/test-signbit.c: Likewise.
72003         * tests/test-sleep.c: Likewise.
72004         * tests/test-snprintf-posix.c: Likewise.
72005         * tests/test-snprintf.c: Likewise.
72006         * tests/test-sprintf-posix.c: Likewise.
72007         * tests/test-stat-time.c: Likewise.
72008         * tests/test-stat.c: Likewise.
72009         * tests/test-strcasestr.c: Likewise.
72010         * tests/test-strchrnul.c: Likewise.
72011         * tests/test-strerror.c: Likewise.
72012         * tests/test-striconv.c: Likewise.
72013         * tests/test-striconveh.c: Likewise.
72014         * tests/test-striconveha.c: Likewise.
72015         * tests/test-strsignal.c: Likewise.
72016         * tests/test-strstr.c: Likewise.
72017         * tests/test-strtod.c: Likewise.
72018         * tests/test-strverscmp.c: Likewise.
72019         * tests/test-symlink.c: Likewise.
72020         * tests/test-symlinkat.c: Likewise.
72021         * tests/test-trunc1.c: Likewise.
72022         * tests/test-trunc2.c: Likewise.
72023         * tests/test-truncf1.c: Likewise.
72024         * tests/test-truncf2.c: Likewise.
72025         * tests/test-truncl.c: Likewise.
72026         * tests/test-uname.c: Likewise.
72027         * tests/test-unlink.c: Likewise.
72028         * tests/test-unlinkat.c: Likewise.
72029         * tests/test-unsetenv.c: Likewise.
72030         * tests/test-usleep.c: Likewise.
72031         * tests/test-utimens.c: Likewise.
72032         * tests/test-utimensat.c: Likewise.
72033         * tests/test-vasnprintf-posix.c: Likewise.
72034         * tests/test-vasnprintf-posix2.c: Likewise.
72035         * tests/test-vasnprintf.c: Likewise.
72036         * tests/test-vasprintf-posix.c: Likewise.
72037         * tests/test-vasprintf.c: Likewise.
72038         * tests/test-vdprintf-posix.c: Likewise.
72039         * tests/test-vfprintf-posix.c: Likewise.
72040         * tests/test-vprintf-posix.c: Likewise.
72041         * tests/test-vsnprintf-posix.c: Likewise.
72042         * tests/test-vsnprintf.c: Likewise.
72043         * tests/test-vsprintf-posix.c: Likewise.
72044         * tests/test-wcrtomb.c: Likewise.
72045         * tests/test-wcsnrtombs.c: Likewise.
72046         * tests/test-wcsrtombs.c: Likewise.
72047         * tests/test-wctype.c: Likewise.
72048         * tests/test-wcwidth.c: Likewise.
72049         * tests/test-xfprintf-posix.c: Likewise.
72050         * tests/test-xmemdup0.c: Likewise.
72051         * tests/test-xprintf-posix.c: Likewise.
72052         * tests/test-xvasprintf.c: Likewise.
72053         * tests/unicase/test-locale-language.c: Likewise.
72054         * tests/unicase/test-mapping-part1.h: Likewise.
72055         * tests/unicase/test-predicate-part1.h: Likewise.
72056         * tests/unicase/test-u8-casecmp.c: Likewise.
72057         * tests/unicase/test-u8-casecoll.c: Likewise.
72058         * tests/unicase/test-u8-casefold.c: Likewise.
72059         * tests/unicase/test-u8-is-cased.c: Likewise.
72060         * tests/unicase/test-u8-is-casefolded.c: Likewise.
72061         * tests/unicase/test-u8-is-lowercase.c: Likewise.
72062         * tests/unicase/test-u8-is-titlecase.c: Likewise.
72063         * tests/unicase/test-u8-is-uppercase.c: Likewise.
72064         * tests/unicase/test-u8-tolower.c: Likewise.
72065         * tests/unicase/test-u8-totitle.c: Likewise.
72066         * tests/unicase/test-u8-toupper.c: Likewise.
72067         * tests/unicase/test-u16-casecmp.c: Likewise.
72068         * tests/unicase/test-u16-casecoll.c: Likewise.
72069         * tests/unicase/test-u16-casefold.c: Likewise.
72070         * tests/unicase/test-u16-is-cased.c: Likewise.
72071         * tests/unicase/test-u16-is-casefolded.c: Likewise.
72072         * tests/unicase/test-u16-is-lowercase.c: Likewise.
72073         * tests/unicase/test-u16-is-titlecase.c: Likewise.
72074         * tests/unicase/test-u16-is-uppercase.c: Likewise.
72075         * tests/unicase/test-u16-tolower.c: Likewise.
72076         * tests/unicase/test-u16-totitle.c: Likewise.
72077         * tests/unicase/test-u16-toupper.c: Likewise.
72078         * tests/unicase/test-u32-casecmp.c: Likewise.
72079         * tests/unicase/test-u32-casecoll.c: Likewise.
72080         * tests/unicase/test-u32-casefold.c: Likewise.
72081         * tests/unicase/test-u32-is-cased.c: Likewise.
72082         * tests/unicase/test-u32-is-casefolded.c: Likewise.
72083         * tests/unicase/test-u32-is-lowercase.c: Likewise.
72084         * tests/unicase/test-u32-is-titlecase.c: Likewise.
72085         * tests/unicase/test-u32-is-uppercase.c: Likewise.
72086         * tests/unicase/test-u32-tolower.c: Likewise.
72087         * tests/unicase/test-u32-totitle.c: Likewise.
72088         * tests/unicase/test-u32-toupper.c: Likewise.
72089         * tests/unicase/test-ulc-casecmp.c: Likewise.
72090         * tests/unicase/test-ulc-casecoll.c: Likewise.
72091         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
72092         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
72093         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
72094         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
72095         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
72096         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
72097         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
72098         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
72099         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
72100         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
72101         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
72102         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
72103         * tests/unictype/test-bidi_byname.c: Likewise.
72104         * tests/unictype/test-bidi_name.c: Likewise.
72105         * tests/unictype/test-bidi_of.c: Likewise.
72106         * tests/unictype/test-bidi_test.c: Likewise.
72107         * tests/unictype/test-block_list.c: Likewise.
72108         * tests/unictype/test-block_of.c: Likewise.
72109         * tests/unictype/test-block_test.c: Likewise.
72110         * tests/unictype/test-categ_and.c: Likewise.
72111         * tests/unictype/test-categ_and_not.c: Likewise.
72112         * tests/unictype/test-categ_byname.c: Likewise.
72113         * tests/unictype/test-categ_name.c: Likewise.
72114         * tests/unictype/test-categ_none.c: Likewise.
72115         * tests/unictype/test-categ_of.c: Likewise.
72116         * tests/unictype/test-categ_or.c: Likewise.
72117         * tests/unictype/test-categ_test_withtable.c: Likewise.
72118         * tests/unictype/test-combining.c: Likewise.
72119         * tests/unictype/test-decdigit.c: Likewise.
72120         * tests/unictype/test-digit.c: Likewise.
72121         * tests/unictype/test-mirror.c: Likewise.
72122         * tests/unictype/test-numeric.c: Likewise.
72123         * tests/unictype/test-pr_byname.c: Likewise.
72124         * tests/unictype/test-pr_test.c: Likewise.
72125         * tests/unictype/test-predicate-part1.h: Likewise.
72126         * tests/unictype/test-scripts.c: Likewise.
72127         * tests/unictype/test-sy_c_ident.c: Likewise.
72128         * tests/unictype/test-sy_java_ident.c: Likewise.
72129         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
72130         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
72131         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
72132         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
72133         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
72134         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
72135         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
72136         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
72137         * tests/uninorm/test-canonical-decomposition.c: Likewise.
72138         * tests/uninorm/test-compat-decomposition.c: Likewise.
72139         * tests/uninorm/test-composition.c: Likewise.
72140         * tests/uninorm/test-decomposing-form.c: Likewise.
72141         * tests/uninorm/test-decomposition.c: Likewise.
72142         * tests/uninorm/test-u8-nfc.c: Likewise.
72143         * tests/uninorm/test-u8-nfd.c: Likewise.
72144         * tests/uninorm/test-u8-nfkc.c: Likewise.
72145         * tests/uninorm/test-u8-nfkd.c: Likewise.
72146         * tests/uninorm/test-u8-normcmp.c: Likewise.
72147         * tests/uninorm/test-u8-normcoll.c: Likewise.
72148         * tests/uninorm/test-u16-nfc.c: Likewise.
72149         * tests/uninorm/test-u16-nfd.c: Likewise.
72150         * tests/uninorm/test-u16-nfkc.c: Likewise.
72151         * tests/uninorm/test-u16-nfkd.c: Likewise.
72152         * tests/uninorm/test-u16-normcmp.c: Likewise.
72153         * tests/uninorm/test-u16-normcoll.c: Likewise.
72154         * tests/uninorm/test-u32-nfc.c: Likewise.
72155         * tests/uninorm/test-u32-nfd.c: Likewise.
72156         * tests/uninorm/test-u32-nfkc.c: Likewise.
72157         * tests/uninorm/test-u32-nfkd.c: Likewise.
72158         * tests/uninorm/test-u32-normalize-big.c: Likewise.
72159         * tests/uninorm/test-u32-normcmp.c: Likewise.
72160         * tests/uninorm/test-u32-normcoll.c: Likewise.
72161         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
72162         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
72163         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
72164         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
72165         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
72166         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
72167         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
72168         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
72169         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
72170         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
72171         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
72172         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
72173         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
72174         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
72175         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
72176         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
72177         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
72178         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
72179         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
72180         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
72181         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
72182         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
72183         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
72184         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
72185         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
72186         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
72187         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
72188         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
72189         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
72190         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
72191         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
72192         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
72193         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
72194         * tests/uniwidth/test-u8-strwidth.c: Likewise.
72195         * tests/uniwidth/test-u8-width.c: Likewise.
72196         * tests/uniwidth/test-u16-strwidth.c: Likewise.
72197         * tests/uniwidth/test-u16-width.c: Likewise.
72198         * tests/uniwidth/test-u32-strwidth.c: Likewise.
72199         * tests/uniwidth/test-u32-width.c: Likewise.
72200         * tests/uniwidth/test-uc_width.c: Likewise.
72201         * tests/uniwidth/test-uc_width2.c: Likewise.
72202         * modules/acl-tests (Files): Add tests/macros.h.
72203         * modules/areadlink-tests (Files): Likewise.
72204         * modules/areadlink-with-size-tests (Files): Likewise.
72205         * modules/areadlinkat-tests (Files): Likewise.
72206         * modules/areadlinkat-with-size-tests (Files): Likewise.
72207         * modules/argmatch-tests (Files): Likewise.
72208         * modules/argv-iter-tests (Files): Likewise.
72209         * modules/array-list-tests (Files): Likewise.
72210         * modules/array-mergesort-tests (Files): Likewise.
72211         * modules/array-oset-tests (Files): Likewise.
72212         * modules/avltree-list-tests (Files): Likewise.
72213         * modules/avltree-oset-tests (Files): Likewise.
72214         * modules/avltreehash-list-tests (Files): Likewise.
72215         * modules/base64-tests (Files): Likewise.
72216         * modules/binary-io-tests (Files): Likewise.
72217         * modules/bitrotate-tests (Files): Likewise.
72218         * modules/btowc-tests (Files): Likewise.
72219         * modules/byteswap-tests (Files): Likewise.
72220         * modules/c-ctype-tests (Files): Likewise.
72221         * modules/c-stack-tests (Files): Likewise.
72222         * modules/c-strcase-tests (Files): Likewise.
72223         * modules/c-strcasestr-tests (Files): Likewise.
72224         * modules/c-strstr-tests (Files): Likewise.
72225         * modules/canonicalize-lgpl-tests (Files): Likewise.
72226         * modules/canonicalize-tests (Files): Likewise.
72227         * modules/carray-list-tests (Files): Likewise.
72228         * modules/ceilf-tests (Files): Likewise.
72229         * modules/ceill-tests (Files): Likewise.
72230         * modules/chown-tests (Files): Likewise.
72231         * modules/cloexec-tests (Files): Likewise.
72232         * modules/copy-file-tests (Files): Likewise.
72233         * modules/count-one-bits-tests (Files): Likewise.
72234         * modules/dprintf-posix-tests (Files): Likewise.
72235         * modules/dup2-tests (Files): Likewise.
72236         * modules/dup3-tests (Files): Likewise.
72237         * modules/duplocale-tests (Files): Likewise.
72238         * modules/fbufmode-tests (Files): Likewise.
72239         * modules/fchdir-tests (Files): Likewise.
72240         * modules/fcntl-safer-tests (Files): Likewise.
72241         * modules/fcntl-tests (Files): Likewise.
72242         * modules/fdopendir-tests (Files): Likewise.
72243         * modules/fdutimensat-tests (Files): Likewise.
72244         * modules/fflush-tests (Files): Likewise.
72245         * modules/filevercmp-tests (Files): Likewise.
72246         * modules/flock-tests (Files): Likewise.
72247         * modules/floorf-tests (Files): Likewise.
72248         * modules/floorl-tests (Files): Likewise.
72249         * modules/fnmatch-tests (Files): Likewise.
72250         * modules/fopen-safer-tests (Files): Likewise.
72251         * modules/fopen-tests (Files): Likewise.
72252         * modules/fpending-tests (Files): Likewise.
72253         * modules/fprintf-posix-tests (Files): Likewise.
72254         * modules/fpurge-tests (Files): Likewise.
72255         * modules/freadable-tests (Files): Likewise.
72256         * modules/freadahead-tests (Files): Likewise.
72257         * modules/freading-tests (Files): Likewise.
72258         * modules/freadptr-tests (Files): Likewise.
72259         * modules/freadseek-tests (Files): Likewise.
72260         * modules/freopen-tests (Files): Likewise.
72261         * modules/frexp-nolibm-tests (Files): Likewise.
72262         * modules/frexp-tests (Files): Likewise.
72263         * modules/frexpl-nolibm-tests (Files): Likewise.
72264         * modules/frexpl-tests (Files): Likewise.
72265         * modules/fseek-tests (Files): Likewise.
72266         * modules/fseeko-tests (Files): Likewise.
72267         * modules/fstrcmp-tests (Files): Likewise.
72268         * modules/fsync-tests (Files): Likewise.
72269         * modules/ftell-tests (Files): Likewise.
72270         * modules/ftello-tests (Files): Likewise.
72271         * modules/func-tests (Files): Likewise.
72272         * modules/futimens-tests (Files): Likewise.
72273         * modules/fwritable-tests (Files): Likewise.
72274         * modules/fwriting-tests (Files): Likewise.
72275         * modules/getcwd-tests (Files): Likewise.
72276         * modules/getdate-tests (Files): Likewise.
72277         * modules/getdelim-tests (Files): Likewise.
72278         * modules/getdtablesize-tests (Files): Likewise.
72279         * modules/getgroups-tests (Files): Likewise.
72280         * modules/getline-tests (Files): Likewise.
72281         * modules/getndelim2-tests (Files): Likewise.
72282         * modules/glob-tests (Files): Likewise.
72283         * modules/hash-tests (Files): Likewise.
72284         * modules/i-ring-tests (Files): Likewise.
72285         * modules/iconv-tests (Files): Likewise.
72286         * modules/iconv_open-utf-tests (Files): Likewise.
72287         * modules/idpriv-drop-tests (Files): Likewise.
72288         * modules/idpriv-droptemp-tests (Files): Likewise.
72289         * modules/inet_ntop-tests (Files): Likewise.
72290         * modules/inet_pton-tests (Files): Likewise.
72291         * modules/isblank-tests (Files): Likewise.
72292         * modules/isfinite-tests (Files): Likewise.
72293         * modules/isinf-tests (Files): Likewise.
72294         * modules/isnan-tests (Files): Likewise.
72295         * modules/isnand-nolibm-tests (Files): Likewise.
72296         * modules/isnand-tests (Files): Likewise.
72297         * modules/isnanf-nolibm-tests (Files): Likewise.
72298         * modules/isnanf-tests (Files): Likewise.
72299         * modules/isnanl-nolibm-tests (Files): Likewise.
72300         * modules/isnanl-tests (Files): Likewise.
72301         * modules/lchown-tests (Files): Likewise.
72302         * modules/ldexpl-tests (Files): Likewise.
72303         * modules/link-tests (Files): Likewise.
72304         * modules/linkat-tests (Files): Likewise.
72305         * modules/linked-list-tests (Files): Likewise.
72306         * modules/linkedhash-list-tests (Files): Likewise.
72307         * modules/localename-tests (Files): Likewise.
72308         * modules/lseek-tests (Files): Likewise.
72309         * modules/lstat-tests (Files): Likewise.
72310         * modules/mbmemcasecmp-tests (Files): Likewise.
72311         * modules/mbmemcasecoll-tests (Files): Likewise.
72312         * modules/mbrtowc-tests (Files): Likewise.
72313         * modules/mbscasecmp-tests (Files): Likewise.
72314         * modules/mbscasestr-tests (Files): Likewise.
72315         * modules/mbschr-tests (Files): Likewise.
72316         * modules/mbscspn-tests (Files): Likewise.
72317         * modules/mbsinit-tests (Files): Likewise.
72318         * modules/mbsncasecmp-tests (Files): Likewise.
72319         * modules/mbsnrtowcs-tests (Files): Likewise.
72320         * modules/mbspbrk-tests (Files): Likewise.
72321         * modules/mbspcasecmp-tests (Files): Likewise.
72322         * modules/mbsrchr-tests (Files): Likewise.
72323         * modules/mbsrtowcs-tests (Files): Likewise.
72324         * modules/mbsspn-tests (Files): Likewise.
72325         * modules/mbsstr-tests (Files): Likewise.
72326         * modules/memchr-tests (Files): Likewise.
72327         * modules/memchr2-tests (Files): Likewise.
72328         * modules/memcmp-tests (Files): Likewise.
72329         * modules/memmem-tests (Files): Likewise.
72330         * modules/memrchr-tests (Files): Likewise.
72331         * modules/mkdir-tests (Files): Likewise.
72332         * modules/mkfifo-tests (Files): Likewise.
72333         * modules/mkfifoat-tests (Files): Likewise.
72334         * modules/mknod-tests (Files): Likewise.
72335         * modules/nanosleep-tests (Files): Likewise.
72336         * modules/nl_langinfo-tests (Files): Likewise.
72337         * modules/obstack-printf-tests (Files): Likewise.
72338         * modules/open-tests (Files): Likewise.
72339         * modules/openat-tests (Files): Likewise.
72340         * modules/pipe-filter-gi-tests (Files): Likewise.
72341         * modules/pipe-filter-ii-tests (Files): Likewise.
72342         * modules/pipe2-tests (Files): Likewise.
72343         * modules/popen-safer-tests (Files): Likewise.
72344         * modules/popen-tests (Files): Likewise.
72345         * modules/posixtm-tests (Files): Likewise.
72346         * modules/pread-tests (Files): Likewise.
72347         * modules/printf-frexp-tests (Files): Likewise.
72348         * modules/printf-frexpl-tests (Files): Likewise.
72349         * modules/printf-posix-tests (Files): Likewise.
72350         * modules/priv-set-tests (Files): Likewise.
72351         * modules/quotearg-tests (Files): Likewise.
72352         * modules/random_r-tests (Files): Likewise.
72353         * modules/rawmemchr-tests (Files): Likewise.
72354         * modules/rbtree-list-tests (Files): Likewise.
72355         * modules/rbtree-oset-tests (Files): Likewise.
72356         * modules/rbtreehash-list-tests (Files): Likewise.
72357         * modules/readlink-tests (Files): Likewise.
72358         * modules/remove-tests (Files): Likewise.
72359         * modules/rename-tests (Files): Likewise.
72360         * modules/renameat-tests (Files): Likewise.
72361         * modules/rmdir-tests (Files): Likewise.
72362         * modules/round-tests (Files): Likewise.
72363         * modules/roundf-tests (Files): Likewise.
72364         * modules/roundl-tests (Files): Likewise.
72365         * modules/safe-alloc-tests (Files): Likewise.
72366         * modules/setenv-tests (Files): Likewise.
72367         * modules/sigaction-tests (Files): Likewise.
72368         * modules/signbit-tests (Files): Likewise.
72369         * modules/sleep-tests (Files): Likewise.
72370         * modules/snprintf-posix-tests (Files): Likewise.
72371         * modules/snprintf-tests (Files): Likewise.
72372         * modules/sprintf-posix-tests (Files): Likewise.
72373         * modules/stat-tests (Files): Likewise.
72374         * modules/stat-time-tests (Files): Likewise.
72375         * modules/strcasestr-tests (Files): Likewise.
72376         * modules/strchrnul-tests (Files): Likewise.
72377         * modules/strerror-tests (Files): Likewise.
72378         * modules/striconv-tests (Files): Likewise.
72379         * modules/striconveh-tests (Files): Likewise.
72380         * modules/striconveha-tests (Files): Likewise.
72381         * modules/strsignal-tests (Files): Likewise.
72382         * modules/strstr-tests (Files): Likewise.
72383         * modules/strtod-tests (Files): Likewise.
72384         * modules/strverscmp-tests (Files): Likewise.
72385         * modules/symlink-tests (Files): Likewise.
72386         * modules/symlinkat-tests (Files): Likewise.
72387         * modules/trunc-tests (Files): Likewise.
72388         * modules/truncf-tests (Files): Likewise.
72389         * modules/truncl-tests (Files): Likewise.
72390         * modules/uname-tests (Files): Likewise.
72391         * modules/unicase/cased-tests (Files): Likewise.
72392         * modules/unicase/ignorable-tests (Files): Likewise.
72393         * modules/unicase/locale-language-tests (Files): Likewise.
72394         * modules/unicase/tolower-tests (Files): Likewise.
72395         * modules/unicase/totitle-tests (Files): Likewise.
72396         * modules/unicase/toupper-tests (Files): Likewise.
72397         * modules/unicase/u8-casecmp-tests (Files): Likewise.
72398         * modules/unicase/u8-casecoll-tests (Files): Likewise.
72399         * modules/unicase/u8-casefold-tests (Files): Likewise.
72400         * modules/unicase/u8-is-cased-tests (Files): Likewise.
72401         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
72402         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
72403         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
72404         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
72405         * modules/unicase/u8-tolower-tests (Files): Likewise.
72406         * modules/unicase/u8-totitle-tests (Files): Likewise.
72407         * modules/unicase/u8-toupper-tests (Files): Likewise.
72408         * modules/unicase/u16-casecmp-tests (Files): Likewise.
72409         * modules/unicase/u16-casecoll-tests (Files): Likewise.
72410         * modules/unicase/u16-casefold-tests (Files): Likewise.
72411         * modules/unicase/u16-is-cased-tests (Files): Likewise.
72412         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
72413         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
72414         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
72415         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
72416         * modules/unicase/u16-tolower-tests (Files): Likewise.
72417         * modules/unicase/u16-totitle-tests (Files): Likewise.
72418         * modules/unicase/u16-toupper-tests (Files): Likewise.
72419         * modules/unicase/u32-casecmp-tests (Files): Likewise.
72420         * modules/unicase/u32-casecoll-tests (Files): Likewise.
72421         * modules/unicase/u32-casefold-tests (Files): Likewise.
72422         * modules/unicase/u32-is-cased-tests (Files): Likewise.
72423         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
72424         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
72425         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
72426         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
72427         * modules/unicase/u32-tolower-tests (Files): Likewise.
72428         * modules/unicase/u32-totitle-tests (Files): Likewise.
72429         * modules/unicase/u32-toupper-tests (Files): Likewise.
72430         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
72431         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
72432         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
72433         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
72434         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
72435         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
72436         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
72437         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
72438         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
72439         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
72440         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
72441         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
72442         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
72443         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
72444         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
72445         * modules/unictype/bidicategory-name-tests (Files): Likewise.
72446         * modules/unictype/bidicategory-of-tests (Files): Likewise.
72447         * modules/unictype/bidicategory-test-tests (Files): Likewise.
72448         * modules/unictype/block-list-tests (Files): Likewise.
72449         * modules/unictype/block-of-tests (Files): Likewise.
72450         * modules/unictype/block-test-tests (Files): Likewise.
72451         * modules/unictype/category-C-tests (Files): Likewise.
72452         * modules/unictype/category-Cc-tests (Files): Likewise.
72453         * modules/unictype/category-Cf-tests (Files): Likewise.
72454         * modules/unictype/category-Cn-tests (Files): Likewise.
72455         * modules/unictype/category-Co-tests (Files): Likewise.
72456         * modules/unictype/category-Cs-tests (Files): Likewise.
72457         * modules/unictype/category-L-tests (Files): Likewise.
72458         * modules/unictype/category-Ll-tests (Files): Likewise.
72459         * modules/unictype/category-Lm-tests (Files): Likewise.
72460         * modules/unictype/category-Lo-tests (Files): Likewise.
72461         * modules/unictype/category-Lt-tests (Files): Likewise.
72462         * modules/unictype/category-Lu-tests (Files): Likewise.
72463         * modules/unictype/category-M-tests (Files): Likewise.
72464         * modules/unictype/category-Mc-tests (Files): Likewise.
72465         * modules/unictype/category-Me-tests (Files): Likewise.
72466         * modules/unictype/category-Mn-tests (Files): Likewise.
72467         * modules/unictype/category-N-tests (Files): Likewise.
72468         * modules/unictype/category-Nd-tests (Files): Likewise.
72469         * modules/unictype/category-Nl-tests (Files): Likewise.
72470         * modules/unictype/category-No-tests (Files): Likewise.
72471         * modules/unictype/category-P-tests (Files): Likewise.
72472         * modules/unictype/category-Pc-tests (Files): Likewise.
72473         * modules/unictype/category-Pd-tests (Files): Likewise.
72474         * modules/unictype/category-Pe-tests (Files): Likewise.
72475         * modules/unictype/category-Pf-tests (Files): Likewise.
72476         * modules/unictype/category-Pi-tests (Files): Likewise.
72477         * modules/unictype/category-Po-tests (Files): Likewise.
72478         * modules/unictype/category-Ps-tests (Files): Likewise.
72479         * modules/unictype/category-S-tests (Files): Likewise.
72480         * modules/unictype/category-Sc-tests (Files): Likewise.
72481         * modules/unictype/category-Sk-tests (Files): Likewise.
72482         * modules/unictype/category-Sm-tests (Files): Likewise.
72483         * modules/unictype/category-So-tests (Files): Likewise.
72484         * modules/unictype/category-Z-tests (Files): Likewise.
72485         * modules/unictype/category-Zl-tests (Files): Likewise.
72486         * modules/unictype/category-Zp-tests (Files): Likewise.
72487         * modules/unictype/category-Zs-tests (Files): Likewise.
72488         * modules/unictype/category-and-not-tests (Files): Likewise.
72489         * modules/unictype/category-and-tests (Files): Likewise.
72490         * modules/unictype/category-byname-tests (Files): Likewise.
72491         * modules/unictype/category-name-tests (Files): Likewise.
72492         * modules/unictype/category-none-tests (Files): Likewise.
72493         * modules/unictype/category-of-tests (Files): Likewise.
72494         * modules/unictype/category-or-tests (Files): Likewise.
72495         * modules/unictype/category-test-withtable-tests (Files): Likewise.
72496         * modules/unictype/combining-class-tests (Files): Likewise.
72497         * modules/unictype/ctype-alnum-tests (Files): Likewise.
72498         * modules/unictype/ctype-alpha-tests (Files): Likewise.
72499         * modules/unictype/ctype-blank-tests (Files): Likewise.
72500         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
72501         * modules/unictype/ctype-digit-tests (Files): Likewise.
72502         * modules/unictype/ctype-graph-tests (Files): Likewise.
72503         * modules/unictype/ctype-lower-tests (Files): Likewise.
72504         * modules/unictype/ctype-print-tests (Files): Likewise.
72505         * modules/unictype/ctype-punct-tests (Files): Likewise.
72506         * modules/unictype/ctype-space-tests (Files): Likewise.
72507         * modules/unictype/ctype-upper-tests (Files): Likewise.
72508         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
72509         * modules/unictype/decimal-digit-tests (Files): Likewise.
72510         * modules/unictype/digit-tests (Files): Likewise.
72511         * modules/unictype/mirror-tests (Files): Likewise.
72512         * modules/unictype/numeric-tests (Files): Likewise.
72513         * modules/unictype/property-alphabetic-tests (Files): Likewise.
72514         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
72515         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
72516         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
72517         Likewise.
72518         * modules/unictype/property-bidi-block-separator-tests (Files):
72519         Likewise.
72520         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
72521         Likewise.
72522         * modules/unictype/property-bidi-common-separator-tests (Files):
72523         Likewise.
72524         * modules/unictype/property-bidi-control-tests (Files): Likewise.
72525         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
72526         Likewise.
72527         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
72528         Likewise.
72529         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
72530         Likewise.
72531         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
72532         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
72533         Likewise.
72534         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
72535         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
72536         Likewise.
72537         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
72538         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
72539         * modules/unictype/property-bidi-segment-separator-tests (Files):
72540         Likewise.
72541         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
72542         * modules/unictype/property-byname-tests (Files): Likewise.
72543         * modules/unictype/property-combining-tests (Files): Likewise.
72544         * modules/unictype/property-composite-tests (Files): Likewise.
72545         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
72546         * modules/unictype/property-dash-tests (Files): Likewise.
72547         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
72548         * modules/unictype/property-default-ignorable-code-point-tests (Files):
72549         Likewise.
72550         * modules/unictype/property-deprecated-tests (Files): Likewise.
72551         * modules/unictype/property-diacritic-tests (Files): Likewise.
72552         * modules/unictype/property-extender-tests (Files): Likewise.
72553         * modules/unictype/property-format-control-tests (Files): Likewise.
72554         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
72555         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
72556         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
72557         * modules/unictype/property-hex-digit-tests (Files): Likewise.
72558         * modules/unictype/property-hyphen-tests (Files): Likewise.
72559         * modules/unictype/property-id-continue-tests (Files): Likewise.
72560         * modules/unictype/property-id-start-tests (Files): Likewise.
72561         * modules/unictype/property-ideographic-tests (Files): Likewise.
72562         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
72563         * modules/unictype/property-ids-trinary-operator-tests (Files):
72564         Likewise.
72565         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
72566         * modules/unictype/property-iso-control-tests (Files): Likewise.
72567         * modules/unictype/property-join-control-tests (Files): Likewise.
72568         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
72569         * modules/unictype/property-line-separator-tests (Files): Likewise.
72570         * modules/unictype/property-logical-order-exception-tests (Files):
72571         Likewise.
72572         * modules/unictype/property-lowercase-tests (Files): Likewise.
72573         * modules/unictype/property-math-tests (Files): Likewise.
72574         * modules/unictype/property-non-break-tests (Files): Likewise.
72575         * modules/unictype/property-not-a-character-tests (Files): Likewise.
72576         * modules/unictype/property-numeric-tests (Files): Likewise.
72577         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
72578         * modules/unictype/property-other-default-ignorable-code-point-tests
72579         (Files): Likewise.
72580         * modules/unictype/property-other-grapheme-extend-tests (Files):
72581         Likewise.
72582         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
72583         * modules/unictype/property-other-id-start-tests (Files): Likewise.
72584         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
72585         * modules/unictype/property-other-math-tests (Files): Likewise.
72586         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
72587         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
72588         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
72589         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
72590         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
72591         * modules/unictype/property-private-use-tests (Files): Likewise.
72592         * modules/unictype/property-punctuation-tests (Files): Likewise.
72593         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
72594         * modules/unictype/property-radical-tests (Files): Likewise.
72595         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
72596         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
72597         * modules/unictype/property-space-tests (Files): Likewise.
72598         * modules/unictype/property-terminal-punctuation-tests (Files):
72599         Likewise.
72600         * modules/unictype/property-test-tests (Files): Likewise.
72601         * modules/unictype/property-titlecase-tests (Files): Likewise.
72602         * modules/unictype/property-unassigned-code-value-tests (Files):
72603         Likewise.
72604         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
72605         * modules/unictype/property-uppercase-tests (Files): Likewise.
72606         * modules/unictype/property-variation-selector-tests (Files): Likewise.
72607         * modules/unictype/property-white-space-tests (Files): Likewise.
72608         * modules/unictype/property-xid-continue-tests (Files): Likewise.
72609         * modules/unictype/property-xid-start-tests (Files): Likewise.
72610         * modules/unictype/property-zero-width-tests (Files): Likewise.
72611         * modules/unictype/scripts-tests (Files): Likewise.
72612         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
72613         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
72614         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
72615         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
72616         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
72617         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
72618         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
72619         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
72620         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
72621         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
72622         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
72623         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
72624         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
72625         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
72626         * modules/uninorm/composition-tests (Files): Likewise.
72627         * modules/uninorm/decomposing-form-tests (Files): Likewise.
72628         * modules/uninorm/decomposition-tests (Files): Likewise.
72629         * modules/uninorm/filter-tests (Files): Likewise.
72630         * modules/uninorm/nfc-tests (Files): Likewise.
72631         * modules/uninorm/nfd-tests (Files): Likewise.
72632         * modules/uninorm/nfkc-tests (Files): Likewise.
72633         * modules/uninorm/nfkd-tests (Files): Likewise.
72634         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
72635         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
72636         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
72637         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
72638         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
72639         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
72640         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
72641         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72642         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
72643         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
72644         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
72645         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
72646         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72647         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
72648         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
72649         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
72650         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
72651         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72652         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
72653         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
72654         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
72655         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
72656         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72657         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
72658         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
72659         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
72660         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
72661         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
72662         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
72663         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
72664         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
72665         * modules/uniwidth/u8-width-tests (Files): Likewise.
72666         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
72667         * modules/uniwidth/u16-width-tests (Files): Likewise.
72668         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
72669         * modules/uniwidth/u32-width-tests (Files): Likewise.
72670         * modules/uniwidth/width-tests (Files): Likewise.
72671         * modules/unlink-tests (Files): Likewise.
72672         * modules/unsetenv-tests (Files): Likewise.
72673         * modules/usleep-tests (Files): Likewise.
72674         * modules/utimens-tests (Files): Likewise.
72675         * modules/utimensat-tests (Files): Likewise.
72676         * modules/vasnprintf-posix-tests (Files): Likewise.
72677         * modules/vasnprintf-tests (Files): Likewise.
72678         * modules/vasprintf-posix-tests (Files): Likewise.
72679         * modules/vasprintf-tests (Files): Likewise.
72680         * modules/vdprintf-posix-tests (Files): Likewise.
72681         * modules/vfprintf-posix-tests (Files): Likewise.
72682         * modules/vprintf-posix-tests (Files): Likewise.
72683         * modules/vsnprintf-posix-tests (Files): Likewise.
72684         * modules/vsnprintf-tests (Files): Likewise.
72685         * modules/vsprintf-posix-tests (Files): Likewise.
72686         * modules/wcrtomb-tests (Files): Likewise.
72687         * modules/wcsnrtombs-tests (Files): Likewise.
72688         * modules/wcsrtombs-tests (Files): Likewise.
72689         * modules/wctype-tests (Files): Likewise.
72690         * modules/wcwidth-tests (Files): Likewise.
72691         * modules/xmemdup0-tests (Files): Likewise.
72692         * modules/xprintf-posix-tests (Files): Likewise.
72693         * modules/xvasprintf-tests (Files): Likewise.
72695 2009-12-24  Eric Blake  <ebb9@byu.net>
72697         test-nanosleep: fix typo
72698         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
72699         patch.
72700         Reported by Bruno Haible.
72702 2009-12-24  Bruno Haible  <bruno@clisp.org>
72704         Reduce namespace pollution on glibc systems.
72705         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
72706         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
72707         systems.
72708         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
72709         <getopt.h> on glibc systems.
72710         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
72711         systems.
72712         * lib/fcntl.c: Include <unistd.h> here instead.
72714 2009-12-24  Bruno Haible  <bruno@clisp.org>
72716         * lib/stdlib.in.h (includes): Fix typo in today's commit.
72718 2009-12-24  Eric Blake  <ebb9@byu.net>
72720         tests: add signature checks
72721         * tests/signature.h (SIGNATURE_CHECK): New file.
72722         * modules/atexit-tests (Files): Use it.
72723         * modules/btowc-tests (Files): Likewise.
72724         * modules/canonicalize-lgpl-tests (Files): Likewise.
72725         * modules/ceilf-tests (Files): Likewise.
72726         * modules/ceill-tests (Files): Likewise.
72727         * modules/chown-tests (Files): Likewise.
72728         * modules/dprintf-posix-tests (Files): Likewise.
72729         * modules/dup2-tests (Files): Likewise.
72730         * modules/dup3-tests (Files): Likewise.
72731         * modules/duplocale-tests (Files): Likewise.
72732         * modules/fchdir-tests (Files): Likewise.
72733         * modules/fcntl-tests (Files): Likewise.
72734         * modules/fdopendir-tests (Files): Likewise.
72735         * modules/fflush-tests (Files): Likewise.
72736         * modules/flock-tests (Files): Likewise.
72737         * modules/floorf-tests (Files): Likewise.
72738         * modules/floorl-tests (Files): Likewise.
72739         * modules/fnmatch-tests (Files): Likewise.
72740         * modules/fopen-tests (Files): Likewise.
72741         * modules/fprintf-posix-tests (Files): Likewise.
72742         * modules/freopen-tests (Files): Likewise.
72743         * modules/frexp-nolibm-tests (Files): Likewise.
72744         * modules/frexp-tests (Files): Likewise.
72745         * modules/frexpl-nolibm-tests (Files): Likewise.
72746         * modules/frexpl-tests (Files): Likewise.
72747         * modules/fseek-tests (Files): Likewise.
72748         * modules/fseeko-tests (Files): Likewise.
72749         * modules/fsync-tests (Files): Likewise.
72750         * modules/ftell-tests (Files): Likewise.
72751         * modules/ftello-tests (Files): Likewise.
72752         * modules/futimens-tests (Files): Likewise.
72753         * modules/getaddrinfo-tests (Files): Likewise.
72754         * modules/getcwd-tests (Files): Likewise.
72755         * modules/getdelim-tests (Files): Likewise.
72756         * modules/getdtablesize-tests (Files): Likewise.
72757         * modules/getgroups-tests (Files): Likewise.
72758         * modules/gethostname-tests (Files): Likewise.
72759         * modules/getline-tests (Files): Likewise.
72760         * modules/getopt-posix-tests (Files): Likewise.
72761         * modules/gettimeofday-tests (Files): Likewise.
72762         * modules/glob-tests (Files): Likewise.
72763         * modules/iconv-tests (Files): Likewise.
72764         * modules/inet_ntop-tests (Files): Likewise.
72765         * modules/inet_pton-tests (Files): Likewise.
72766         * modules/isblank-tests (Files): Likewise.
72767         * modules/lchown-tests (Files): Likewise.
72768         * modules/ldexpl-tests (Files): Likewise.
72769         * modules/link-tests (Files): Likewise.
72770         * modules/linkat-tests (Files): Likewise.
72771         * modules/lseek-tests (Files): Likewise.
72772         * modules/lstat-tests (Files): Likewise.
72773         * modules/mbrtowc-tests (Files): Likewise.
72774         * modules/mbsinit-tests (Files): Likewise.
72775         * modules/mbsnrtowcs-tests (Files): Likewise.
72776         * modules/mbsrtowcs-tests (Files): Likewise.
72777         * modules/memchr-tests (Files): Likewise.
72778         * modules/memcmp-tests (Files): Likewise.
72779         * modules/memmem-tests (Files): Likewise.
72780         * modules/memrchr-tests (Files): Likewise.
72781         * modules/mkdir-tests (Files): Likewise.
72782         * modules/mkfifo-tests (Files): Likewise.
72783         * modules/mkfifoat-tests (Files): Likewise.
72784         * modules/mknod-tests (Files): Likewise.
72785         * modules/nanosleep-tests (Files): Likewise.
72786         * modules/nl_langinfo-tests (Files): Likewise.
72787         * modules/obstack-printf-tests (Files): Likewise.
72788         * modules/open-tests (Files): Likewise.
72789         * modules/openat-tests (Files): Likewise.
72790         * modules/perror-tests (Files): Likewise.
72791         * modules/pipe2-tests (Files): Likewise.
72792         * modules/poll-tests (Files): Likewise.
72793         * modules/popen-tests (Files): Likewise.
72794         * modules/posix_spawn-tests (Files): Likewise.
72795         * modules/posix_spawnp-tests (Files): Likewise.
72796         * modules/pread-tests (Files): Likewise.
72797         * modules/printf-posix-tests (Files): Likewise.
72798         * modules/pty-tests (Files): Likewise.
72799         * modules/random_r-tests (Files): Likewise.
72800         * modules/rawmemchr-tests (Files): Likewise.
72801         * modules/readlink-tests (Files): Likewise.
72802         * modules/remove-tests (Files): Likewise.
72803         * modules/rename-tests (Files): Likewise.
72804         * modules/renameat-tests (Files): Likewise.
72805         * modules/rmdir-tests (Files): Likewise.
72806         * modules/round-tests (Files): Likewise.
72807         * modules/roundf-tests (Files): Likewise.
72808         * modules/roundl-tests (Files): Likewise.
72809         * modules/select-tests (Files): Likewise.
72810         * modules/setenv-tests (Files): Likewise.
72811         * modules/sigaction-tests (Files): Likewise.
72812         * modules/sleep-tests (Files): Likewise.
72813         * modules/snprintf-posix-tests (Files): Likewise.
72814         * modules/snprintf-tests (Files): Likewise.
72815         * modules/sprintf-posix-tests (Files): Likewise.
72816         * modules/stat-tests (Files): Likewise.
72817         * modules/strcasestr-tests (Files): Likewise.
72818         * modules/strchrnul-tests (Files): Likewise.
72819         * modules/strerror-tests (Files): Likewise.
72820         * modules/strsignal-tests (Files): Likewise.
72821         * modules/strstr-tests (Files): Likewise.
72822         * modules/strtod-tests (Files): Likewise.
72823         * modules/strverscmp-tests (Files): Likewise.
72824         * modules/symlink-tests (Files): Likewise.
72825         * modules/symlinkat-tests (Files): Likewise.
72826         * modules/times-tests (Files): Likewise.
72827         * modules/trunc-tests (Files): Likewise.
72828         * modules/truncf-tests (Files): Likewise.
72829         * modules/truncl-tests (Files): Likewise.
72830         * modules/tsearch-tests (Files): Likewise.
72831         * modules/uname-tests (Files): Likewise.
72832         * modules/unlink-tests (Files): Likewise.
72833         * modules/unsetenv-tests (Files): Likewise.
72834         * modules/usleep-tests (Files): Likewise.
72835         * modules/utimensat-tests (Files): Likewise.
72836         * modules/vasprintf-tests (Files): Likewise.
72837         * modules/vdprintf-posix-tests (Files): Likewise.
72838         * modules/vfprintf-posix-tests (Files): Likewise.
72839         * modules/vprintf-posix-tests (Files): Likewise.
72840         * modules/vsnprintf-posix-tests (Files): Likewise.
72841         * modules/vsnprintf-tests (Files): Likewise.
72842         * modules/vsprintf-posix-tests (Files): Likewise.
72843         * modules/wcrtomb-tests (Files): Likewise.
72844         * modules/wcsnrtombs-tests (Files): Likewise.
72845         * modules/wcsrtombs-tests (Files): Likewise.
72846         * modules/wcwidth-tests (Files): Likewise.
72847         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
72848         * tests/test-isinf.c (isinf): Likewise.
72849         * tests/test-isnan.c (isnan): Likewise.
72850         * tests/test-signbit.c (signbit): Likewise.
72851         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
72852         declaration, either as macro or with correct signature.
72853         (select): Ensure function under test is declared with correct
72854         signature in correct header.
72855         * tests/test-atexit.c (atexit): Likewise.
72856         * tests/test-btowc.c (btowc): Likewise.
72857         * tests/test-canonicalize-lgpl.c (realpath)
72858         (canonicalize_file_name): Likewise.
72859         * tests/test-ceilf1.c (ceilf): Likewise.
72860         * tests/test-ceill.c (ceill): Likewise.
72861         * tests/test-chown.c (chown): Likewise.
72862         * tests/test-dprintf-posix.c (dprintf): Likewise.
72863         * tests/test-dup2.c (dup2): Likewise.
72864         * tests/test-dup3.c (dup3): Likewise.
72865         * tests/test-duplocale.c (duplocale): Likewise.
72866         * tests/test-fchdir.c (fchdir): Likewise.
72867         * tests/test-fchownat.c (fchownat): Likewise.
72868         * tests/test-fcntl.c (fcntl): Likewise.
72869         * tests/test-fdopendir.c (fdopendir): Likewise.
72870         * tests/test-fflush.c (fflush): Likewise.
72871         * tests/test-flock.c (flock): Likewise.
72872         * tests/test-floorf1.c (floorf): Likewise.
72873         * tests/test-floorl.c (floorl): Likewise.
72874         * tests/test-fnmatch.c (fnmatch): Likewise.
72875         * tests/test-fopen.c (fopen): Likewise.
72876         * tests/test-fprintf-posix.c (fprintf): Likewise.
72877         * tests/test-freopen.c (freopen): Likewise.
72878         * tests/test-frexp.c (frexp): Likewise.
72879         * tests/test-frexpl.c (frexpl): Likewise.
72880         * tests/test-fseek.c (fseek): Likewise.
72881         * tests/test-fseeko.c (fseeko): Likewise.
72882         * tests/test-fstatat.c (fstatat): Likewise.
72883         * tests/test-fsync.c (fsync): Likewise.
72884         * tests/test-ftell.c (ftell): Likewise.
72885         * tests/test-ftello.c (ftello): Likewise.
72886         * tests/test-futimens.c (futimens): Likewise.
72887         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
72888         (gai_strerror): Likewise.
72889         * tests/test-getcwd.c (getcwd): Likewise.
72890         * tests/test-getdelim.c (getdelim): Likewise.
72891         * tests/test-getdtablesize.c (getdtablesize): Likewise.
72892         * tests/test-getgroups.c (getgroups): Likewise.
72893         * tests/test-gethostname.c (gethostname): Likewise.
72894         * tests/test-getline.c (getline): Likewise.
72895         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
72896         Likewise.
72897         * tests/test-gettimeofday.c (gettimeofday): Likewise.
72898         * tests/test-glob.c (glob, globfree): Likewise.
72899         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
72900         * tests/test-inet_ntop.c (inet_ntop): Likewise.
72901         * tests/test-inet_pton.c (inet_pton): Likewise.
72902         * tests/test-isblank.c (isblank): Likewise.
72903         * tests/test-lchown.c (lchown): Likewise.
72904         * tests/test-ldexpl.c (ldexpl): Likewise.
72905         * tests/test-link.c (link): Likewise.
72906         * tests/test-linkat.c (linkat): Likewise.
72907         * tests/test-lseek.c (lseek): Likewise.
72908         * tests/test-lstat.c (lstat): Likewise.
72909         * tests/test-mbrtowc.c (mbrtowc): Likewise.
72910         * tests/test-mbsinit.c (mbsinit): Likewise.
72911         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
72912         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
72913         * tests/test-memchr.c (memchr): Likewise.
72914         * tests/test-memcmp.c (memcmp): Likewise.
72915         * tests/test-memmem.c (memmem): Likewise.
72916         * tests/test-memrchr.c (memrchr): Likewise.
72917         * tests/test-mkdir.c (mkdir): Likewise.
72918         * tests/test-mkdirat.c (mkdirat): Likewise.
72919         * tests/test-mkfifo.c (mkfifo): Likewise.
72920         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
72921         * tests/test-mknod.c (mknod): Likewise.
72922         * tests/test-nanosleep.c (nanosleep): Likewise.
72923         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
72924         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
72925         Likewise.
72926         * tests/test-open.c (open): Likewise.
72927         * tests/test-openat.c (openat): Likewise.
72928         * tests/test-perror.c (perror): Likewise.
72929         * tests/test-pipe2.c (pipe2): Likewise.
72930         * tests/test-poll.c (poll): Likewise.
72931         * tests/test-popen.c (popen, pclose): Likewise.
72932         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
72933         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
72934         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
72935         (posix_spawn_file_actions_destroy)
72936         (posix_spawn_file_actions_addclose)
72937         (posix_spawn_file_actions_addopen)
72938         (posix_spawn_file_actions_adddup2): Likewise.
72939         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
72940         * tests/test-pread.c (pread): Likewise.
72941         * tests/test-printf-posix.c (printf): Likewise.
72942         * tests/test-pty.c (openpty, forkpty): Likewise.
72943         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
72944         (random_r): Likewise.
72945         * tests/test-rawmemchr.c (rawmemchr): Likewise.
72946         * tests/test-readlink.c (readlink): Likewise.
72947         * tests/test-remove.c (remove): Likewise.
72948         * tests/test-rename.c (rename): Likewise.
72949         * tests/test-renameat.c (renameat): Likewise.
72950         * tests/test-rmdir.c (rmdir): Likewise.
72951         * tests/test-round1.c (round): Likewise.
72952         * tests/test-roundf1.c (roundf): Likewise.
72953         * tests/test-roundl.c (roundl): Likewise.
72954         * tests/test-setenv.c (setenv): Likewise.
72955         * tests/test-sigaction.c (sigaction): Likewise.
72956         * tests/test-sleep.c (sleep): Likewise.
72957         * tests/test-snprintf.c (snprintf): Likewise.
72958         * tests/test-sprintf-posix.c (sprintf): Likewise.
72959         * tests/test-stat.c (stat): Likewise.
72960         * tests/test-stpncpy.c (stpncpy): Likewise.
72961         * tests/test-strcasestr.c (strcasestr): Likewise.
72962         * tests/test-strchrnul.c (strchrnul): Likewise.
72963         * tests/test-strerror.c (strerror): Likewise.
72964         * tests/test-strsignal.c (strsignal): Likewise.
72965         * tests/test-strstr.c (strstr): Likewise.
72966         * tests/test-strtod.c (strtod): Likewise.
72967         * tests/test-strverscmp.c (strverscmp): Likewise.
72968         * tests/test-symlink.c (symlink): Likewise.
72969         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
72970         * tests/test-times.c (times): Likewise.
72971         * tests/test-trunc1.c (trunc): Likewise.
72972         * tests/test-truncf1.c (truncf): Likewise.
72973         * tests/test-truncl.c (truncl): Likewise.
72974         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
72975         Likewise.
72976         * tests/test-uname.c (uname): Likewise.
72977         * tests/test-unlink.c (unlink): Likewise.
72978         * tests/test-unlinkat.c (unlinkat): Likewise.
72979         * tests/test-unsetenv.c (unsetenv): Likewise.
72980         * tests/test-usleep.c (usleep): Likewise.
72981         * tests/test-utimensat.c (utimensat): Likewise.
72982         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
72983         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
72984         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
72985         * tests/test-vprintf-posix.c (vprintf): Likewise.
72986         * tests/test-vsnprintf.c (vsnprintf): Likewise.
72987         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
72988         * tests/test-wcrtomb.c (wcrtomb): Likewise.
72989         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
72990         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
72991         * tests/test-wcwidth.c (wcwidth): Likewise.
72993         build: pull in conditional headers during GNULIB_POSIXCHECK
72994         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
72995         definitions from any conditionally-included headers.
72996         * lib/stdlib.in.h (includes): Likewise.
72997         * lib/unistd.in.h (includes): Likewise.
72999 2009-12-24  Bruno Haible  <bruno@clisp.org>
73001         * tests/test-argv-iter.c: Include header file being tested immediately
73002         after config.h.
73003         * tests/test-base64.c: Likewise.
73004         * tests/test-flock.c: Likewise.
73005         * tests/test-fsync.c: Likewise.
73006         * tests/test-getdate.c: Likewise.
73007         * tests/test-getndelim2.c: Likewise.
73008         * tests/test-isfinite.c: Likewise.
73009         * tests/test-isinf.c: Likewise.
73010         * tests/test-strerror.c: Likewise.
73011         * tests/test-strsignal.c: Likewise.
73013 2009-12-23  Eric Blake  <ebb9@byu.net>
73015         unistd: work around cygwin bug
73016         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
73017         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
73018         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
73020 2009-12-23  Bruno Haible  <bruno@clisp.org>
73022         localename: More tests.
73023         * tests/test-localename.c (SIZEOF): New macro.
73024         (categories): New variable.
73025         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
73026         test_locale_name_default): Add test w.r.t. thread locale.
73027         (test_locale_name_thread): New function.
73028         (main): Invoke it.
73030         localename: Make aware of thread locale.
73031         * lib/localename.h (gl_locale_name_thread): New declaration.
73032         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
73033         behaviour with respect to thread locale.
73034         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
73035         <langinfo.h>, glthread/lock.h.
73036         (SIZE_BITS): New macro.
73037         (string_hash): New function.
73038         (struct hash_node): New type.
73039         (HASH_TABLE_SIZE): New macro.
73040         (struniq_hash_table, struniq_lock): New variables.
73041         (struniq): New function.
73042         (gl_locale_name_thread): New function.
73043         (gl_locale_name): Invoke it.
73044         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
73045         * modules/localename (Depends-on): Add lock.
73046         Reported by Mike Gran <spk121@yahoo.com>.
73048 2009-12-23  Eric Blake  <ebb9@byu.net>
73050         va-args: new module
73051         * modules/va-args: New file.
73052         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
73053         * MODULES.html.sh (Core language properties): Mention it.
73055         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
73056         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
73057         named alias for __attribute__((__unused__)).
73058         * lib/chown.c: Update client.
73059         * lib/fchmodat.c: Likewise.
73060         * lib/fts.c: Likewise.
73061         * lib/getdate.y: Likewise.
73062         * lib/getgroups.c: Likewise.
73063         * lib/getopt.c: Likewise.
73064         * lib/getugroups.c: Likewise.
73065         * lib/mkdir.c: Likewise.
73066         * lib/mkfifo.c: Likewise.
73067         * lib/mkfifoat.c: Likewise.
73068         * lib/mknod.c: Likewise.
73069         * lib/mknodat.c: Likewise.
73070         * lib/readlink.c: Likewise.
73071         * lib/se-context.in.h: Likewise.
73072         * lib/se-selinux.in.h: Likewise.
73073         * lib/sockets.c: Likewise.
73074         * lib/symlink.c: Likewise.
73075         * lib/symlinkat.c: Likewise.
73076         * lib/unicodeio.c: Likewise.
73077         * lib/unistr.h: Likewise.
73078         * tests/test-areadlink.c: Likewise.
73079         * tests/test-areadlinkat.c: Likewise.
73080         * tests/test-filenamecat.c: Likewise.
73081         * tests/test-fseeko.c: Likewise.
73082         * tests/test-ftello.c: Likewise.
73083         * tests/test-getdate.c: Likewise.
73084         * tests/test-getgroups.c: Likewise.
73085         * tests/test-gethostname.c: Likewise.
73086         * tests/test-quotearg.c: Likewise.
73087         * tests/test-version-etc.c: Likewise.
73088         * tests/test-xalloc-die.c: Likewise.
73089         * tests/test-xfprintf-posix.c: Likewise.
73090         * tests/test-xprintf-posix.c: Likewise.
73091         * tests/test-xvasprintf.c: Likewise.
73093         tests: avoid compiler warnings
73094         * tests/test-fcntl.c (main): Delete unused parameters.
73095         * tests/test-freopen-safer.c (main): Likewise.
73096         * tests/test-xalloc-die.c (main): Mark unused parameters.
73097         * tests/test-fseeko.c (main): Likewise.
73098         * tests/test-ftello.c (main): Likewise.
73099         * tests/test-nanosleep.c (main): Avoid declaration warning.
73100         * tests/test-sleep.c (main): Likewise.
73101         * tests/test-unsetenv.c (main): Silence warning about string
73102         literal.
73103         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
73105 2009-12-23  Bruno Haible  <bruno@clisp.org>
73107         * tests/test-localename.c (test_locale_name): New function, extracted
73108         from main. Also test mixed situations.
73109         (test_locale_name_posix, test_locale_name_environ,
73110         test_locale_name_default): New functions.
73111         (main): Invoke them all.
73112         * modules/localename-tests (configure.ac): Test for newlocale.
73114 2009-12-23  Bruno Haible  <bruno@clisp.org>
73116         unistd: Ensure getcwd gets declared before being overridden.
73117         * lib/unistd.in.h: Conditionally include <io.h>.
73119 2009-12-22  Bruno Haible  <bruno@clisp.org>
73121         wchar: Diagnose broken combination of glibc and gcc versions and flags.
73122         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
73123         (gl_WCHAR_H): Invoke it.
73124         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
73125         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
73126         Reported by Karl Berry <karl@freefriends.org>.
73128 2009-12-22  Eric Blake  <ebb9@byu.net>
73130         math, unistd: avoid redundant includes
73131         * lib/math.in.h (isnan): No need to re-include <math.h>.
73132         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
73134         getsubopt: work around cygwin bug
73135         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
73136         avoid conflicting with system getsubopt.
73137         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
73138         bug.
73140         getopt: synchronize from glibc
73141         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
73142         parameter order.  Adjust all callers.
73143         (_getopt_internal_r, main): Adjust quoting in error messages.
73144         Drop considerations for outdated POSIX 1003.2 error message.
73145         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
73146         callers.
73147         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
73149         test-getopt: test stderr behavior
73150         * modules/getopt-posix-tests (Depends-on): Add dup2.
73151         * tests/test-getopt.c (ASSERT): Avoid stderr.
73152         (main): Move stderr to a temporary file.
73153         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
73154         Instead, add parameter to inform caller if output occurred.
73155         (test_getopt): Adjust all existing tests to expect silence, and
73156         add new tests of leading ":".
73157         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73158         glibc shortcomings with leading "-:" or "+:" in optstring.
73159         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73160         Likewise.
73161         * doc/posix-functions/getopt.texi (getopt): Likewise.
73163         test-getopt: enhance test
73164         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
73165         supports optind=0.
73166         * tests/test-getopt.c (OPTIND_MIN): Move...
73167         * tests/test-getopt.h (OPTIND_MIN): ...here.
73168         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
73169         Require that optind=0 works, since modern BSD supports it in
73170         addition to optreset, and since coreutils expects it.
73171         (test_getopt_long_only): New test.
73172         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
73173         glibc shortcomings with 'W;', and enforcement of optind=0.
73174         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
73175         Likewise.
73177 2009-12-21  Bruno Haible  <bruno@clisp.org>
73179         localename: Improvements for MacOS X and Cygwin.
73180         * lib/localename.h (gl_locale_name_environ): New declaration.
73181         * lib/localename.c (gl_locale_name_environ): New function, extracted from
73182         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
73183         (gl_locale_name_posix): Invoke it.
73184         (gl_locale_name_default): Add comments. Use Windows native API also on
73185         Cygwin.
73187 2009-12-21  Bruno Haible  <bruno@clisp.org>
73189         Update list of Win32 locale ids.
73190         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
73191         (LANG_SAMI): Renamed from LANG_SAAMI.
73192         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
73193         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
73194         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
73195         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
73196         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
73197         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
73198         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
73199         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
73200         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
73201         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
73202         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
73203         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
73204         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
73205         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
73206         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
73207         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
73208         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
73209         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
73210         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
73211         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
73212         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
73213         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
73214         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
73215         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
73216         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
73217         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
73218         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
73219         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
73220         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
73221         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
73222         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
73223         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
73224         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
73225         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
73226         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
73227         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
73228         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
73229         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
73230         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
73231         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
73232         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
73233         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
73234         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
73235         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
73236         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
73237         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
73238         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
73239         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
73240         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
73241         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
73242         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
73243         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
73244         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
73245         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
73246         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
73247         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
73248         Add more languages and countries for Sami, Sorbian. Add more countries
73249         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
73250         for Pashto. Change country for Syriac, Tswana.
73252 2009-12-21  Eric Blake  <ebb9@byu.net>
73254         test-utimens: avoid spurious failure
73255         * tests/test-chown.h (nap): Factor...
73256         * tests/nap.h: ...into new file.
73257         * tests/test-lchown.h (nap): Avoid duplication.
73258         * tests/test-utimens-common.h (nap): Use shared implementation,
73259         necessary on file systems with 1-second resolution.
73260         * modules/chown-tests (Files): Include new file.
73261         * modules/fdutimensat-tests (Files): Likewise.
73262         * modules/futimens-tests (Files): Likewise.
73263         * modules/lchown-tests (Files): Likewise.
73264         * modules/openat-tests (Files): Likewise.
73265         * modules/utimens-tests (Files): Likewise.
73266         * modules/utimensat-tests (Files): Likewise.
73268 2009-12-19  Eric Blake  <ebb9@byu.net>
73270         futimens, utimensat: work around Linux bug
73271         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
73272         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73273         * lib/utimensat.c (rpl_utimensat): Work around it.
73274         * lib/futimens.c (rpl_futimens): Adjust comment.
73276         utimens: work around Linux ctime bug
73277         * lib/utimens.c (detect_ctime_bug): New helper function.
73278         (update_timespec): Differentiate between workaround needed for
73279         this bug vs. what is needed for systems that lack utimensat.
73280         (fdutimens, lutimens): Work around bug.
73282         utimens: check for ctime update
73283         * tests/test-utimens-common.h (check_ctime): Define.
73284         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
73285         * tests/test-futimens.h (test_futimens): Likewise.
73286         * tests/test-lutimens.h (test_lutimens): Likewise.
73287         * doc/posix-functions/futimens.texi (futimens): Document the bug.
73288         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
73290 2009-12-19  Bruno Haible  <bruno@clisp.org>
73292         dprintf-posix: Check against memory leak fixed on 2009-12-15.
73293         * tests/test-dprintf-posix2.sh: New file.
73294         * tests/test-dprintf-posix2.c: New file.
73295         * modules/dprintf-posix-tests (Files): Add them.
73296         (configure.ac): Check for getrlimit and setrlimit.
73297         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73299 2009-12-19  Bruno Haible  <bruno@clisp.org>
73301         fprintf-posix: Check against memory leak fixed on 2009-12-15.
73302         * tests/test-fprintf-posix3.sh: New file.
73303         * tests/test-fprintf-posix3.c: New file.
73304         * modules/fprintf-posix-tests (Files): Add them.
73305         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
73307 2009-12-19  Eric Blake  <ebb9@byu.net>
73309         dirfd: fix prototype
73310         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
73311         * lib/dirfd.c (dirfd): Likewise.
73313         canonicalize: reduce memory usage
73314         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
73315         allocation to size.
73316         Reported by Solar Designer <solar@openwall.com>.
73318 2009-12-19  Bruno Haible  <bruno@clisp.org>
73320         New module attribute 'Applicability'.
73321         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
73322         * gnulib-tool: New option --extract-applicability.
73323         (func_usage): Document it.
73324         (sed_extract_prog): Recognize it.
73325         (func_get_applicability): New function.
73326         (func_import): Generalize handling of 'link-warning' module.
73327         * modules/link-warning (Applicability): New section.
73328         * modules/arg-nonnull (Applicability): New section.
73329         Repoted by Simon Josefsson <simon@josefsson.org>.
73331 2009-12-19  Bruno Haible  <bruno@clisp.org>
73333         fflush: tweak
73334         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
73335         * lib/fseeko.c (rpl_fseeko): Likewise.
73337 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
73339         * lib/gl_list.h: Fix typo in comment.
73341 2009-12-16  Eric Blake  <ebb9@byu.net>
73343         fcntl: use to simplify other modules
73344         * modules/cloexec (Depends-on): Add fcntl.
73345         * modules/fchdir (Depends-on): Likewise.
73346         * modules/fd-safer-flag (Depends-on): Likewise.
73347         * modules/unistd-safer (Depends-on): Likewise.
73348         * modules/dup3 (configure.ac): Set module indicator.
73349         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
73350         missing.
73351         * lib/fchdir.c (_gl_register_dup): Fix comment.
73352         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
73353         * lib/dup-safer.c (dup_safer): Likewise.
73354         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
73355         * lib/dup3.c (dup3): Likewise.
73356         * tests/test-fchdir.c (main): Enhance test.
73357         Fixes a dup_cloexec bug reported by Ondřej Vašík.
73359         fcntl: port portions of fcntl to mingw
73360         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
73361         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
73362         replacement for mingw.
73363         * modules/fcntl (Description): Update.
73364         (Depends-on): Add dup2.
73365         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
73366         * modules/fcntl-h (Makefile.am): Substitute it.
73367         * lib/fcntl.in.h (fcntl): Update declaration.
73368         (F_DUPFD, F_GETFD): New macros, when needed.
73369         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
73370         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
73371         * tests/test-fcntl.c (check_flags, main): Enhance test for items
73372         we now guarantee.
73374         fcntl: work around cygwin bug in F_DUPFD
73375         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
73376         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
73377         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
73378         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
73379         * doc/posix-functions/fcntl.texi (fcntl): Document it.
73381         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
73382         * modules/fcntl (Files): List new files.
73383         (configure.ac): Run a test.
73384         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
73385         * lib/fcntl.c (rpl_fcntl): Likewise.
73386         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
73387         (gl_FCNTL_H): Always replace fcntl.h.
73388         * modules/fcntl-h (Makefile.am): Substitute witnesses.
73389         * lib/fcntl.in.h (fcntl): Declare replacement.
73390         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
73391         needed, plus a witness.
73392         * doc/posix-functions/fcntl.texi (fcntl): Document this.
73393         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
73394         * tests/test-fcntl.c: New file.
73395         * modules/fcntl-tests: Likewise.
73397         binary-io: avoid potential compilation warning
73398         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
73399         directives.
73401         fflush: avoid compilation error on NetBSD
73402         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
73403         between off_t and fpos_t, since the latter is sometimes a struct.
73404         * lib/fseeko.c (rpl_fseeko): Likewise.
73405         Reported by Alexander Nasonov <alnsn@yandex.ru>.
73407 2009-12-15  Eric Blake  <ebb9@byu.net>
73409         fcntl-h, stdio, sys_ioctl: fix declarations
73410         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
73411         function must not take arguments.
73412         * lib/sys_ioctl.in.h (ioctl): Likewise.
73413         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
73414         (open): Add a link warning.
73416 2009-12-15  Jim Meyering  <meyering@redhat.com>
73418         areadlink, areadlink-with-size: relax license to LGPLv2+
73419         * modules/areadlink (License): Relax to LGPLv2+.
73420         * modules/areadlink-with-size (License): Likewise.
73422 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
73423             Bruno Haible  <bruno@clisp.org>
73425         *printf: Fix memory leak.
73426         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
73427         * lib/vfprintf.c (vfprintf): Likewise.
73428         * lib/dprintf.c (dprintf): Likewise.
73429         * lib/vdprintf.c (vdprintf): Likewise.
73431 2009-12-14  Eric Blake  <ebb9@byu.net>
73433         accept4: adjust module dependencies
73434         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
73436         utimens: one more try at avoiding compiler warning
73437         * lib/utimens.c (lutimens): Lower scope of result.
73439 2009-12-13  Bruno Haible  <bruno@clisp.org>
73441         Move the malloc checking from module 'list' to new module 'xlist'.
73442         * modules/xlist: New file.
73443         * lib/gl_xlist.h: New file.
73444         * lib/gl_xlist.c: New file.
73445         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
73446         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
73447         gl_list_add_last, gl_list_add_before, gl_list_add_after,
73448         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
73449         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
73450         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
73451         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
73452         gl_sortedlist_nx_add): New declarations.
73453         (struct gl_list_implementation): Rename and change methods accordingly.
73454         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
73455         (gl_list_nx_create): Renamed from gl_list_create.
73456         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73457         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73458         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73459         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73460         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73461         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73462         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73463         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73464         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
73465         gl_list_create_empty.
73466         (gl_list_nx_create): Renamed from gl_list_create.
73467         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
73468         (gl_list_nx_set_at): Renamed from gl_list_set_at.
73469         (gl_list_nx_add_first): Renamed from gl_list_add_first.
73470         (gl_list_nx_add_last): Renamed from gl_list_add_last.
73471         (gl_list_nx_add_before): Renamed from gl_list_add_before.
73472         (gl_list_nx_add_after): Renamed from gl_list_add_after.
73473         (gl_list_nx_add_at): Renamed from gl_list_add_at.
73474         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
73475         * lib/gl_array_list.c: Don't include xalloc.h.
73476         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
73477         NULL upon out-of-memory.
73478         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
73479         out-of-memory.
73480         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
73481         Change return type to 'int'.
73482         (gl_array_nx_set_at): Renamed from gl_array_set_at.
73483         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73484         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
73485         upon out-of-memory.
73486         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
73487         upon out-of-memory.
73488         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
73489         upon out-of-memory.
73490         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
73491         upon out-of-memory.
73492         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
73493         out-of-memory.
73494         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
73495         Update.
73496         (gl_array_list_implementation): Update.
73497         * lib/gl_carray_list.c: Don't include xalloc.h.
73498         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
73499         Return NULL upon out-of-memory.
73500         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
73501         out-of-memory.
73502         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
73503         Change return type to 'int'.
73504         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
73505         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
73506         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
73507         upon out-of-memory.
73508         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
73509         upon out-of-memory.
73510         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
73511         out-of-memory.
73512         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
73513         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
73514         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
73515         Update.
73516         (gl_carray_list_implementation): Update.
73517         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
73518         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
73519         gl_linked_create_empty. Return NULL upon out-of-memory.
73520         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
73521         out-of-memory.
73522         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
73523         Change return type to 'int'. Return -1 upon out-of-memory.
73524         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
73525         out-of-memory.
73526         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
73527         upon out-of-memory.
73528         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
73529         upon out-of-memory.
73530         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
73531         NULL upon out-of-memory.
73532         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
73533         upon out-of-memory.
73534         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
73535         out-of-memory.
73536         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
73537         Update.
73538         * lib/gl_linked_list.c: Don't include xalloc.h.
73539         (gl_linked_list_implementation): Update.
73540         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
73541         (add_to_bucket): Change return type to 'int'.
73542         (gl_linkedhash_list_implementation): Update.
73543         * lib/gl_anytree_list1.h (free_subtree): New function.
73544         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
73545         gl_tree_create_empty. Return NULL upon out-of-memory.
73546         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
73547         Change return type to 'int'. Return -1 upon out-of-memory.
73548         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
73549         out-of-memory.
73550         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
73551         (gl_tree_remove_node): New function, moved here from
73552         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
73553         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
73554         Update.
73555         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
73556         malloc, not xmalloc. Return NULL upon out-of-memory.
73557         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73558         out-of-memory.
73559         (gl_tree_remove_node_from_tree): New function, extracted from
73560         gl_tree_remove_node.
73561         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73562         upon out-of-memory.
73563         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73564         out-of-memory.
73565         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73566         upon out-of-memory.
73567         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73568         upon out-of-memory.
73569         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73570         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
73571         not xmalloc. Return NULL upon out-of-memory.
73572         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
73573         out-of-memory.
73574         (gl_tree_remove_node_from_tree): New function, extracted from
73575         gl_tree_remove_node.
73576         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
73577         upon out-of-memory.
73578         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
73579         out-of-memory.
73580         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
73581         upon out-of-memory.
73582         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
73583         upon out-of-memory.
73584         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
73585         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
73586         gl_anytree_list1.h before gl_anyavltree_list2.h.
73587         (gl_avltree_list_implementation): Update.
73588         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
73589         gl_anytree_list1.h before gl_anyavltree_list2.h.
73590         (gl_rbtree_list_implementation): Update.
73591         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
73592         Change return type to 'int'. Return -1 upon out-of-memory. Use
73593         __builtin_expect.
73594         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
73595         (gl_avltreehash_list_implementation): Update.
73596         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
73597         (gl_rbtreehash_list_implementation): Update.
73598         * modules/array-list (Depends-on): Remove xalloc.
73599         * modules/carray-list (Depends-on): Likewise.
73600         * modules/linked-list (Depends-on): Likewise.
73601         * modules/linkedhash-list (Depends-on): Likewise.
73602         * modules/avltree-list (Depends-on): Likewise.
73603         * modules/rbtree-list (Depends-on): Likewise.
73604         * modules/avltreehash-list (Depends-on): Likewise.
73605         * modules/rbtreehash-list (Depends-on): Likewise.
73607         * modules/xsublist: New file.
73608         * lib/gl_xsublist.h: New file.
73609         * lib/gl_xsublist.c: New file.
73610         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
73611         (gl_sublist_nx_create): New declaration.
73612         * lib/gl_sublist.c: Don't include xalloc.h.
73613         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
73614         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
73615         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
73616         Change return type to 'int'. Return -1 upon out-of-memory.
73617         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
73618         upon out-of-memory.
73619         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
73620         NULL upon out-of-memory.
73621         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
73622         upon out-of-memory.
73623         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
73624         NULL upon out-of-memory.
73625         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
73626         NULL upon out-of-memory.
73627         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
73628         upon out-of-memory.
73629         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
73630         (gl_sublist_list_implementation): Update.
73631         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
73632         upon out-of-memory.
73633         * modules/sublist (Depends-on): Remove xalloc.
73635         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
73636         * tests/test-carray_list.c: Likewise.
73637         * tests/test-linked_list.c: Likewise.
73638         * tests/test-linkedhash_list.c: Likewise.
73639         * tests/test-avltree_list.c: Likewise.
73640         * tests/test-rbtree_list.c: Likewise.
73641         * tests/test-avltreehash_list.c: Likewise.
73642         * tests/test-rbtreehash_list.c: Likewise.
73643         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
73644         * modules/carray-list-tests (Makefile.am): Likewise.
73645         * modules/linked-list-tests (Makefile.am): Likewise.
73646         * modules/linkedhash-list-tests (Makefile.am): Likewise.
73647         * modules/avltree-list-tests (Makefile.am): Likewise.
73648         * modules/rbtree-list-tests (Makefile.am): Likewise.
73649         * modules/avltreehash-list-tests (Makefile.am): Likewise.
73650         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
73652         * NEWS: Mention the changes.
73654         * lib/clean-temp.c: Include gl_xlist.h.
73655         * modules/clean-temp (Depends-on): Add xlist.
73657         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
73658         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
73660         * tests/test-array_oset.c: Include gl_xlist.h.
73661         * modules/array-oset-tests (Depends-on): Add xlist.
73663         Reported by José E. Marchesi <jemarch@gnu.org>.
73665 2009-12-13  Bruno Haible  <bruno@clisp.org>
73667         Move the malloc checking from module 'oset' to new module 'xoset'.
73668         * modules/xoset: New file.
73669         * lib/gl_xoset.h: New file.
73670         * lib/gl_xoset.c: New file.
73671         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
73672         declarations.
73673         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
73674         (struct gl_oset_implementation): Rename and change methods accordingly.
73675         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
73676         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73677         'int'. Mark as __warn_unused_result__.
73678         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
73679         gl_oset_create_empty.
73680         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
73681         'int'.
73682         * lib/gl_array_oset.c: Don't include xalloc.h.
73683         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
73684         malloc, not xmalloc.
73685         (grow): Change return type to 'int'. Don't call xalloc_die.
73686         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
73687         to 'int'.
73688         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
73689         'int'.
73690         (gl_array_oset_implementation): Update.
73691         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
73692         gl_tree_create_empty.
73693         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
73694         'int'.
73695         * lib/gl_avltree_oset.c: Don't include xalloc.h.
73696         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73697         xmalloc.
73698         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73699         not xmalloc.
73700         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73701         xmalloc.
73702         (gl_avltree_oset_implementation): Update.
73703         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
73704         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
73705         xmalloc.
73706         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
73707         not xmalloc.
73708         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
73709         xmalloc.
73710         (gl_rbtree_oset_implementation): Update.
73711         * modules/array-oset (Depends-on): Remove xalloc.
73712         * modules/avltree-oset (Depends-on): Likewise.
73713         * modules/rbtree-oset (Depends-on): Likewise.
73714         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
73715         * tests/test-avltree_oset.c: Likewise.
73716         * tests/test-rbtree_oset.c: Likewise.
73717         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73718         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
73719         * modules/rbtree-oset-tests (Makefile.am): Likewise.
73720         * NEWS: Mention the change.
73722 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
73724         maint.mk: allow a project to override release-prep commands
73725         * top/maint.mk (alpha, beta, stable): Move release-preparatory
73726         commands into a new rule.
73727         (release-prep): New rule.
73728         (release-prep-hook): New overridable variable.
73730 2009-12-13  Bruno Haible  <bruno@clisp.org>
73732         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
73734 2009-12-13  Jim Meyering  <meyering@redhat.com>
73736         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
73737         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
73739 2009-12-12  Bruno Haible  <bruno@clisp.org>
73741         duplocale: Tweak.
73742         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
73744 2009-12-12  Karl Berry  <karl@gnu.org>
73746         * config/srclist.txt (strtoll.c): tab changes, no more sync.
73748 2009-12-12  Bruno Haible  <bruno@clisp.org>
73750         * m4/po.m4: Undo incorrect untabification.
73752 2009-12-12  Bruno Haible  <bruno@clisp.org>
73754         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
73755         * modules/c-strtod (Depends-on): Add locale.
73756         * modules/c-strtold (Depends-on): Likewise.
73758 2009-12-12  Bruno Haible  <bruno@clisp.org>
73760         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
73762 2009-12-11  Eric Blake  <ebb9@byu.net>
73764         setenv: relax requirement in light of POSIX ruling
73765         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
73766         not NULL.
73767         * tests/test-setenv.c (main): Relax test.
73768         * tests/test-unsetenv.c (main): Likewise.
73769         * doc/posix-functions/setenv.texi (setenv): Document this.
73770         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
73772 2009-12-11  Bruno Haible  <bruno@clisp.org>
73774         New module 'fd-safer-flag'.
73775         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
73776         * lib/dup-safer.c (dup_safer_flag): Remove function.
73777         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
73778         * lib/fd-safer.c (fd_safer_flag): Remove function.
73779         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
73780         * modules/cloexec (configure.ac): Drop indicator macro.
73781         * modules/fd-safer-flag: New file.
73782         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
73783         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
73784         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
73786 2009-12-11  Bruno Haible  <bruno@clisp.org>
73788         Tests for module 'nl_langinfo'.
73789         * modules/nl_langinfo-tests: New file.
73790         * tests/test-nl_langinfo.sh: New file.
73791         * tests/test-nl_langinfo.c: New file.
73793         New module 'nl_langinfo'.
73794         * lib/nl_langinfo.c: New file.
73795         * m4/nl_langinfo.m4: New file.
73796         * modules/nl_langinfo: New file.
73797         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
73799 2009-12-11  Bruno Haible  <bruno@clisp.org>
73801         Tests for module 'langinfo'.
73802         * modules/langinfo-tests: New file.
73803         * tests/test-langinfo.c: New file.
73805         New module 'langinfo'.
73806         * lib/langinfo.in.h: New file.
73807         * m4/langinfo_h.m4: New file.
73808         * modules/langinfo: New file.
73809         * doc/posix-headers/langinfo.texi: Mention the new module.
73811 2009-12-11  Bruno Haible  <bruno@clisp.org>
73813         * lib/config.charset: Untabify.
73815 2009-12-11  Bruno Haible  <bruno@clisp.org>
73817         * modules/unistd-safer (configure.ac): Drop indicator macro.
73819 2009-12-11  Bruno Haible  <bruno@clisp.org>
73821         Move pipe2-safer code to its own file.
73822         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
73823         * lib/pipe-safer.c (pipe2_safer): Remove function.
73824         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
73825         (Makefile.am): Add it to lib_SOURCES.
73827 2009-12-10  Bruno Haible  <bruno@clisp.org>
73829         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
73831 2009-12-10  Bruno Haible  <bruno@clisp.org>
73833         Declare which arguments expect non-NULL values, for GCC and clang.
73834         * build-aux/arg-nonnull.h: New file.
73835         * modules/arg-nonnull: New file.
73836         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
73837         (inet_ntop, inet_pton): Use it.
73838         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
73839         (closedir, dirfd, opendir, scandir, alphasort): Use it.
73840         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
73841         (open, openat): Use it.
73842         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
73843         (fnmatch): Use it.
73844         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
73845         (getopt, getopt_long, getopt_long_only): Use it.
73846         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
73847         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
73848         Use it.
73849         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
73850         (iconv_open): Use it.
73851         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
73852         (strtoimax, strtoumax): Use it.
73853         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
73854         (duplocale): Use it.
73855         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
73856         (frexp, frexpl): Use it.
73857         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
73858         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
73859         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
73860         (tsearch, tfind, tdelete, twalk): Use it.
73861         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
73862         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
73863         sigpending): Use it.
73864         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
73865         (posix_spawn, posix_spawnp, posix_spawnattr_init,
73866         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
73867         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
73868         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
73869         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
73870         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
73871         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
73872         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
73873         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
73874         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
73875         Use it.
73876         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
73877         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
73878         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
73879         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
73880         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
73881         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
73882         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
73883         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
73884         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
73885         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
73886         strtoull, unsetenv): Use it.
73887         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
73888         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
73889         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
73890         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
73891         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
73892         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
73893         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
73894         (strcasecmp, strncasecmp): Use it.
73895         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
73896         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
73897         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
73898         rpl_setsockopt): Use it.
73899         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
73900         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
73901         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
73902         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
73903         (gettimeofday): Use it.
73904         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
73905         (times): Use it.
73906         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
73907         (uname): Use it.
73908         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
73909         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
73910         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
73911         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
73912         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
73913         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
73914         unlinkat, write): Use it.
73915         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
73916         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
73917         * lib/argv-iter.h: Include arg-nonnull.h.
73918         (_ATTRIBUTE_NONNULL_): Remove macro.
73919         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
73920         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
73921         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
73922         optimization.
73923         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
73924         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
73925         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
73926         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
73927         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
73928         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
73929         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
73930         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
73931         * modules/arpa_inet (Depends-on): Add arg-nonnull.
73932         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
73933         * modules/dirent (Depends-on): Add arg-nonnull.
73934         (Makefile.am): Insert arg-nonnull.h into dirent.h.
73935         * modules/fcntl-h (Depends-on): Add arg-nonnull.
73936         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
73937         * modules/fnmatch (Depends-on): Add arg-nonnull.
73938         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
73939         * modules/getopt-posix (Depends-on): Add arg-nonnull.
73940         (Makefile.am): Insert arg-nonnull.h into getopt.h.
73941         * modules/glob (Depends-on): Add arg-nonnull.
73942         (Makefile.am): Insert arg-nonnull.h into glob.h.
73943         * modules/iconv_open (Depends-on): Add arg-nonnull.
73944         (Makefile.am): Insert arg-nonnull.h into iconv.h.
73945         * modules/inttypes (Depends-on): Add arg-nonnull.
73946         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
73947         * modules/locale (Depends-on): Add arg-nonnull.
73948         (Makefile.am): Insert arg-nonnull.h into locale.h.
73949         * modules/math (Depends-on): Add arg-nonnull.
73950         (Makefile.am): Insert arg-nonnull.h into math.h.
73951         * modules/netdb (Depends-on): Add arg-nonnull.
73952         (Makefile.am): Insert arg-nonnull.h into netdb.h.
73953         * modules/search (Depends-on): Add arg-nonnull.
73954         (Makefile.am): Insert arg-nonnull.h into search.h.
73955         * modules/signal (Depends-on): Add arg-nonnull.
73956         (Makefile.am): Insert arg-nonnull.h into signal.h.
73957         * modules/spawn (Depends-on): Add arg-nonnull.
73958         (Makefile.am): Insert arg-nonnull.h into spawn.h.
73959         * modules/stdio (Depends-on): Add arg-nonnull.
73960         (Makefile.am): Insert arg-nonnull.h into stdio.h.
73961         * modules/stdlib (Depends-on): Add arg-nonnull.
73962         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
73963         * modules/string (Depends-on): Add arg-nonnull.
73964         (Makefile.am): Insert arg-nonnull.h into string.h.
73965         * modules/strings (Depends-on): Add arg-nonnull.
73966         (Makefile.am): Insert arg-nonnull.h into strings.h.
73967         * modules/sys_socket (Depends-on): Add arg-nonnull.
73968         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
73969         * modules/sys_stat (Depends-on): Add arg-nonnull.
73970         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
73971         * modules/sys_time (Depends-on): Add arg-nonnull.
73972         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
73973         * modules/sys_times (Depends-on): Add arg-nonnull.
73974         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
73975         * modules/sys_utsname (Depends-on): Add arg-nonnull.
73976         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
73977         * modules/time (Depends-on): Add arg-nonnull.
73978         (Makefile.am): Insert arg-nonnull.h into time.h.
73979         * modules/unistd (Depends-on): Add arg-nonnull.
73980         (Makefile.am): Insert arg-nonnull.h into unistd.h.
73981         * modules/wchar (Depends-on): Add arg-nonnull.
73982         (Makefile.am): Insert arg-nonnull.h into wchar.h.
73983         * modules/argv-iter (Depends-on): Add arg-nonnull.
73984         * tests/test-canonicalize.c (null_ptr): New function.
73985         (main): Use it.
73986         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
73987         (main): Use it.
73988         * tests/test-memmem.c (null_ptr): New function.
73989         (main): Use it.
73990         Reported by Jim Meyering.
73992 2009-12-10  Bruno Haible  <bruno@clisp.org>
73994         Use spaces for indentation, not tabs.
73995         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
73996         * m4/*.m4: Untabify.
73997         * build-aux/*.h: Untabify.
73998         * tests/**/*.[hc]: Untabify.
73999         * README: New section "Indent with spaces, not TABs", based on
74000         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
74001         * NEWS: Mention the change.
74003 2009-12-10  Bruno Haible  <bruno@clisp.org>
74005         pty test: Fix link error.
74006         * modules/pty-tests (Makefile.am): Add the default LDADD value to
74007         test_pty_LDADD.
74009 2009-12-07  Simon Josefsson  <simon@josefsson.org>
74011         * modules/pty: New file.
74012         * modules/pty-tests: New file.
74013         * m4/pty.m4: New file.
74014         * tests/test-pty.c: New file.
74015         * doc/glibc-headers/pty.texi: Modified.
74016         * doc/glibc-functions/forkpty.texi: Modified.
74017         * doc/glibc-functions/openpty.texi: Modified.
74019 2009-12-10  Bruno Haible  <bruno@clisp.org>
74021         Avoid syntax error in C++ mode.
74022         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
74024 2009-12-10  Bruno Haible  <bruno@clisp.org>
74026         Use sed with option -e.
74027         * gnulib-tool (func_version, func_emit_copyright_notice,
74028         func_emit_initmacro_end, func_import, func_create_testdir): Pass
74029         option -e to sed.
74030         * modules/link-warning (Makefile.am): Likewise.
74032 2009-12-10  Jim Meyering  <meyering@redhat.com>
74034         mgetgroups: do not write bytes beyond end of malloc'd buffer
74035         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
74036         username, we call getgroups with a one-element-shorter buffer,
74037         but still told it the length was original, max_n_groups.
74039 2009-12-09  Eric Blake  <ebb9@byu.net>
74041         cloexec: relax license
74042         * modules/cloexec (Maintainer): Add myself.
74043         (License): Use LGPL, not GPL.
74045         link-warning: optimize generation
74046         * modules/link-warning (Makefile.am): Reduce process usage.
74048 2009-12-09  Bruno Haible  <bruno@clisp.org>
74050         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
74051         workaround was added on 2009-11-17.
74053 2009-12-09  Jim Meyering  <meyering@redhat.com>
74054             Bruno Haible  <bruno@clisp.org>
74056         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
74057         * modules/link-warning (Makefile.am): Make the comment-removing sed
74058         command more robust in the face of bootstrap-prepended comment lines.
74060 2009-12-09  Bruno Haible  <bruno@clisp.org>
74062         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
74063         most one group.
74065 2009-12-09  Simon Josefsson  <simon@josefsson.org>
74066             Bruno Haible  <bruno@clisp.org>
74068         * build-aux/link-warning.h: Add copyright notice.
74069         * modules/link-warning (Makefile.am): Generate link-warning.h from
74070         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
74071         * NEWS: Mention change in link-warning module.
74072         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
74073         * modules/dirent (Makefile.am): Add dependency to dirent.h.
74074         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
74075         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
74076         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
74077         * modules/math (Makefile.am): Add dependency to math.h.
74078         * modules/search (Makefile.am): Add dependency to search.h.
74079         * modules/signal (Makefile.am): Add dependency to signal.h.
74080         * modules/spawn (Makefile.am): Add dependency to spawn.h.
74081         * modules/stdio (Makefile.am): Add dependency to stdio.h.
74082         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
74083         * modules/string (Makefile.am): Add dependency to string.h.
74084         * modules/strings (Makefile.am): Add dependency to strings.h.
74085         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
74086         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
74087         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
74088         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
74089         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
74090         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
74091         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
74092         * modules/unistd (Makefile.am): Add dependency to unistd.h.
74093         * modules/wchar (Makefile.am): Add dependency to wchar.h.
74095 2009-12-09  Bruno Haible  <bruno@clisp.org>
74097         fchdir: Optimize away rpl_fstat when possible.
74098         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
74099         REPLACE_OPEN_DIRECTORY.
74100         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
74102 2009-12-09  Bruno Haible  <bruno@clisp.org>
74104         * lib/fchdir.c: Update comment.
74106 2009-12-09  Bruno Haible  <bruno@clisp.org>
74108         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
74110 2009-12-08  Eric Blake  <ebb9@byu.net>
74112         fchdir: avoid memory leak on re-registration.
74113         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
74115 2009-12-08  Jim Meyering  <meyering@redhat.com>
74117         init.sh: avoid Solaris 10 /bin/sh portability problem
74118         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
74119         sourced script:
74120           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
74121           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
74122           bar
74123         tests/init.sh relied on that, accepting a --set-path=DIR argument,
74124         and two tests used that idiom.
74125         * tests/init.sh: Update suggested usage comments.
74126         (path_prepend_): New function, to be used in place
74127         of the --src-path=DIR option.
74128         (setup_): Move PATH-prepending code into path_prepend_.
74129         * tests/test-pread.sh: Adapt to new usage.
74130         * tests/test-xalloc-die.sh: Likewise.
74132 2009-12-08  Simon Josefsson  <simon@josefsson.org>
74134         * doc/gnulib.texi (Glibc pty.h): Add.
74135         * doc/glibc-functions/forkpty.texi: Add.
74136         * doc/glibc-functions/openpty.texi: Add.
74137         Suggested by Bruno Haible.
74139 2009-12-08  Eric Blake  <ebb9@byu.net>
74141         fchdir: fix logic bugs
74142         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
74143         * tests/test-fchdir.c (main): Enhance test.
74144         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
74145         is in use.
74147         dup2: fix logic bugs
74148         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
74149         REPLACE_DUP2 to decide when rpl_dup2 is needed.
74150         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
74151         exists.
74152         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
74154 2009-12-07  Eric Blake  <ebb9@byu.net>
74156         unlink: fix m4 detection
74157         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
74159         unistd-safer: add unit test
74160         * modules/unistd-safer-tests: New file.
74161         * tests/test-dup-safer.c: Likewise.
74162         * tests/test-cloexec.c (setmode): Avoid compiler warning.
74163         * tests/test-dup2.c (setmode): Likewise.
74164         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
74166         cloexec: preserve text vs. binary across dup_cloexec
74167         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
74168         mode.
74169         * modules/dup2-tests (Depends-on): Add binary-io.
74170         * modules/cloexec-tests (Depends-on): Likewise.
74171         * tests/test-dup2.c (setmode, is_mode): New helpers.
74172         (main): Add tests that translation mode is preserved.
74173         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
74174         Reported by Bruno Haible.
74176         mgetgroups: reduce duplicate listings
74177         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
74178         resulting array.
74179         * tests/test-chown.h (test_chown): Simplify client.
74180         * tests/test-lchown.h (test_lchown): Likewise.
74182 2009-12-06  Bruno Haible  <bruno@clisp.org>
74184         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
74185         value.
74187 2009-12-06  Bruno Haible  <bruno@clisp.org>
74189         * lib/progname.c: Include stdio.h, stdlib.h.
74190         (set_program_name): Reject a NULL argument.
74192 2009-12-05  Eric Blake  <ebb9@byu.net>
74194         pipe2-safer: new module
74195         * modules/pipe2-safer: New file.
74196         * lib/unistd-safer.h (pipe2_safer): New prototype.
74197         * lib/unistd--.h (pipe2): New wrapper.
74198         * lib/pipe-safer.c (pipe2_safer): New function.
74199         * modules/pipe (Depends-on): Add pipe2-safer.
74200         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
74202         stdlib-safer: preserve cloexec flag for mkostemp[s]
74203         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
74204         fd_safer_flag.
74206         unistd-safer: allow preservation of cloexec status via flag
74207         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
74208         prototypes.
74209         * lib/dup-safer.c (dup_safer_flag): New function.
74210         * lib/fd-safer.c (fd_safer_flag): Likewise.
74211         * modules/cloexec (configure.ac): Set witness.
74213         test-dup2: enhance test
74214         * modules/dup2-tests (Depends-on): Add cloexec.
74215         * tests/test-dup2.c (main): Enhance test.
74217         cloexec: add dup_cloexec
74218         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
74219         header and comments.
74220         * lib/cloexec.c (set_cloexec_flag): Add comments.
74221         (dup_cloexec): New function, with mingw implementation borrowed
74222         from...
74223         * lib/w32spawn.h (dup_noinherit): ...here.
74224         * modules/execute (Depends-on): Add cloexec.
74225         * modules/pipe (Depends-on): Likewise.
74226         * modules/cloexec (Depends-on): Add dup2.
74227         * modules/cloexec-tests (Files): New file.
74228         * tests/test-cloexec.c: Likewise.
74230         test-xalloc-die: fix test for mingw
74231         * modules/xalloc-die-tests (Files): Add tests/init.sh.
74232         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
74233         directory and .exe suffix off argv[0] output.
74235         test-fseeko: fix test for mingw
74236         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
74237         than undefining fseek, so test will pass on mingw.
74239 2009-12-05  Bruno Haible  <bruno@clisp.org>
74241         * lib/progname.h (set_program_name): Clarify specification.
74242         * lib/progname.c (set_program_name): Likewise.
74243         Reported by Jim Meyering.
74245 2009-12-05  Jim Meyering  <meyering@redhat.com>
74247         maint.mk: backslash-escape parens in default regexp
74248         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
74249         backslash-escape the literal parentheses.
74251         maint.mk: news-date-check: use grep -E
74252         * top/maint.mk (today): Define a Make variable, not a...
74253         (news-date-check): ...shell variable.
74254         (news-date-regexp): Use the Make variable.
74255         Use grep's -E option.  Change the failing diagnostic to mention
74256         the variable, $(news-date-regexp).
74258 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
74260         maintainer-makefile: allow customization of NEWS entry format
74261         * top/maint.mk (news-date-regexp): New overridable variable.
74262         (news-date-check): Use it.
74264 2009-12-04  Eric Blake  <ebb9@byu.net>
74266         mgetgroups: add xgetgroups, and avoid ENOSYS failures
74267         * lib/mgetgroups.h (xgetgroups): New prototype.
74268         * lib/mgetgroups.c (xgetgroups): New wrapper.
74269         (mgetgroups): Handle ENOSYS.
74270         * modules/mgetgroups (Depends-on): Add realloc.
74271         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
74273         mgetgroups: avoid argument promotion issues with -1
74274         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
74275         for invalid gid_t.
74276         * tests/test-chown.h (getegid, test_chown): Likewise.
74277         * tests/test-lchown.h (getegid, test_lchown): Likewise.
74279 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
74281         exclude: Fix header file problems.
74282         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
74284 2009-12-01  Jim Meyering  <meyering@redhat.com>
74286         fts: fts_open: do not let an empty string cause immediate failure
74287         This is required in support of GNU rm, for which the command
74288         "rm A '' B" must process and remove both A and B, in spite of
74289         the empty string argument.
74290         * lib/fts.c (fts_open): Do not let the presence of an empty string
74291         cause fts_open to fail immediately.  Most fts-using tools must be
74292         able to process all arguments, in order, and can be expected to
74293         diagnose such arguments themselves.
74295 2009-11-30  Eric Blake  <ebb9@byu.net>
74297         utimens: fix compilation error
74298         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
74299         Declare variable at right scope.
74301 2009-11-29  Jim Meyering  <meyering@redhat.com>
74303         bootstrap: handle perl-5.11's changed --version output
74304         * build-aux/bootstrap (get_version): Handle perl separately,
74305         since perl-5.11's --version output is different.
74307 2009-11-28  Jim Meyering  <meyering@redhat.com>
74309         userspec: depend on the inttostr module, too
74310         * modules/userspec (Depends-on): Add inttostr.
74312         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
74313         * lib/userspec.c (parse_with_separator): Do not accept a user ID
74314         number of MAXUID when it evaluates to (uid_t) -1.
74315         Likewise for group ID.  Reported by Matt McCutchen in
74316         <http://savannah.gnu.org/bugs/?28113>
74318         userspec: reformat to use spaces, not TABs
74319         * lib/userspec.c: Expand TABs to spaces.
74320         Add Emacs' "indent-tabs-mode: nil" hint.
74322 2009-11-27  Eric Blake  <ebb9@byu.net>
74324         getopt-gnu: flush out another BSD bug
74325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
74326         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
74327         flush out BSD bug.
74328         * tests/test-getopt.h (test_getopt): End lists with NULL.
74329         * tests/test-getopt_long.h (test_getopt_long): Likewise.
74330         (test_getopt_long_posix): Enhance test.
74331         * modules/getopt-posix-tests (Depends-on): Add stdbool.
74332         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
74333         getopt-gnu.
74334         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
74335         Likewise.
74337 2009-11-27  Simon Josefsson  <simon@josefsson.org>
74339         * modules/idpriv-droptemp-tests (Notice): Fix text.
74341 2009-11-27  Jim Meyering  <meyering@redhat.com>
74343         test-xalloc-die: avoid spurious failure due to libtool argv difference
74344         In a libtool-enabled project, this test would fail due to a difference
74345         in the emitted program name, e.g.,
74346         -test-xalloc-die: memory exhausted
74347         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
74348         Use program to avoid that.
74349         * modules/xalloc-die-tests (Depends-on): Add progname.
74350         * tests/test-xalloc-die.c: Include progname.h".
74351         (program_name): Remove decl.
74352         (main): Call set_program_name.
74353         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
74355 2009-11-26  Richard Jones  <rjones@redhat.com>
74357         w32sock: leave win32 error in place.
74358         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
74360 2009-11-26  Eric Blake  <ebb9@byu.net>
74362         init.sh: suggest to use skip_ and fail_ functions in comments
74363         * tests/init.sh: Add a sentence.
74365 2009-11-25  Bruno Haible  <bruno@clisp.org>
74367         init.sh: add documentation in comments
74368         * tests/init.sh: Add some developer and user documentation.
74370 2009-11-26  Jim Meyering  <meyering@redhat.com>
74372         init.sh: accommodate even those who specify bogus srcdir manually
74373         * tests/init.sh: Normally, srcdir is guaranteed by automake and
74374         configure-time tests to be sanitized, so that there is no need to
74375         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
74376         (with no double quotes) suffices.  However, since tests may be
74377         invoked manually, and since you may explicitly set srcdir to the
74378         name of a directory containing spaces, do quote its uses here.
74379         * tests/test-pread.sh: Likewise.
74380         Suggested by Bruno Haible.
74382         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
74383         * tests/test-pread.sh: Write no data into the pipe, because
74384         test-pread actually reads none.  This avoids a diagnostic,
74385         "bash: echo: write error: Broken pipe", that arises in the unusual
74386         event something is ignoring SIGPIPE, and might be interpreted
74387         as some sort of failure.  Reported by Bruno Haible.
74389 2009-11-25  Jim Meyering  <meyering@redhat.com>
74391         test-pread: cover failure with ESPIPE and EINVAL
74392         * tests/test-pread.c (main): Test for failure, too.
74393         * tests/test-pread.sh: Invoke with stdin on a pipe.
74394         Suggested by Eric Blake.
74396         pread: improvement and fix
74397         * modules/pread (Depends-on): Depend on lseek, for portability to
74398         e.g., mingw.  Suggested by Eric Blake.
74399         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
74401         unistd.in.h: correct declaration of pread
74402         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
74403         Reported by Richard W.M. Jones.
74405         test-pread.sh: distribute the test script
74406         * modules/pread-tests (Files): Include test-pread.sh.
74408         test-pread.sh: clean up
74409         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
74410         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
74411         That is unnecessary, since it's always ".".
74412         Suggestion from Eric Blake.
74414         test-pread.sh: make executable
74415         * tests/test-pread.sh: Set executable bit.
74416         Reported by Eric Blake.
74418         correct typo in test-pread.sh
74419         * tests/test-pread.sh: Add #! line.
74421         test pread
74422         * tests/test-pread.c: New file.
74423         * tests/test-pread.sh: Likewise.
74424         * modules/pread-tests: Likewise.
74426         pread: new module
74427         * modules/pread: New file.
74428         * lib/unistd.in.h (pread): Define/declare.
74429         * lib/pread.c (pread): New file.
74430         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
74431         * modules/unistd (Makefile.am): Substitute witnesses.
74432         * doc/posix-functions/pread.texi (pread): Update.
74433         * MODULES.html.sh: Add pread.
74435 2009-11-25  Jim Meyering  <meyering@redhat.com>
74437         tests/init.sh: new file to be used via most *.sh tests
74438         * tests/init.sh: New file.
74440 2009-11-25  Eric Blake  <ebb9@byu.net>
74442         utimens: work around older Linux failure with symlinks
74443         * lib/utimens.c (lutimensat_works_really): New variable.
74444         (fdutimens, lutimens): Use it to manage kernels that support
74445         nanosecond times on files, but not on symlinks.
74446         Reported by Ondřej Vašík.
74448         utimes: fix configure grammar
74449         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
74451 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
74453         regex: Fix fastmap for multibyte character ranges.
74454         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
74455         characters when a multibyte character range is included.
74457 2009-11-22  Andy Wingo  <wingo@pobox.com>
74459         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
74460         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
74462 2009-11-24  Bruno Haible  <bruno@clisp.org>
74464         doc: Most *_l functions exist in MacOS X 10.5.
74465         * doc/posix-functions/duplocale.texi: Update platforms list.
74466         * doc/posix-functions/freelocale.texi: Likewise.
74467         * doc/posix-functions/newlocale.texi: Likewise.
74468         * doc/posix-functions/uselocale.texi: Likewise.
74469         * doc/posix-functions/isalnum_l.texi: Likewise.
74470         * doc/posix-functions/isalpha_l.texi: Likewise.
74471         * doc/posix-functions/isblank_l.texi: Likewise.
74472         * doc/posix-functions/iscntrl_l.texi: Likewise.
74473         * doc/posix-functions/isdigit_l.texi: Likewise.
74474         * doc/posix-functions/isgraph_l.texi: Likewise.
74475         * doc/posix-functions/islower_l.texi: Likewise.
74476         * doc/posix-functions/isprint_l.texi: Likewise.
74477         * doc/posix-functions/ispunct_l.texi: Likewise.
74478         * doc/posix-functions/isspace_l.texi: Likewise.
74479         * doc/posix-functions/isupper_l.texi: Likewise.
74480         * doc/posix-functions/iswalnum_l.texi: Likewise.
74481         * doc/posix-functions/iswalpha_l.texi: Likewise.
74482         * doc/posix-functions/iswblank_l.texi: Likewise.
74483         * doc/posix-functions/iswcntrl_l.texi: Likewise.
74484         * doc/posix-functions/iswctype_l.texi: Likewise.
74485         * doc/posix-functions/iswdigit_l.texi: Likewise.
74486         * doc/posix-functions/iswgraph_l.texi: Likewise.
74487         * doc/posix-functions/iswlower_l.texi: Likewise.
74488         * doc/posix-functions/iswprint_l.texi: Likewise.
74489         * doc/posix-functions/iswpunct_l.texi: Likewise.
74490         * doc/posix-functions/iswspace_l.texi: Likewise.
74491         * doc/posix-functions/iswupper_l.texi: Likewise.
74492         * doc/posix-functions/iswxdigit_l.texi: Likewise.
74493         * doc/posix-functions/isxdigit_l.texi: Likewise.
74494         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
74495         * doc/posix-functions/strcasecmp_l.texi: Likewise.
74496         * doc/posix-functions/strcoll_l.texi: Likewise.
74497         * doc/posix-functions/strfmon_l.texi: Likewise.
74498         * doc/posix-functions/strftime_l.texi: Likewise.
74499         * doc/posix-functions/strncasecmp_l.texi: Likewise.
74500         * doc/posix-functions/strxfrm_l.texi: Likewise.
74501         * doc/posix-functions/tolower_l.texi: Likewise.
74502         * doc/posix-functions/toupper_l.texi: Likewise.
74503         * doc/posix-functions/towctrans_l.texi: Likewise.
74504         * doc/posix-functions/towlower_l.texi: Likewise.
74505         * doc/posix-functions/towupper_l.texi: Likewise.
74506         * doc/posix-functions/wcscoll_l.texi: Likewise.
74507         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
74508         * doc/posix-functions/wctrans_l.texi: Likewise.
74509         * doc/posix-functions/wctype_l.texi: Likewise.
74510         * doc/glibc-functions/strptime_l.texi: Likewise.
74511         * doc/glibc-functions/strtod_l.texi: Likewise.
74512         * doc/glibc-functions/strtof_l.texi: Likewise.
74513         * doc/glibc-functions/strtol_l.texi: Likewise.
74514         * doc/glibc-functions/strtold_l.texi: Likewise.
74515         * doc/glibc-functions/strtoll_l.texi: Likewise.
74516         * doc/glibc-functions/strtoul_l.texi: Likewise.
74517         * doc/glibc-functions/strtoull_l.texi: Likewise.
74518         * doc/glibc-functions/wcsftime_l.texi: Likewise.
74519         * doc/glibc-functions/wcstod_l.texi: Likewise.
74520         * doc/glibc-functions/wcstof_l.texi: Likewise.
74521         * doc/glibc-functions/wcstol_l.texi: Likewise.
74522         * doc/glibc-functions/wcstold_l.texi: Likewise.
74523         * doc/glibc-functions/wcstoll_l.texi: Likewise.
74524         * doc/glibc-functions/wcstoul_l.texi: Likewise.
74525         * doc/glibc-functions/wcstoull_l.texi: Likewise.
74527 2009-11-24  Bruno Haible  <bruno@clisp.org>
74529         duplocale: Fix logic bug.
74530         * lib/duplocale.c: Don't include <langinfo.h>.
74531         (_NL_LOCALE_NAME): Remove macro.
74532         (rpl_duplocale): Use setlocale instead of nl_langinfo.
74533         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
74535 2009-11-23  Jim Meyering  <meyering@redhat.com>
74537         test-update-copyright: don't hard-code /usr/bin/perl
74538         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
74539         perl to print the current year.  Gilles Espinasse reported that
74540         the replaced use of perl was hard-coded as /usr/bin/perl.
74542 2009-11-23  Bruno Haible  <bruno@clisp.org>
74544         duplocale: Add support for glibc 2.3.x.
74545         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
74547 2009-11-22  Bruno Haible  <bruno@clisp.org>
74549         vasnprintf: Tiny optimization.
74550         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
74551         MacOS X.
74553 2009-11-22  Bruno Haible  <bruno@clisp.org>
74555         Tests for module 'duplocale'.
74556         * modules/duplocale-tests: New file.
74557         * tests/test-duplocale.c: New file.
74559         New module 'duplocale'.
74560         * m4/duplocale.m4: New file.
74561         * lib/locale.in.h (duplocale): New declaration.
74562         * lib/duplocale.c: New file.
74563         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
74564         gl_LOCALE_H_DEFAULTS): New macros.
74565         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
74566         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
74567         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
74568         REPLACE_DUPLOCALE.
74569         * modules/duplocale: New file.
74570         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
74572 2009-11-22  Bruno Haible  <bruno@clisp.org>
74574         * modules/locale-tests (configure.ac): Test for newlocale function.
74575         * tests/test-locale.c: When the system has extended locale functions,
74576         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
74578         locale: Make locale_t available when possible.
74579         * lib/locale.in.h: Include <xlocale.h> when it exists.
74580         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
74581         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
74582         * modules/locale (Depends-on): Add extensions.
74583         (Makefile.am): Also substitute HAVE_XLOCALE_H.
74584         * doc/posix-headers/locale.texi: Document the problem with locale_t.
74586 2009-11-22  Bruno Haible  <bruno@clisp.org>
74588         Add comments.
74589         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
74590         invocation.
74591         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
74592         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
74593         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
74595 2009-11-22  Bruno Haible  <bruno@clisp.org>
74597         error: account for the possibility of freopen (stdout).
74598         * lib/error.c: Include <unistd.h>.
74599         (flush_stdout): New function, extracted from error and error_at_line.
74600         Determine stdout's fd dynamically.
74601         (error, error_at_line): Invoke flush_stdout.
74602         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
74603         * modules/error (Depends-on): Add unistd.
74605 2009-11-22  Bruno Haible  <bruno@clisp.org>
74607         diffseq: Add comment.
74608         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
74610 2009-11-22  Jim Meyering  <meyering@redhat.com>
74612         c-stack: avoid defining an unused static function
74613         * lib/c-stack.c (find_stack_direction): Do not define this function
74614         when it will not be used.
74616         diffseq: avoid spurious gcc warnings
74617         * lib/diffseq.h (IF_LINT2): Define.
74618         (compareseq): Use it to initialize two members of "part".
74619         This avoids two used-uninitialized warnings.
74621 2009-11-21  Jim Meyering  <meyering@redhat.com>
74623         c-stack: avoid "ignoring return value of `write'" warning
74624         * lib/c-stack.c: Include "ignore-value.h".
74625         (die): Explicitly ignore each write return value.
74626         * modules/c-stack (Depends-on): Add ignore-value.
74628 2009-11-21  Bruno Haible  <bruno@clisp.org>
74630         diffseq: reduce scope of variable 'best'.
74631         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
74632         variable, earlier used for two different purposes.
74634 2009-11-21  Jim Meyering  <meyering@redhat.com>
74636         diffseq: remove useless assignment to "best"
74637         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
74638         assignment.  At that point "best" is already guaranteed to be zero.
74640 2009-11-20  Eric Blake  <ebb9@byu.net>
74642         build: mention ftp redirector in release announcements
74643         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
74644         values that used to come from cfg.mk; mention FTP redirect URL.
74645         * build-aux/announce-gen: Mention the mirror list.
74646         Suggested by Karl Berry.
74648         nanosleep: improve port to mingw
74649         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
74650         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
74651         LIB_NANOSLEEP, but only when needed.
74652         * modules/select (Link): Document LIBSOCKET.
74653         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
74654         enough.
74656         nanosleep: work around cygwin bug
74657         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
74658         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
74659         bug.
74660         (getnow): Delete, not needed.
74661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
74662         LIB_CLOCK_GETTIME.
74663         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
74664         clock-time, gettime.
74665         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
74666         bug.
74667         * modules/nanosleep-tests: New test.
74668         * tests/test-nanosleep.c: New file.
74670         sleep: work around cygwin bug
74671         * lib/sleep.c (rpl_sleep): Work around the bug.
74672         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
74673         (gl_PREREQ_SLEEP): Delete unused macro.
74674         * modules/sleep (Depends-on): Add verify.
74675         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
74676         * modules/unistd (Makefile.am): Substitute witness.
74677         * lib/unistd.in.h (sleep): Update prototype.
74678         * doc/posix-functions/sleep.texi (sleep): Document the bug.
74679         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
74680         * modules/sleep-tests (Depends-on): Check for alarm.
74682 2009-11-20  Jim Meyering  <meyering@redhat.com>
74684         maint.mk: improve sc_prohibit_magic_number_exit
74685         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
74686         so it does not match uses like System.exit(1).
74687         Add comments showing how to correct all offenders.
74689 2009-11-19  Eric Blake  <ebb9@byu.net>
74691         xalloc-die-tests: add missing library
74692         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
74694         test-xvasprintf: silence compiler warnings
74695         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
74696         empty string from gcc.
74698 2009-11-19  Jim Meyering  <meyering@redhat.com>
74700         xfreopen: new module, from coreutils
74701         * modules/xfreopen: New module.
74702         * lib/xfreopen.c: New file.
74703         * lib/xfreopen.h: New file.
74704         * MODULES.html.sh (File stream based Input/Output"): Add it.
74706 2009-11-19  Eric Blake  <ebb9@byu.net>
74708         manywarnings: depend on warnings
74709         * modules/manywarnings (Depends-on): Add warnings.
74711         build: avoid compiler warnings
74712         * lib/select.c (rpl_select): Delete unused variable.
74713         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
74715 2009-11-18  Eric Blake  <ebb9@byu.net>
74717         tests: avoid false negative with --with-packager
74718         * tests/test-version-etc.sh: Discard packager information.
74719         * tests/test-argp-version-etc-1.sh: Likewise.
74720         Reported by Mike Frysinger.
74722         utimens: fix regression on Solaris
74723         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
74724         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
74725         can only change fd timestamps via futimesat.  Instead, use an
74726         additional witness macro to avoid BSD bug.
74727         Reported by Jim Meyering.
74729 2009-11-17  Eric Blake  <ebb9@byu.net>
74731         usleep: use it to simplify tests
74732         * modules/stat-time-tests (Depends-on): Add usleep.
74733         (configure.ac): Drop usleep check.
74734         * modules/chown-tests (Depends-on, configure.ac): Likewise.
74735         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
74736         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
74737         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
74738         * modules/openat-tests (Depends-on, configure.ac): Likewise.
74739         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
74740         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
74741         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
74742         Likewise.
74743         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
74744         * tests/test-lchown.h (nap): Likewise.
74745         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
74746         * tests/test-stat-time.c (nap): Likewise.
74747         * tests/test-utimens-common.h (nap): Update comments.
74749         usleep: new module
74750         * modules/usleep: New file.
74751         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
74752         * lib/usleep.c (usleep): Likewise.
74753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
74754         * modules/unistd (Makefile.am): Substitute witnesses.
74755         * lib/unistd.in.h (usleep): Add declaration.
74756         * doc/pastposix-functions/usleep.texi (usleep): Document this.
74757         * MODULES.html.sh (Date and time): Likewise.
74758         * modules/usleep-tests (Depends-on): New test.
74759         * tests/test-usleep.c: New file.
74761         chown: work around OpenBSD bug
74762         * lib/chown.c (rpl_chown): Work around the bug.
74763         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
74764         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
74765         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
74766         * modules/chown (Depends-on): Add stdbool.
74767         * modules/lchown (Depends-on): Likewise.
74768         * doc/posix-functions/chown.texi (chown): Document the bug.
74769         * doc/posix-functions/lchown.texi (lchown): Likewise.
74770         * tests/test-lchown.h (test_chown): Relax test.
74772         mkstemp: avoid conflict with C++ keyword template
74773         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
74774         * lib/mkostemp.c (mkostemp): Likewise.
74775         * lib/mkostemps.c (mkostemps): Likewise.
74776         * lib/mkstemp.c (mkstemp): Likewise.
74777         * lib/mkstemps.c (mkstemps): Likewise.
74779         xalloc-die-tests: optimize
74780         * tests/test-xalloc-die.sh: Reduce number of processes.
74782 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74784         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
74785         patch from ludo@gnu.org (Ludovic Courtès).
74787 2009-11-17  Jim Meyering  <meyering@redhat.com>
74789         version-etc: use proper license string
74790         * modules/version-etc (License): Use LGPL, not LGPLv3+.
74791         * modules/version-etc-fsf: Likewise.
74793 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74795         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
74796         printed to stdout.  Deal with EOL differences.
74798 2009-11-17  Eric Blake  <ebb9@byu.net>
74800         unsetenv: work around Solaris bug
74801         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
74802         * lib/unsetenv.c (rpl_unsetenv): Work around it.
74803         Reported by Jim Meyering.
74805         vasnprintf: avoid compiler warnings
74806         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
74807         variables.
74808         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
74810 2009-11-17  Simon Josefsson  <simon@josefsson.org>
74812         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
74813         settings since xalloc-die is no longer the self test,
74814         xalloc-die.sh is.
74816 2009-11-17  Jim Meyering  <meyering@redhat.com>
74818         test-xalloc-die.sh: make the code agree with the commit log
74819         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
74820         at the end, just in case you happen to have a test-xalloc-die
74821         program in some other PATH directory.
74823         test-xalloc-die.sh: fix a portability bug
74824         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
74825         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
74826         Otherwise, argv[0] (as often seen in diagnostics) would be too
74827         system-dependent, sometimes with, and sometimes without the leading "./".
74829         version-etc-fsf: relax license to LGPLv3+
74830         * modules/version-etc-fsf (License): Relax license.
74832 2009-11-16  Eric Blake  <ebb9@byu.net>
74834         xalloc-die-tests: avoid printing null pointer
74835         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
74836         shell script.
74837         * tests/test-xalloc-die.c (program_name): Declare.
74838         * tests/test-xalloc-die.sh (tmpfiles): New file.
74840         setenv, unsetenv: work around various bugs
74841         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
74842         (setenv) [HAVE_SETENV]: Work around bugs.
74843         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
74844         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
74845         for bugs.
74846         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
74847         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
74848         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
74849         * modules/stdlib (Makefile.am): Update substitutions.
74850         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
74851         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
74852         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
74853         * modules/setenv-tests: New test.
74854         * modules/unsetenv-tests: Likewise.
74855         * tests/test-setenv.c: New file.
74856         * tests/test-unsetenv.c: Likewise.
74858 2009-11-16  Jim Meyering  <meyering@redhat.com>
74860         version-etc: relax license to LGPLv3+
74861         * modules/version-etc (License): Relax license.
74863         better AC_REQUIRE expanded-before-required-warning avoidance
74864         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
74865         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
74866         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
74867         which is no longer needed.
74869 2009-11-16  Eric Blake  <ebb9@byu.net>
74871         test-freading: clean up temporary file
74872         * tests/test-freading.c (main): Remove file on success, and use
74873         ASSERT more liberally.
74874         Reported by Jim Meyering.
74876 2009-11-16  Jim Meyering  <meyering@redhat.com>
74878         avoid new AC_REQUIRE expanded-before-required warnings
74879         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
74880         merely using it.
74881         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
74882         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
74884 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74886         * tests/test-xalloc-die.c: New file.
74887         * modules/xalloc-die-tests: New file.
74888         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
74889         XFAIL_TESTS so it can be appended by modules.
74891 2009-11-15  Simon Josefsson  <simon@josefsson.org>
74893         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
74894         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
74896 2009-11-14  Eric Blake  <ebb9@byu.net>
74898         fnmatch: avoid compiler warning
74899         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
74900         to silence compiler warning about mismatch signedness in ?:.
74901         Reported by Robert Millan.
74903         intprops: add double-inclusion guard
74904         * lib/intprops.h: Allow idempotent includes.
74905         Suggested by Bruce Korb.
74907         openat: detect Solaris fchownat bug
74908         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
74909         penalizing glibc chownat when only lchownat is broken.
74910         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
74911         trailing slash bugs.
74912         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
74913         * modules/openat-tests (Files): Include more files.
74914         (Depends-on): Add mgetgroups, sleep, stat-time.
74915         (configure.ac): Add additional checks.
74916         (Makefile.am): Build new test.
74917         * tests/test-fchownat.c: New file.
74919         lchown: detect Solaris and FreeBSD bug
74920         * lib/lchown.c (rpl_lchown): Work around bug.
74921         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
74922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74923         * modules/unistd (Makefile.am): Populate it.
74924         * lib/unistd.in.h (lchown): Update declaration.
74925         * doc/posix-functions/lchown.texi (lchown): Document the bug.
74926         * modules/lchown-tests: New file.
74927         * tests/test-lchown.h (test_lchown): Likewise.
74928         * tests/test-lchown.c (main): Likewise.
74930         chown: detect Solaris and FreeBSD bug
74931         * lib/chown.c (rpl_chown): Work around bug.
74932         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
74933         (gl_PREREQ_CHOWN): Delete.
74934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
74935         * modules/unistd (Makefile.am): Populate it.
74936         * lib/unistd.in.h (chown): Update declaration.
74937         * lib/lchown.c (chown): Update client.
74938         * modules/lchown (Depends-on): Add lstat.
74939         * doc/posix-functions/chown.texi (chown): Document the bug.
74940         * doc/posix-functions/getgroups.texi (getgroups): Document
74941         getgroups pitfall.
74942         * modules/chown-tests: New file.
74943         * tests/test-chown.h (test_chown): Likewise.
74944         * tests/test-chown.c (main): Likewise.
74946 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
74948         gnulib-tool: correctly detect absence of m4 directories
74949         * gnulib-tool: Avoid extra newline on data passed to wc -l.
74951 2009-11-14  Jim Meyering  <meyering@redhat.com>
74953         maint.mk: Prohibit inclusion of "xalloc.h" without use.
74954         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
74956 2009-11-14  John W. Eaton  <jwe@gnu.org>
74958         strftime.h: wrap function declaration in extern "C" block
74959         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
74961 2009-11-13  Eric Blake  <ebb9@byu.net>
74963         getgroups: avoid compiler warning
74964         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
74966         getgroups: work around FreeBSD bug
74967         * lib/getgroups.c (rpl_getgroups): Work around the bug.
74968         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
74969         * doc/posix-functions/getgroups.texi (getgroups): Document it.
74970         * tests/test-getgroups.c (main): Fix buffer overrun.
74972         getgroups: avoid compilation failure
74973         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
74974         * modules/getgroups (Depends-on): Add stdint.
74976 2009-11-13  Jim Meyering  <meyering@redhat.com>
74978         test-getgroups: avoid compilation failure
74979         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
74981 2009-11-13  Eric Blake  <ebb9@byu.net>
74983         mgetgroups: new module, taken from coreutils
74984         * modules/mgetgroups: New file.
74985         * lib/mgetgroups.h: Likewise.
74986         * lib/mgetgroups.c (mgetgroups): Likewise.
74987         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
74988         * MODULES.html.sh (Users and groups): Mention it.
74990         getgroups: don't expose GETGROUPS_T to user
74991         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
74992         an element at a time if GETGROUPS_T is wrong size.
74993         * lib/getugroups.h (getugroups): Change signature.
74994         * lib/unistd.in.h (getgroups): Likewise.
74995         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
74996         signature needs fixing.
74997         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
74998         AC_TYPE_GETGROUPS.
74999         * modules/group-member (Depends-on): Add getgroups.
75000         * lib/group-member.c (group_info, get_group_info): Use gid_t.
75001         (group_member): Rely on getgroups replacement.
75002         * lib/getugroups.c (getugroups): Use gid_t.
75003         * tests/test-getgroups.c (main): Likewise.
75004         * NEWS: Mention the signature change.
75005         * doc/posix-functions/getgroups.texi (getgroups): Mention the
75006         problem with signature.
75007         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
75008         GETGROUPS_T is still useful for setgroups.
75010         getgroups, getugroups: provide stubs for mingw
75011         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
75012         * lib/getugroups.c (getugroups): Likewise.
75013         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
75014         function.  Modernize replacement scheme.
75015         (gl_PREREQ_GETGROUPS): Delete.
75016         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
75017         * modules/getgroups (configure.ac): Declare witness.
75018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
75019         * modules/unistd (Depends-on): Substitute witness.
75020         * lib/unistd.in.h (getgroups): Declare replacement.
75022         getgroups: avoid calling exit
75023         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
75024         drop xalloc.
75025         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
75026         dependencies.
75027         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
75028         exiting, in the rare case of malloc failure.
75030         getgroups: fix logic error
75031         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
75032         has more than 20 groups.
75033         * modules/getgroups-tests: New test.
75034         * tests/test-getgroups.c: New file.
75036 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75038         * tests/test-base64.c: Improve.
75040 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75042         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
75043         Blake <ebb9@byu.net>.
75045 2009-11-13  Simon Josefsson  <simon@josefsson.org>
75047         * tests/test-xvasprintf.c: Add %s%s related checks.
75049 2009-11-12  Eric Blake  <ebb9@byu.net>
75051         version-etc: match standards.texi style
75052         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
75053         and use <> only for URLs.
75055 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
75057         fts: do not fail on a submount during traversal
75058         * lib/fts.c (fts_build): Read the stat info again after opening
75059         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
75060         Original report at http://bugzilla.redhat.com/501848.
75062 2009-11-12  Jim Meyering  <meyering@redhat.com>
75064         bootstrap: sync from coreutils
75065         * build-aux/bootstrap (bootstrap_epilogue): New function.
75066         Use git_modules_config in one more place.  This make bootstrap's
75067         --gnulib-srcdir option more useful for testing.
75069         bootstrap: generalize autoheader check
75070         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
75071         AC_CONFIG_HEADERS.
75073 2009-11-11  Eric Blake  <ebb9@byu.net>
75075         mkfifoat: use new modules for Solaris and BSD bugs
75076         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
75077         * lib/mkfifoat.c (mknodat): Split...
75078         * lib/mknodat.c (mknodat): ...into new file.
75079         * modules/mkfifoat (Files): Ship new file.
75080         (Depends-on): Add mkfifo, mknod.
75081         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
75082         (Depends-on): Add symlink.
75083         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
75084         redundant with test_mkfifo.h.
75085         (do_mkfifoat, do_mknodat): New helpers.
75087         mknod: new module
75088         * modules/mknod: New file.
75089         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
75090         * lib/mknod.c (mknod): Likewise.
75091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75092         defaults.
75093         * modules/sys_stat (Makefile.am): Substitute them.
75094         * lib/sys_stat.in.h (mknod): Declare replacement.
75095         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75096         Document it.
75097         * doc/posix-functions/mknod.texi (mknod): Likewise.
75098         * modules/mknod-tests: New test.
75099         * tests/test-mknod.c: Likewise.
75101         mkfifo: new module
75102         * modules/mkfifo: New file.
75103         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
75104         * lib/mkfifo.c (mkfifo): Likewise.
75105         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
75106         defaults.
75107         * modules/sys_stat (Makefile.am): Substitute them.
75108         * lib/sys_stat.in.h (mkfifo): Declare replacement.
75109         * MODULES.html.sh (Support for systems lacking POSIX:2008):
75110         Document it.
75111         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
75112         * modules/mkfifo-tests: New test.
75113         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
75114         from test-mkfifoat.c.
75115         * tests/test-mkfifo.c: New file.
75117         readlink: detect FreeBSD bug
75118         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
75119         slash on symlink.
75120         * doc/posix-functions/readlink.texi (readlink): Document the bug.
75121         * tests/test-readlink.h (test_readlink): Enhance test.
75123         symlink: detect FreeBSD bug
75124         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
75125         slash on symlink.
75126         * doc/posix-functions/symlink.texi (symlink): Document the bug.
75127         * tests/test-symlink.h (test_symlink): Enhance test.
75129 2009-11-10  Eric Blake  <ebb9@byu.net>
75131         link: detect FreeBSD bug
75132         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
75133         symlink.
75134         * doc/posix-functions/link.texi (link): Document the bug.
75135         * tests/test-link.h (test_link): Enhance test.
75136         * tests/test-linkat.c (main): Update caller.
75138         unlink, remove: detect FreeBSD bug
75139         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
75140         slash on symlink.
75141         * doc/posix-functions/unlink.texi (unlink): Document the bug.
75142         * doc/posix-functions/remove.texi (remove): Likewise.
75143         * tests/test-unlink.h (test_unlink): Enhance test.
75144         * tests/test-remove.c (main): Likewise.
75146 2009-11-09  Eric Blake  <ebb9@byu.net>
75148         rename: detect FreeBSD bug
75149         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
75150         slash on symlink.
75151         * modules/renameat-tests (Depends-on): Add filenamecat.
75152         * tests/test-rename.h (test_rename): Allow one more errno.
75153         * tests/test-renameat.c (main): Likewise.
75154         * doc/posix-functions/rename.texi (rename): Document the bug.
75156         open: detect FreeBSD bug
75157         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
75158         symlink.
75159         * doc/posix-functions/open.texi (open): Document the bug.
75160         * doc/posix-functions/utimes.texi (utimes): Likewise.
75161         * tests/test-open.h (test_open): Add parameters, and test symlink
75162         handling.
75163         * tests/test-open.c (main): Adjust caller.
75164         * tests/test-fcntl-safer.c (main): Likewise.
75165         * modules/open-tests (Depends-on): Add stdbool, symlink.
75166         * modules/fcntl-safer-tests (Depends-on): Likewise.
75167         * tests/test-openat.c (main): Add test-open tests.
75169         stat: detect FreeBSD bug
75170         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
75171         symlink.
75172         * doc/posix-functions/stat.texi (stat): Document the bug.
75173         * tests/test-stat.h (test_stat_func): Add argument.
75174         * tests/test-stat.c (main): Adjust caller.
75175         * tests/test-fstatat.c (main): Likewise.
75176         * modules/stat-tests (Depends-on): Add stdbool, symlink.
75177         Reported by Jim Meyering.
75179 2009-11-09  James Youngman  <jay@gnu.org>
75181         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
75182         * lib/strftime.c: Correct placement of #include "ignore-value.h".
75184 2009-11-08  Jim Meyering  <meyering@redhat.com>
75186         utimens: remove invalid futimesat call
75187         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
75188         It used the file descriptor of the target file as the DIR_FD
75189         parameter and NULL as the file name.  That caused failure with
75190         errno == EFAULT on FreeBSD-8.0-rc2
75192 2009-11-07  Eric Blake  <ebb9@byu.net>
75194         fflush, freadseek: use fseeko, not fseek
75195         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
75196         (clear_ungetc_buffer): Avoid potential problems on large files.
75197         * lib/freadseek.c (freadseek): Likewise.
75198         * modules/freadseek (Depends-on): Add fseeko.
75199         * modules/fseek (configure.ac): Set a witness.
75200         * tests/test-fflush.c (main): Use fseeko.
75201         * tests/test-fpurge.c (fseek): Disable link warning.
75202         * tests/test-freadable.c (fseek): Likewise.
75203         * tests/test-freading.c (fseek): Likewise.
75204         * tests/test-fseeko.c (fseek): Likewise.
75205         * tests/test-ftell.c (fseek): Likewise.
75206         * tests/test-ftello.c (fseek): Likewise.
75207         * tests/test-fwritable.c (fseek): Likewise.
75208         * tests/test-fwriting.c (fseek): Likewise.
75210 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75212         * modules/memchr (Depends-on): Drop getpagesize dependency.
75214 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75216         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
75217         Reported by Ludovic Courtès.
75218         * build-aux/pmccabe2html: Improve example usage.
75219         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
75221 2009-11-06  Jim Meyering  <meyering@redhat.com>
75223         do-release-commit-and-tag: New module.
75224         Automate the release-commit and tag process.
75225         * build-aux/do-release-commit-and-tag: New script, from coreutils.
75226         * modules/do-release-commit-and-tag: New file.
75227         * MODULES.html.sh (Support for maintaining and releasing): Add it.
75229 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75231         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
75232         because test-select.c uses inet_pton.
75234 2009-11-06  Simon Josefsson  <simon@josefsson.org>
75236         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
75237         GETADDRINFO_LIB.  Bump serial number.
75238         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
75239         Suggested by Eric Blake <ebb9@byu.net>.
75241 2009-11-05  Eric Blake  <ebb9@byu.net>
75243         strtod: detect darwin bug
75244         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
75245         Reported by Leo Davis.
75247         freopen-safer: new module
75248         * modules/freopen-safer: New module.
75249         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
75250         * lib/freopen-safer.c (freopen_safer): New file.
75251         * lib/stdio-safer.h (freopen_safer): New declaration.
75252         * lib/stdio--.h (freopen): New override.
75253         * MODULES.html.sh (File stream based Input/Output): Mention it.
75254         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
75255         freopen-safer module.
75256         * doc/posix-functions/stderr.texi (stderr): Likewise.
75257         * doc/posix-functions/stdin.texi (stdin): Likewise.
75258         * doc/posix-functions/stdout.texi (stdout): Likewise.
75259         * modules/freopen-safer-tests: New test.
75260         * tests/test-reopen-safer.c: New file.
75262 2009-11-05  Jim Meyering  <meyering@redhat.com>
75264         maint.mk: Prohibit inclusion of "close-stream.h" without use.
75265         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
75267 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75269         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
75271 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75273         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
75275 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75277         Fix link error.
75278         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75279         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75281 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75283         * tests/test-func.c: Also test value of __func__.
75285 2009-11-05  Simon Josefsson  <simon@josefsson.org>
75287         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
75288         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
75290 2009-11-05  Bruno Haible  <bruno@clisp.org>
75292         Fix link error.
75293         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
75294         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75295         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
75297 2009-11-05  Bruno Haible  <bruno@clisp.org>
75299         Tests for module 'inet_pton'.
75300         * modules/inet_pton-tests: New file.
75301         * tests/test-inet_pton.c: New file.
75303 2009-11-05  Bruno Haible  <bruno@clisp.org>
75305         Tests for module 'inet_ntop'.
75306         * modules/inet_ntop-tests: New file.
75307         * tests/test-inet_ntop.c: New file.
75309 2009-11-04  Eric Blake  <ebb9@byu.net>
75311         stdlib-safer: wrap all mkstemp variants
75312         * modules/mkostemp (configure.ac): Set witness.
75313         * modules/mkostemps (configure.ac): Likewise.
75314         * modules/mkstemps (configure.ac): Likewise.
75315         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
75316         (mkstemps_safer): Wrap more functions.
75317         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
75318         wrapping.
75319         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
75320         (mkstemps_safer): Implement the wrappers.
75322         mkstemps, mkostemps: new modules
75323         * modules/mkostemps: New module.
75324         * modules/mkstemps: Likewise.
75325         * lib/mkostemps.c (mkostemps): New file.
75326         * lib/mkstemps.c (mkstemps): Likewise.
75327         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
75328         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
75329         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
75330         * modules/stdlib (Makefile.am): Substitute them.
75331         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
75332         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
75333         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
75334         * doc/gnulib.texi (Glibc stdlib.h): Include them.
75335         * MODULES.html.sh (File system functions): Mention them.
75337         tempname: resync from glibc
75338         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
75339         same values for __GT_FILE as glibc.  Abort even when assertions
75340         are disabled.
75341         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
75342         match its value otherwise.  Allow idempotent inclusion.
75343         * lib/mkdtemp.c (mkdtemp): Adjust caller.
75344         * lib/mkostemp.c (mkostemp): Likewise.
75345         * lib/mkstemp.c (mkstemp): Likewise.
75346         * lib/tmpfile.c (tmpfile): Likewise.
75347         * NEWS: Document this.
75349         utimens: fix use of futimens on older Linux
75350         * lib/utimens.c (fdutimens): Use updated, rather than original,
75351         timespec to avoid bug in older Linux kernel.
75352         Reported by Simon Josefsson.
75354 2009-11-04  Bruno Haible  <bruno@clisp.org>
75356         Make num_processors more flexible and consistent.
75357         * lib/nproc.h (enum nproc_query): New type.
75358         (num_processors): Add a 'query' argument.
75359         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
75360         (num_processors): Add a 'query' argument. Test the value of the
75361         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
75362         mingw, count the number of CPUs available for the current process.
75363         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
75364         Check for sched_getaffinity and sched_getaffinity_np.
75365         * modules/nproc (Depends-on): Add c-ctype, extensions.
75366         * NEWS: Mention the change.
75368 2009-11-03  Bruno Haible  <bruno@clisp.org>
75370         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
75372 2009-11-03  Jim Meyering  <meyering@redhat.com>
75374         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
75375         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
75376         if it is defined.
75378 2009-11-02  Eric Blake  <ebb9@byu.net>
75380         mktime, timegm: share common declaration
75381         * lib/mktime-internal.h: New file.
75382         * lib/mktime.c: Use it rather than open-coding a declaration.
75383         * lib/timegm.c: Likewise.
75384         * modules/mktime (Files): Ship it.
75385         * modules/timegm (Files): Likewise.
75386         Suggested by Bruno Haible.
75388         test-update-copyright: update test to match script changes
75389         * tests/test-update-copyright.sh: Avoid hard-coding perl
75390         location.  Don't update *.bak created by earlier runs.
75392 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75393             Simon Josefsson  <simon@josefsson.org>
75394             Bruno Haible  <bruno@clisp.org>
75396         Fix link error on Solaris 8.
75397         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
75398         also in libnsl. Define also INET_PTON_LIB.
75399         * modules/inet_pton (Link): New section.
75401 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75402             Bruno Haible  <bruno@clisp.org>
75404         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
75405         * modules/inet_ntop (Link): New section.
75406         Reported by Boyan Kasarov <bkasarov@gmail.com>.
75408 2009-11-02  Eric Blake  <ebb9@byu.net>
75410         maint: avoid compiler warnings in m4 macros
75411         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
75412         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
75414 2009-11-02  Simon Josefsson  <simon@josefsson.org>
75416         * m4/pmccabe2html.m4: Remove file.
75417         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
75418         function.  Change maintainer.
75419         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
75420         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
75421         Courtès).
75423 2009-10-31  Eric Blake  <ebb9@byu.net>
75425         fseeko: fix m4 regression
75426         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
75427         regression from 2009-10-27.
75428         Reported by Ralf Wildenhues.
75430 2009-10-31  Jim Meyering  <meyering@redhat.com>
75432         inttostr: aesthetics and improved (compile-time) safety
75433         Define inttype_is_signed rather than inttype_is_unsigned,
75434         since the sole use is via "#if inttype_is_signed".
75435         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
75436         inttype_is_unsigned.
75437         * lib/offtostr.c (inttype_is_signed): Likewise.
75438         * lib/uinttostr.c (inttype_is_signed): Likewise.
75439         * lib/umaxtostr.c (inttype_is_signed): Likewise.
75440         * lib/inttostr.c (inttostr): Use verify to cross-check the
75441         inttype_is_signed value and the signedness of the actual type.
75442         * modules/inttostr (Depends-on): Add verify.
75444 2009-10-30  Eric Blake  <ebb9@byu.net>
75446         build: avoid compiler warnings
75447         * lib/fchmodat.c (lchmod): Mark unused variables.
75448         * lib/getopt.c (_getopt_initialize): Likewise.
75449         * lib/mktime.c (__mktime_internal): Provide prototype.
75450         * lib/inttostr.c (inttostr): Avoid compiler warning even with
75451         older gcc that do not understand #pragma GCC diagnostic.
75452         * lib/uinttostr.c (inttype_is_unsigned): Define.
75453         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
75455 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
75457         stat: fix compilation on AIX
75458         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
75459         only see struct stat64.
75461 2009-10-30  Eric Blake  <ebb9@byu.net>
75463         exclude: make more robust
75464         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
75465         rather than masking a coding bug.
75466         Suggested by Bruno Haible.
75468 2009-10-30  Jim Meyering  <meyering@redhat.com>
75470         perl scripts: remove #!/usr/bin/perl in favor of more portable...
75471         Rather than putting #!/usr/bin/perl on the first line,
75472         start with a variant of what's recommended by "man perlrun" that
75473         invokes the first "perl" program from your shell's search path.
75474         * build-aux/gitlog-to-changelog: Replace #!... as above.
75475         Add a "Local Variables" perl mode setting.
75476         Prompted by a patch from Ludovic Courtès.
75477         Improved by Eric Blake.
75478         * build-aux/useless-if-before-free: Likewise.
75479         * build-aux/announce-gen: Likewise.
75480         * build-aux/update-copyright: Likewise.
75482 2009-10-29  Eric Blake  <ebb9@byu.net>
75484         filenamecat-lgpl: adjust clients
75485         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
75486         filenamecat.
75487         * modules/renameat (Depends-on): Likewise.
75489         filenamecat: split into filenamecat-lgpl
75490         * modules/filenamecat-lgpl: New module.
75491         * modules/filenamecat (Files): Move library-safe files into
75492         filenamecat-lgpl.
75493         (Depends-on): Add filenamecat-lgpl.
75494         (configure.ac): Declare witness.
75495         * lib/filenamecat.h (file_name_concat): Only declare when using
75496         GPL module.
75497         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
75498         Move...
75499         * lib/filenamecat-lgpl.c: ...into new file.
75500         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
75501         (gl_FILE_NAME_CONCAT): Use it.
75502         * MODULES.html.sh (File system functions): Mention new module.
75504         argp: avoid memory leak
75505         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
75506         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
75507         base_name, since the latter malloc()s and can call exit().
75508         Leak introduced 2006-07-03.
75510         dirname-lgpl: adjust clients that don't need full dirname
75511         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
75512         * modules/filenamecat (Depends-on): Likewise.
75513         * modules/linkat (Depends-on): Likewise.
75514         * modules/mkancesdirs (Depends-on): Likewise.
75515         * modules/mkdir (Depends-on): Likewise.
75516         * modules/openat (Depends-on): Likewise.
75517         * modules/savewd (Depends-on): Likewise.
75518         * modules/rename (Depends-on): Likewise.
75519         (License): Relax license.
75520         * modules/mkdir-tests (Depends-on): Drop progname.
75521         (Makefile.am): Delete unneeded LDADD.
75522         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
75524         dirname: split into dirname-lgpl
75525         * modules/dirname-lgpl: New module.
75526         * modules/dirname (Files): Move library-safe files into
75527         dirname-lgpl.
75528         (Depends-on): Add dirname-lgpl.
75529         (configure.ac): Declare witness.
75530         * modules/double-slash-root (License): Relax license.
75531         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
75532         module.
75533         * lib/dirname.c (dir_len, mdir_name): Move...
75534         * lib/dirname-lgpl.c: ...into new file.
75535         * lib/basename.c (last_component, base_len): Move...
75536         * lib/basename-lgpl.c: ...into new file.
75537         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
75538         (gl_DIRNAME): Use it.
75539         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
75540         Mention new module.
75541         * modules/dirname-tests (Depends-on): Add progname.
75542         * tests/test-dirname.c (program_name): Delete.
75544         mkdir: make safe for libraries
75545         * modules/mkdir (Depends-on): Drop xalloc.
75546         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
75547         exit.
75549         tests: avoid some compiler warnings
75550         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
75551         literals.
75552         * tests/test-memchr.c (main): Avoid type mismatch.
75553         * tests/test-arpa_inet.c (main): Avoid unused parameters.
75554         * tests/test-base64.c (main): Likewise.
75555         * tests/test-getdelim.c (main): Likewise.
75556         * tests/test-gethostname.c (main): Likewise.
75557         * tests/test-getline.c (main): Likewise.
75558         * tests/test-netinet_in.c (main): Likewise.
75559         * tests/test-select.c (open_server_socket, main): Likewise.
75560         * tests/test-select-stdin.c (main): Likewise.
75561         * tests/test-sockets.c (main): Likewise.
75562         * tests/test-strsignal.c (main): Likewise.
75563         * tests/test-sys_select.c (main): Likewise.
75564         * tests/test-sys_socket.c (main): Likewise.
75565         * tests/test-u64.c (main): Likewise.
75566         * tests/test-xfprintf-posix.c (main): Likewise.
75567         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
75569         sockets: avoid compiler warning
75570         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
75572         maint: detect usage(1) and other suspicious exits
75573         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
75575 2009-10-29  Jim Meyering  <meyering@redhat.com>
75577         timespec: long-to-int truncation could make timespec_cmp malfunction
75578         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
75579         a multiple of 2^32 nanoseconds as no difference.
75581 2009-10-28  Jim Meyering  <meyering@redhat.com>
75583         fprintftime: wrap macro code argument in "do {...} while(0)"
75584         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
75585         cpy macro must be a statement that can be followed by a semicolon.
75586         Now that the else clause contains a comment and is hence longer
75587         than one line, I require curly braces.  That in turn requires
75588         that we wrap this code block in the standard do...while(0).
75590         fprintftime: remove stray semicolon from previous change
75591         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
75593         fprintftime: avoid a warning about ignored fwrite return value
75594         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
75595         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
75596         that is unsafe.
75597         * modules/fprintftime (Depends-on): Add ignore-value.
75599         exclude: avoid an unwarranted warning
75600         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
75602 2009-10-27  Eric Blake  <ebb9@byu.net>
75604         fseek: avoid compilation failure when fflush is replaced
75605         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
75606         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
75607         module is in use.
75608         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
75609         module is not in use; since REPLACE_FSEEK worked otherwise.
75610         (GNULIB_FTELLO): Likewise for ftell.
75611         Reported by Ian Beckwith and others.
75613 2009-10-27  Bruno Haible  <bruno@clisp.org>
75615         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
75616         Reported by Jim Meyering.
75618 2009-10-27  Jim Meyering  <jim@meyering.net>
75619             Bruno Haible  <bruno@clisp.org>
75621         Avoid warning despite dropping the return value of fwrite.
75622         * lib/unicodeio.c: Include ignore-value.h.
75623         (fwrite_success_callback): Explicitly ignore fwrite's return value.
75624         * modules/unicodeio (Depends-on): Add ignore-value.
75626 2009-10-26  Eric Blake  <ebb9@byu.net>
75628         areadlinkat: fix fallback path
75629         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
75630         pointer and zero.
75632 2009-10-22  Pádraig Brady  <P@draigBrady.com>
75634         Use a better IO block size for modern systems
75635         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
75636         * lib/md2.c: Likewise.
75637         * lib/md4.c: Likewise.
75638         * lib/md5.c: Likewise.
75639         * lib/sha1.c: Likewise.
75640         * lib/sha256.c: Likewise.
75641         * lib/sha512.c: Likewise.
75643 2009-10-22  Eric Blake  <ebb9@byu.net>
75645         tests: avoid several compiler warnings
75646         * tests/test-getcwd.c (main): Avoid buffer underflow.
75647         * tests/test-getdate.c (main): String literals are not safe with
75648         putenv, so use setenv.  Declare unused argument.
75649         * modules/getdate-tests (Depends-on): Add setenv.
75650         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
75651         problems with string literals in char *.
75652         * tests/test-hash.c (main): Avoid shadowing declaration.
75653         (insert_new): Treat string literals as char const *.
75654         * tests/test-getopt.h (test_getopt): Likewise.
75655         (getopt_loop): Alter types to minimize casting elsewhere.
75656         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
75657         (test_getopt_long_posix): Likewise.
75658         (do_getopt_long): Add wrapper to minimize casting.
75659         * tests/test-atexit.c (clear_temp_file): Use void.
75660         * tests/test-areadlink-with-size.c (main): Declare unused
75661         arguments.
75662         * tests/test-areadlink.c (main): Likewise.
75663         * tests/test-areadlinkat-with-size.c (main): Likewise.
75664         * tests/test-areadlinkat.c (main): Likewise.
75665         * tests/test-canonicalize-lgpl.c (main): Likewise.
75666         * tests/test-canonicalize.c (main): Likewise.
75667         * tests/test-dirent-safer.c (main): Likewise.
75668         * tests/test-dirname.c (main): Likewise.
75669         * tests/test-dup2.c (main): Likewise.
75670         * tests/test-fchdir.c (main): Likewise.
75671         * tests/test-fcntl-h.c (main): Likewise.
75672         * tests/test-fcntl-safer.c (main): Likewise.
75673         * tests/test-fdopendir.c (main): Likewise.
75674         * tests/test-fdutimensat.c (main): Likewise.
75675         * tests/test-fflush.c (main): Likewise.
75676         * tests/test-filenamecat.c (main): Likewise.
75677         * tests/test-filevercmp.c (main): Likewise.
75678         * tests/test-fopen-safer.c (main): Likewise.
75679         * tests/test-fopen.c (main): Likewise.
75680         * tests/test-fpending.c (main): Likewise.
75681         * tests/test-fpurge.c (main): Likewise.
75682         * tests/test-freading.c (main): Likewise.
75683         * tests/test-fstatat.c (main): Likewise.
75684         * tests/test-fsync.c (main): Likewise.
75685         * tests/test-futimens.c (main): Likewise.
75686         * tests/test-getndelim2.c (main): Likewise.
75687         * tests/test-gettimeofday.c (main): Likewise.
75688         * tests/test-getopt.c (main): Likewise.
75689         * tests/test-i-ring.c (main): Likewise.
75690         * tests/test-inttypes.c (main): Likewise.
75691         * tests/test-link.c (main): Likewise.
75692         * tests/test-lstat.c (main): Likewise.
75693         * tests/test-math.c (main): Likewise.
75694         * tests/test-md5.c (main): Likewise.
75695         * tests/test-memchr2.c (main): Likewise.
75696         * tests/test-memrchr.c (main): Likewise.
75697         * tests/test-mkdir.c (main): Likewise.
75698         * tests/test-mkdirat.c (main): Likewise.
75699         * tests/test-mkfifoat.c (main): Likewise.
75700         * tests/test-open.c (main): Likewise.
75701         * tests/test-openat-safer.c (main): Likewise.
75702         * tests/test-openat.c (main): Likewise.
75703         * tests/test-quotearg.c (main): Likewise.
75704         * tests/test-rawmemchr.c (main): Likewise.
75705         * tests/test-readlink.c (main): Likewise.
75706         * tests/test-remove.c (main): Likewise.
75707         * tests/test-rename.c (main): Likewise.
75708         * tests/test-renameat.c (main): Likewise.
75709         * tests/test-rmdir.c (main): Likewise.
75710         * tests/test-sha1.c (main): Likewise.
75711         * tests/test-signal.c (main): Likewise.
75712         * tests/test-sigaction.c (main): Likewise.
75713         * tests/test-stat.c (main): Likewise.
75714         * tests/test-stat-time.c (main): Likewise.
75715         * tests/test-stddef.c (main): Likewise.
75716         * tests/test-stdint.c (main): Likewise.
75717         * tests/test-stdio.c (main): Likewise.
75718         * tests/test-stdlib.c (main): Likewise.
75719         * tests/test-strchrnul.c (main): Likewise.
75720         * tests/test-strerror.c (main): Likewise.
75721         * tests/test-string.c (main): Likewise.
75722         * tests/test-strtod.c (main): Likewise.
75723         * tests/test-strverscmp.c (main): Likewise.
75724         * tests/test-symlink.c (main): Likewise.
75725         * tests/test-symlinkat.c (main): Likewise.
75726         * tests/test-sys_stat.c (main): Likewise.
75727         * tests/test-sys_time.c (main): Likewise.
75728         * tests/test-time.c (main): Likewise.
75729         * tests/test-unistd.c (main): Likewise.
75730         * tests/test-unlink.c (main): Likewise.
75731         * tests/test-unlinkat.c (main): Likewise.
75732         * tests/test-utimens.c (main): Likewise.
75733         * tests/test-utimensat.c (main): Likewise.
75734         * tests/test-version-etc.c (main): Likewise.
75735         * tests/test-wchar.c (main): Likewise.
75736         * tests/test-wctype.c (main): Likewise.
75737         * tests/test-xprintf-posix.c (main): Likewise.
75738         * tests/test-posixtm.c (main): Likewise.
75739         (STREQ): Delete unused macro.
75740         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
75741         shadowed variables.
75742         * tests/test-memchr.c (main): Likewise.
75744 2009-10-21  Eric Blake  <ebb9@byu.net>
75746         areadlinkat: avoid failure on older glibc
75747         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
75748         rather than mis-comparing 0 against FUNC_RESULT of char*.
75750 2009-10-21  Bruno Haible  <bruno@clisp.org>
75752         * modules/stpncpy (License): Relicense under LGPLv2+.
75753         Reported by David Lutterkort <lutter@redhat.com>.
75755 2009-10-20  Eric Blake  <ebb9@byu.net>
75757         utimensat: work around Solaris 9 bug
75758         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
75759         has trailing slash bugs.
75760         * tests/test-lutimens.h (test_lutimens): Enhance test.
75761         * tests/test-utimens.h (test_utimens): Likewise.
75762         * doc/posix-functions/utime.texi (utime): Enhance documentation.
75763         * doc/posix-functions/utimes.texi (utimes): Likewise.
75764         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75765         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
75766         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
75767         * doc/posix-functions/futimens.texi (futimens): Likewise.
75769         fdutimensat: new module
75770         * modules/fdutimensat: New file.
75771         * lib/fdutimensat.c (fdutimensat): Likewise.
75772         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
75773         * MODULES.html.sh (File system functions): Mention module.
75774         * modules/fdutimensat-tests: New test.
75775         * tests/test-fdutimensat.c: Likewise.
75777         doc: regenerate INSTALL
75778         * doc/INSTALL: Reflect recent autoconf update.
75779         * doc/INSTALL.ISO: Likewise.
75780         * doc/INSTALL.UTF-8: Likewise.
75782 2009-10-20  Pádraig Brady  <P@draigBrady.com>
75784         acl: warn if ACL support is not detected
75785         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
75787 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
75789         * lib/nproc.h: Add extern "C" block for C++.
75791 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
75792             Bruno Haible  <bruno@clisp.org>
75794         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
75795         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
75796         * doc/posix-functions/isalpha.texi: Likewise.
75797         * doc/posix-functions/isblank.texi: Likewise.
75798         * doc/posix-functions/iscntrl.texi: Likewise.
75799         * doc/posix-functions/isdigit.texi: Likewise.
75800         * doc/posix-functions/isgraph.texi: Likewise.
75801         * doc/posix-functions/islower.texi: Likewise.
75802         * doc/posix-functions/isprint.texi: Likewise.
75803         * doc/posix-functions/ispunct.texi: Likewise.
75804         * doc/posix-functions/isspace.texi: Likewise.
75805         * doc/posix-functions/isupper.texi: Likewise.
75806         * doc/posix-functions/isxdigit.texi: Likewise.
75808 2009-10-18  Bruno Haible  <bruno@clisp.org>
75810         Tests for module 'isblank'.
75811         * modules/isblank-tests: New file.
75812         * tests/test-isblank.c: New file.
75814         New module 'isblank'.
75815         * lib/isblank.c: New file.
75816         * m4/isblank.m4: New file.
75817         * modules/isblank: New file.
75818         * doc/posix-functions/isblank.texi: Mention the new module.
75820 2009-10-18  Bruno Haible  <bruno@clisp.org>
75822         New module 'ctype'.
75823         * lib/ctype.in.h: New file.
75824         * m4/ctype.m4: New file.
75825         * modules/ctype: New file.
75826         * doc/posix-headers/ctype.texi: Mention the new module.
75828 2009-10-18  Jim Meyering  <meyering@redhat.com>
75830         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
75831         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
75832         right after its initialization, rather than farther down.
75833         Keeping these in close proximity makes it easier to ensure
75834         that each such variable is initialized.  E.g.,
75836             LIB_CLOCK_GETTIME=
75837             AC_SUBST([LIB_CLOCK_GETTIME])
75839         This change also increments these serial numbers.
75840         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
75841         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75844 2009-10-18  Bruno Haible  <bruno@clisp.org>
75846         Don't let environment variables perturb build.
75847         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
75848         (gl_PREREQ_GETHRXTIME): ... not here.
75850 2009-10-18  Bruno Haible  <bruno@clisp.org>
75852         Avoid symlink attack in localcharset module.
75853         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
75854         (O_NOFOLLOW): Define fallback.
75855         (get_charset_aliases): Don't open the file if it is a symbolic link.
75856         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
75857         gl_FCNTL_H.
75858         (gl_FCNTL_H): Require it.
75859         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
75860         * modules/localcharset (Files): Add m4/fcntl_h.m4.
75861         Reported by Fergal Glynn <fglynn@veracode.com>.
75863 2009-10-18  Bruno Haible  <bruno@clisp.org>
75865         Implement nproc for mingw.
75866         * lib/nproc.c: Include <windows.h>
75867         (num_processors): On native Windows platforms, try GetSystemInfo.
75869 2009-10-18  Bruno Haible  <bruno@clisp.org>
75871         Implement nproc for IRIX.
75872         * lib/nproc.c: Include <sys/sysmp.h>.
75873         (num_processors): On IRIX systems, try sysmp.
75874         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
75876 2009-10-18  Bruno Haible  <bruno@clisp.org>
75878         Implement nproc for HP-UX.
75879         * lib/nproc.c: Include <sys/pstat.h>
75880         (num_processors): On HP-UX systems, try pstat_getdynamic.
75881         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
75882         pstat_getdynamic.
75884 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
75885             Bruno Haible  <bruno@clisp.org>
75887         Implement nproc for NetBSD, OpenBSD.
75888         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
75889         (ARRAY_SIZE): New macro.
75890         (num_processors): On BSD systems, try sysctl of HW_NCPU.
75891         * m4/nproc.m4: New file.
75892         * modules/nproc (Files): Add m4/nproc.m4.
75893         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
75894         (Makefile.am): Instead, augment lib_SOURCES.
75896 2009-10-18  Bruno Haible  <bruno@clisp.org>
75898         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
75899         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
75900         sys/param.h.
75902 2009-10-16  Eric Blake  <ebb9@byu.net>
75904         utimensat: new module
75905         * modules/utimensat: New file.
75906         * lib/utimensat.c (utimensat): Likewise.
75907         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75908         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
75909         so we can work around Linux bugs.
75910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
75911         * modules/sys_stat (Makefile.am): Substitute them.
75912         * lib/sys_stat.in.h (utimensat): Declare it.
75913         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
75914         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75915         * modules/utimensat-tests: New test.
75916         * tests/test-utimensat.c: Likewise.
75918         utimens: let lutimens work on non-symlinks
75919         * lib/utimens.c (lutimens): Fall back to utimens rather than
75920         failing with ENOSYS, when file is not a symlink.
75921         (utimens): Reduce redirection.
75922         * tests/test-lutimens.h (test_lutimens): Update test to cover
75923         non-symlinks.
75924         * tests/test-utimens.h (test_utimens): Update test to cover
75925         symlinks.
75926         * tests/test-utimens.c (main): Update caller.
75928         utimens: cache whether utimensat syscall works
75929         * lib/utimens.c (utimensat_works_really): New cache variable.
75930         (fdutimens, lutimens): Use it to avoid failing syscall.
75932         test-stat-time, test-utimens: improve portability
75933         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
75934         ext4 on alpha, and for cygwin.
75935         * tests/test-utimens-common.h: New file.
75936         (nap): Factor delays into single function.
75937         * tests/test-lutimens.h (test_lutimens): Use new header.
75938         * tests/test-futimens.h (test_futimens): Likewise.
75939         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
75940         timestamps to occur from same machine, as was done previously for
75941         test_utimens.
75942         * modules/utimens-tests (Files): Ship new file.
75943         * modules/futimens-tests (Files): Likewise.
75944         Reported in part by Jim Meyering.
75946         sys_stat: sort replacement declarations
75947         * lib/sys_stat.in.h: Sort declarations.
75948         * lib/futimens.c (futimens): Fix typo.
75950 2009-10-15  Jim Meyering  <meyering@redhat.com>
75952         don't let environment settings perturb build
75953         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
75954         could cause a configure-time and/or build-time malfunction.
75955         Typically, a configure-time function-in-library test is performed
75956         via code like this:
75958           LIB_VAR=
75959           AC_SUBST([LIB_VAR])
75960           prefix_saved_LIBS=$LIBS
75961             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
75962                        [test "$ac_cv_search_FUNC" = "none required" ||
75963                         LIB_VAR=$ac_cv_search_FUNC])
75964           LIBS=$prefix_saved_LIBS
75966         However, in each of the files affected by this change, the LIB_VAR=
75967         initialization was omitted.  Thus, when set in the environment, its
75968         value would propagate into generated Makefiles when FUNC is not found
75969         in LIB_NAME.
75970         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
75971         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75974 2009-10-14  Eric Blake  <ebb9@byu.net>
75976         fchdir: avoid infinite recursion in mingw
75977         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
75978         recursing.
75980         test-stat-time: port to mingw
75981         * tests/test-stat-time.c (force_unlink): Return a value.
75982         (test_ctime) [W32]: Fix compilation error.
75983         (nap): Don't call usleep with too large an argument.  Use
75984         force_unlink.
75985         * doc/pastposix-functions/usleep.texi (usleep): Document the
75986         portability issue.
75988 2009-10-13  Jim Meyering  <meyering@redhat.com>
75990         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
75991         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
75992         * modules/pipe-filter-ii: Likewise.
75993         * modules/sys_socket-tests: Likewise.
75994         * modules/tsearch-tests: Likewise.
75995         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
75996         (check): Depend on it.
75998 2009-10-12  Eric Blake  <ebb9@byu.net>
76000         utimens-tests: port to NFS file systems
76001         * tests/test-utimens.h (test_utimens): Refactor utimecmp
76002         comparisons to avoid spurious failures from timestamp drift
76003         between NFS machines.
76005 2009-10-12  Eric Blake  <ebb9@byu.net>
76007         stat-time-tests: minor cleanups
76008         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
76009         * tests/test-stat-time.c (nap): Separate assignment from call.
76010         Suggested by Paolo Bonzini and Bruno Haible.
76012         sys_stat: guarantee struct timespec
76013         * lib/sys_stat.in.h (includes): Always include <time.h>
76014         * modules/sys_stat (Depends-on): Add time.
76015         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
76016         mode_t permission values.
76017         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
76018         get at subsecond timestamps.
76020 2009-10-10  Eric Blake  <ebb9@byu.net>
76022         futimens: new module
76023         * modules/futimens: New file.
76024         * lib/futimens.c (futimens): Likewise.
76025         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
76026         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
76027         we can work around Linux bugs.
76028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76029         * modules/sys_stat (Makefile.am): Substitute them.
76030         * lib/sys_stat.in.h (futimens): Declare it.
76031         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76032         * doc/posix-functions/futimens.texi (futimens): Likewise.
76033         * modules/futimens-tests: New test.
76034         * tests/test-futimens.c: Likewise.
76036         utimens: introduce fdutimens
76037         * lib/utimens.h (fdutimens): New prototype.
76038         * lib/utimens.c (gl_futimens): Move guts...
76039         (fdutimens): ...to new interface.
76040         * tests/test-utimens.c (do_fdutimens): Use it.
76042         utimens: add UTIME_NOW and UTIME_OMIT support
76043         * lib/utimens.c (validate_timespec, update_timespec): New helper
76044         functions.
76045         (gl_futimens, lutimens): Use them.
76046         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
76047         stdbool, sys_stat.
76048         (Link): Mention resulting library dependency.
76049         * modules/utimecmp (Link): Likewise.
76050         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
76051         (Makefile.am): Pick up library dependency.
76052         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
76053         definition.
76054         * tests/test-sys_stat.c: Test the definitions.
76055         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
76056         * NEWS: Document library dependency.
76058         utimecmp: support symlink timestamps
76059         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
76060         hashing when possible.  Use pathconf when available.
76061         (SYSCALL_RESOLUTION): Recognize tighter resolution.
76062         * modules/utimecmp (Depends-on): Add lstat.
76064         utimens: add lutimens interface
76065         * lib/utimens.c (lutimens): New function.
76066         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
76067         * lib/utimens.h (lutimens): Declare new interface.
76068         * tests/test-utimens.c (main): Enhance test.
76069         * tests/test-lutimens.h (test_lutimens): New file.
76070         * modules/utimens-tests (Files): Distribute it.
76071         (Depends-on): Add symlink.
76072         (configure.ac): Check for usleep.
76074         utimens: validate futimens usage
76075         * lib/utimens.c (gl_futimens): Require valid fd up front, using
76076         fewer syscalls on failure later on.  Avoid compiler warning on
76077         mingw.
76078         * modules/utimens (Depends-on): Add dup2.
76080         utimens: add test
76081         * modules/utimens-tests: New test.
76082         * tests/test-utimens.h: New file.
76083         * tests/test-futimens.h: Likewise.
76084         * tests/test-utimens.c: Likewise.
76086         doc: mention timestamp portability issues
76087         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
76088         instead.
76089         * doc/posix-functions/utime.texi (utime): Likewise.
76090         * doc/posix-functions/utimes.texi (utimes): Likewise.
76091         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
76092         instead.
76093         * doc/posix-functions/futimens.texi (futimens): Mention utimens
76094         module.
76095         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76096         Mention weakness with symlink timestamps.
76097         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
76098         to utimensat/futimens instead.
76099         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
76101         test-dup2: enhance test
76102         * tests/test-dup2.c (main): Also check AT_FDCWD.
76104         test-stat-time: avoid more spurious failures
76105         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
76106         xfs; and avoid race if the two timestamps cross quantization edge.
76108         relocatable: prefer 'file system' over 'filesystem'
76109         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
76110         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
76111         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
76112         * doc/relocatable.texi (Enabling Relocatability): Likewise.
76113         * lib/relocatable.c (compute_curr_prefix): Likewise.
76115 2009-10-10  Jim Meyering  <meyering@redhat.com>
76117         stat-time-tests: check for the usleep function
76118         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
76120 2009-10-10  Bruno Haible  <bruno@clisp.org>
76122         * modules/xnanosleep: Put the Link section after the Include section.
76124 2009-10-09  Eric Blake  <ebb9@byu.net>
76126         dup2: work around FreeBSD 6.1 bug
76127         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
76128         * doc/posix-functions/dup2.texi (dup2): Document it.
76129         Reported by Nelson H. F. Beebe and Jim Meyering.
76131         test-stat-time: port to buggy NFS clients
76132         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
76133         (test_ctime): Also skip test if mtime and ctime are skewed.
76135         maint: prefer 'file system' over 'filesystem'
76136         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76137         * doc/posix-functions/lstat.texi (lstat): Likewise.
76138         * lib/file-has-acl.c (file_has_acl): Likewise.
76139         * lib/fwriteerror.c [TEST]: Likewise.
76140         * tests/test-areadlink.h (test_areadlink): Likewise.
76141         * tests/test-areadlinkat-with-size.c (main): Likewise.
76142         * tests/test-areadlinkat.c (main): Likewise.
76143         * tests/test-canonicalize-lgpl.c (main): Likewise.
76144         * tests/test-canonicalize.c (main): Likewise.
76145         * tests/test-fstatat.c (main): Likewise.
76146         * tests/test-linkat.c (main): Likewise.
76147         * tests/test-lstat.h (test_lstat_func): Likewise.
76148         * tests/test-mkdir.h (test_mkdir): Likewise.
76149         * tests/test-readlink.h (test_readlink): Likewise.
76150         * tests/test-remove.c (main): Likewise.
76151         * tests/test-rename.h (test_rename): Likewise.
76152         * tests/test-renameat.c (main): Likewise.
76153         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76154         * tests/test-symlink.h (test_symlink): Likewise.
76155         * tests/test-symlinkat.c (main): Likewise.
76156         * tests/test-unlink.h (test_unlink_func): Likewise.
76157         * tests/test-unlinkat.c (main): Likewise.
76159         maint: make realtime library usage explicit
76160         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
76161         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
76162         * modules/settime (Link): Likewise.
76163         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
76165         test-stat-time: speed up execution
76166         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
76167         warning on mingw.
76168         (nap): New helper function.
76169         (prepare_test): Use it to reduce sleep time.
76170         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
76171         execution.
76172         * modules/stat-time-tests (configure.ac): Check for usleep.
76174 2009-10-09  Jim Meyering  <meyering@redhat.com>
76176         selinux-h: always use getfilecon wrappers
76177         * lib/getfilecon.c: New file.
76178         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
76179         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
76180         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
76181         (fgetfilecon): Provide a stub.
76182         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
76183         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
76184         file unconditionally.
76185         When <selinux/selinux.h> is found, arrange to use wrappers.
76186         * modules/selinux-h (Files): Add getfilecon.c.
76187         (Makefile.am): Substitute include-next-related bits
76188         into the now-always-generated selinux/selinux.h file.
76189         * doc/glibc-functions/lgetfilecon.texi: New file.
76190         * doc/glibc-functions/fgetfilecon.texi: New file.
76191         * doc/glibc-functions/getfilecon.texi: New file.
76192         * doc/glibc-functions/getfilecon-desc.texi: New file.
76193         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
76194         which to pull in the new files.
76195         * MODULES.html.sh (Misc): Add selinux-h.
76197 2009-10-08  Jim Meyering  <meyering@redhat.com>
76199         unistd: fix comment typo
76200         * lib/unistd.in.h (euidaccess): Fix a comment typo.
76202 2009-10-08  Eric Blake  <ebb9@byu.net>
76204         areadlink: use SIZE_MAX consistently
76205         * modules/areadlink (Depends-on): Add stdint.
76206         * modules/areadlink-with-size (Depends-on): Likewise.
76207         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
76208         gives NULL; drop sys/types, since unistd gives size_t; and add
76209         stdint for SIZE_MAX.
76210         (SIZE_MAX): Rely on headers.
76211         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
76212         and add stdint.
76213         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
76214         (SIZE_MAX): Likewise.
76215         (INITIAL_BUF_SIZE): Turn into enum.
76216         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
76218 2009-10-08  Jim Meyering  <meyering@redhat.com>
76220         areadlinkat: avoid compilation failure
76221         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
76222         Fix typo in comment.
76224 2009-10-07  Eric Blake  <ebb9@byu.net>
76226         areadlinkat-with-size: new module
76227         * modules/areadlinkat-with-size: New module.
76228         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
76229         * lib/areadlink.h (areadlinkat): Declare it.
76230         * MODULES.html.sh (File system functions): Mention it.
76231         * modules/areadlinkat-with-size-tests: New test.
76232         * tests/test-areadlinkat-with-size.c: New file.
76234         xreadlinkat: new module
76235         * modules/xreadlinkat: New module.
76236         * lib/xreadlinkat.c (xreadlinkat): New file.
76237         * lib/xreadlink.h (xreadlinkat): Declare it.
76238         * MODULES.html.sh (File system functions): Mention it.
76240         areadlinkat: new module
76241         * lib/at-func.c (FUNC_FAIL): New define.
76242         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
76243         * modules/areadlinkat: New module.
76244         * lib/linkat.c (areadlinkat): Move...
76245         * lib/areadlinkat.c (areadlinkat): ...to new file.
76246         * lib/areadlink.h (areadlinkat): Declare it.
76247         * modules/linkat (Depends-on): Add areadlinkat.
76248         * MODULES.html.sh (File system functions): Mention it.
76249         * modules/areadlinkat-tests: New test.
76250         * tests/test-areadlinkat.c: New file.
76252         areadlink, areadlink-with-size: add tests
76253         * modules/areadlink-tests: New test.
76254         * modules/areadlink-with-size-tests: Likewise.
76255         * tests/test-areadlink.h: New file.
76256         * tests/test-areadlink.c: Likewise.
76257         * tests/test-areadlink-with-size.c: Likewise.
76259         maint: minor cleanups
76260         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
76261         _UNUSED_PARAMETER_ instead.
76262         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
76263         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
76264         * modules/linkat-tests (Files): Distribute test-link.h.
76266         openat, utimens: whitespace cleanup
76267         * lib/openat.c: Prefer space throughout, rather than mix of 8
76268         spaces vs. tabs.
76269         * lib/at-func.c: Likewise.
76270         * lib/utimens.c: Likewise.
76272         openat: avoid using wrong fd
76273         * lib/openat.c (openat_permissive): Reject user's fd if saving the
76274         working directory chooses same fd.
76275         * lib/at-func.c (AT_FUNC_NAME): Likewise.
76277         mkdir, mkdirat: fix cygwin 1.5.x bug
76278         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
76279         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
76280         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
76281         bug.
76282         (gl_PREREQ_MKDIR): Delete unused macro.
76283         * modules/mkdir (Files): Track file rename.
76284         (configure.ac): Update macro name.
76285         * modules/openat (Depends-on): Add mkdir.
76286         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
76288         mkdir, mkdirat: add tests
76289         * modules/mkdir-tests: New test.
76290         * tests/test-mkdir.h: New file.
76291         * tests/test-mkdir.c: Likewise.
76292         * tests/test-mkdirat.c: Likewise.
76293         * modules/openat-tests (Files): Add new files.
76294         (Makefile.am): Run new test.
76296 2009-10-06  Eric Blake  <ebb9@byu.net>
76298         doc: tweak *at function documentation
76299         * doc/posix-functions/faccessat.texi (faccessat): Mention
76300         known issue with replacement.
76301         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
76302         * doc/posix-functions/linkat.texi (linkat): Likewise.
76303         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
76304         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
76305         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76306         * doc/posix-functions/renameat.texi (renameat): Likewise.
76307         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76309         openat: fix GNU/Hurd bug in unlinkat
76310         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
76311         broken.
76312         * doc/posix-functions/unlink.texi (unlink): Document this.
76313         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
76315         fdopendir: fix GNU/Hurd bug
76316         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
76317         allowing non-directory fds.
76318         * lib/fdopendir.c (rpl_fdopendir): Work around it.
76319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
76320         * modules/dirent (Makefile.am): Substitute it.
76321         * lib/dirent.in.h (fdopendir): Declare replacement.
76322         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
76323         * tests/test-fdopendir.c (main): Test something other than
76324         /dev/null, since on Hurd that behaves like a directory.
76326         test-symlink: port to GNU/Hurd
76327         * tests/test-symlink.h (test_symlink): Relax expected errno.
76329         doc: tweak more cygwin information
76330         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
76331         now compatible with glibc.
76332         * doc/posix-functions/getopt.texi (getopt): Likewise.
76334         getopt-gnu: add another test
76335         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
76336         guarantee behavior relied on by m4.
76337         * tests/test-getopt.c (main): Use it.
76338         * modules/getopt-posix-tests (Depends-on): Add setenv.
76339         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
76341         getopt: fix compilation on darwin
76342         * lib/getopt.in.h (includes): Leave breadcrumbs during system
76343         include.
76344         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
76345         Reported by Ludovic Courtès.
76347 2009-10-06  Bruno Haible  <bruno@clisp.org>
76349         * modules/size_max (Description): Discourage its use.
76350         Reported by Simon Josefsson.
76352 2009-10-06  Jim Meyering  <meyering@redhat.com>
76354         linkat: avoid compilation failure
76355         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
76357 2009-10-05  Eric Blake  <ebb9@byu.net>
76359         linkat: support Linux 2.6.17
76360         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
76361         linkat on Linux, but allow cache variable override.
76362         * lib/linkat.c (rpl_linkat): Define override.
76363         * modules/linkat (Depends-on): Add symlinkat.
76364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
76365         * modules/unistd (Makefile.am): Substitute it.
76366         * lib/unistd.in.h (linkat): Declare replacement.
76367         Reported by Pádraig Brady.
76369         quotearg: port test to systems with C.UTF-8 locale
76370         * tests/test-quotearg.c (struct result_strings): Add another
76371         member, differentiating between C.ASCII and C.UTF-8 handling.
76372         (compare_strings): Add parameter.
76373         (main): Adjust all callers.
76375         getopt: avoid clash with FreeBSD _getopt_internal
76376         * lib/getopt.in.h (_getopt_internal): Override the name.
76377         * lib/getopt_int.h (includes): Pick up any overrides.
76378         Reported by Reuben Thomas.
76380         hash: allow C89 compilation
76381         * lib/hash.c (check_tuning): Move declaration before statement.
76382         Reported by Reuben Thomas.
76384 2009-10-05  Karl Berry  <karl@gnu.org>
76386         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
76388 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
76389             Bruno Haible  <bruno@clisp.org>
76391         * lib/uname.c (uname): Use a table-driven algorithm to compute
76392         Windows NT versions.
76394 2009-10-04  Bruno Haible  <bruno@clisp.org>
76396         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
76397         program_invocation_short_name.
76398         * modules/progname (configure.ac): Test for presence of
76399         program_invocation_short_name.
76400         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
76402 2009-10-04  Bruno Haible  <bruno@clisp.org>
76404         * lib/progname.c (set_program_name): Fix comment.
76405         Reported by Jim Meyering.
76407 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76408             Bruno Haible  <bruno@clisp.org>
76410         * lib/uname.c: Include <string.h>.
76411         (uname): Do only one call to GetVersionEx in the common case.
76413 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
76414             Bruno Haible  <bruno@clisp.org>
76416         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
76417         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
76418         (uname): Add support for Windows CE and various non-x86 CPU types.
76420 2009-10-03  Bruno Haible  <bruno@clisp.org>
76422         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
76423         invocation to tests/configure.ac.
76424         Reported by Ian Beckwith <ianb@erislabs.net>.
76426 2009-10-02  Eric Blake  <ebb9@byu.net>
76428         fchdir: avoid compiler warning
76429         * lib/fchdir.c (canonicalize_file_name)
76430         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
76432         test-open: support mingw errno values
76433         * tests/test-open.h (test_open): Relax test.
76434         * tests/test-fopen.h (test_fopen): Likewise.
76435         * tests/test-openat-safer.c (main): Likewise.
76437         open: fix opening directory on mingw
76438         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
76440         test-open: on GNU/Hurd, /dev/null is a directory
76441         * tests/test-fopen.h (main): Rename...
76442         (test_fopen): ...to this.  Use a guaranteed non-directory when
76443         confirming open behavior on trailing slash.
76444         * tests/test-openat-safer.c (main): Likewise.
76445         * tests/test-open.h (main): Likewise....
76446         (test_open): ...to this.
76447         * tests/test-fopen.c (main): Adjust caller.
76448         * tests/test-fopen-safer.c (main): Likewise.
76449         * tests/test-open.c (main): Likewise.
76450         * tests/test-fcntl-safer.c (main): Likewise.
76451         Reported by Samuel Thibault.
76453         rename, fchdir: don't ignore chdir failure
76454         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
76455         * lib/rename.c (rpl_rename) [W32]: Likewise.
76456         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
76457         an empty destination directory if source cannot be renamed,
76458         although there is still possibility for failure.
76459         * doc/posix-functions/rename.texi (rename): Document the race.
76460         Reported by Jim Meyering.
76462         maint: cleanup whitespace in recent commits
76463         * lib/rename.c (rpl_rename): Remove tabs.
76464         * tests/test-link.h (test_link): Likewise.
76465         * lib/fchdir.c (get_name): Likewise.
76466         Reported by Jim Meyering.
76468 2009-10-02  Ben Pfaff  <blp@gnu.org>
76470         relocatable-prog-wrapper: Add missing dependency on
76471         double-slash-root.
76472         * modules/relocatable-prog-wrapper: Add dependency.
76473         Reported by Ian Beckwith <ianb@erislabs.net>.
76475 2009-10-02  Eric Blake  <ebb9@byu.net>
76477         renameat: fix Solaris bugs
76478         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
76479         needed fixing.
76480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
76481         * modules/stdio (Makefile.am): Substitute it.
76482         * lib/stdio.in.h (renameat): Declare replacement.
76483         * lib/renameat.c (rpl_renameat): Implement fix.
76485         renameat: new module
76486         * modules/renameat: New file.
76487         * lib/renameat.c (renameat): Likewise.
76488         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
76489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76490         * modules/stdio (Makefile.am): Substitute them.
76491         * lib/stdio.in.h (renameat): Declare it.
76492         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76493         * doc/posix-functions/renameat.texi (renameat): Likewise.
76494         * modules/renameat-tests: New test.
76495         * tests/test-renameat.c: Likewise.
76497         rename: fix mingw bugs
76498         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
76499         directory overwrite bugs.
76501         rename: fix another cygwin 1.5 bug
76502         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
76503         checks.
76504         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
76505         unnecessary cygwin workarounds.  Also work around bug with moving
76506         full directory onto an empty one.
76507         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
76509         rename-dest-slash: merge into rename module
76510         * modules/rename-dest-slash (Status): Mark obsolete.
76511         (Depends-on): Add rename.
76512         (Files): Let rename do it all.
76513         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
76514         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
76515         * m4/rename-dest-slash.m4: ...so this file can be deleted.
76516         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
76517         * lib/rename.c (rpl_rename): Update comments.
76519         rename: fix cygwin 1.5.x bugs
76520         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
76521         * lib/rename.c (rpl_rename): Work around them.
76522         * modules/rename (Depends-on): Add same-inode.
76524         rename: fix Solaris 10 bug
76525         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76526         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
76527         was the only bug.
76529         rename: fix Solaris 9 bug
76530         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
76531         on non-directory.  Avoid calling exit.
76532         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
76533         strdup.
76534         * modules/rename-tests (Depends-on): Drop lstat.
76535         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
76536         (gl_PREREQ_RENAME): Delete unused macro.
76538         rename-dest-slash: fix NetBSD bug
76539         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
76540         links.
76541         * modules/rename-dest-slash (Depends-on): Add same-inode.
76543         rename-tests: new test, exposes several platform bugs
76544         * modules/rename-tests: New file.
76545         * tests/test-rename.h: Likewise.
76546         * tests/test-rename.c: Likewise.
76547         * doc/posix-functions/rename.texi (rename): Improve documentation,
76548         including bugs that will eventually be fixed in gnulib.
76550 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
76552         * lib/uname.c: Include <stdlib.h>
76553         (uname): Assume version info is available.
76555 2009-10-02  Jim Meyering  <meyering@redhat.com>
76557         gnu-web-doc-update: correct --help output
76558         * build-aux/gnu-web-doc-update: Make --help output relevant.
76560         gnu-web-doc-update: add standard options
76561         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
76563         gnu-web-doc-update: New module.
76564         Use this script to automatically update the on-line web documentation
76565         for your GNU project at http://www.gnu.org/software/$pkg/manual/
76566         * modules/gnu-web-doc-update: New file, from coreutils.
76567         * build-aux/gnu-web-doc-update: New script.
76569 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
76571         link: LoadLibrary is not needed.
76572         * lib/link.c: Use GetModuleHandle.
76574 2009-10-01  Eric Blake  <ebb9@byu.net>
76576         getopt: bump serial number
76577         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
76578         change.
76580         tests: tighten link, rmdir, and remove tests
76581         * tests/test-link.h (includes): No need to use <config.h> here.
76582         Clean up if directory hard link was created, otherwise test for
76583         trailing '.'.
76584         * tests/test-linkat.c (main): Simplify.
76585         * tests/test-remove.c (main): Enhance test for trailing '.'.
76586         * tests/test-rmdir.h (test_rmdir_func): Likewise.
76588 2009-10-01  Jim Meyering  <meyering@redhat.com>
76590         maint.mk: requiring "make major" was annoying, for a "minor" release.
76591         What is intended is "stable", to contrast with alpha and beta,
76592         so require "make stable", not "make major".
76593         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
76594         (get_tool_versions): Likewise.
76595         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
76597 2009-09-30  Ben Pfaff  <blp@gnu.org>
76599         Fix broken build of replacement for Windows tmpfile().
76600         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
76601         flags argument added along with the 'mkostemp' module.
76603 2009-09-28  Bruno Haible  <bruno@clisp.org>
76605         Avoid identifier clash with POSIX function 'remove' defined as a macro.
76606         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
76607         to 'remove_elt'.
76608         (gl_list_remove): Update.
76609         * lib/gl_list.c (gl_list_remove): Update.
76610         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
76611         to 'remove_elt'.
76612         (gl_oset_remove): Update.
76613         * lib/gl_list.c (gl_oset_remove): Update.
76614         Reported by Eric Blake.
76616 2009-09-28  Eric Blake  <ebb9@byu.net>
76618         doc: mention yet more cygwin 1.7 status
76619         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
76620         cygwin.
76621         * doc/glibc-functions/execvpe.texi (execvpe): New file.
76622         * doc/gnulib.texi (Glibc unistd.h): Mention it.
76624         argp: fix test failure
76625         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
76626         that are not upper-case.  Pass correct range to tolower.
76628 2009-09-27  Jim Meyering  <meyering@redhat.com>
76630         test-yesno: work around sparc-dash here-document infelicity
76631         Without this change, the literal \177 byte in a here document
76632         would make dash 0.5.5.1-3 access uninitialized memory.
76633         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
76634         Instead, use a marker, "@", and filter through tr to create the desired
76635         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
76637 2009-09-27  Bruno Haible  <bruno@clisp.org>
76639         Disable untested support for new flavours of ACLs on AIX.
76640         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
76641         progress.
76642         * lib/set-mode-acl.c (qset_acl): Likewise.
76644 2008-12-07  Bruno Haible  <bruno@clisp.org>
76646         Add support for new flavours of ACLs on AIX. (Untested.)
76647         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
76648         (file_has_acl): Add support for newer AIX.
76649         * lib/set-mode-acl.c (qset_acl): Likewise.
76650         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
76651         Rainer Tammer <tammer@tammer.net>.
76653 2009-09-26  Eric Blake  <ebb9@byu.net>
76655         argp: fix compilation of getopt
76656         * lib/getopt.in.h (includes): Use different guard than glibc.
76657         Reported by Sergey Poznyakoff.
76659         doc: mention more cygwin 1.7 status
76660         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
76661         bug.
76662         * doc/posix-functions/execl.texi (execl): Likewise.
76663         * doc/posix-functions/execle.texi (execle): Likewise.
76664         * doc/posix-functions/execlp.texi (execlp): Likewise.
76665         * doc/posix-functions/execv.texi (execv): Likewise.
76666         * doc/posix-functions/execve.texi (execve): Likewise.
76667         * doc/posix-functions/execvp.texi (execvp): Likewise.
76668         * doc/glibc-functions/canonicalize_file_name.texi
76669         (canonicalize_file_name): Cygwin 1.7 now provides this.
76670         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
76671         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
76672         on AT_SYMLINK_NOFOLLOW.
76674 2009-09-24  Eric Blake  <ebb9@byu.net>
76676         test-linkat: make test more robust
76677         * tests/test-linkat.c (main): Avoid collision with EEXIST.
76679         getopt: fix inclusion guards for cygwin
76680         * modules/getopt-posix (Depends-on): Add include-next.
76681         (Makefile.am): Substitute more items in replacement header.
76682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
76683         <getopt.h>.
76684         * lib/getopt.in.h (includes): Use split inclusion guard, and
76685         prefer <getopt.h> over include <unistd.h> when one is present.
76686         (option): Also override name of 'struct option'.
76688         same-inode: revert prior change; it is not yet ready
76689         * NEWS: Undo mention of this change.
76690         * lib/same-inode.h (same-inode.h): Undo tri-state change.
76691         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76692         * lib/cycle-check.c (cycle_check): Likewise.
76693         * lib/same.c (same_name): Likewise.
76694         * lib/at-func2.c (at_func2): Likewise.
76696 2009-09-23  Eric Blake  <ebb9@byu.net>
76698         linkat: new module
76699         * modules/linkat: New file.
76700         * lib/at-func2.c (at_func2): Likewise.
76701         * lib/linkat.c (linkat): Likewise.
76702         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
76703         * lib/openat-priv.h (at_func2): Add declaration.
76704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76705         * modules/unistd (Makefile.am): Substitute them.
76706         * lib/unistd.in.h (linkat): Declare it.
76707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76708         * doc/posix-functions/linkat.texi (linkat): Likewise.
76709         * doc/posix-functions/link.texi (link): Tweak wording.
76710         * tests/test-link.c (main): Move guts...
76711         * tests/test-link.h (test_link): ...into new file.
76712         * modules/linkat-tests: New test.
76713         * tests/test-linkat.c: Likewise.
76714         * modules/link-tests (Files): Ship new file.
76715         (Depends-on): Add stdbool.
76717         dirname: add library-safe mdir_name
76718         * lib/dirname.h (mdir_name): New prototype.
76719         * lib/dirname.c (dir_name): Move guts...
76720         (mdir_name): ...to new function that avoids xalloc_die.
76722         fchdir: another mingw fix
76723         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
76724         * lib/fchdir.c (get_name): New helper method; skips canonicalize
76725         on mingw (where it has not yet been ported), and make it optional
76726         elsewhere.
76727         (_gl_register_fd): Use it.
76729         same-inode: make SAME_INODE tri-state, to port to mingw
76730         * NEWS: Mention this change.
76731         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
76732         st_ino always being 0.
76733         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
76734         * lib/cycle-check.c (cycle_check): Likewise.
76735         * lib/same.c (same_name): Likewise.
76737         lstat: avoid mingw compilation error
76738         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
76739         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
76740         lstat ourselves.
76741         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
76742         was adequate.
76743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
76744         the checks for lstat.
76745         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
76747         link: fix test failure on Solaris 9
76748         * lib/link.c (rpl_link): Don't assume link will catch bogus
76749         trailing slash on source.
76751         test-symlinkat: enhance test
76752         * tests/test-readlink.c (main): Move guts...
76753         * tests/test-readlink.h (test_readlink): ...into new file.
76754         * tests/test-symlink.c (main): Move guts...
76755         * tests/test-symlink.h (test_symlink): ...into new file.
76756         * tests/test-symlinkat.c (main): Use new files for further
76757         coverage.
76758         (do_symlink, do_readlink): New helper functions.
76759         * modules/symlink-tests (Files): Ship new file.
76760         (Depends-on): Add stdbool.
76761         * modules/readlink-tests (Files): Ship new file.
76762         (Depends-on): Add stdbool.
76763         * modules/symlinkat-tests (Files): Use new files.
76765 2009-09-23  Eric Blake  <ebb9@byu.net>
76767         readlink: document portability issue with symlink length
76768         * doc/posix-functions/lstat.texi (lstat): Mention that some file
76769         systems have bogus st_size on symlinks, and mention the
76770         areadlink-with-size module.
76771         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
76772         * doc/posix-functions/readlink.texi (readlink): Mention the
76773         areadlink module, and ERANGE failure.
76774         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
76775         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
76777         readlink: fix Solaris 9 bug with trailing slash
76778         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
76779         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
76780         * doc/posix-functions/readlink.texi (readlink): Document this.
76781         * modules/readlink-tests: New test.
76782         * tests/test-readlink.c: Likewise.
76784         readlink: fix cygwin 1.5.x bug with return type
76785         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
76786         * lib/unistd.in.h (readlink): Use ssize_t.
76787         * lib/readlink.c (readlink): Likewise.
76788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76789         * modules/unistd (Makefile.am): Substitute it.
76790         * lib/unistd.in.h (readlink): Declare replacement.
76791         * doc/posix-functions/readlink.texi (readlink): Document this.
76793         symlink: use throughout gnulib
76794         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
76795         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
76796         symlink is not used.
76797         * modules/symlinkat (Depends-on): Add symlink.
76798         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
76799         * modules/canonicalize-tests (Depends-on): Likewise.
76800         * modules/lstat-tests (Depends-on): Likewise.
76801         * modules/openat-tests (Depends-on): Likewise.
76802         * modules/remove-tests (Depends-on): Likewise.
76803         * modules/rmdir-tests (Depends-on): Likewise.
76804         * modules/unlink-tests (Depends-on): Likewise.
76805         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
76806         * tests/test-canonicalize.c (symlink): Likewise.
76807         * tests/test-fstatat.c (symlink): Likewise.
76808         * tests/test-lstat.c (symlink): Likewise.
76809         * tests/test-remove.c (symlink): Likewise.
76810         * tests/test-rmdir.c (symlink): Likewise.
76811         * tests/test-unlink.c (symlink): Likewise.
76812         * tests/test-unlinkat.c (symlink): Likewise.
76814         symlink: new module, for Solaris 9 bug
76815         * modules/symlink: New file.
76816         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
76817         * lib/symlink.c: Likewise.
76818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76819         * modules/unistd (Makefile.am): Substitute them.
76820         * lib/unistd.in.h (symlink): Declare replacement.
76821         * MODULES.html.sh (File system functions): Mention it.
76822         * doc/posix-functions/symlink.texi (symlink): Likewise.
76823         * modules/symlink-tests: New test.
76824         * tests/test-symlink.c: Likewise.
76826 2009-09-23  Bruno Haible  <bruno@clisp.org>
76828         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
76829         when needed.
76830         Test case: gnulib-tool --import --with-tests atexit inttypes.
76831         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
76833 2009-09-23  Bruno Haible  <bruno@clisp.org>
76835         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
76836         subcommand, not in a subshell.
76838 2009-09-22  Eric Blake  <ebb9@byu.net>
76840         unistd: sort replacement declarations
76841         * lib/unistd.in.h: Sort declarations.
76843         open, openat: minor optimization
76844         * lib/open.c (open): If open succeeded, len is non-zero.
76845         * lib/openat.c (rpl_openat): Likewise.
76847         link-follow: ensure correct result
76848         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
76849         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
76850         distinguish between possible failures.
76852 2009-09-21  Eric Blake  <ebb9@byu.net>
76854         fts: avoid compiler warning
76855         * lib/fts.c (dirent_inode_sort_may_be_useful)
76856         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
76858 2009-09-19  Bruno Haible  <bruno@clisp.org>
76860         * lib/progreloc.c (canonicalize_file_name): New declaration.
76862 2009-09-19  Eric Blake  <ebb9@byu.net>
76864         link: fix quoting
76865         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
76867         openat: fix openat bugs on Solaris 9
76868         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
76869         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
76870         * modules/openat (Depends-on): Add open.
76871         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
76872         * modules/fcntl-h (Makefile.am): Substitute it.
76873         * lib/fcntl.in.h (openat): Declare replacement.
76874         * doc/posix-functions/openat.texi (openat): Document this.
76876         openat: move fstatat and unlinkat into correct files
76877         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
76878         compiled.
76879         * lib/openat.c (fstatat, unlinkat): Move...
76880         * lib/fstatat.c (fstatat): ...into correct files.
76881         * lib/unlinkat.c (unlinkat): Likewise.
76883         openat: fix unlinkat bugs on Solaris 9
76884         * lib/unlinkat.c (unlinkat): New file.
76885         * modules/openat (Depends-on): Add unlink.
76886         (Files): Distribute it.
76887         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
76888         trailing slash behavior is broken.
76889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76890         * modules/unistd (Makefile.am): Substitute it.
76891         * lib/unistd.in.h (unlinkat): Declare replacement.
76892         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
76894         openat: fix fstatat bugs on Solaris 9
76895         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
76896         stat.
76897         * doc/posix-functions/fstatat.texi (fstatat): Document this.
76899         test-unlinkat: enhance test, to expose Solaris 9 bug
76900         * tests/test-unlink.c (main): Factor guts...
76901         * tests/test-unlink.h (test_rmdir_func): ...into new file.
76902         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
76903         * tests/test-rmdir.c (main): Adjust caller.
76904         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
76905         (unlinker): New helper function.
76906         (rmdirat): Enhance check.
76907         * modules/rmdir-tests (Depends-on): Add stdbool.
76908         * modules/unlink-tests (Depends-on): Likewise.
76909         (Files): Add test-unlink.h.
76910         * modules/openat-tests (Files): Likewise.
76911         (Depends-on): Add unlinkdir.
76913         test-fstatat: new test, to expose Solaris 9 bugs
76914         * tests/test-stat.c (main): Factor guts...
76915         * tests/test-stat.h (test_stat_func): ...into new file.
76916         * tests/test-lstat.c (main): Factor guts...
76917         * tests/test-lstat.h (test_lstat_func): ...into new file.
76918         * tests/test-fstatat.c: New file.
76919         * modules/stat-tests (Files): Add test-stat.h.
76920         * modules/lstat-tests (Files): Add test-lstat.h.
76921         (Depends-on): Add stdbool.
76922         * modules/openat-tests (Depends-on): Add pathmax.
76923         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
76924         (Makefile.am): Run new test.
76926         remove: new module, for mingw and Solaris 9 bugs
76927         * modules/remove: New file.
76928         * lib/remove.c: Likewise.
76929         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
76930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
76931         * modules/stdio (Makefile.am): Use them.
76932         * lib/stdio.in.h (remove): Declare replacement.
76933         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76934         * doc/posix-functions/remove.texi (remove): Likewise.
76935         * modules/remove-tests: New test.
76936         * tests/test-remove.c: Likewise.
76938         unlink: new module, for Solaris 9 bug
76939         * modules/unlink: New file.
76940         * lib/unlink.c: Likewise.
76941         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
76942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
76943         * modules/unistd (Makefile.am): Use them.
76944         * lib/unistd.in.h (stat): Declare replacement.
76945         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76946         * doc/posix-functions/unlink.texi (unlink): Likewise.
76947         * modules/unlink-tests: New test.
76948         * tests/test-unlink.c: Likewise.
76950         lstat: fix Solaris 9 bug
76951         * lib/lstat.c (lstat): Also check for trailing slash on
76952         non-symlink, non-directories.  Use stat module to simplify logic.
76953         * doc/posix-functions/lstat.texi (lstat): Document it.
76954         * modules/lstat-tests (Depends-on): Add errno, same-inode.
76955         (configure.ac): Check for symlink.
76956         * tests/test-lstat.c (main): Add more tests.
76958         stat: add as dependency to other modules
76959         * modules/chown (Depends-on): Add stat.
76960         * modules/euidaccess (Depends-on): Likewise.
76961         * modules/fchdir (Depends-on): Likewise.
76962         * modules/isdir (Depends-on): Likewise.
76963         * modules/link (Depends-on): Likewise.
76964         * modules/lstat (Depends-on): Likewise.
76965         * modules/mkdir-p (Depends-on): Likewise.
76966         * modules/modechange (Depends-on): Likewise.
76967         * modules/open (Depends-on): Likewise.
76968         * modules/readlink (Depends-on): Likewise.
76969         * modules/same (Depends-on): Likewise.
76971         stat: fix Solaris 9 bug
76972         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
76973         slash.
76974         * lib/stat.c (rpl_stat): Work around it.
76975         * doc/posix-functions/stat.texi (stat): Update documentation.
76977         stat: new module, for mingw bug
76978         * modules/stat: New file.
76979         * lib/stat.c: Likewise.
76980         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
76981         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
76982         * modules/sys_stat (Makefile.am): Use them.
76983         * lib/sys_stat.in.h (stat): Declare replacement.
76984         * lib/openat.c (fstatat): Deal with lstat and stat being function
76985         macros.
76986         * modules/openat (Depends-on): Add inline.
76987         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
76988         * doc/posix-functions/stat.texi (stat): Likewise.
76989         * modules/stat-tests: New test.
76990         * tests/test-stat.c: Likewise.
76992 2009-09-19  Jim Meyering  <meyering@redhat.com>
76994         syntax-check: detect unnecessary inclusion of canonicalize.h
76995         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
76997 2009-09-19  Eric Blake  <ebb9@byu.net>
76999         canonicalize-lgpl: adjust clients to use correct header
77000         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77001         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
77002         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
77003         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
77004         * lib/progreloc.c (includes): Likewise.
77006 2009-09-19  Jim Meyering  <meyering@redhat.com>
77008         test-posixtm.c: correct a comment
77009         * tests/test-posixtm.c: Correct first-line comment.
77010         Spotted by Eric Blake.
77012 2009-09-16  Jim Meyering  <meyering@redhat.com>
77014         posixtm-tests: make T const-correct; add a test case
77015         * tests/test-posixtm.c (T): Declare const.
77016         Add a test for -(2^31+1).
77017         Remove useless can-succeed-only-in-2002 test.
77019         posixtm-tests: adjust the sole failing test
77020         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
77021         expected output matches what mktime now produces.  Cross-checked via
77022         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
77024         posixtm: move #ifdef'd tests into a new module
77025         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
77026         * tests/test-posixtm.c: ... this new file.
77027         * modules/posixtm-tests: New module.
77029 2009-09-19  Eric Blake  <ebb9@byu.net>
77031         openat: simplify use of at-func.c
77032         * lib/at-func.c (includes): Include prerequisites here, to
77033         simplify requirements on client files.
77034         * lib/openat-priv.h: Add double-inclusion guard.
77035         * lib/faccessat.c (includes): Simplify.
77036         * lib/fchmodat.c (includes): Likewise.
77037         * lib/fchownat.c (includes): Likewise.
77038         * lib/mkdirat.c (includes): Likewise.
77039         * lib/mkfifoat.c (includes): Likewise.
77040         * lib/symlinkat.c (includes): Likewise.
77042         openat: allow return of fd 0
77043         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
77044         * modules/save-cwd (Depends-on): Replace fcntl-safer with
77045         unistd-safer.
77046         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
77047         <fcntl.h>; this module does not leak fds.
77048         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
77049         must be allowed to return 0, leaving openat_safer to add the
77050         safety.
77051         (openat_permissive): Avoid writing to just-opened fd 2 if
77052         restoring the current directory fails.
77053         * lib/openat-die.c (openat_restore_fail): Add comment.
77054         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
77055         (save_cwd): Guarantee safe fd, but without use of open_safer.
77056         * tests/test-openat.c: New test.
77057         * modules/openat-tests (Files, Makefile.am): Distribute and build
77058         new file.
77060         relocatable-prog-wrapper: fix build
77061         * modules/relocatable-prog-wrapper (Files): Update name of
77062         canonicalize m4 file, broken on 2009-09-17.
77063         Reported by emad hajjar <aleppos@hotmail.com>.
77065 2009-09-19  Bruno Haible  <bruno@clisp.org>
77067         * lib/safe-alloc.h: Use the standard header with GPL copyright.
77068         * lib/safe-alloc.c: Likewise.
77069         Reported by Ian Beckwith <ianb@erislabs.net>.
77071 2009-09-18  Bruno Haible  <bruno@clisp.org>
77073         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
77074         Reported by <erobles@sensacd.com.mx>.
77076 2009-09-17  Eric Blake  <ebb9@byu.net>
77078         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
77079         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
77080         slashes when checking if last component is missing.
77081         * tests/test-canonicalize.c (main): Test this.
77083         canonicalize, canonicalize-lgpl: honor // if distinct from /
77084         * modules/canonicalize (Files): Add double-slash-root.m4.
77085         * modules/canonicalize-lgpl (Files): Likewise.
77086         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
77087         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
77088         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
77089         fallback definition.
77090         (canonicalize_filename_mode): Use it to protect //.
77091         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
77092         (__realpath): Likewise.
77093         * tests/test-canonicalize.c (main): Test this.
77094         * tests/test-canonicalize-lgpl.c (main): Likewise.
77095         * modules/canonicalize-tests (Depends-on): Add same-inode.
77096         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
77098         canonicalize-lgpl: fix glibc bug with trailing slash
77099         * m4/canonicalize-lgpl.m4: Move contents...
77100         * m4/canonicalize.m4: ...here.
77101         (gl_CANONICALIZE_LGPL): Factor realpath check...
77102         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
77103         glibc 2.3.5 bug, fixed 2005-04-27.
77104         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
77105         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
77106         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
77107         * modules/canonicalize-lgpl (Files): Manage file rename.
77108         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77109         * modules/stdlib (Makefile.am): Substitute witness.
77110         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
77111         is needed.
77112         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
77113         replacement is required.
77114         * lib/canonicalize.c (canonicalize_file_name): Likewise.
77115         * doc/glibc-functions/canonicalize_file_name.texi
77116         (canonicalize_file_name): Document this.
77117         * doc/posix-functions/realpath.texi (realpath): Likewise.
77119         canonicalize-lgpl: reject non-directory with trailing slash
77120         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
77121         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
77122         catches failures in glibc 2.3.5.
77123         * tests/test-canonicalize.c (main): Likewise.
77125         canonicalize-lgpl: use native realpath if it works
77126         * lib/canonicalize-lgpl.c (realpath): Guard with
77127         FUNC_REALPATH_WORKS.
77128         * lib/stdlib.in.h (realpath): Make declaration optional based on
77129         HAVE_REALPATH.
77130         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
77131         native realpath works.
77132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
77133         * modules/stdlib (Makefile.am): Substitute witness.
77135         canonicalize, canonicalize-lgpl: use <stdlib.h>
77136         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
77137         (Include): Mention <stdlib.h>.
77138         (configure.ac): Mention functions we provide.
77139         * modules/canonicalize (configure.ac): Likewise.
77140         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
77141         realpath if canonicalize_file_name is missing.
77142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
77143         * modules/stdlib (Makefile.am): Substitute witnesses.
77144         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
77145         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
77146         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
77147         * NEWS: Document this.
77148         * doc/glibc-functions/canonicalize_file_name.texi
77149         (canonicalize_file_name): Likewise.
77150         * doc/posix-functions/realpath.texi (realpath): Likewise.
77151         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
77153         test-canonicalize: consolidate into single C program
77154         * tests/test-canonicalize.sh: Delete; move setup into...
77155         * tests/test-canonicalize.c (main): ...the program, making it
77156         easier to run in debugger.  Add some tests.
77157         * modules/canonicalize-tests (Files): Remove unused file.
77158         (Depends-on): Add progname.
77159         (configure.ac, Makefile.am): Simplify.
77161         test-canonicalize-lgpl: consolidate into single C program
77162         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
77163         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
77164         easier to run in debugger.  Add some tests.
77165         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
77166         (configure.ac, Makefile.am): Simplify.
77168         canonicalize: avoid resolvepath
77169         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
77170         unnecessary checks.
77171         * lib/canonicalize.c (includes): Simplify.
77172         (canonicalize_file_name): Drop resolvepath implementation.
77173         * modules/canonicalize (Depends-on): Drop filenamecat.
77175         canonicalize: don't lose errno
77176         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
77177         over calls to free.
77179         canonicalize: simplify errno handling
77180         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
77181         assignment.
77183         canonicalize, canonicalize-lgpl: update module dependencies
77184         * modules/canonicalize (Depends-on): Add extensions, lstat,
77185         pathmax, stdlib.
77186         (Files): Drop pathmax.h.
77187         (configure.ac): Adjust macro name.
77188         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
77189         lstat, stdlib, sys_stat.
77190         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
77191         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
77192         extensions.
77193         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
77194         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
77195         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
77196         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
77197         declaration, if available.
77198         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
77199         we can rely on the readlink module.
77200         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
77201         (includes): Use <unistd.h> unconditionally.
77203 2009-09-17  Eric Blake  <ebb9@byu.net>
77205         maint: make Include sections of modules consistent
77206         * modules/alloca: Use only header name; no need to list #include.
77207         * modules/alloca-opt: Likewise.
77208         * modules/arpa_inet: Likewise.
77209         * modules/canon-host: Likewise.
77210         * modules/configmake: Likewise.
77211         * modules/dirent: Likewise.
77212         * modules/eealloc: Likewise.
77213         * modules/environ: Likewise.
77214         * modules/fchdir: Likewise.
77215         * modules/fcntl: Likewise.
77216         * modules/fcntl-h: Likewise.
77217         * modules/gethrxtime: Likewise.
77218         * modules/gettime: Likewise.
77219         * modules/ignore-value: Likewise.
77220         * modules/inet_ntop: Likewise.
77221         * modules/inet_pton: Likewise.
77222         * modules/inttypes: Likewise.
77223         * modules/isnand-nolibm: Likewise.
77224         * modules/isnanf-nolibm: Likewise.
77225         * modules/mbchar: Likewise.
77226         * modules/mbfile: Likewise.
77227         * modules/mbiter: Likewise.
77228         * modules/mbuiter: Likewise.
77229         * modules/netdb: Likewise.
77230         * modules/netinet_in: Likewise.
77231         * modules/nproc: Likewise.
77232         * modules/pagealign_alloc: Likewise.
77233         * modules/poll: Likewise.
77234         * modules/printf-frexp: Likewise.
77235         * modules/pthread: Likewise.
77236         * modules/putenv: Likewise.
77237         * modules/random_r: Likewise.
77238         * modules/relocatable-prog: Likewise.
77239         * modules/search: Likewise.
77240         * modules/select: Likewise.
77241         * modules/selinux-h: Likewise.
77242         * modules/settime: Likewise.
77243         * modules/signal: Likewise.
77244         * modules/size_max: Likewise.
77245         * modules/socklen: Likewise.
77246         * modules/ssize_t: Likewise.
77247         * modules/stdarg: Likewise.
77248         * modules/stdbool: Likewise.
77249         * modules/stddef: Likewise.
77250         * modules/stdint: Likewise.
77251         * modules/stdio: Likewise.
77252         * modules/stdlib: Likewise.
77253         * modules/string: Likewise.
77254         * modules/strings: Likewise.
77255         * modules/sys_file: Likewise.
77256         * modules/sys_ioctl: Likewise.
77257         * modules/sys_select: Likewise.
77258         * modules/sys_socket: Likewise.
77259         * modules/sys_stat: Likewise.
77260         * modules/sys_time: Likewise.
77261         * modules/sys_times: Likewise.
77262         * modules/sys_utsname: Likewise.
77263         * modules/sys_wait: Likewise.
77264         * modules/sysexits: Likewise.
77265         * modules/time: Likewise.
77266         * modules/times: Likewise.
77267         * modules/tmpfile: Likewise.
77268         * modules/trim: Likewise.
77269         * modules/unistd: Likewise.
77270         * modules/wchar: Likewise.
77271         * modules/wctype: Likewise.
77273 2009-09-17  Bruno Haible  <bruno@clisp.org>
77275         Make getdate.y compile on QNX and NetBSD 5 / i386.
77276         * m4/getdate.m4 (gl_GETDATE): Conditionally define
77277         TIME_T_FITS_IN_LONG_INT.
77278         * lib/getdate.y (long_time_t): New type.
77279         (relative_time): Change type of 'seconds' field to long_time_t.
77280         (get_date): Update types of local variables. Check against overflow
77281         during conversion from long_time_t to time_t.
77282         Reported by Matt Kraai <kraai@ftbfs.org>
77283         and Hasso Tepper <hasso@netbsd.org>.
77285 2009-09-17  Bruno Haible  <bruno@clisp.org>
77287         * modules/COPYING: Update copyright years.
77288         * modules/README: Likeiwse.
77289         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
77290         Reported by Ian Beckwith <ianb@erislabs.net>.
77292 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77294         * users.txt: Update references for gnuit package.
77296 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
77298         * m4/getdelim.m4: Fix typo in copyright line.
77300 2009-09-17  Bruno Haible  <bruno@clisp.org>
77302         * lib/atoll.c: Use the standard header with GPL copyright.
77303         * lib/argz.in.h: Likewise.
77304         * lib/glob.c: Likewise.
77305         * lib/glob-libc.h: Likewise.
77306         * lib/random_r.c: Likewise.
77307         * lib/siglist.h: Likewise.
77308         * lib/strsignal.c: Likewise.
77309         Reported by Ian Beckwith <ianb@erislabs.net>.
77311 2009-09-17  Eric Blake  <ebb9@byu.net>
77313         rmdir: ensure correct dependency order
77314         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
77316 2009-09-17  Bruno Haible  <bruno@clisp.org>
77318         Disable assertion that fails on NetBSD 5 / i386.
77319         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
77320         Reported by Sam Steingold <sds@gnu.org>
77321         and Hasso Tepper <hasso@netbsd.org>.
77323 2009-09-16  Eric Blake  <ebb9@byu.net>
77325         unlinkdir: port to mingw
77326         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
77327         on which no one can unlink a directory.
77329         stdlib: sort witness names
77330         * modules/stdlib (Makefile.am): Sort replacements.
77331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
77332         * lib/stdlib.in.h: Likewise.
77334         parse-duration-tests: avoid link failure
77335         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
77336         LIBINTL.
77337         Reported by Tom G. Christensen.
77339         openat-tests: ensure unlinkat behaves like rmdir
77340         * tests/test-rmdir.c (main): Factor guts...
77341         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
77342         * modules/rmdir-tests (Files): Ship new file.
77343         * modules/openat-tests: New test.
77344         * tests/test-unlinkat.c: Likewise.
77346         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
77347         * modules/rmdir-errno (Status, Notice): Now obsolete.
77349         rmdir: work around cygwin 1.5.x and mingw bugs
77350         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
77351         * lib/rmdir.c (rmdir): Work around it.
77352         * modules/rmdir (Status, Notice): No longer obsolete.
77353         (Files): Add dos.m4.
77354         (Depends-on): Add unistd.
77355         (configure.ac): Set witnesses.
77356         (License): Relax to LGPLv2+.
77357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
77358         * modules/unistd (Makefile.am): Substitute witnesses.
77359         * lib/unistd.in.h (rmdir): Declare replacement.
77360         * doc/posix-functions/rmdir.texi (rmdir): Document this.
77361         * modules/rmdir-tests: New tests.
77362         * tests/test-rmdir.c: Likewise.
77364 2009-09-15  Eric Blake  <ebb9@byu.net>
77366         fchdir: improve use of replacement functions
77367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
77368         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
77369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
77370         REPLACE_CLOSEDIR.
77371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
77372         * modules/sys_stat (Makefile.am): Substitute correct witness.
77373         * modules/dirent (Makefile.am): Likewise.
77374         * modules/unistd (Makefile.am): Likewise.
77375         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
77376         * lib/unistd.in.h (dup): Likewise.
77377         * lib/sys_stat.in.h (fstat): Likewise.
77379         maint: ignore gnulib-tool temp files
77380         * .gitignore: Ignore files created during gnulib-tool --test.
77382 2009-09-13  Jim Meyering  <meyering@redhat.com>
77384         posixtm: don't reject a time that specify "60" as the number of seconds
77385         * lib/posixtm.c (posixtime): The code to reject invalid dates
77386         would also reject a time specified with the .60 suffix.
77387         But POSIX allows that, in order to accommodate leap seconds.
77388         So don't reject it.
77389         (main): Adjust tests accordingly.
77390         * modules/posixtm (Depends-on): Add stpcpy.
77392 2009-09-11  Jim Meyering  <meyering@redhat.com>
77394         announce-gen: include [$release_type] in emitted Subject:
77395         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
77396         e.g., [stable] in the emitted Subject: line.
77398 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77400         Remove obsolete macros from several modules.
77401         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
77402         obsolete Autoconf macros with their modern counterparts.
77403         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
77404         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
77405         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
77406         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77407         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
77408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
77409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77410         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
77411         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
77412         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
77413         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
77414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
77415         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
77416         * m4/sockets.m4 (gl_SOCKETS): Likewise.
77417         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
77418         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
77419         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
77420         * m4/time_r.m4 (gl_TIME_R): Likewise.
77421         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
77422         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
77423         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
77425         Fix copyright header in build-aux scripts.
77426         * build-aux/git-version-gen: Fix copyright header to match GPLv3
77427         recommendation.
77428         * build-aux/ncftpput-ftp: Likewise.
77429         * build-aux/update-copyright: Likewise.
77431 2009-09-09  Eric Blake  <ebb9@byu.net>
77433         test-link: allow Linux choice of errno
77434         * tests/test-link.c (main): Relax test for alternate error.
77436         strndup: fix improper m4 caching
77437         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
77438         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
77439         (gl_PREREQ_STRNDUP): Delete.
77440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
77441         * modules/string (Makefile.am): Substitute it.
77442         * lib/string.in.h (strndup): Modernize prototype.
77444         getcwd: port to mingw
77445         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
77446         different from the POSIX assumptions made throughout the getcwd
77447         module; fortunately, the mingw getcwd does not need replacement.
77448         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
77449         * modules/getcwd-tests: New test.
77450         * tests/test-getcwd.c: Likewise.
77452         link: fix platform bugs
77453         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
77454         * lib/link.c (link): Work around them.  Fix related mingw bug.
77455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
77456         * modules/unistd (Makefile.am): Substitute it.
77457         * lib/unistd.in.h (link): Declare replacement.
77458         * doc/posix-functions/link.texi (link): Document this.
77459         * modules/link (Depends-on): Add strdup-posix, sys_stat.
77461         test-link: consolidate into single C program, test more cases
77462         * tests/test-link.sh: Delete.
77463         * tests/test-link.c: Test more error conditions.  Exposes bugs on
77464         at least Cygwin and Solaris.
77465         * modules/link-tests (Files): Remove unused file.
77466         (Depends-on): Add errno, sys_stat.
77467         (Makefile.am): Simplify.
77469 2009-09-08  Bruno Haible  <bruno@clisp.org>
77471         Work around towlower, towupper bug on mingw.
77472         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
77473         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
77474         * doc/posix-functions/towlower.texi: Mention the mingw bug.
77475         * doc/posix-functions/towupper.texi: Likewise.
77476         Reported by Eric Blake.
77478 2009-09-08  Jim Meyering  <meyering@redhat.com>
77480         build: don't try to run autoheader if we don't use it
77481         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
77482         is not used in configure.ac.
77484 2009-09-08  Eric Blake  <ebb9@byu.net>
77486         euidaccess: fix compilation error
77487         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
77489         rawmemchr: relax license
77490         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
77491         okay.
77492         Reported by Jim Meyering.
77494         mkfifoat: new module
77495         * modules/mkfifoat: New file.
77496         * lib/mkfifoat.c: Likewise.
77497         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
77498         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77499         * modules/sys_stat (Makefile.am): Use them.
77500         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
77501         * MODULES.html.sh (File system functions): Mention module.
77502         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
77503         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
77504         * modules/mkfifoat-tests: New test.
77505         * tests/test-mkfifoat.c: Likewise.
77507         strchrnul: relax license
77508         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
77509         okay.
77510         Reported by Jim Meyering.
77512 2009-09-08  Eric Blake  <ebb9@byu.net>
77514         fstatat: fix compilation on Solaris
77515         * lib/fstatat.c (includes): Add fcntl.h.
77516         Reported by Pádraig Brady.
77518 2009-09-07  Eric Blake  <ebb9@byu.net>
77520         rename: modernize replacement
77521         * modules/rename (Depends-on): Add stdio.
77522         (configure.ac): Declare witness.
77523         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
77524         stdio take care of replacement.
77525         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
77526         * modules/stdio (Makefile.am): Substitute them.
77527         * lib/stdio.in.h (rename): Declare replacement.
77528         * lib/rename.c (includes): Allow cross-compilation to non-windows
77529         machines.
77530         * doc/posix-functions/rename.texi (rename): Improve
77531         documentation.
77533         stdio: sort witness names
77534         * modules/stdio (Makefile.am): Sort replacements.
77535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
77536         * lib/stdio.in.h: Likewise.
77538         getcwd: minor cleanups
77539         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
77540         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
77542         openat: provide more convenience names
77543         * modules/faccessat (configure.ac): Add C witness.
77544         * lib/unistd.in.h (readlinkat): Fix typo.
77545         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
77546         convenience wrappers.
77547         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
77548         wrappers in syntax checks.
77550 2009-09-06  Eric Blake  <ebb9@byu.net>
77552         doc: fix comments in recent patches
77553         * lib/faccessat.c: Mention correct function.
77554         * lib/fchmodat.c: Likewise.
77555         * lib/fchownat.c: Likewise.
77556         * lib/symlinkat.c: Likewise.
77557         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
77558         constants.
77560         faccessat, symlinkat: continue cleanup of previous patch
77561         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
77562         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77563         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
77564         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
77565         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
77566         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
77567         set.
77569 2009-09-06  Bruno Haible  <bruno@clisp.org>
77571         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
77572         (fstatat): Declare if GNULIB_FSTATAT is set.
77573         (mkdirat): Declare if GNULIB_MKDIRAT is set.
77574         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
77575         (unlinkat): Declare if GNULIB_UNLINKAT is set.
77576         * modules/fcntl-h (Files): Remove m4/openat.m4.
77577         * modules/sys_stat (Files): Remove m4/openat.m4.
77578         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
77579         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
77580         * modules/unistd (Files): Remove m4/openat.m4.
77581         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
77582         GNULIB_OPENAT.
77583         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
77584         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
77585         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
77586         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
77587         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
77588         gl_OPENAT_DEFAULTS.
77589         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
77590         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
77591         Don't require gl_OPENAT_DEFAULTS.
77592         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
77593         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
77594         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
77595         (gl_OPENAT_DEFAULTS): Remove macro.
77597 2009-09-06  Bruno Haible  <bruno@clisp.org>
77599         * modules/openat (configure.ac): Remove unneeded witness.
77601 2009-09-06  Bruno Haible  <bruno@clisp.org>
77603         Set errno to ENOSYS when a function is entirely unsupported.
77604         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
77605         EOPNOTSUPP.
77606         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
77607         * modules/chown (Depends-on): Remove errno.
77609 2009-09-06  Bruno Haible  <bruno@clisp.org>
77611         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
77613 2009-09-06  Bruno Haible  <bruno@clisp.org>
77615         * lib/sys_stat.in.h: Fix preprocessor command indentation.
77617 2009-09-06  Ben Pfaff  <blp@gnu.org>
77618             Bruno Haible  <bruno@clisp.org>
77620         Work around a glibc bug in strtok_r.
77621         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
77622         Undefine if UNDEFINE_STRTOK_R is set.
77623         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
77624         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
77625         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
77626         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
77627         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
77628         UNDEFINE_STRTOK_R.
77629         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
77631 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
77633         exclude: minor fix
77634         * lib/exclude.c: Include wctype.h
77636 2009-09-06  Akim Demaille  <demaille@gostai.com>
77638         bootstrap: improve error message
77639         * build-aux/bootstrap (find_tool): Upon failure, report the list
77640         of candidates.
77641         Honor the initial value of the envvar.
77643 2009-09-05  Eric Blake  <ebb9@byu.net>
77645         symlinkat: new module
77646         * modules/symlinkat: New file.
77647         * lib/symlinkat.c: Likewise.
77648         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
77649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
77650         * modules/unistd (Makefile.am): Use them.
77651         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
77652         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
77653         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
77654         * MODULES.html.sh (File system functions): Mention module.
77655         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
77656         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
77657         * modules/symlinkat-tests: New test.
77658         * tests/test-symlinkat.c: Likewise.
77660         test-openat-safer: add more checks
77661         * tests/test-openat-safer.c (main): Check more code paths.
77663 2009-09-05  Jim Meyering  <meyering@redhat.com>
77665         syntax-check: detect unnecessary inclusion of openat.h
77666         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
77668 2009-09-05  Bruno Haible  <bruno@clisp.org>
77670         Support towlower, towupper.
77671         * doc/posix-functions/towlower.texi: Mention module wctype.
77672         * doc/posix-functions/towupper.texi: Likewise.
77673         * lib/wctype.in.h (towlower, towupper): New functions.
77674         * tests/test-wctype.c: Include stdio.h, stdlib.h.
77675         (ASSERT): New macro.
77676         (e): New variable.
77677         (main): Test also towlower, towupper. Test WEOF argument.
77678         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
77680 2009-09-05  Bruno Haible  <bruno@clisp.org>
77682         Fix conversion behaviour when the input is invalid.
77683         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
77684         mark occurring in first pass of indirect conversion.
77685         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
77686         input.
77687         Found by clang's static analyzer.
77689 2009-09-05  Bruno Haible  <bruno@clisp.org>
77691         * tests/test-striconveh.c (main): Test indirect conversion on platforms
77692         where direct conversion is possible.
77694 2009-09-04  Eric Blake  <ebb9@byu.net>
77696         openat: fail with ENOENT on empty name
77697         * lib/openat-proc.c (openat_proc_name): Special-case the empty
77698         buffer.
77700         link-follow: fix logic bug in prior patch
77701         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
77702         reversed sense of yes and no in prior patch.  Avoid confusing
77703         compilation failure with desired semantics.
77705         link-follow: accommodate mingw and cross-compilation
77706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
77707         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
77708         cross-compilation results to -1, to make linkat easier to
77709         implement when cross-compiling.  Trivially support mingw.
77710         * modules/link-follow (configure.ac): Call new name.
77711         * NEWS: Mention this.
77713 2009-09-03  Eric Blake  <ebb9@byu.net>
77715         faccessat: compile replacement
77716         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
77717         needed.
77719         fts: fix compilation error
77720         * lib/fts.c (includes): Re-add "openat.h", for
77721         openat_needs_fchdir.
77723         faccessat: new module
77724         * modules/faccessat: New file.
77725         * lib/faccessat.c: Likewise.
77726         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
77727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
77728         * modules/unistd (Makefile.am): Use it.
77729         * lib/unistd.in.h (faccessat): Declare it.
77730         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
77731         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
77732         * MODULES.html.sh (File system functions): Mention it.
77733         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
77734         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
77736         euidaccess: prefer POSIX over non-standard implementation
77737         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
77738         * lib/euidaccess.c (euidaccess): Use it if available.
77740         openat: make template easier to use
77741         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
77742         AT_FUNC_F2 to be undefined.
77743         (VALIDATE_FLAG): New macro; use it to reject bad flags.
77744         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
77745         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
77746         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
77747         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
77748         Likewise.
77749         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
77750         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
77751         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
77752         Likewise.
77754         openat: declare in POSIX headers
77755         * NEWS: Mention this.
77756         * modules/openat (configure.ac): Declare witnesses.
77757         (Depends-on): Add fcntl-h, sys_stat, unistd.
77758         (Include): Mention correct headers.
77759         * modules/fcntl-h (Depends-on): Add link-warning.
77760         (Files): Add openat.m4.
77761         (Makefile.am): Substitute witnesses.
77762         * modules/sys_stat (Files, Makefile.am): Likewise.
77763         * modules/unistd (Files, Makefile.am): Likewise.
77764         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
77765         (gl_OPENAT_DEFAULTS): New macro.
77766         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
77767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
77768         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
77769         (SYS_STAT_H): Remove unused variable.
77770         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
77771         * lib/fcntl--.h (includes): Remove unneeded header.
77772         * lib/openat-safer.c (includes): Likewise.
77773         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
77774         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
77775         appropriate headers.
77776         (__OPENAT_PREFIX): Delete.
77777         * lib/fcntl.in.h (openat): Provide declaration.
77778         (AT_FDCWD): Fix Solaris bug.
77779         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
77780         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
77781         * lib/fchmodat.c (includes):  Adjust to find declaration.
77782         * lib/fchownat.c (includes): Likewise.
77783         * lib/mkdirat.c (includes): Likewise.
77784         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
77785         still visible.
77787 2009-09-02  Eric Blake  <ebb9@byu.net>
77789         errno: use consistently
77790         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
77791         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
77792         * lib/canonicalize.c (ELOOP): Likewise.
77793         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
77794         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
77795         * lib/lchown.c (EOPNOTSUPP): Likewise.
77796         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
77797         * lib/savewd.c (ESTALE): Likewise.
77798         * lib/settime.c (ENOSYS): Likewise.
77799         * lib/utimens.c (ENOSYS): Likewise.
77800         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
77801         * lib/chdir-safer.c (ELOOP): Likewise.
77802         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
77803         * modules/c-stack (Depends-on): Add errno.
77804         * modules/canonicalize (Depends-on): Likewise.
77805         * modules/chdir-safer (Depends-on): Likewise.
77806         * modules/fdopendir (Depends-on): Likewise.
77807         * modules/inet_ntop (Depends-on): Likewise.
77808         * modules/inet_pton (Depends-on): Likewise.
77809         * modules/lchown (Depends-on): Likewise.
77810         * modules/openat (Depends-on): Likewise.
77811         * modules/savewd (Depends-on): Likewise.
77812         * modules/settime (Depends-on): Likewise.
77813         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
77815         fts: avoid leaking fds
77816         * modules/fts (Depends-on): Add cloexec.
77817         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
77818         flag.
77820         fts: make directory fds more robust
77821         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
77822         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
77824         backupfile, chdir-long, fts, savedir: make safer
77825         * lib/backupfile.c (includes): Use "dirent--.h", since
77826         numbered_backup can write to stderr during readdir.
77827         * lib/savedir.c (includes): Likewise.
77828         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
77829         emulation can write to stderr on failure.
77830         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
77831         * lib/getcwd.c: Document why opendir_safer is unused.
77832         * lib/glob.c: Likewise.
77833         * lib/scandir.c: Likewise.
77834         * lib/openat-proc.c: Likewise, for open_safer.
77835         * modules/backupfile (Depends-on): Add dirent-safer.
77836         * modules/savedir (Depends-on): Likewise.
77837         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
77838         * modules/chdir-long (Depends-on): Add openat-safer.
77840         openat-safer: new module
77841         * modules/openat-safer: New file.
77842         * lib/openat-safer.c: Likewise.
77843         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
77844         * lib/fcntl-safer.h (openat_safer): Declare.
77845         * lib/fcntl--.h (openat): Override.
77846         * MODULES.html.sh (File descriptor based I/O): Mention it.
77847         * lib/openat.h: Add double-inclusion guards.
77848         * lib/openat.c (includes): Only include "fcntl-safer.h", not
77849         "fcntl--.h", so we can implement openat.
77850         * modules/openat-safer-tests: New test.
77851         * tests/test-openat-safer.c: New file.
77853         dirent-safer: new module
77854         * modules/dirent-safer: New file.
77855         * lib/dirent--.h: Likewise.
77856         * lib/dirent-safer.h: Likewise.
77857         * lib/opendir-safer.c: Likewise.
77858         * m4/dirent-safer.m4: Likewise.
77859         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
77860         * modules/dirent-safer-tests: New test.
77861         * tests/test-dirent-safer.c: New file.
77862         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
77864         fdopendir: optimize on mingw
77865         * lib/unistd.in.h (_gl_directory_name): New prototype.
77866         * lib/fchdir.c (_gl_directory_name): Implement it.
77867         (fchdir): Use it to simplify implementation.
77868         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
77869         fchdir, when available, to avoid calling [f]chdir().
77871         fdopendir: split into its own module
77872         * lib/openat.c (fdopendir): Move...
77873         * lib/fdopendir.c: ...into new file.
77874         * modules/fdopendir: New module.
77875         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
77876         * modules/openat (Depends-on): Add fdopendir.
77877         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
77878         fdopendir here.
77879         * modules/savedir (Depends-on): Only need fdopendir, not full
77880         openat.
77881         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
77882         * lib/openat.h (fdopendir): Drop prototype.
77883         * lib/dirent.in.h (fdopendir): Provide prototype.
77884         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
77885         * modules/dirent (Makefile.am): Substitute them.
77886         * MODULES.html.sh (File system functions): Mention it.
77887         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
77888         * modules/fdopendir-tests: New file.
77889         * tests/test-fdopendir.c: Likewise.
77891         fchdir: use more consistent macro convention
77892         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
77893         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
77894         REPLACE_FCHDIR, rather than relying on config.h macros.
77895         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
77896         inside a single make-time REPLACE_FCHDIR block, rather than using
77897         the config.h FCHDIR_REPLACEMENT.
77898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
77899         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
77900         Manage fstat replacement.
77901         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
77902         REPLACE_FCHDIR.
77903         * modules/sys_stat (Files): Add m4/unistd_h.m4.
77904         (Makefile.am): Substitute REPLACE_FCHDIR.
77905         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
77906         FCHDIR_REPLACEMENT.
77907         * lib/dup-safer.c (dup_safer): Likewise.
77908         * lib/dup2.c (rpl_dup2): Likewise.
77909         * lib/dup3.c (rpl_dup3): Likewise.
77910         * lib/open.c (rpl_open): Likewise.
77912         fchdir: simplify error handling, and support dup3
77913         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
77914         stdbool, malloc-posix, realloc-posix.
77915         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
77916         (ensure_dirs_slot): Return false on allocation failure.
77917         (rpl_dup2): Delete.
77918         (_gl_register_dup): New function.
77919         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
77920         (_gl_register_fd): Close fd on allocation failure.
77921         * lib/fcntl.in.h (_gl_register_fd): Update signature.
77922         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
77923         prototype.
77924         (rpl_dup2_fchdir): Delete prototype.
77925         * lib/open.c (open): Update caller.
77926         * lib/dup2.c (dup2): Track fchdir metadata.
77927         * lib/dup3.c (dup3): Likewise.
77928         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
77929         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
77931 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77933         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
77934         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
77935         don't pass arguments to AC_OUTPUT.
77937 2009-09-02  Bruno Haible  <bruno@clisp.org>
77939         * modules/mkdtemp (License): Relicense under LGPLv2+.
77940         Reported by Paolo Bonzini.
77942 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77944         Replace uses of obsolete autoconf macros in Jim's modules.
77945         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
77946         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
77947         can evoke a warning from autoconf when run with -Wobsolete
77948         enabled.  They were declared obsolete for good reasons (see
77949         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
77950         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
77951         should not continue using the deprecated macros.
77952         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
77953         obsolete Autoconf macros with modern counterparts.
77954         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77955         * m4/dos.m4 (gl_AC_DOS): Likewise.
77956         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
77957         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
77958         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
77959         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
77960         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
77961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
77962         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
77963         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
77964         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
77965         Likewise.
77966         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
77967         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77968         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
77969         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
77970         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
77971         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77973 2009-09-01  Eric Blake  <ebb9@byu.net>
77975         fchdir: fix off-by-one bug in previous patch
77976         * lib/fchdir.c (rpl_fstat): Use correct bounds.
77977         (_gl_unregister_fd): Delete useless if.
77979 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
77981         maint.mk: sort the list of syntax-check rules
77982         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
77983         easier to get a sense of progress when the rules are run sequentially
77984         and take a long time.
77986 2009-09-01  Simon Josefsson  <simon@josefsson.org>
77988         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
77989         * modules/netinet_in: Likewise.
77990         * modules/sys_file: Likewise.
77991         * modules/sys_ioctl: Likewise.
77992         * modules/sys_select: Likewise.
77993         * modules/sys_socket: Likewise.
77994         * modules/sys_stat: Likewise.
77995         * modules/sys_time: Likewise.
77996         * modules/sys_times: Likewise.
77997         * modules/sys_utsname: Likewise.
77998         * modules/sys_wait: Likewise.
78000 2009-09-01  Jim Meyering  <meyering@redhat.com>
78002         fts: help ensure that return values are not ignored
78003         * lib/fts_.h (__GNUC_PREREQ): Define.
78004         (__attribute_warn_unused_result__): Define.
78005         (fts_children, fts_close, fts_open, fts_read): Declare with
78006         __attribute_warn_unused_result__.
78008         fts: fts_close now fails also when closing a dir file descriptor fails
78009         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
78010         and propagate to caller, along with errno.
78012         announce-gen: correct formatting in --help output
78013         * build-aux/announce-gen (usage): Move the one-line description in
78014         --help output "up", to where it belongs, just after Usage:.
78016 2009-08-31  Eric Blake  <ebb9@byu.net>
78018         fchdir: port to mingw
78019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
78020         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
78021         opened, then use a substitute.
78022         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
78023         replacement.
78024         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
78025         (_gl_register_fd): No need to check stat if open already filters
78026         all directories.
78027         (fchdir): Fix error condition to match POSIX.
78028         * modules/fchdir (Depends-on): Add sys_stat.
78029         * doc/posix-functions/open.texi (open): Document the limitation.
78030         * modules/fchdir-tests: New file.
78031         * tests/test-fchdir.c: Likewise.
78033         canonicalize: allow cross-testing from cygwin to mingw
78034         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
78035         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
78036         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
78037         Likewise.
78038         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
78039         target does not support symlinks.
78040         * tests/test-canonicalize-lgpl.sh: Likewise.
78042         chown: avoid compilation warning on mingw
78043         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
78044         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
78045         mingw.
78046         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
78047         * modules/chown (Depends-on): Add errno.
78049 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
78051         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
78052         command.
78054 2009-08-31  Jim Meyering  <meyering@redhat.com>
78056         canonicalize: remove useless initialization
78057         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
78058         initialization of local, "end".
78060 2009-08-30  Bruno Haible  <bruno@clisp.org>
78062         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
78063         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
78064         ENOSYS.
78066 2009-08-30  Bruno Haible  <bruno@clisp.org>
78068         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
78069         /usr/xpg4/bin/tr when it exists.
78070         * tests/test-pipe-filter-gi1.sh: Likewise.
78072 2009-08-30  Bruno Haible  <bruno@clisp.org>
78074         Work around deficient /usr/bin/id program on Solaris.
78075         * tests/test-file-has-acl.sh (ID): New variable.
78076         * tests/test-set-mode-acl.sh (ID): Likewise.
78077         * tests/test-copy-acl.sh (ID): Likewise.
78078         * tests/test-copy-file.sh (ID): Likewise.
78080 2009-08-30  Bruno Haible  <bruno@clisp.org>
78082         New module 'xstriconveh'.
78083         * lib/xstriconveh.h: New file.
78084         * lib/xstriconveh.c: New file.
78085         * modules/xstriconveh: New file.
78087 2009-08-30  Bruno Haible  <bruno@clisp.org>
78089         Make it easier to use mem_cd_iconveh.
78090         * lib/striconveh.h (iconveh_t): New type.
78091         (iconveh_open, iconveh_close): New declarations.
78092         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78093         with a single 'const iconveh_t *' argument.
78094         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
78095         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
78096         with a single 'const iconveh_t *' argument.
78097         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
78098         * tests/test-striconveh.c (main): Update.
78099         * NEWS: Mention the change.
78101 2009-08-30  Bruno Haible  <bruno@clisp.org>
78103         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
78104         problem.
78106 2009-08-30  Bruno Haible  <bruno@clisp.org>
78108         Work around iconv_open problem on Solaris.
78109         * lib/iconv_open-solaris.gperf: New file.
78110         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
78111         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
78112         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
78113         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
78114         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
78115         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
78117 2009-08-29  Jim Meyering  <meyering@redhat.com>
78119         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
78120         * top/maint.mk (cvs-check): Remove target; it was just an alias
78121         to the better-named vc-diff-check.
78122         (maintainer-distcheck): Remove rule.  It was used only from
78123         the (alpha/beta/major) target, and all of its commands but one
78124         were coreutils-specific.
78125         (vc-dist): Remove rule.
78126         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
78127         Run vc-diff-check, not vc-dist.
78128         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
78130 2009-08-27  Bruno Haible  <bruno@clisp.org>
78132         * tests/test-bitrotate.c (main): Remove test that uses a shift count
78133         of 0.
78135 2009-08-27  Bruno Haible  <bruno@clisp.org>
78137         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
78138         compilers.
78139         * doc/func.texi: Document the SunPRO C bug.
78141 2009-08-27  Bruno Haible  <bruno@clisp.org>
78143         Fix link error on Solaris.
78144         * tests/test-parse-duration.c (xstrdup): Remove function.
78146 2009-08-26  Pádraig Brady  <P@draigbrady.com>
78148         ignore-value: handle pointer types, too
78149         * lib/ignore-value.h (__attribute__): Remove definition.
78150         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
78151         of a more concise and more-often effective "(void) i" statement.
78152         (ignore_ptr): New function to suppress warnings from functions that
78153         return pointers, and to make it explicit that one function doesn't
78154         handle all cases.
78156 2009-08-25  Bruno Haible  <bruno@clisp.org>
78158         dup2: work around a Linux bug.
78159         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
78160         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
78161         * doc/posix-functions/dup2.texi: Mention the Linux bug.
78162         Reported by Simon Josefsson.
78164 2009-08-25  Jim Meyering  <meyering@redhat.com>
78166         libguestfs uses gnulib
78167         * users.txt: Add libguestfs.
78169 2009-08-24  Eric Blake  <ebb9@byu.net>
78171         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
78172         * lib/pipe2.c (includes): Add binary-io.h.
78173         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
78175 2009-08-24  Bruno Haible  <bruno@clisp.org>
78177         Tolerate declared but missing accept4 syscall.
78178         * lib/accept4.c (accept4): Invoke original accept4 function first, if
78179         available.
78180         * lib/sys_socket.in.h (accept4): If the function is already present,
78181         override it.
78182         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
78183         * modules/accept4 (Makefile.am): Compile accept4.c always.
78184         Reported by Paolo Bonzini and Eric Blake.
78186 2009-08-23  Bruno Haible  <bruno@clisp.org>
78188         New module 'accept4'.
78189         * lib/sys_socket.in.h (accept4): New declaration.
78190         * lib/accept4.c: New file.
78191         * m4/accept4.m4: New file.
78192         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
78193         GNULIB_ACCEPT4, HAVE_ACCEPT4.
78194         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
78195         HAVE_ACCEPT4.
78196         * modules/accept4: New file.
78197         * doc/glibc-functions/accept4.texi: Mention the new module.
78199 2009-08-24  Jim Meyering  <meyering@redhat.com>
78201         progname: also set global program_invocation_name, when possible
78202         Before this change, a libtool-enabled program that calls glibc's
78203         error function would report the program name as
78204         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
78205         * modules/progname (configure.ac): Check for a declaration of
78206         program_invocation_name.
78207         * lib/progname.c:  Include <errno.h>.
78208         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
78209         Set program_invocation_name.
78211 2009-08-23  Bruno Haible  <bruno@clisp.org>
78213         * lib/dup3.c: Include <string.h>.
78215 2009-08-23  Bruno Haible  <bruno@clisp.org>
78217         * lib/dup3.c (dup3): Test only once whether the system actually exists.
78218         * lib/pipe2.c (pipe2): Likewise.
78219         Suggested by Eric Blake.
78221 2009-08-23  Bruno Haible  <bruno@clisp.org>
78223         Tolerate declared but missing dup3 syscall.
78224         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
78225         * lib/unistd.in.h (dup3): If the function is already present,
78226         override it.
78227         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
78228         * modules/dup3 (Makefile.am): Compile dup3.c always.
78229         Reported by Paolo Bonzini.
78231 2009-08-23  Bruno Haible  <bruno@clisp.org>
78233         Tolerate declared but missing pipe2 syscall.
78234         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
78235         available.
78236         * lib/unistd.in.h (pipe2): If the function is already present,
78237         override it.
78238         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
78239         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
78240         Reported by Paolo Bonzini.
78242 2009-08-23  Bruno Haible  <bruno@clisp.org>
78244         * lib/pipe2.c (pipe2): Move #ifs inside function.
78246 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78248         quotearg: document limitations of quote_these_too
78249         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
78250         those limitations are created.
78251         * lib/quotearg.h (set_char_quoting): Document that digits and
78252         letters that are special after backslash are not permitted.
78253         (quotearg_char): Cross-reference set_char_quoting documentation.
78255 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
78257         quotearg: implement custom_quoting_style
78258         * lib/quotearg.c: (struct quoting_options): Add left_quote and
78259         right_quote fields.
78260         (set_custom_quoting): New public function.
78261         (quotearg_buffer_restyled): Add left_quote and right_quote
78262         arguments, handle them very much like locale quoting, and update
78263         all uses.
78264         (quotearg_n_custom): New public function.
78265         (quotearg_n_custom_mem): New public function.
78266         (quotearg_custom): New public function.
78267         (quotearg_custom_mem): New public function.
78268         * lib/quotearg.h: Prototype and document new public functions.
78269         (enum quoting_style): For escape_quoting_style and
78270         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
78271         ignored even though they're otherwise like c_quoting_style.
78272         Add custom_quoting_style member and document with comparison to
78273         clocale_quoting_style.
78274         * tests/test-quotearg.c (custom_quotes): New array.
78275         (custom_results): New array.
78276         (main): Extend to test custom quoting.
78278 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78280         quotearg: fix right quote escaping when it's in quote_these_too
78281         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
78282         quote, be sure to prepend only one backslash.
78283         * tests/test-quotearg.c (use_quote_double_quotes): New function.
78284         (main): Test it.
78286 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
78288         quotearg-tests: test escaping of embedded locale quotes
78289         * tests/test-quotearg.c (struct result_strings): Add member for
78290         new input.
78291         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
78292         (inputs): Add new input.
78293         (results_g): Add expected results.
78294         (flag_results): Likewise.
78295         (locale_results): Likewise.
78296         (compare_strings): Check those.
78298 2009-08-23  Bruno Haible  <bruno@clisp.org>
78300         Tests for module 'dup3'.
78301         * modules/dup3-tests: New file.
78302         * tests/test-dup3.c: New file.
78304         New module 'dup3'.
78305         * lib/unistd.in.h (dup3): New declaration.
78306         * lib/dup3.c: New file.
78307         * m4/dup3.m4: New file.
78308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
78309         HAVE_DUP3.
78310         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
78311         * modules/dup3: New file.
78312         * doc/glibc-functions/dup3.texi: Mention the new module.
78314 2009-08-23  Bruno Haible  <bruno@clisp.org>
78316         Tweak the dup2 test.
78317         * tests/test-dup2.c (main): Create the test file empty. Verify that an
78318         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
78319         the test file is still empty. Fix argument order of lseek.
78321 2009-08-23  Bruno Haible  <bruno@clisp.org>
78323         Avoid test link errors when the modules getopt-gnu, gettext are used.
78324         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
78325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78327 2009-08-23  Bruno Haible  <bruno@clisp.org>
78329         Fix getdtablesize() on mingw.
78330         * lib/getdtablesize.c (getdtablesize): Implement differently.
78331         * lib/unistd.in.h (getdtablesize): Improve comment.
78333 2009-08-23  Bruno Haible  <bruno@clisp.org>
78335         New module 'mkostemp'.
78336         Based on Ulrich Drepper's 2007-08-10 change in glibc.
78337         * lib/stdlib.in.h (mksotemp): New declaration.
78338         * lib/mkostemp.c: New file, from glibc with modifications.
78339         * lib/tempname.h (GT_FILE): Remove outdated comment.
78340         (gen_tempname): Add flags argument.
78341         * lib/tempname.c (__GT_BIGFILE): Remove macro.
78342         (__GT_FILE): Map to 1.
78343         (small_open, large_open): Remove macros.
78344         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
78345         * lib/mkstemp.c (mkstemp): Update.
78346         * lib/mkdtemp.c (mkdtemp): Likewise.
78347         * m4/mkostemp.m4: New file.
78348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
78349         HAVE_MKOSTEMP.
78350         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
78351         HAVE_MKOSTEMP.
78352         * modules/mkostemp: New file, based on modules/mkstemp.
78353         * doc/glibc-functions/mkostemp.texi: Mention the new module.
78354         * NEWS: Mention the change.
78356 2009-08-23  Bruno Haible  <bruno@clisp.org>
78358         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
78359         Reported by Eric Blake.
78361 2009-08-23  Bruno Haible  <bruno@clisp.org>
78363         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
78364         Reported by Eric Blake.
78366 2009-08-23  Bruno Haible  <bruno@clisp.org>
78368         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
78369         * modules/pipe2 (Depends-on): Likewise.
78371 2009-08-23  Eric Blake  <ebb9@byu.net>
78373         fcntl-h: add O_TTY_INIT support
78374         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
78375         * tests/test-fcntl-h.c (o): Test it.
78376         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78378         fcntl-h: rename from fcntl, in preparation for fcntl(2)
78379         * modules/fcntl: Move <fcntl.h> header replacement...
78380         * modules/fcntl-h: ...to new name, so as not to collide with
78381         like-named function.
78382         * tests/test-fcntl.c: Rename...
78383         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
78384         * modules/fcntl-tests: Rename...
78385         * modules/fcntl-h-tests: ...to this.  Update test file name.
78386         * modules/chdir-long (Depends-on): Update clients.
78387         * modules/chdir-safer (Depends-on): Likewise.
78388         * modules/fcntl-safer (Depends-on): Likewise.
78389         * modules/fts (Depends-on): Likewise.
78390         * modules/mkancesdirs (Depends-on): Likewise.
78391         * modules/mkdir-p (Depends-on): Likewise.
78392         * modules/open (Depends-on): Likewise.
78393         * modules/savewd (Depends-on): Likewise.
78394         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
78395         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
78397 2009-08-22  Bruno Haible  <bruno@clisp.org>
78399         * modules/binary-io (License): Relicense under LGPL.
78400         * modules/pipe2 (License): Likewise.
78402 2009-08-22  Bruno Haible  <bruno@clisp.org>
78404         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
78405         return value.
78406         * lib/pipe-filter-gi.c (filter_init): Likewise.
78407         Reported by Eric Blake.
78409 2009-08-22  Bruno Haible  <bruno@clisp.org>
78411         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
78412         * modules/pipe (Depends-on): Add pipe2.
78414 2009-08-22  Bruno Haible  <bruno@clisp.org>
78416         Tests for module 'pipe2'.
78417         * modules/pipe2-tests: New file.
78418         * tests/test-pipe2.c: New file.
78420         New module 'pipe2'.
78421         * lib/unistd.in.h (pipe2): New declaration.
78422         * lib/pipe2.c: New file.
78423         * m4/pipe2.m4: New file.
78424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
78425         HAVE_PIPE2.
78426         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
78427         * modules/pipe2: New file.
78428         * doc/glibc-functions/pipe2.texi: Mention the new module.
78430 2009-08-22  Bruno Haible  <bruno@clisp.org>
78432         Reference some new glibc functions.
78433         * doc/glibc-functions/accept4.texi: New file.
78434         * doc/glibc-functions/dup3.texi: New file.
78435         * doc/glibc-functions/mkostemp.texi: New file.
78436         * doc/glibc-functions/pipe2.texi: New file.
78437         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
78438         (Glibc sys/socket.h): Refer to accept4.
78439         (Glibc unistd.h): Refer to dup3, pipe2.
78440         Reported by Eric Blake.
78442 2009-08-22  Jim Meyering  <meyering@redhat.com>
78443             Bruno Haible  <bruno@clisp.org>
78445         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
78446         This makes it so packages using automake-1.11's silent-rules option
78447         can print e.g., a single "GEN    configmake.h" line, rather than
78448         the 30+ statements that perform the job.  If you want to see the
78449         actual commands, you can still run "make V=1".
78450         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
78451         so that make output is abbreviated when those variables are defined
78452         appropriately.
78453         * modules/argz: Likewise.
78454         * modules/arpa_inet: Likewise.
78455         * modules/byteswap: Likewise.
78456         * modules/configmake: Likewise.
78457         * modules/dirent: Likewise.
78458         * modules/errno: Likewise.
78459         * modules/fcntl: Likewise.
78460         * modules/float: Likewise.
78461         * modules/fnmatch: Likewise.
78462         * modules/getopt-posix: Likewise.
78463         * modules/glob: Likewise.
78464         * modules/iconv_open: Likewise.
78465         * modules/inttypes: Likewise.
78466         * modules/localcharset: Likewise.
78467         * modules/locale: Likewise.
78468         * modules/math: Likewise.
78469         * modules/netdb: Likewise.
78470         * modules/netinet_in: Likewise.
78471         * modules/poll: Likewise.
78472         * modules/posix_spawnp-tests: Likewise.
78473         * modules/sched: Likewise.
78474         * modules/search: Likewise.
78475         * modules/selinux-h: Likewise.
78476         * modules/signal: Likewise.
78477         * modules/spawn: Likewise.
78478         * modules/stdarg: Likewise.
78479         * modules/stdbool: Likewise.
78480         * modules/stddef: Likewise.
78481         * modules/stdint: Likewise.
78482         * modules/stdio: Likewise.
78483         * modules/stdlib: Likewise.
78484         * modules/string: Likewise.
78485         * modules/strings: Likewise.
78486         * modules/sys_file: Likewise.
78487         * modules/sys_ioctl: Likewise.
78488         * modules/sys_select: Likewise.
78489         * modules/sys_socket: Likewise.
78490         * modules/sys_stat: Likewise.
78491         * modules/sys_time: Likewise.
78492         * modules/sys_times: Likewise.
78493         * modules/sys_utsname: Likewise.
78494         * modules/sys_wait: Likewise.
78495         * modules/sysexits: Likewise.
78496         * modules/time: Likewise.
78497         * modules/unistd: Likewise.
78498         * modules/wchar: Likewise.
78499         * modules/wctype: Likewise.
78501 2009-08-22  Jim Meyering  <meyering@redhat.com>
78503         announce-gen: detect write failure
78504         * build-aux/announce-gen: Add Coda at end.
78505         Remove equivalent-but-more-verbose block at top.
78507 2009-08-19  Akim Demaille  <demaille@gostai.com>
78509         bootstrap: --help to stdout.
78510         * bootstrap (usage): Don't send --help to stderr.
78511         Use a here doc instead of a long string.
78513 2009-08-21  Eric Blake  <ebb9@byu.net>
78515         test-popen-safer: split from test-popen
78516         * tests/test-popen.c (main): Move...
78517         * tests/test-popen.h: ...into new file.
78518         * tests/test-popen-safer2.c: New file.
78519         * modules/popen-tests (Files): Add test-popen.h.
78520         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
78521         Suggested by Bruno Haible.
78523         test-fcntl-safer: split from test-open
78524         * tests/test-open.c (main): Move...
78525         * tests/test-open.h: ...into new file.
78526         * tests/test-fcntl-safer.c: New file.
78527         * modules/open-tests (Files): Add test-open.h.
78528         * modules/fcntl-safer-tests: New file.
78529         Suggested by Bruno Haible.
78531         test-fopen-safer: split from test-fopen
78532         * tests/test-fopen.c (main): Move...
78533         * tests/test-fopen.h: ...into new file.
78534         * tests/test-fopen-safer.c: New file.
78535         * modules/fopen-tests (Files): Add test-fopen.h.
78536         * modules/fopen-safer-tests: New file.
78537         Suggested by Bruno Haible.
78539 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78541         popen-safer: test O_CLOEXEC at run-time.
78542         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
78544 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
78546         fcntl: move more flags to the header
78547         * lib/cloexec.c: Do not define FD_CLOEXEC here.
78548         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
78549         * lib/fcntl.in.h: Do both things here.
78551 2009-08-21  Jim Meyering  <meyering@redhat.com>
78553         consistently remove $@-t before redirecting to it
78554         * modules/argz: Remove $@-t and $@ before redirecting to the former.
78555         * modules/alloca-opt: Likewise.
78556         * modules/byteswap: Likewise.
78557         * modules/fnmatch: Likewise.
78558         * modules/getopt-posix: Likewise.
78559         * modules/glob: Likewise.
78560         * modules/poll: Likewise.
78561         * modules/posix_spawnp-tests: Likewise.
78562         * modules/sys_socket: Likewise.
78563         * modules/sysexits: Likewise.
78565 2009-08-21  Eric Blake  <ebb9@byu.net>
78567         popen: simplify access to original popen
78568         * lib/popen.c (rpl_popen): No need to worry about popen being a
78569         macro.
78570         Reported by Bruno Haible.
78572 2009-08-20  Eric Blake  <ebb9@byu.net>
78574         build: avoid some compiler warnings
78575         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
78576         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
78577         type.
78578         (new_exclude_segment, excluded_file_pattern_p)
78579         (excluded_file_name_p): Reduce scope.
78580         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
78581         old-style declaration.
78583 2009-08-20  Simon Josefsson  <simon@josefsson.org>
78585         * tests/test-exclude1.sh: Handle Windows EOL.
78586         * tests/test-exclude2.sh: Likewise.
78587         * tests/test-exclude3.sh: Likewise.
78588         * tests/test-exclude4.sh: Likewise.
78589         * tests/test-exclude5.sh: Likewise.
78590         * tests/test-exclude6.sh: Likewise.
78591         * tests/test-exclude7.sh: Likewise.
78593 2009-08-19  Akim Demaille  <demaille@gostai.com>
78595         bootstrap: find sha1sum when named gsha1sum.
78596         * bootstrap (find_tool): New.
78597         ($SHA1SUM): New.
78598         Use it.
78600 2009-08-20  Jim Meyering  <meyering@redhat.com>
78602         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
78603         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
78604         expression that converts "." in a file name to "\." in the resulting
78605         regexp.  Start with a dummy statement, so that prior shell variable
78606         definitions are expanded portably.  Reported by Simon Josefsson.
78608 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
78610         Fix polling for writeability of a screen buffer.
78611         * lib/poll.c: Distinguish input and screen buffers for the
78612         Win32 implementation.
78613         * lib/select.c: Likewise.
78615 2009-08-19  Eric Blake  <ebb9@byu.net>
78617         popen-safer: prevent popen from clobbering std descriptors
78618         * modules/popen-safer: New file.
78619         * lib/popen-safer.c: Likewise.
78620         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
78621         * lib/stdio--.h (popen): Provide override.
78622         * lib/stdio-safer.h (popen_safer): Provide declaration.
78623         * tests/test-popen.c (includes): Partially test this.
78624         * modules/popen-safer-tests: New file, for more tests.
78625         * tests/test-popen-safer.c: Likewise.
78626         * MODULES.html.sh (file stream based Input/Output): Mention it.
78628         tests: test some of the *-safer modules
78629         * modules/fopen-safer (Depends-on): Add fopen.
78630         * modules/fcntl-safer (Depends-on): Add fcntl.
78631         * modules/stdlib-safer (Depends-on): Add stdlib.
78632         (configure.ac): Set indicator.
78633         * modules/unistd-safer (configure.ac): Likewise.
78634         * modules/tmpfile-safer (configure.ac): Likewise.
78635         (Depends-on): Add tmpfile.
78636         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
78637         active.
78638         * tests/test-fopen.c (includes): Test safer versions when they are
78639         in use.
78640         * tests/test-open.c (includes): Likewise.
78642         popen: fix cygwin 1.5 bug when stdin closed
78643         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
78644         * modules/popen: New file.
78645         * modules/popen-tests: Likewise.
78646         * tests/test-popen.c: Likewise.
78647         * m4/popen.m4: Likewise.
78648         * lib/popen.c: Likewise.
78649         * lib/stdio.in.h (popen): New declaration.
78650         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
78651         * modules/stdio (Makefile.am): Likewise.
78652         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
78654 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
78656         maint.mk: give full control over update-copyright exclusions
78657         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
78658         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
78659         (update-copyright): Don't force inclusion of top-level
78660         ChangeLog.  Don't force exclusion of all COPYING files, but make
78661         them the default exclusion instead.
78663 2009-08-16  Bruno Haible  <bruno@clisp.org>
78665         Fix test failures on Solaris 10.
78666         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
78667         tests when Solaris iconv() is used.
78668         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
78669         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
78670         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
78671         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
78672         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78674 2009-08-16  Bruno Haible  <bruno@clisp.org>
78676         Fix test failures on Solaris 10.
78677         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
78678         'tr' program and pass it as first argument.
78679         * tests/test-pipe-filter-gi1.sh: Likewise.
78680         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
78681         program as first argument.
78682         * tests/test-pipe-filter-gi1.c (main): Likewise.
78684 2009-08-16  Eric Blake  <ebb9@byu.net>
78686         fpurge: fix previous commits
78687         * modules/fpurge (Makefile.am): Make replacement conditional,
78688         partially reverting 2007-04-29 change; missed in previous
78689         attempt.
78690         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
78691         is missing.
78693 2009-08-16  Bruno Haible  <bruno@clisp.org>
78695         Clarify fpurge's effect on the file position.
78696         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
78697         * tests/test-fpurge.c (main): Make a second pass for checking the file
78698         position.
78700 2009-08-16  Bruno Haible  <bruno@clisp.org>
78702         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
78703         declaration of fpurge is missing.
78704         * tests/test-fpurge.c (main): Check that the file has not more contents
78705         than expected. Close the file before removing it.
78707 2009-08-15  Eric Blake  <ebb9@byu.net>
78709         fpurge: don't wrap working cygwin implementation
78710         * lib/fpurge.c (fpurge): Fix comment typo.
78711         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
78712         1.7 to avoid replacement.
78713         * tests/test-fpurge.c (main): Enhance test.
78715 2009-08-15  Eric Blake  <ebb9@byu.net>
78716         and Jim Meyering  <meyering@redhat.com>
78718         test-update-copyright: skip if perl is insufficient
78719         * tests/test-update-copyright.sh: Failure to run maintainer tool
78720         should not cause testsuite failure on cygwin 1.5.
78722 2009-08-14  Eric Blake  <ebb9@byu.net>
78724         doc: mention more functions added in cygwin 1.7.0
78725         * doc/posix-headers/limits.texi (limits.h): Update for recent
78726         cygwin additions.
78727         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
78728         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
78729         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
78730         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
78731         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
78733 2009-08-14  Eric Blake  <ebb9@byu.net>
78735         maint.mk: simplify update-copyright rule
78736         * top/maint.mk (update-copyright-local): Delete, and document how
78737         to do it in cfg.mk instead.
78738         (update-copyright-exclude-regexp): Delete, and document how to do
78739         it in .x-update-copyright instead.
78740         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
78741         exclude ChangeLog.
78743 2009-08-14  Bruno Haible  <bruno@clisp.org>
78745         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
78747 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78749         maint.mk: support update-copyright-env
78750         * top/maint.mk (update-copyright-env): Define place-holder.
78751         (update-copyright): Expand $(update-copyright-env) before
78752         invoking update-copyright.
78754 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78756         update-copyright: implement forced reformatting
78757         * build-aux/update-copyright: Implement and document
78758         UPDATE_COPYRIGHT_FORCE.
78759         * tests/test-update-copyright.sh: Test it.
78761 2009-08-14  Eric Blake  <ebb9@byu.net>
78762         and Bruno Haible  <bruno@clisp.org>
78764         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
78765         * tests/test-locale.c: Revert previous patch related to NULL.
78766         * tests/test-stdio.c: Likewise.
78767         * tests/test-stdlib.c: Likewise.
78768         * tests/test-string.c: Likewise.
78769         * tests/test-unistd.c: Likewise.
78770         * modules/time-tests (Depends-on): Add verify.
78771         * modules/wchar-tests (Depends-on): Likewise.
78772         * tests/test-time.c: Test for NULL compliance.
78773         * tests/test-wchar.c: Likewise.
78774         * modules/locale (Depends-on): Add stddef.
78775         * modules/stdio (Depends-on): Likewise.
78776         * modules/stdlib (Depends-on): Likewise.
78777         * modules/string (Depends-on): Likewise.
78778         * modules/time (Depends-on): Likewise.
78779         * modules/unistd (Depends-on): Likewise.
78780         * modules/wchar (Depends-on): Likewise.
78781         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
78782         * lib/stdlib.in.h (includes): Likewise.
78783         * lib/string.in.h (includes): Likewise.
78784         * lib/time.in.h (includes): Likewise.
78785         * lib/unistd.in.h (includes): Likewise.
78786         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
78787         replaced.
78788         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
78789         * m4/stddef_h.m4: New file.
78790         * modules/stddef: Likewise.
78791         * lib/stddef.in.h: Likewise.
78792         * modules/stddef-tests: Likewise.
78793         * tests/test-stddef.c: Likewise.
78794         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
78795         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
78796         * doc/posix-headers/locale.texi (locale.h): Likewise.
78797         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
78798         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
78799         * doc/posix-headers/string.texi (string.h): Likewise.
78800         * doc/posix-headers/time.texi (time.h): Likewise.
78801         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
78802         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
78804 2009-08-14  Eric Blake  <ebb9@byu.net>
78806         doc: improve git diff of texinfo files
78807         * .gitattributes: Add rule for *.texi files, with hint on how to
78808         use it.
78809         Copied from m4, and based on a report by Bruno Haible.
78811 2009-08-14  Bruno Haible  <bruno@clisp.org>
78813         Disable multithread support by default on Cygwin 1.5.x for real.
78814         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
78816 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
78818         update-copyright: much ado about intervals
78819         * build-aux/update-copyright: Implement and document
78820         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
78821         of copyright year intervals.
78822         Also, document UPDATE_COPYRIGHT_YEAR.
78823         * tests/test-update-copyright.sh: Test it.
78825         update-copyright: convert 2-digit to 4-digit years
78826         * build-aux/update-copyright: Implement and document.
78827         * tests/test-update-copyright.sh: Update.
78829 2009-08-14  Jim Meyering  <meyering@redhat.com>
78831         test-exclude: avoid coreutils "make check" failure
78832         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
78833         just as in test-argmatch.c.
78835 2009-08-13  Eric Blake  <ebb9@byu.net>
78837         test-dup2: fix bad assumption
78838         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
78839         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
78841         test-version-etc: fix CRLF portability issue
78842         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
78843         recognize \r.
78844         * tests/test-argp-version-etc-1.sh: Likewise.
78846         getopt: update client modules
78847         * modules/argp (Depends-on): Use getopt-gnu.
78848         * modules/git-merge-changelog (Depends-on): Likewise.
78849         * modules/long-options (Depends-on): Likewise.
78850         * modules/xstrtol (Depends-on): Likewise.
78852 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78854         * tests/test-version-etc.sh: Don't fail on different
78855         project/version.  Don't fail on CRLF differences.  Rewrite to use
78856         multiple -e instead of multiple sed forks, suggested by Eric Blake
78857         <ebb9@byu.net>.
78858         * tests/test-argp-version-etc-1.sh: Likewise.
78860 2009-08-13  Simon Josefsson  <simon@josefsson.org>
78862         * tests/test-version-etc.sh: Don't fail on different
78863         project/version.
78865 2009-08-12  Bruno Haible  <bruno@clisp.org>
78867         Tests for modules 'getopt-posix', 'getopt-gnu'.
78868         * modules/getopt-posix-tests: New file.
78869         * tests/test-getopt.c: New file.
78870         * tests/test-getopt.h: New file.
78871         * tests/test-getopt_long.h: New file.
78873         New modules 'getopt-posix', 'getopt-gnu'.
78874         * modules/getopt-gnu: New file, renamed from modules/getopt.
78875         * modules/getopt-posix: New file.
78876         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
78877         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
78878         (gl_GETOPT): Remove macro.
78879         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
78880         Disable the test against BSD systems that declare optreset. Test
78881         against mingw bug. Test against lack of support of optional arguments
78882         on many platforms.
78883         * doc/glibc-headers/getopt.texi: Update module name and list of
78884         relevant platforms.
78885         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
78886         'getopt-gnu' and more portability problems.
78887         * NEWS: Mention the changes.
78889 2009-08-12  Bruno Haible  <bruno@clisp.org>
78891         Ensure that optarg etc. get declared by <unistd.h>.
78892         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
78893         AC_USE_SYSTEM_EXTENSIONS.
78894         * modules/getopt (Depends-on): Add 'extensions'.
78896 2009-08-12  Bruno Haible  <bruno@clisp.org>
78898         Avoid test link errors.
78899         * modules/pipe-filter-ii-tests (Makefile.am): Define
78900         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
78901         * modules/pipe-filter-gi-tests (Makefile.am): Define
78902         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
78903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78905 2009-08-12  Bruno Haible  <bruno@clisp.org>
78907         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
78908         gl_GETOPT_SUBSTITUTE before.
78909         (gl_GETOPT): Use it.
78910         * m4/argp.m4 (gl_ARGP): Update.
78911         Reported by Sergey Poznyakoff.
78913         * m4/getopt.m4: Reorder macros.
78914         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
78915         (gl_GETOPT_SUBSTITUTE): Remove macro.
78917 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78919         Minor improvement in gitlog-to-changelog
78921         * build-aux/gitlog-to-changelog: New option `--format' makes
78922         output format string configurable.
78924 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78926         Optimize exclude: use hash tables for non-wildcard patterns.
78928         * lib/exclude.c: Include hash.h and mbuiter.h
78929         (struct exclude_pattern, exclude_segment): New data types.
78930         (struct exclude): Rewrite.
78931         (fnmatch_pattern_has_wildcards): New function.
78932         (new_exclude_segment, free_exclude_segment): New functions.
78933         (excluded_file_pattern_p, excluded_file_name_p): New functions.
78934         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
78935         * lib/exclude.h (is_fnmatch_pattern): New prototype.
78936         * modules/exclude: Depend on hash and mbuiter.
78938         * modules/exclude-tests: New file.
78939         * tests/test-exclude.c: New file.
78940         * tests/test-exclude1.sh: New file.
78941         * tests/test-exclude2.sh: New file.
78942         * tests/test-exclude3.sh: New file.
78943         * tests/test-exclude4.sh: New file.
78944         * tests/test-exclude5.sh: New file.
78945         * tests/test-exclude6.sh: New file.
78946         * tests/test-exclude7.sh: New file.
78948 2009-08-12  Bruno Haible  <bruno@clisp.org>
78950         Ensure that getopt() gets declared by <unistd.h>.
78951         * lib/unistd.in.h: Conditionally include getopt.h.
78952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
78953         Set GNULIB_UNISTD_H_GETOPT.
78954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
78955         GNULIB_UNISTD_H_GETOPT.
78956         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
78958 2009-08-12  Bruno Haible  <bruno@clisp.org>
78960         Clarify logic.
78961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
78962         gl_replace_getopt instead of GETOPT_H.
78964 2009-08-12  Bruno Haible  <bruno@clisp.org>
78966         * m4/getopt.m4: Add comments.
78968 2009-08-12  Bruno Haible  <bruno@clisp.org>
78970         Disable multithread support by default on Cygwin 1.5.x.
78971         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
78972         set gl_use_threads=no if not specified otherwise.
78974 2009-08-11  Bruno Haible  <bruno@clisp.org>
78976         Avoid compilation error on NetBSD 5.0.
78977         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
78978         * tests/test-stdio.c: Likewise.
78979         * tests/test-stdlib.c: Likewise.
78980         * tests/test-string.c: Likewise.
78981         * tests/test-unistd.c: Likewise.
78982         Reported by Greg Troxel <gdt@ir.bbn.com>
78983         at <https://savannah.gnu.org/support/?106973>.
78985 2009-08-11  Bruno Haible  <bruno@clisp.org>
78987         * modules/dup2-tests (Depends-on): Remove close.
78989         Undo 2009-07-19 commit.
78990         * modules/acl-tests (Depends-on): Remove close.
78991         * modules/binary-io-tests (Depends-on): Likewise.
78992         * modules/closein-tests (Depends-on): Likewise.
78993         * modules/flock-tests (Depends-on): Likewise.
78994         * modules/fsync-tests (Depends-on): Likewise.
78995         * modules/lseek-tests (Depends-on): Likewise.
78996         * modules/pipe-tests (Depends-on): Likewise.
78997         * modules/posix_spawn-tests (Depends-on): Likewise.
78998         * modules/posix_spawnp-tests (Depends-on): Likewise.
78999         * modules/stat-time-tests (Depends-on): Likewise.
79000         * modules/yesno-tests (Depends-on): Likewise.
79002 2009-08-10  Bruno Haible  <bruno@clisp.org>
79004         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
79006 2009-08-10  Bruno Haible  <bruno@clisp.org>
79008         Fix a gcc warning.
79009         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
79011 2009-08-10  Bruno Haible  <bruno@clisp.org>
79013         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
79014         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
79015         not only the first time.
79016         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
79017         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
79018         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
79019         is 1, not only the first time.
79021 2009-08-10  Bruno Haible  <bruno@clisp.org>
79023         Make it possible to use module 'gethostname' without module 'close'.
79024         * lib/unistd.in.h (close): Evoke a link error only if
79025         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79027         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79028         * modules/unistd (Makefile.am): Substitute
79029         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79030         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
79031         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
79032         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
79033         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79034         * modules/sys_ioctl (Makefile.am): Substitute
79035         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79036         * modules/socket (configure.ac): On native Windows, set
79037         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
79038         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
79039         Reported by Sam Steingold <sds@gnu.org>.
79041 2009-08-10  Bruno Haible  <bruno@clisp.org>
79043         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
79044         * modules/ioctl (configure.ac): Likewise.
79046 2009-08-10  Bruno Haible  <bruno@clisp.org>
79048         Avoid collision between gnulib wrapper and libintl wrapper.
79049         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
79050         already defined in intl/printf.c.
79051         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
79052         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
79054 2009-08-09  Bruno Haible  <bruno@clisp.org>
79056         Make <sys/select.h> really self-contained, also on Solaris 10.
79057         * lib/sys_select.in.h: Include <string.h>.
79058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
79059         Solaris 10 problem.
79060         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
79061         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
79062         Reported by Jim Meyering.
79064 2009-08-09  Bruno Haible  <bruno@clisp.org>
79066         Avoid warnings from 'aclocal' that are due to a use of macro name
79067         AM_XGETTEXT_OPTION that is not defined in automake.
79068         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
79069         automake.
79070         * modules/error (configure.ac): Likewise.
79071         * modules/propername (configure.ac): Likewise.
79072         * modules/vasprintf (configure.ac): Likewise.
79073         * modules/verror (configure.ac): Likewise.
79074         * modules/xprintf (configure.ac): Likewise.
79075         * modules/xvasprintf (configure.ac): Likewise.
79077 2009-08-08  Bruno Haible  <bruno@clisp.org>
79079         Avoid compilation error in C++ mode.
79080         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
79081         Reported by Sam Steingold <sds@gnu.org>.
79083 2009-08-08  Bruno Haible  <bruno@clisp.org>
79085         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
79086         for the various Unix platforms.
79087         * doc/posix-headers/limits.texi: Update platforms list regarding
79088         HOST_NAME_MAX.
79089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
79091 2009-08-07  Jim Meyering  <meyering@redhat.com>
79093         selinux-at: fix typo in a comment
79094         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
79095         Spotted by Paolo Bonzini.
79097         selinux-at: remove redundant m4 code, add documentation
79098         * modules/selinux-at (configure.ac): Remove redundant code.
79099         LIB_SELINUX is already set via the dependent module, selinux-h.
79100         (Include): Add quotes around selinux-at.h.
79101         * lib/selinux-at.h: Add documentation.
79102         Reported by Bruno Haible in
79103         http://marc.info/?l=gnulib-bug&m=124958988300749
79105 2009-08-07  Bruno Haible  <bruno@clisp.org>
79107         Avoid link error on MacOS X 10.3 and 10.4.
79108         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
79109         on non-ELF systems.
79110         * lib/argp-pv.c (argp_program_version): Likewise.
79111         Reported by Simon Josefsson.
79113 2009-08-07  Simon Josefsson  <simon@josefsson.org>
79115         * tests/test-version-etc.sh: Use $EXEEXT.
79117 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
79119         update-copyright: update documentation to point to maint.mk
79120         * build-aux/update-copyright: Here.
79122 2009-08-06  Jim Meyering  <meyering@redhat.com>
79124         maint.mk: support update-copyright-local
79125         * top/maint.mk (update-copyright-local): Define place-holder.
79126         (update-copyright): Depend on $(update-copyright-local).
79128 2009-08-06  Jim Meyering  <meyering@redhat.com>
79130         selinux-at: new module
79131         Initially written for coreutils, this module will soon be
79132         used by findutils, too.
79133         * MODULES.html.sh [Misc]: Add selinux-at.
79134         * lib/selinux-at.h: New file, from coreutils.
79135         * lib/selinux-at.c: Likewise.
79136         * modules/selinux-at: Likewise.
79137         (License): Change from LGPL to GPL, since it depends
79138         on the GPL'd openat module.
79140         doc: update README
79141         * README: Remove references to cogito.
79142         Remove cvs-repo-updating instructions from 2007.
79143         Don't imply that CVS is better if you have limited disk space.
79145 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79147         update-copyright: support C-style comments
79148         * build-aux/update-copyright: Implement and document.
79149         * tests/test-update-copyright.sh: Test.
79151 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79153         update-copyright: support omitted "(C)"
79154         * build-aux/update-copyright: Implement and document.  Also,
79155         allow variable whitespace before "(C)".
79156         * tests/test-update-copyright.sh: Test.
79158 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79160         update-copyright: don't trip on non-FSF copyright statements
79161         * build-aux/update-copyright: Fix so that the first correctly
79162         formatted FSF copyright statement is recognized no matter what
79163         appears before it.  Update documentation.
79164         * tests/test-update-copyright.sh: Test that.
79166 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79168         update-copyright: clean up code a little
79169         * build-aux/update-copyright: Append "_re" to the name of any
79170         variable holding a regular expression.
79171         Replace "old" and "new" with "stmt" in variable names.
79172         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
79173         handled correctly.
79174         Format code more consistently.
79176 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
79178         update-copyright-tests: improve portability
79179         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
79180         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
79182 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79184         update-copyright: support @copyright{} and &copy;
79185         * build-aux/update-copyright: Implement and document.
79186         * tests/test-update-copyright.sh: Test.
79188 2009-08-04  Jim Meyering  <meyering@redhat.com>
79190         update-copyright-tests: correctly test EOL=\r\n handling
79191         * tests/test-update-copyright.sh: Put \r at the end of some lines
79192         for the dos-eol tests.  Based on a patch by Joel E. Denny.
79194         maint.mk: make update-copyright exclusion list more configurable
79195         * top/maint.mk (update-copyright): Default to excluding COPYING,
79196         but allow an override, in case someone does want to update that file.
79198         maint.mk: don't update copyright date in COPYING
79199         * top/maint.mk (update-copyright): Exclude COPYING.
79201         maint.mk: add a copyright-updating rule
79202         * top/maint.mk (update-copyright): New rule.
79203         Derived from coreutils/Makefile.am.
79205         update-copyright: rename some variables
79206         * build-aux/update-copyright: Rename a few variables for clarity.
79207         Tweak syntax.  List Joel E. Denny as coauthor.
79209 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
79211         update-copyright: fix bug for 2-digit last year and add tests
79212         * build-aux/update-copyright: Fix bug.
79213         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
79214         specified.
79215         * modules/update-copyright-tests: New
79216         * tests/test-update-copyright.sh: New.
79218 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79220         update-copyright: handle leading tabs in line prefix
79221         * build-aux/update-copyright: Count leading tabs as 8 spaces
79222         when computing margin.  This helps with the formatting of
79223         ChangeLogs, for example.
79224         Fix documentation a little.
79226 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79228         update-copyright: support EOL=\r\n
79229         * build-aux/update-copyright: Implement that.
79231 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
79233         update-copyright: automatically format copyright statements
79234         * build-aux/update-copyright: Implement that.
79235         Also, be a little more predictable and safer by always failing
79236         when the full copyright format is not perfectly recognized as an
79237         unbroken whole.  Discussed at
79238         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
79239         Rewrite documentation.
79241 2009-08-03  Bruno Haible  <bruno@clisp.org>
79243         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
79245 2009-08-02  Bruno Haible  <bruno@clisp.org>
79247         Tests for module 'uname'.
79248         * modules/uname-tests: New file.
79249         * tests/test-uname.c: New file.
79251         New module 'uname'.
79252         * lib/uname.c: New file.
79253         * m4/uname.m4: New file.
79254         * modules/uname: New file.
79255         * doc/posix-functions/uname.texi: Mention the new module.
79257 2009-08-02  Bruno Haible  <bruno@clisp.org>
79259         Tests for module 'sys_utsname'.
79260         * modules/sys_utsname-tests: New file.
79261         * tests/test-sys_utsname.c: New file.
79263         New module 'sys_utsname'.
79264         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
79265         * m4/sys_utsname_h.m4: New file.
79266         * modules/sys_utsname: New file.
79267         * doc/posix-headers/sys_utsname.texi: Mention the new module.
79269 2009-08-02  Bruno Haible  <bruno@clisp.org>
79271         Implicitly initialize the sockets library.
79272         * lib/gethostname.c: Include sockets.h.
79273         (rpl_gethostname): Invoke gl_sockets_startup.
79274         * lib/socket.c: Include sockets.h.
79275         (rpl_socket): Invoke gl_sockets_startup.
79276         * modules/gethostname (Depends-on): Add sockets.
79277         * modules/socket (Depends-on): Likewise.
79278         * tests/test-poll.c: Don't include sockets.h.
79279         (main): Don't invoke gl_sockets_startup.
79280         * tests/test-select.c: Don't include sockets.h.
79281         (main): Don't invoke gl_sockets_startup.
79283 2009-08-02  Bruno Haible  <bruno@clisp.org>
79285         Allow multiple calls to gl_sockets_startup.
79286         * lib/sockets.c (initialized_sockets_version): New variable.
79287         (gl_sockets_startup): Do nothing if already called for this or a higher
79288         version.
79289         (gl_sockets_cleanup): Reset initialized_sockets_version.
79291 2009-08-03  Simon Josefsson  <simon@josefsson.org>
79293         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
79294         different project/version.
79296 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
79297             Bruno Haible  <bruno@clisp.org>
79299         Tests for module 'pipe-filter-gi'.
79300         * modules/pipe-filter-gi-tests: New file.
79301         * tests/test-pipe-filter-gi1.sh: New file.
79302         * tests/test-pipe-filter-gi1.c: New file.
79303         * tests/test-pipe-filter-gi2.sh: New file.
79304         * tests/test-pipe-filter-gi2-main.c: New file.
79305         * tests/test-pipe-filter-gi2-child.c: New file.
79307         New module 'pipe-filter-gi'.
79308         * lib/pipe-filter-gi.c: New file.
79309         * modules/pipe-filter-gi: New file.
79311 2009-08-02  Bruno Haible  <bruno@clisp.org>
79312             Paolo Bonzini  <bonzini@gnu.org>
79314         Tests for module 'pipe-filter-ii'.
79315         * modules/pipe-filter-ii-tests: New file.
79316         * tests/test-pipe-filter-ii1.sh: New file.
79317         * tests/test-pipe-filter-ii1.c: New file.
79318         * tests/test-pipe-filter-ii2.sh: New file.
79319         * tests/test-pipe-filter-ii2-main.c: New file.
79320         * tests/test-pipe-filter-ii2-child.c: New file.
79322         New module 'pipe-filter-ii'.
79323         * lib/pipe-filter.h: New file.
79324         * lib/pipe-filter-ii.c: New file.
79325         * lib/pipe-filter-aux.h: New file.
79326         * modules/pipe-filter-ii: New file.
79328 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79330         * lib/gc-libgcrypt.c: Change copyright to FSF.
79331         * lib/gc-gnulib.c: Likewise.
79333 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
79335         * lib/gethostname.c: Include limits.h.
79337 2009-08-02  Simon Josefsson  <simon@josefsson.org>
79338             Bruno Haible  <bruno@clisp.org>
79340         Ensure HOST_NAME_MAX as part of the gethostname module.
79341         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
79342         define also HOST_NAME_MAX.
79343         * tests/test-gethostname.c: Include <limits.h>.
79344         (main): Check also HOST_NAME_MAX.
79345         * doc/posix-headers/limits.texi: Document the mingw problem.
79347 2009-08-02  Bruno Haible  <bruno@clisp.org>
79349         * lib/gethostname.c (gethostname): Fix handling of large len argument.
79350         Add comments.
79352 2009-03-31  Simon Josefsson  <simon@josefsson.org>
79354         * lib/gethostname.c: Add Windows wrapper.
79355         * m4/gethostname.m4: Look for gethostname in -lws2_32.
79356         * modules/gethostname: Depend on sys_socket & errno, for also
79357         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
79358         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
79360 2009-07-31  Jim Meyering  <meyering@redhat.com>
79362         getloadavg: fix symbol name in comment
79363         * lib/getloadavg.c: Correct a typo I introduced when adding
79364         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
79365         Matt Kraai spotted the problem.
79367 2009-07-29  Matt Kraai  <mkraai@beckman.com>
79369         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
79370         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
79371         code also if ! defined N_NAME_POINTER.
79372         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
79373         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
79374         but the n_name member is a 12-byte array.
79376 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
79378         update-copyright: generalize comment handling
79379         * build-aux/update-copyright: Handle copyright statements
79380         within more comment styles.
79381         Document usage.
79382         Report any file with an external copyright holder or parse failure.
79384 2009-07-29  Jim Meyering  <meyering@redhat.com>
79386         mktime: correct setting of REPLACE_MKTIME
79387         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
79389         update-copyright: new module
79390         * modules/update-copyright: New file.
79391         * build-aux/update-copyright: New file.
79392         * MODULES.html.sh (maint+release support): Add update-copyright.
79394 2009-07-27  Bruno Haible  <bruno@clisp.org>
79396         Fix compilation error when <ctime> is used and mktime is replaced.
79397         * lib/time.in.h (mktime): New declaration.
79398         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
79399         REPLACE_MKTIME instead of defining mktime in config.h.
79400         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
79401         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
79402         Reported by Ross McFarland <rwmcfa1@neces.com>.
79404 2009-07-27  Bruno Haible  <bruno@clisp.org>
79406         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
79407         Reported by Matt Kraai <mkraai@beckman.com>.
79409 2009-07-25  Jim Meyering  <meyering@redhat.com>
79411         maint.mk: avoid warnings about missing files
79412         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
79413         diagnostic when .prev-version does not exist.
79414         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
79415         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
79416         nonexistent cfg.mk.
79417         Suggestions from Simon Josefsson.
79419 2009-07-25  Bruno Haible  <bruno@clisp.org>
79421         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
79422         defined as macros. Needed on QNX 6.4.1.
79423         Reported by Matt Kraai <mkraai@beckman.com>.
79425 2009-07-23  Jim Meyering  <meyering@redhat.com>
79427         maint.mk: invoke "make dist" with a working value of XZ_OPT
79428         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
79430 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
79432         Make fseeko.c compile on QNX.
79433         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
79435 2009-07-22  Peter Simons  <simons@cryp.to>
79437         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
79438         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
79439         * lib/md4.h: Likewise.
79440         * lib/md5.h: Likewise.
79441         * lib/sha1.h: Likewise.
79442         * lib/sha256.h: Likewise.
79443         * lib/sha512.h: Likewise.
79445         tests-sha1: don't assign literal string to 'char *' variable
79446         * tests/test-sha1.c (main): Declare locals with "const" to match
79447         attributes of the right hand side.
79449 2009-07-21  Eric Blake  <ebb9@byu.net>
79451         dup2: fix more mingw problems
79452         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
79453         fd to itself.
79454         * doc/posix-functions/dup2.texi (dup2): Document the bug.
79455         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
79456         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
79457         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
79458         care of mingw bugs.
79460 2009-07-21  Jim Meyering  <meyering@redhat.com>
79462         vc-list-files: avoid failure when /bin/sh is dash
79463         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
79464         On some Debian based systems, /bin/sh is a symlink to dash, and running
79465         this command would omit the "/" following each 'tests' prefix:
79466           dash -x build-aux/vc-list-files -C . tests
79467         That is because bash and dash work differently:
79468           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
79469           bash ok
79470           dash odd
79472 2009-07-21  Eric Blake  <ebb9@byu.net>
79474         dup2-tests: test previous patch
79475         * modules/dup2-tests: New file.
79476         * tests/test-dup2.c: Likewise.
79477         * tests/test-open.c (main): Avoid unspecified behavior.
79478         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
79479         test.
79481         dup2: work around mingw and cygwin 1.5 bug
79482         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
79483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79484         * modules/unistd (Makefile.am): Substitute it.
79485         * lib/unistd.in.h (dup2): Declare the replacement.
79486         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
79487         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
79488         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
79489         * modules/execute (Depends-on): Add dup2.
79490         * modules/fseterr (Depends-on): Likewise.
79491         * modules/pipe (Depends-on): Likewise.
79492         * modules/posix_spawn-internal (Depends-on): Likewise.
79494 2009-07-21  Bruno Haible  <bruno@clisp.org>
79496         * modules/.gitattributes: New file.
79498 2009-07-20  Bruno Haible  <bruno@clisp.org>
79500         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
79501         (main): Use it.
79503 2009-07-20  Eric Blake  <ebb9@byu.net>
79505         test-pipe: make a bit more robust.
79506         * tests/test-pipe.c (myerr): Allow error messages regardless of
79507         what we do to stderr.
79508         (test_pipe): Rearrange to avoid deadlock.
79509         (child_main): Try a larger read, to ensure we avoided deadlock.
79510         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
79511         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
79512         if misused.
79514 2009-07-19  Jim Meyering  <meyering@redhat.com>
79516         fts: avoid false-positive cycle-detection
79517         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
79518         for each new command line argument.
79520 2009-07-19  Bruno Haible  <bruno@clisp.org>
79522         Fix build error on mingw with the modules sys_select and unistd.
79523         * modules/acl-tests (Depends-on): Add close.
79524         * modules/binary-io-tests (Depends-on): Likewise.
79525         * modules/closein-tests (Depends-on): Likewise.
79526         * modules/flock-tests (Depends-on): Likewise.
79527         * modules/fsync-tests (Depends-on): Likewise.
79528         * modules/lseek-tests (Depends-on): Likewise.
79529         * modules/pipe-tests (Depends-on): Likewise.
79530         * modules/posix_spawn-tests (Depends-on): Likewise.
79531         * modules/posix_spawnp-tests (Depends-on): Likewise.
79532         * modules/stat-time-tests (Depends-on): Likewise.
79533         * modules/yesno-tests (Depends-on): Likewise.
79535 2009-07-19  Bruno Haible  <bruno@clisp.org>
79537         Unify conditionals.
79538         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
79539         macros, not at the compiler macros.
79540         * lib/pipe.c: Likewise.
79541         * lib/execute.c: Likewise.
79542         * lib/spawni.c: Likewise.
79544 2009-07-19  Bruno Haible  <bruno@clisp.org>
79546         Fix handling of closed stdin/stdout/stderr on mingw.
79547         * lib/w32spawn.h: Include unistd.h.
79548         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
79549         file descriptor with O_NOINHERIT flag.
79550         (fd_safer_noinherit): New function, based on fd-safer.c.
79551         (dup_safer_noinherit): New function, based on dup-safer.c.
79552         (undup_safer_noinherit): New function.
79553         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
79554         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
79555         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
79556         instead of fd_safer.
79557         * tests/test-pipe.c: Include <windows.h>.
79558         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
79559         result.
79561         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
79562         from main.
79563         (test_pipe): Pass an extra argument for disambiguation.
79564         (main): Invoke parent_main or child_main.
79566         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
79567         consistently.
79569 2009-07-18  Eric Blake  <ebb9@byu.net>
79571         test-pipe: fix mingw build
79572         * tests/test-pipe.c (main): Avoid fcntl on mingw.
79574 2009-07-18  Bruno Haible  <bruno@clisp.org>
79576         * modules/pipe-tests (Makefile.am): Fix typo.
79578 2009-07-18  Eric Blake  <ebb9@byu.net>
79580         error: fix mingw build
79581         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
79582         Reported by Bruno Haible.
79584         error: avoid undefined use of stdout
79585         * lib/error.c (error, error_at_line): Check that fd 1 is open
79586         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
79587         is handling faults and the close_stdout module wants to report the
79588         detection of closed stdout as an error.
79590 2009-07-17  Eric Blake  <ebb9@byu.net>
79592         pipe: be robust in face of closed fds
79593         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
79594         should cause child to misbehave.
79595         * modules/pipe-tests: New module.
79596         * tests/test-pipe.c: New file.
79597         * tests/test-pipe.sh: New file.
79598         Reported by Akim Demaille.
79600 2009-07-14  Bruno Haible  <bruno@clisp.org>
79602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
79603         Reported by anonymous kc.
79605 2009-07-07  Jim Meyering  <meyering@redhat.com>
79607         maint.mk: don't look for translatable strings in *.m4 or *.mk
79608         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
79609         when searching for translatable strings.
79611 2009-07-05  Jim Meyering  <meyering@redhat.com>
79613         remove superfluous parentheses in STREQ definition
79614         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
79615         * lib/getugroups.c (STREQ): Likewise.
79616         * lib/fnmatch.c (STREQ): Likewise.
79617         Spotted by Bruno Haible.
79619 2009-07-04  Jim Meyering  <meyering@redhat.com>
79621         argv-iter: new module
79622         * MODULES.html.sh: Add argv-iter.
79623         * lib/argv-iter.c, lib/argv-iter.h: New files.
79624         * modules/argv-iter: New file.
79625         * modules/argv-iter-tests: New file.
79626         * tests/test-argv-iter.c: Test it.
79628 2009-07-04  Bruno Haible  <bruno@clisp.org>
79630         Fix assertion.
79631         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
79632         contains more exact copies of a given entry than file2, leave the extra
79633         copies unpaired rather than aborting.
79634         Reported by Eric Blake.
79636 2009-07-02  Bruno Haible  <bruno@clisp.org>
79638         Speedup git-merge-changelog for git cherry-pick.
79639         * lib/git-merge-changelog.c (struct entries_mapping): New type.
79640         (entries_mapping_get): New function, extracted from compute_mapping.
79641         (entries_mapping_reverse_get): New function.
79642         (compute_mapping): Add a 'full' argument. Return the result in a
79643         'struct entries_mapping'.
79644         (main): Update. Access the mappings through entries_mapping_get.
79645         Reported by Eric Blake.
79647 2009-07-02  Bruno Haible  <bruno@clisp.org>
79649         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
79650         best_i.
79652 2009-07-02  Bruno Haible  <bruno@clisp.org>
79654         Speed up approximate search for matching ChangeLog entries.
79655         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
79656         argument. Call fstrcmp_bounded instead of fstrcmp.
79657         (compute_mapping, try_split_merged_entry, main): Update callers.
79659 2009-07-02  Bruno Haible  <bruno@clisp.org>
79661         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
79663 2009-06-30  Bruno Haible  <bruno@clisp.org>
79665         Reduce the number of uc_is_cased calls.
79666         * lib/unicase.h (casing_suffix_context_t): Add
79667         'first_char_except_ignorable' field.
79668         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
79669         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
79670         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
79671         Update initializer.
79672         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
79673         case-ignorable characters.
79674         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
79675         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
79676         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
79677         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
79678         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
79680 2009-06-30  Bruno Haible  <bruno@clisp.org>
79682         Tests for module 'unicase/ignorable'.
79683         * modules/unicase/ignorable-tests: New file.
79684         * tests/unicase/test-ignorable.c: New file, generated by
79685         gen-uni-tables.
79687         Tests for module 'unicase/cased'.
79688         * modules/unicase/cased-tests: New file.
79689         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
79690         * tests/unicase/test-predicate-part1.h: New file, derived from
79691         tests/unictype/test-predicate-part1.h.
79692         * tests/unicase/test-predicate-part2.h: New file, same as
79693         tests/unictype/test-predicate-part2.h.
79695         Fix evaluation of "Before C" condition of FINAL_SIGMA.
79696         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
79697         (output_casing_properties): New function.
79698         (main): Call it.
79699         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
79700         * lib/unicase/cased.c: Include unictype/bitmap.h.
79701         (uc_is_cased): Define through a bitmap lookup.
79702         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
79703         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
79704         (uc_is_case_ignorable): Define through a bitmap lookup.
79705         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
79706         lib/unictype/bitmap.h.
79707         (Depends-on): Add inline. Clean up.
79708         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
79709         lib/unictype/bitmap.h.
79710         (Depends-on): Add inline. Clean up.
79711         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
79712         recognition.
79713         * tests/unicase/test-u16-tolower.c (main): Likewise.
79714         * tests/unicase/test-u32-tolower.c (main): Likewise.
79716 2009-06-30  Bruno Haible  <bruno@clisp.org>
79718         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
79719         * lib/unicase/u16-casemap.c: Likewise.
79720         * lib/unicase/u32-casemap.c: Likewise.
79722 2009-06-29  Bruno Haible  <bruno@clisp.org>
79724         Define u32_casefold as a wrapper around u32_ct_casefold.
79725         * lib/unicase/u32-casefold.c: Update.
79726         * modules/unicase/u32-casefold (Depends-on): Add
79727         unicase/u32-ct-casefold, unicase/empty-prefix-context,
79728         unicase/empty-suffix-context. Clean up.
79730         Define u16_casefold as a wrapper around u16_ct_casefold.
79731         * lib/unicase/u16-casefold.c: Update.
79732         * modules/unicase/u16-casefold (Depends-on): Add
79733         unicase/u16-ct-casefold, unicase/empty-prefix-context,
79734         unicase/empty-suffix-context. Clean up.
79736         Define u8_casefold as a wrapper around u8_ct_casefold.
79737         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
79738         * lib/unicase/u8-casefold.c: Update.
79739         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
79740         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79742         Define u32_totitle as a wrapper around u32_ct_totitle.
79743         * lib/unicase/u32-totitle.c: Update.
79744         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
79745         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79747         Define u16_totitle as a wrapper around u16_ct_totitle.
79748         * lib/unicase/u16-totitle.c: Update.
79749         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
79750         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79752         Define u8_totitle as a wrapper around u8_ct_totitle.
79753         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
79754         functions.
79755         (FUNC): Delegate to U_CT_TOTITLE.
79756         * lib/unicase/u8-totitle.c: Update.
79757         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
79758         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
79760         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
79761         invocation.
79762         * modules/unicase/u32-tolower (Depends-on): Add
79763         unicase/empty-prefix-context, unicase/empty-suffix-context.
79765         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
79766         invocation.
79767         * modules/unicase/u16-tolower (Depends-on): Add
79768         unicase/empty-prefix-context, unicase/empty-suffix-context.
79770         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
79771         * modules/unicase/u8-tolower (Depends-on): Add
79772         unicase/empty-prefix-context, unicase/empty-suffix-context.
79774         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
79775         invocation.
79776         * modules/unicase/u32-toupper (Depends-on): Add
79777         unicase/empty-prefix-context, unicase/empty-suffix-context.
79779         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
79780         invocation.
79781         * modules/unicase/u16-toupper (Depends-on): Add
79782         unicase/empty-prefix-context, unicase/empty-suffix-context.
79784         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
79785         * modules/unicase/u8-toupper (Depends-on): Add
79786         unicase/empty-prefix-context, unicase/empty-suffix-context.
79788         New module 'unicase/u32-ct-casefold'.
79789         * lib/unicase/u32-ct-casefold.c: New file.
79790         * modules/unicase/u32-ct-casefold: New file.
79792         New module 'unicase/u16-ct-casefold'.
79793         * lib/unicase/u16-ct-casefold.c: New file.
79794         * modules/unicase/u16-ct-casefold: New file.
79796         New module 'unicase/u8-ct-casefold'.
79797         * lib/unicase/u8-ct-casefold.c: New file.
79798         * lib/unicase/u-ct-casefold.h: New file, derived from
79799         lib/unicase/u-casefold.h.
79800         * modules/unicase/u8-ct-casefold: New file.
79802         New module 'unicase/u32-ct-totitle'.
79803         * lib/unicase/u32-ct-totitle.c: New file.
79804         * modules/unicase/u32-ct-totitle: New file.
79806         New module 'unicase/u16-ct-totitle'.
79807         * lib/unicase/u16-ct-totitle.c: New file.
79808         * modules/unicase/u16-ct-totitle: New file.
79810         New module 'unicase/u8-ct-totitle'.
79811         * lib/unicase/u8-ct-totitle.c: New file.
79812         * lib/unicase/u-ct-totitle.h: New file, derived from
79813         lib/unicase/u-totitle.h.
79814         * modules/unicase/u8-ct-totitle: New file.
79816         New module 'unicase/u32-ct-tolower'.
79817         * lib/unicase/u32-ct-tolower.c: New file.
79818         * modules/unicase/u32-ct-tolower: New file.
79820         New module 'unicase/u16-ct-tolower'.
79821         * lib/unicase/u16-ct-tolower.c: New file.
79822         * modules/unicase/u16-ct-tolower: New file.
79824         New module 'unicase/u8-ct-tolower'.
79825         * lib/unicase/u8-ct-tolower.c: New file.
79826         * modules/unicase/u8-ct-tolower: New file.
79828         New module 'unicase/u32-ct-toupper'.
79829         * lib/unicase/u32-ct-toupper.c: New file.
79830         * modules/unicase/u32-ct-toupper: New file.
79832         New module 'unicase/u16-ct-toupper'.
79833         * lib/unicase/u16-ct-toupper.c: New file.
79834         * modules/unicase/u16-ct-toupper: New file.
79836         New module 'unicase/u8-ct-toupper'.
79837         * lib/unicase/u8-ct-toupper.c: New file.
79838         * modules/unicase/u8-ct-toupper: New file.
79840         Add context arguments to u*_casemap functions.
79841         * lib/unicase/unicasemap.h: Include unicase.h.
79842         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
79843         suffix_context arguments.
79844         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
79845         functions.
79846         (FUNC): Add prefix_context and suffix_context arguments. Use
79847         uc_is_cased and uc_is_case_ignorable.
79848         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
79849         * lib/unicase/u16-casemap.c: Likewise.
79850         * lib/unicase/u32-casemap.c: Likewise.
79851         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
79852         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79853         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
79854         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79855         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
79856         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
79858         New module 'unicase/u32-suffix-context'.
79859         * lib/unicase/u32-suffix-context.c: New file.
79860         * modules/unicase/u32-suffix-context: New file.
79862         New module 'unicase/u16-suffix-context'.
79863         * lib/unicase/u16-suffix-context.c: New file.
79864         * modules/unicase/u16-suffix-context: New file.
79866         New module 'unicase/u8-suffix-context'.
79867         * lib/unicase/u8-suffix-context.c: New file.
79868         * lib/unicase/u-suffix-context.h: New file.
79869         * modules/unicase/u8-suffix-context: New file.
79871         New module 'unicase/empty-suffix-context'.
79872         * lib/unicase/empty-suffix-context.c: New file.
79873         * modules/unicase/empty-suffix-context: New file.
79875         New module 'unicase/u32-prefix-context'.
79876         * lib/unicase/u32-prefix-context.c: New file.
79877         * modules/unicase/u32-prefix-context: New file.
79879         New module 'unicase/u16-prefix-context'.
79880         * lib/unicase/u16-prefix-context.c: New file.
79881         * modules/unicase/u16-prefix-context: New file.
79883         New module 'unicase/u8-prefix-context'.
79884         * lib/unicase/u8-prefix-context.c: New file.
79885         * lib/unicase/u-prefix-context.h: New file.
79886         * lib/unicase/context.h: New file.
79887         * modules/unicase/u8-prefix-context: New file.
79889         New module 'unicase/empty-prefix-context'.
79890         * lib/unicase/empty-prefix-context.c: New file.
79891         * modules/unicase/empty-prefix-context: New file.
79893         New module 'unicase/ignorable'.
79894         * lib/unicase/ignorable.c: New file.
79895         * modules/unicase/ignorable: New file.
79897         New module 'unicase/cased'.
79898         * lib/unicase/caseprop.h: New file.
79899         * lib/unicase/cased.c: New file.
79900         * modules/unicase/cased: New file.
79902         New functions for case mapping of substrings.
79903         * lib/unicase.h (casing_prefix_context_t): New type.
79904         (unicase_empty_prefix_context): New variable.
79905         (u8_casing_prefix_context, u16_casing_prefix_context,
79906         u32_casing_prefix_context, u8_casing_prefixes_context,
79907         u16_casing_prefixes_context, u32_casing_prefixes_context): New
79908         declarations.
79909         (casing_suffix_context_t): New type.
79910         (unicase_empty_suffix_context): New variable.
79911         (u8_casing_suffix_context, u16_casing_suffix_context,
79912         u32_casing_suffix_context, u8_casing_suffixes_context,
79913         u16_casing_suffixes_context, u32_casing_suffixes_context,
79914         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
79915         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
79916         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
79917         declarations.
79919 2009-06-28  Jim Meyering  <meyering@redhat.com>
79921         boostrap: indent only with spaces
79922         * build-aux/bootstrap: Indent only with spaces, never TABs.
79924         bootstrap: split long lines
79925         * build-aux/bootstrap: Keep line length < 80.
79927         bootstrap: sync from coreutils
79928         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
79929         just as autoreconf does.  Verify a list of prerequisite
79930         package-name,version-number pairs if defined in bootstrap.conf.
79931         Refer to README-prereq, if prerequisites are not satisfied.
79933 2009-06-27  Eric Blake  <ebb9@byu.net>
79935         tests: add test for bogus NULL definition
79936         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
79937         * tests/test-stdlib.c: Likewise.
79938         * tests/test-string.c: Likewise.
79939         * tests/test-locale.c: Likewise.
79940         * tests/test-unistd.c: Likewise.
79941         * modules/stdio-tests (Depends-on): Add verify.
79942         * modules/stdlib-tests (Depends-on): Likewise.
79943         * modules/string-tests (Depends-on): Likewise.
79944         * modules/locale-tests (Depends-on): Likewise.
79945         * modules/unistd-tests (Depends-on): Likewise.
79947 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
79949         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
79950         self-explaining comment.
79951         * m4/selinux-selinux-h: Update serial.
79952         (gl_LIBSELINUX): New macro, adding a warning for missing development
79953         packages to code extracted from...
79954         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
79955         Add warning for missing development packages here, too.
79957 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
79959         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
79961 2009-06-25  Eric Blake  <ebb9@byu.net>
79963         version-etc: fix regression
79964         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
79965         gcc.
79966         (version_etc): Use it, to catch bugs with trailing NULL.
79967         * lib/version-etc.c (version_etc_arn): Delete unused argument.
79968         (version_etc_va): Fix logic bug.
79969         * modules/version-etc-tests: Add test.
79970         * tests/test-version-etc.c: New file.
79971         * tests/test-version-etc.sh: Likewise.
79973 2009-06-25  Sam Steingold  <sds@gnu.org>
79975         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
79976         mbtowc declaration.
79978 2009-06-25  Eric Blake  <ebb9@byu.net>
79980         fpurge: migrate into <stdio.h>
79981         * lib/fpurge.h: Delete...
79982         * lib/stdio.in.h (fpurge): ...and declare here, instead.
79983         * lib/fpurge.c (fpurge): Change declaring header.
79984         * modules/fpurge (Files): Drop deleted file.
79985         (Depends-on): Add stdio.
79986         (configure.ac): Set witness.
79987         * modules/stdio (Makefile.am): Support fpurge macros.
79988         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79989         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
79990         * lib/fflush.c: Update client.
79991         * tests/test-fpurge.c: Likewise.
79992         * NEWS: Mention the change.
79994 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79996         * lib/argp-version-etc.c (program_authors): Add const
79997         qualifier.
79998         * lib/version-etc.c: Fix typos in the comments.
79999         * modules/argp-version-etc: Depends on version-etc.
80001 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80003         argp-version-etc: new module.
80005         * lib/argp-version-etc.c: New file.
80006         * lib/argp-version-etc.h: New file.
80007         * modules/argp-version-etc: New file.
80008         * modules/argp-version-etc-tests: New file.
80009         * tests/test-argp-version-etc.c: New test.
80010         * tests/test-argp-version-etc-1.sh: New test.
80012 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80014         Provide additional interfaces and documentation for version-etc
80015         module.
80017         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
80018         interfaces.
80019         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
80020         prototypes.
80022 2009-06-24  Bruno Haible  <bruno@clisp.org>
80024         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
80025         HAVE_LIB${NAME} macro.
80026         Reported by Sam Steingold <sds@gnu.org>.
80028 2009-06-23  Simon Josefsson  <simon@josefsson.org>
80030         * modules/hash-tests (test_hash_LDADD): Link to libintl when
80031         needed.
80033 2009-06-21  Bruno Haible  <bruno@clisp.org>
80035         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
80036         work.
80037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
80038         together with LIB${NAME}, LTLIB${NAME}.
80039         Reported by Sam Steingold <sds@gnu.org>.
80041 2009-06-20  Jim Meyering  <meyering@redhat.com>
80043         tests: make sc_require_test_exit_idiom more generic
80044         * top/maint.mk (Exit_witness_file): New overridable variable.
80045         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
80046         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
80048 2009-06-19  Jim Meyering  <meyering@redhat.com>
80050         hash: reverse order of src/dst parameters in an internal interface
80051         * lib/hash.c (transfer_entries): Reverse order of parameters to
80052         put DST before SRC.  Adjust callers.
80054         tests: test-hash: avoid wholesale duplication
80055         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
80056         Instead, use a loop and add a single conditional.
80058         tests: test-hash: allow seed selection via a command line argument
80059         * tests/test-hash.c (get_seed): New function.
80060         (main): Use it.
80062 2009-06-19  Eric Blake  <ebb9@byu.net>
80064         hash: avoid memory leak on allocation failure
80065         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
80066         failure.  Factor repeated algorithm...
80067         (transfer_entries): ...into new helper routine.
80068         (hash_delete): React to hash_rehash return value.
80070         hash: reduce memory pressure in hash_rehash no-op case
80071         * lib/hash.c (next_prime): Avoid overflow.
80072         (hash_initialize): Factor bucket size computation...
80073         (compute_bucket_size): ...into new helper function.
80074         (hash_rehash): Use new function and open coding to reduce memory
80075         pressure, and avoid a memory leak in USE_OBSTACK code.
80076         Reported by Jim Meyering.
80078 2009-06-18  Eric Blake  <ebb9@byu.net>
80080         hash: make rotation more obvious
80081         * modules/hash (Depends-on): Add bitrotate and stdint.
80082         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
80083         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
80084         (SIZE_MAX): Rely on headers for definition.
80085         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
80086         (raw_hasher): Use rotr_sz.
80087         Suggested by Jim Meyering.
80089         hash: fix memory leak in last patch
80090         * lib/hash.c (hash_rehash): Avoid memory leak.
80092         hash: avoid no-op rehashing
80093         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
80095         hash: provide default callback functions
80096         * lib/hash.c (raw_hasher, raw_comparator): New functions.
80097         (hash_initialize): Use them as defaults.
80098         * tests/test-hash.c (main): Test this.
80100         hash: minor optimization
80101         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
80102         when possible.
80103         (hash_initialize): Document this promise.
80104         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
80105         * tests/test-hash.c (hash_compare_strings): Test this.
80107 2009-06-18  Bruno Haible  <bruno@clisp.org>
80109         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
80110         going to be replaced anyway.
80112 2009-06-18  Bruno Haible  <bruno@clisp.org>
80114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
80115         in one place.
80116         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
80117         be replaced anyway.
80119 2009-06-18  Eric Blake  <ebb9@byu.net>
80121         hash: check for resize before insertion
80122         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
80123         threshold before insertion, so that a pathological hash_rehash
80124         that fills every bucket can still trigger another rehash.
80126 2009-06-18  Jim Meyering  <meyering@redhat.com>
80128         hash-tests: add a loop around the small tests
80129         * tests/test-hash.c (main): Repeat small tests with selected
80130         small initial table sizes.
80132 2009-06-17  Eric Blake  <ebb9@byu.net>
80134         hash: minor cleanups
80135         * lib/hash.h (hash_entry): Make opaque, by moving...
80136         * lib/hash.c (hash_entry): ...here.
80137         (hash_insert): Clarify restrictions on what can be inserted.
80138         (hash_get_next): Clarify when it is safe to remove an element
80139         during traversal.
80140         (check_tuning): Skip verification when tuning is known safe.
80141         (hash_initialize): Clarify restrictions on tuning.
80143 2009-06-17  Jim Meyering  <jim@meyering.net>
80144         and Eric Blake  <ebb9@byu.net>
80146         hash-tests: new module
80147         * modules/hash-tests: New file.
80148         * tests/test-hash.c: New file.
80150 2009-06-17  Eric Blake  <ebb9@byu.net>
80152         strstr-simple: document new module
80153         * MODULES.html.sh: Document new module.
80155         strstr, strcasestr: replace on platforms with broken memchr
80156         * modules/strstr: Split into...
80157         * modules/strstr-simple: ...new module that does not care about
80158         performance, but does care about glibc bug.
80159         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
80160         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
80161         if platform memchr is broken, per Debian bug 521737.
80162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
80163         memchr.
80164         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
80165         * doc/posix-functions/strstr.texi (strstr): Document the fix.
80166         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
80167         * modules/mountlist (Depends-on): Add strstr-simple.
80168         * modules/gen-uni-tables (Depends-on): Likewise.
80169         * modules/argz (Depends-on): Add strstr.
80171 2009-06-17  Bruno Haible  <bruno@clisp.org>
80173         * modules/posix_spawn-internal (Depends-on): Add errno.
80175 2009-06-17  Bruno Haible  <bruno@clisp.org>
80177         Define missing ESTALE on Interix 3.5.
80178         * lib/errno.in.h (ESTALE): Assign a value if missing.
80179         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
80180         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
80181         missing.
80182         * doc/posix-headers/errno.texi: Mention the Interix bug.
80183         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
80185 2009-06-15  Eric Blake  <ebb9@byu.net>
80187         memchr, memchr2: add valgrind exception
80188         * lib/memchr.valgrind: New file.
80189         * lib/memchr2.valgrind: New file.
80190         * modules/memchr (Files): Distribute valgrind file.
80191         * modules/memchr2 (Files): Likewise.
80193         docs: memchr is no longer obsolete
80194         * MODULES.html.sh: Move memchr from obsolete to string.h section.
80195         * lib/string.in.h (memchr): Simplify logic.
80197 2009-06-14  Jim Meyering  <meyering@redhat.com>
80199         link-follow: fix the "checking..." message to not mention trailing slash
80200         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
80201         never considered trailing slashes.
80203 2009-06-14  Bruno Haible  <bruno@clisp.org>
80205         * m4/memchr.m4: Mention also the bug on IA-64.
80206         * doc/posix-functions/memchr.texi: Likewise.
80208 2009-06-12  Eric Blake  <ebb9@byu.net>
80210         memchr: detect broken x86_64 and alpha implementations
80211         * modules/memchr-tests (Depends-on): Move mmap detection...
80212         * modules/memchr (Depends-on): ...here.
80213         (configure.ac): Set indicator.
80214         * lib/string.in.h (memchr): Declare replacement.
80215         * modules/string (Makefile.am): Trigger replacement.
80216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
80217         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
80218         bugs.
80219         * doc/posix-functions/memchr.texi (memchr): Document the bug.
80220         * modules/getpagesize (License): Relax license.
80222 2009-06-11  Bruno Haible  <bruno@clisp.org>
80224         * lib/idpriv.h: Add more references.
80226 2009-06-08  Bruno Haible  <bruno@clisp.org>
80228         Tests for module 'idpriv-droptemp'.
80229         * modules/idpriv-droptemp-tests: New file.
80230         * tests/test-idpriv-droptemp.sh: New file.
80231         * tests/test-idpriv-droptemp.su.sh: New file.
80232         * tests/test-idpriv-droptemp.c: New file.
80234         New module 'idpriv-droptemp'.
80235         * lib/idpriv-droptemp.c: New file.
80236         * modules/idpriv-droptemp: New file.
80238 2009-06-08  Bruno Haible  <bruno@clisp.org>
80240         Tests for module 'idpriv-drop'.
80241         * modules/idpriv-drop-tests: New file.
80242         * tests/test-idpriv-drop.sh: New file.
80243         * tests/test-idpriv-drop.su.sh: New file.
80244         * tests/test-idpriv-drop.c: New file.
80246         New module 'idpriv-drop'.
80247         * lib/idpriv.h: New file.
80248         * lib-idpriv-drop.c: New file.
80249         * m4/idpriv.m4: New file.
80250         * modules/idpriv-drop: New file.
80252 2009-06-08  Bruno Haible  <bruno@clisp.org>
80254         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
80255         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
80256         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
80257         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
80258         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
80259         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
80260         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
80262 2009-06-08  Eric Blake  <ebb9@byu.net>
80264         test-strstr: use memory fence, when possible
80265         * tests/test-strstr.c (main): Use memory fence, in order to be
80266         more likely to trigger Debian bug 521737.
80267         * modules/strstr-tests (Files): Pull in additional files.
80269         memchr: no longer obsolete, for wider field testing
80270         * modules/memchr (Status, Notice): Delete, this module is no
80271         longer obsolete.
80272         * modules/vasnprintf (Depends-on): Add memchr.
80274 2009-06-07  Jim Meyering  <meyering@redhat.com>
80276         hash: declare some functions with the warn_unused_result attribute
80277         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
80279 2009-06-07  Bruno Haible  <bruno@clisp.org>
80281         * tests/test-alignof.c: Don't test int64_t if it does not exist.
80282         Reported by Eric Blake.
80284 2009-06-06  Eric Blake  <ebb9@byu.net>
80286         test-alignof: fix typo with long double
80287         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
80288         compiler error.
80290 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
80292         Escape non-texinfo { and }s.
80293         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
80294         markup error.
80296 2009-06-04  Jim Meyering  <meyering@redhat.com>
80298         gitlog-to-changelog: don't infloop on an empty commit log
80299         * build-aux/gitlog-to-changelog: Warn about an empty log message.
80300         Reported by Boris Petersen <transacid@centerim.org>.
80302 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
80304         version-etc: extend for packagers
80305         Add three new configure options, intended for packagers:
80306           --with-packager="packager name"
80307           --with-packager-version="packager-specific version"
80308           --with-packager-bug-reports="packager bug reporting"
80309         An example with coreutils:
80310           $ ./configure \
80311             --with-packager=Gentoo \
80312             --with-packager-bug-report=http://bugs.gentoo.org/ \
80313             --with-packager-version="patchset 1.6"
80314           $ ./src/ls --version | head -n2
80315           ls (GNU coreutils) 7.1-dirty
80316           Packaged by Gentoo (patchset 1.6)
80317         Note that the bug reporting info via --help doesn't show up because
80318         coreutils uses its own custom emit_bug_reporting_address() implementation
80319         in src/system.h.  If it didn't, it'd look like:
80320           $ ./src/ls --help | tail -n4
80321           Report bugs to <bug-coreutils@gnu.org>.
80322           Report Gentoo bugs to <http://bugs.gentoo.org/>.
80323           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
80324           General help using GNU software: <http://www.gnu.org/gethelp/>.
80325         * lib/version-etc.c: Print new information, if provided.
80326         * m4/version-etc.m4: New file.
80327         * modules/version-etc (Files): Add m4/version-etc.m4.
80328         (configure.ac): Add gl_VERSION_ETC.
80330 2009-05-31  Bruno Haible  <bruno@clisp.org>
80332         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
80333         and 'int64_t'.
80334         * modules/alignof-tests (Dependencies): Add stdint.
80335         Reported by Eric Blake.
80337 2009-05-31  Bruno Haible  <bruno@clisp.org>
80339         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
80340         restriction due to compiler bugs.
80341         Reported by Eric Blake.
80343 2009-05-31  Simon Josefsson  <simon@josefsson.org>
80344             Bruno Haible  <bruno@clisp.org>
80346         Fix test-alignof failure.
80347         * lib/alignof.h (alignof_slot): New macro.
80348         (alignof_type): New macro, with the same semantics as the previous
80349         'alignof'.
80350         (alignof): Alias to alignof_slot.
80351         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
80352         check that the results are usable as constant expressions.
80354 2009-05-31  Bruno Haible  <bruno@clisp.org>
80356         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
80357         * tests/test-memchr.c (main): Check that memchr does not read past the
80358         first occurrence of the byte.
80359         * tests/test-strstr.c (main): Update comment.
80360         Suggested by Eric Blake.
80362 2009-05-30  Bruno Haible  <bruno@clisp.org>
80364         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
80365         detail how to use dumpbin.
80366         Reported by David Byron <dbyron@dbyron.com>.
80368 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80370         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
80372 2009-06-02  Simon Josefsson  <simon@josefsson.org>
80374         * m4/manywarnings.m4: Add GCC 4.4 warnings.
80376 2009-05-28  Bruno Haible  <bruno@clisp.org>
80378         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
80379         build-aux/ files.
80381 2009-05-28  Simon Josefsson  <simon@josefsson.org>
80383         * gnulib-tool (func_import): Transform license on build-aux/ files too.
80385 2009-05-27  Simon Josefsson  <simon@josefsson.org>
80387         * gnulib-tool (sed_transform_main_lib_file)
80388         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
80389         regexps.
80391 2009-05-26  Simon Josefsson  <simon@josefsson.org>
80393         * tests/test-strstr.c: Add another self-test.
80394         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
80395         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
80397 2009-05-23  Bruno Haible  <bruno@clisp.org>
80399         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
80400         change.
80402 2009-05-21  Bruno Haible  <bruno@clisp.org>
80404         Simplify use of mode_t varargs.
80405         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
80406         uses 'mode_t' or 'int'.
80407         * lib/openat.c (openat): Likewise.
80408         * lib/open-safer.c (open_safer): Likewise.
80409         * m4/mode_t.m4: New file.
80410         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
80411         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
80412         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
80413         * modules/open (Files): Add m4/mode_t.m4.
80414         * modules/openat (Files): Likewise.
80415         * modules/fcntl-safer (Files): Likewise.
80416         Suggested by Eric Blake.
80418 2009-05-21  Pádraig Brady  <P@draigbrady.com>
80420         * doc/glibc-functions/fallocate.texi: New file.
80421         * doc/gnulib.texi: Include it.
80423 2009-05-21  Eric Blake  <ebb9@byu.net>
80424             Bruno Haible  <bruno@clisp.org>
80426         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
80427         invocations.
80428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80430 2009-05-21  Eric Blake  <ebb9@byu.net>
80431             Bruno Haible  <bruno@clisp.org>
80433         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
80434         include_next. Fix of 2008-11-20 commit.
80435         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
80436         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
80437         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
80438         NEXT_MATH_H.
80439         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
80440         instead of NEXT_MATH_H.
80442 2009-05-21  Bruno Haible  <bruno@clisp.org>
80444         Avoid redefinition warnings for SIZE_MAX.
80445         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
80446         Reported by Simon Josefsson.
80448 2009-05-21  Bruno Haible  <bruno@clisp.org>
80450         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
80451         AC_CACHE_VAL.
80453 2009-05-20  Bruno Haible  <bruno@clisp.org>
80455         Make zeroptr.h work on mingw.
80456         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
80457         mprotect.
80458         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
80459         * modules/memchr2-tests (configure.ac): Likewise.
80460         * modules/memcmp-tests (configure.ac): Likewise.
80461         * modules/memmem-tests (configure.ac): Likewise.
80462         * modules/memrchr-tests (configure.ac): Likewise.
80463         Reported by Simon Josefsson.
80465 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80467         * tests/test-glob.c: Include string.h for strcmp prototype.
80469 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80471         * modules/getdelim (Depends-on): Add explicit stdint, although it
80472         was implicitly already pulled in via realloc-posix.
80473         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
80475 2009-05-20  Simon Josefsson  <simon@josefsson.org>
80477         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
80478         G. Christensen" <tgc@jupiterrise.com>.
80479         * m4/sys_socket_h.m4: Check for sa_family_t.
80480         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
80481         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
80482         * tests/test-sys_socket.c: Check that sa_family_t works.
80484 2009-05-18  Eric Blake  <ebb9@byu.net>
80486         maint.mk: allow gnulib_dir in VPATH build
80487         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
80489 2009-05-15  Jim Meyering  <meyering@redhat.com>
80491         maint.mk: Give gnulib_dir a default definition.
80492         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
80493         Thus, most packages no longer need to specify this variable in cfg.mk
80495 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
80497         rename.m4: fix typos that would make non-mingw cross-configure fail
80498         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
80500 2009-05-13  Eric Blake  <ebb9@byu.net>
80502         mmap-anon: avoid out-of-order autoconf expansion
80503         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
80504         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
80505         * modules/memchr-tests (Depends-on): Add extensions.
80506         * modules/memchr2-tests (Depends-on): Add extensions.
80507         * modules/memcmp-tests (Depends-on): Add extensions.
80508         * modules/memmem-tests (Depends-on): Add extensions.
80509         * modules/memrchr-tests (Depends-on): Add extensions.
80511 2009-05-13  Bruno Haible  <bruno@clisp.org>
80513         Make some tests ISO C 99 compliant.
80514         * tests/zerosize-ptr.h: New file.
80515         * tests/test-memchr.c: Include zerosize-ptr.h.
80516         (main): Use a zero-size object pointer instead of NULL.
80517         * tests/test-memchr2.c: Include zerosize-ptr.h.
80518         (main): Use a zero-size object pointer instead of NULL.
80519         * tests/test-memcmp.c: Include zerosize-ptr.h.
80520         (main): Use a zero-size object pointer instead of NULL.
80521         * tests/test-memmem.c: Include zerosize-ptr.h.
80522         (main): Use a zero-size object pointer instead of NULL.
80523         * tests/test-memrchr.c: Include zerosize-ptr.h.
80524         (main): Use a zero-size object pointer instead of NULL.
80525         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
80526         m4/mmap-anon.m4.
80527         (Depends-on): Add getpagesize.
80528         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80529         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
80530         m4/mmap-anon.m4.
80531         (Depends-on): Add getpagesize.
80532         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80533         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
80534         m4/mmap-anon.m4.
80535         (Depends-on): Add getpagesize.
80536         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80537         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
80538         m4/mmap-anon.m4.
80539         (Depends-on): Add getpagesize.
80540         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80541         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
80542         m4/mmap-anon.m4.
80543         (Depends-on): Add getpagesize.
80544         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
80546 2009-05-12  Bruno Haible  <bruno@clisp.org>
80548         Tests for module 'alignof'.
80549         * modules/alignof-tests: New file.
80550         * tests/test-alignof.c: New file.
80552 2009-05-12  Bruno Haible  <bruno@clisp.org>
80554         Fix alignof macro.
80555         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
80556         vendor compilers that are always correct.
80558 2009-05-12  Bruno Haible  <bruno@clisp.org>
80560         Make the MAP_ANONYMOUS detection work on HP-UX 11.
80561         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
80562         not whether its fully works.
80564 2009-05-12  Bruno Haible  <bruno@clisp.org>
80566         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
80568 2009-05-12  Jim Meyering  <meyering@redhat.com>
80570         * top/maint.mk: Adjust backslash alignment.
80572 2009-05-11  Simon Josefsson  <simon@josefsson.org>
80574         * top/maint.mk: Make $(srcdir)/build-aux configurable.
80576 2009-05-11  Eric Blake  <ebb9@byu.net>
80578         argp: avoid undefined behavior
80579         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
80580         macros.
80582 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80584         * tests/test-vc-list-files-git.sh: Do git config of user.email and
80585         user.name to prevent git commit from complaining.
80587 2009-05-10  Bruno Haible  <bruno@clisp.org>
80589         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
80590         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
80591         it rewrites every file name only once.
80592         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
80594 2009-05-08  Bruno Haible  <bruno@clisp.org>
80596         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
80597         instead of 'max'.
80599 2009-05-08  Simon Josefsson  <simon@josefsson.org>
80601         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
80602         sockaddr_storage test.
80604 2009-05-07  Simon Josefsson  <simon@josefsson.org>
80606         * modules/sys_socket (Makefile.am): Substitute
80607         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
80608         * m4/sys_socket_h.m4: Check for sockaddr_storage.
80609         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
80610         * tests/test-sys_socket.c: Check sockaddr_storage.
80612 2009-05-08  Bruno Haible  <bruno@clisp.org>
80614         New module 'alignof'.
80615         * lib/alignof.h: New file.
80616         * modules/alignof: New file.
80618 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80619             Bruno Haible  <bruno@clisp.org>
80621         Fix test-file-has-acl on FreeBSD.
80622         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
80623         mask is implicitly added.
80624         * tests/test-file-has-acl.c: Include <signal.h>.
80625         (main): Terminate the test after 5 seconds.
80626         * modules/acl-tests (configure.ac): Check for alarm function.
80628 2009-05-04  Bruno Haible  <bruno@clisp.org>
80630         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
80631         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
80632         * modules/errno (configure.ac): Drop AC_REQUIRE.
80633         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
80634         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
80636 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80638         * modules/glob-tests: New module.
80639         * tests/test-glob.c: Add.
80641 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80643         * modules/fnmatch-tests: New module.
80644         * tests/test-fnmatch.c: Add.
80646 2009-05-04  Eric Blake  <ebb9@byu.net>
80648         maint: make the new no-submodule-changes rule VPATH-safe
80649         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
80651 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80652             Bruno Haible  <bruno@clisp.org>
80654         acl: Fix infinite loop on FreeBSD.
80655         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
80656         of return value from acl_get_entry.
80657         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
80658         Likewise.
80660 2009-05-03  Bruno Haible  <bruno@clisp.org>
80662         * lib/acl-internal.h (acl_entries): Clarify return value.
80663         * lib/acl_entries.c (acl_entries): Likewise.
80665 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80667         Bug fix in acl module.
80668         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
80670 2009-05-03  Bruno Haible  <bruno@clisp.org>
80672         Create gperf-generated file in the source dir, not in the build dir.
80673         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
80674         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
80675         * modules/unicase/locale-language (unicase/locale-languages.h):
80676         Likewise.
80677         * modules/unicase/special-casing (unicase/special-casing-table.h):
80678         Likewise.
80679         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
80680         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
80681         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
80682         Reported by Ralf Wildenhues.
80684 2009-05-03  Bruno Haible  <bruno@clisp.org>
80686         * modules/fnmatch (Description, configure.ac): Taken from
80687         fnmatch-posix.
80688         * modules/fnmatch-posix: Turn into a symbolic reference to the
80689         'fnmatch' module, and deprecate.
80690         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
80692 2009-05-03  Bruno Haible  <bruno@clisp.org>
80694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
80695         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
80696         Reported by Ralf Wildenhues.
80698 2009-05-04  Simon Josefsson  <simon@josefsson.org>
80700         * m4/fnmatch.m4: Fix fnmatch re-define.
80702 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
80704         priv-set: new module and tests; adapt write-any-file
80705         * lib/priv-set.c: New file.
80706         * lib/priv-set.h: New file.
80707         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
80708         * lib/write-any-file.c: Simplify by using priv-set module.
80709         * m4/priv-set.m4: New file.
80710         * modules/priv-set: New file.
80711         * modules/unlinkdir: Add dependency on priv-set module.
80712         * modules/write-any-file: Likewise.
80714         Tests for module 'priv-set'.
80715         * modules/priv-set-tests: New file.
80716         * tests/test-priv-set.c: New file.
80718 2009-05-03  Jim Meyering  <meyering@redhat.com>
80719             Bruno Haible  <bruno@clisp.org>
80721         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
80722         use the converted UTF-8 variant of the name instead.
80724 2009-05-03  Jim Meyering  <meyering@redhat.com>
80726         tests: tighten some getdate tests
80727         * tests/test-getdate.c (main): Tighten tests: require equality,
80728         not just greater than.  Set TZ envvar to UTC0.
80730 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
80732         getdate: correctly interpret "next monday" when run on a Monday
80733         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
80734         that e.g., "next tues" (when run on a tuesday) results in a date
80735         that is one week in the future, and not today's date.
80736         I.e., add a week when the wday is the same as the current one.
80737         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
80738         and earlier by Martin Bernreuther and Jan Minář.
80739         * tests/test-getdate.c (main): Check that "next DAY" is always in
80740         the future and that "last DAY" is always in the past.
80742 2009-05-02  Jim Meyering  <meyering@redhat.com>
80744         build: ensure that a release build fails when a submodule is unclean
80745         * top/maint.mk (no-submodule-changes): New rule.
80746         (alpha beta major): Depend on it.
80748 2009-05-02  Bruno Haible  <bruno@clisp.org>
80750         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
80751         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
80752         shell variable gl_fnmatch_required to detect which variant is
80753         requested.
80754         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
80755         gl_FUNC_FNMATCH_POSIX.
80756         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
80757         exclude fnmatch-posix.
80759 2009-05-02  Bruno Haible  <bruno@clisp.org>
80761         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
80762         * modules/mbsrtowcs (License): Change to LGPLv2+.
80763         * modules/strnlen1 (License): Likewise.
80764         Reported by Simon Josefsson.
80766 2009-05-02  Bruno Haible  <bruno@clisp.org>
80768         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
80769         "cross".
80770         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
80771         gnulib-tool was called with option --source-base=lib.
80773 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80775         Use automake *-local hooks without commands, for extensibility.
80776         * modules/localcharset (Makefile.am): Rename install-exec-local
80777         rule to install-exec-localcharset, and make it a prerequisite of
80778         install-exec-local.  Likewise, rename the uninstall-local rule to
80779         uninstall-localcharset, and make it a prerequisite of the former.
80781 2009-05-01  Bruno Haible  <bruno@clisp.org>
80783         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
80784         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80785         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
80786         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
80787         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
80788         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80789         m4/locale-zh.m4, m4/codeset.m4.
80791         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
80792         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
80793         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
80794         m4/locale-zh.m4.
80796         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
80797         REPLACE_WCRTOMB if mbstate_t must be replaced.
80798         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
80799         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
80801 2009-05-01  Bruno Haible  <bruno@clisp.org>
80803         Avoid compiler warnings when redefining macros defined by <libintl.h>.
80804         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
80805         dngettext, dcngettext, textdomain, bindtextdomain,
80806         bind_textdomain_codeset): Undefine before redefining.
80808 2009-04-30  Bruno Haible  <bruno@clisp.org>
80810         Fix bug introduced on 2009-04-25.
80811         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
80812         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
80813         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
80814         is defined.
80815         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
80816         is defined.
80817         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
80818         is defined.
80819         Reported by Elbert_Pol <elbert.pol@gmail.com>.
80821 2009-04-28  Bruno Haible  <bruno@clisp.org>
80823         Comment tweaks.
80824         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
80825         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
80826         * lib/unicase.h (u*_casexfrm): Likewise.
80827         Reported by Paolo Bonzini.
80829 2009-04-28  Bruno Haible  <bruno@clisp.org>
80831         Fix a compilation error.
80832         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
80833         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
80834         Reported by Jim Meyering.
80836 2009-04-27  Bruno Haible  <bruno@clisp.org>
80838         New module 'libunistring'.
80839         * modules/libunistring: New file.
80840         * m4/libunistring.m4: New file.
80841         * MODULES.html.sh (Unicode string functions): Add it.
80843 2009-04-27  Eric Blake  <ebb9@byu.net>
80845         maint.mk: allow package-specific header to provide <config.h>
80846         * top/maint.mk (sc_require_config_h): New variable.
80847         (sc_require_config_h, sc_require_config_h_first): Use it.
80849 2009-04-27  Simon Josefsson  <simon@josefsson.org>
80851         * top/maint.mk (sc_avoid_if_before_free): Except
80852         useless-if-before-free script.
80854 2009-04-27  Eric Blake  <ebb9@byu.net>
80856         maintainer-makefile: depend on all required helper scripts
80857         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
80858         useless-if-before-free.
80859         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
80860         version, rather than assuming gnulib checkout is available.
80861         Reported by Simen Josefsson.
80863 2009-04-26  Bruno Haible  <bruno@clisp.org>
80865         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
80866         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
80867         "../" or "..".
80869 2009-04-26  Bruno Haible  <bruno@clisp.org>
80871         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
80872         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
80873         AC_LIB_HAVE_LINKFLAGS.
80875 2009-04-26  Bruno Haible  <bruno@clisp.org>
80877         Simplify calling convention of u*_conv_from_encoding.
80878         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
80879         u32_conv_from_encoding): Expect a resultbuf argument and return the
80880         result directly as a pointer.
80881         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
80882         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
80883         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
80884         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
80885         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
80886         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80887         Update.
80888         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
80889         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
80890         * lib/vasnprintf.c (VASNPRINTF): Update.
80891         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
80892         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
80893         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
80894         * NEWS: Mention the change.
80896 2009-04-26  Bruno Haible  <bruno@clisp.org>
80898         Simplify calling convention of u*_conv_to_encoding.
80899         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
80900         u32_conv_to_encoding): Expect a resultbuf argument and return the
80901         result directly as a pointer.
80902         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80903         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
80904         freeing scaled_offsets if mem_iconveha failed.
80905         * lib/unicase/u-casexfrm.h (FUNC): Update.
80906         * lib/uninorm/u-normxfrm.h (FUNC): Update.
80907         * lib/vasnprintf.c (VASNPRINTF): Update.
80908         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
80909         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
80910         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
80911         * NEWS: Mention the change.
80913 2009-04-26  Bruno Haible  <bruno@clisp.org>
80915         Avoid test failures on AIX and OSF/1.
80916         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
80917         malloc(0).
80918         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
80919         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
80920         Likewise.
80921         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
80922         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
80923         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
80924         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
80925         * doc/posix-functions/malloc.texi: Document the portability problem
80926         related to malloc(0).
80928 2009-04-26  Bruno Haible  <bruno@clisp.org>
80930         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
80931         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
80932         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
80934 2009-04-25  Bruno Haible  <bruno@clisp.org>
80936         Avoid link error when creating a namespace clean library.
80937         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
80938         as macro with arguments if already defined as an alias.
80939         * lib/signbitf.c (gl_signbitf): Don't undefine.
80940         * lib/signbitd.c (gl_signbitd): Don't undefine.
80941         * lib/signbitl.c (gl_signbitl): Don't undefine.
80943 2009-04-25  Jim Meyering  <meyering@redhat.com>
80945         vc-list-files: fix another quoting bug
80946         * build-aux/vc-list-files: Avoid sed backslash expansion
80947         of pathological directory names.
80949 2009-04-25  Eric Blake  <ebb9@byu.net>
80951         vc-list-files: fix shell quoting error
80952         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
80953         timestamp.
80955 2009-04-25  Jim Meyering  <meyering@redhat.com>
80957         vc-list-files: restore lost functionality with subdir argument
80958         * build-aux/vc-list-files: When given a non-"." sub-directory
80959         argument, substitute the $dir/ prefix back onto each resulting name.
80960         Otherwise, coreutils' root_tests check would fail.
80962 2009-04-24  Eric Blake  <ebb9@byu.net>
80964         vc-list-files: ignore git symlinks
80965         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
80966         than ls-files, to ignore git symlinks.
80968         maint.mk: import improvements from m4
80969         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
80970         (move_if_change): Delete unused macro.
80971         (news-date-check, vc-diff-check): Support VPATH builds.
80972         (announcement): Likewise.  Split --bootstrap-tools list...
80973         (boostrap-tools): ...into separate list, which can be overridden
80974         in cfg.mk.
80975         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
80976         requiring dependency on useless-if-before-free module.
80977         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
80978         Support VPATH builds.
80980 2009-04-24  Jim Meyering  <meyering@redhat.com>
80982         maint.mk: remove coreutils-specific rules and variables
80983         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
80984         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
80985         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
80987         maint.mk: remove obsolete rule
80988         * top/maint.mk (rel-check): Remove rule.
80989         (WGET, WGETFLAGS): Remove now-unused variables.
80991 2009-04-24  Simon Josefsson  <simon@josefsson.org>
80993         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
80994         consistency.
80996         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
80997         '$(PATH_SEPARATOR)' instead of ':'.
80999 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81001         * lib/getopt1.c (main): Use 'const' for static array.
81003 2009-04-24  Simon Josefsson  <simon@josefsson.org>
81005         * top/maint.mk: Sync with coreutils.
81006         * NEWS: Explain incompatibilities.
81008 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81009             Bruno Haible  <bruno@clisp.org>
81011         Fix cross-compilation results.
81012         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
81013         statement, as third argument of AC_TRY_RUN.
81014         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
81015         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
81016         Likewise.
81017         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
81018         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
81019         Likewise.
81020         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
81021         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
81022         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
81024 2009-04-20  Bruno Haible  <bruno@clisp.org>
81026         Avoid test failure on mingw.
81027         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
81029 2009-04-20  Bruno Haible  <bruno@clisp.org>
81031         Avoid compilation error on mingw.
81032         * modules/localename-tests (Depends-on): Add locale.
81034 2009-04-19  Bruno Haible  <bruno@clisp.org>
81036         Support for building a shared library on Windows platforms.
81037         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
81038         (main): Test the presence of UNINORM_NFC here.
81039         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
81040         (main): Test the presence of UNINORM_NFD here.
81041         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
81042         (main): Test the presence of UNINORM_NFKC here.
81043         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
81044         (main): Test the presence of UNINORM_NFKD here.
81046 2009-04-19  Bruno Haible  <bruno@clisp.org>
81048         Avoid a compiler warning.
81049         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
81050         Change type of variable 'sequence'.
81052 2009-04-19  Bruno Haible  <bruno@clisp.org>
81054         * modules/configmake (Makefile.am): When the contents of configmake.h
81055         does not change, arrange to preserve its modification time.
81057 2009-04-17  Simon Josefsson  <simon@josefsson.org>
81059         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
81060         gettext domain.
81062 2009-04-16  Jim Meyering  <meyering@redhat.com>
81064         useless-if-before-free: improve conversion code
81065         * build-aux/useless-if-before-free: Adjust code-in-comment to match
81066         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
81068 2009-04-14  Bruno Haible  <bruno@clisp.org>
81070         * modules/fcntl (Depends-on): Add extensions.
81071         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
81073 2009-04-12  Ben Pfaff  <blp@gnu.org>
81075         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
81076         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
81078 2009-03-20  Ben Pfaff  <blp@gnu.org>
81080         Make rename replace existing destinations on Windows.
81081         * m4/rename.m4: Add test for Mingw.
81082         * lib/rename.c: Add rename replacement that uses MoveFileEx with
81083         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
81084         * doc/posix-functions/rename.texi: Document.
81086 2009-04-10  Bruno Haible  <bruno@clisp.org>
81088         New include file "iconveh.h".
81089         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
81090         * lib/striconveh.h: Include it.
81091         (enum iconv_ilseq_handler): Remove definition.
81092         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
81093         striconveh.h.
81094         * lib/striconveha.c: Include striconveh.h.
81095         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
81096         * modules/striconveh (Files): Add lib/iconveh.h.
81097         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
81098         lib/striconveh.h.
81100 2009-04-10  Bruno Haible  <bruno@clisp.org>
81102         * lib/uniconv.h: Update comment.
81104 2009-04-10  Bruno Haible  <bruno@clisp.org>
81106         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
81107         always.
81108         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
81109         * lib/unistr/u16-mbtouc-aux.c: Likewise.
81110         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
81111         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
81112         "unistring-notinline.h", so that the function gets defined always.
81113         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
81114         * lib/unistr/u8-uctomb.c: Likewise.
81115         * lib/unistr/u16-mbtouc.c: Likewise.
81116         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
81117         * lib/unistr/u16-uctomb.c: Likewise.
81118         * lib/unistr/u32-mbtouc.c: Likewise.
81119         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
81120         * lib/unistr/u32-uctomb.c: Likewise.
81122 2009-04-10  Bruno Haible  <bruno@clisp.org>
81124         Mark 'utime' obsolete.
81125         * modules/utime (Status, Notice): New sections.
81126         Suggested by Jim Meyering.
81128         Fix cross-compile guess for utime test.
81129         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
81130         autoconf.
81131         * doc/posix-functions/utime.texi: Give more precisions.
81132         Reported by Jan <ipif@ymail.com>.
81134 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
81136         filevercmp: correct today's change
81137         * lib/filevercmp.c: Also handle coreutils' test inputs.
81138         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
81140         Fix regression in 'filevercmp' module. Thanks Sven Joachim
81141         for reporting it.
81142         * lib/filevercmp.c: Special handle for "", "." and "..".
81143         * tests/test-filevercmp.c: Enlarge the set suite.
81145 2009-04-07  Jim Meyering  <meyering@redhat.com>
81147         useless-if-before-free: show how to remove braced useless free, too
81148         * build-aux/useless-if-before-free: still only in a comment, though.
81150 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
81152         maint.mk: import changes to syntax-check macros from coreutils
81153         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
81154         Use them in the relevant macros.
81156 2009-04-06  Bruno Haible  <bruno@clisp.org>
81158         Fix unportable use of bit-fields.
81159         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
81160         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
81161         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
81163 2009-04-06  Bruno Haible  <bruno@clisp.org>
81165         Avoid test failures on AIX and OSF/1.
81166         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
81167         that malloc(0) = NULL.
81168         * tests/unicase/test-u8-tolower.c (check): Likewise.
81169         * tests/unicase/test-u8-totitle.c (check): Likewise.
81170         * tests/unicase/test-u8-toupper.c (check): Likewise.
81171         * tests/unicase/test-u16-casefold.c (check): Likewise.
81172         * tests/unicase/test-u16-tolower.c (check): Likewise.
81173         * tests/unicase/test-u16-totitle.c (check): Likewise.
81174         * tests/unicase/test-u16-toupper.c (check): Likewise.
81175         * tests/unicase/test-u32-casefold.c (check): Likewise.
81176         * tests/unicase/test-u32-tolower.c (check): Likewise.
81177         * tests/unicase/test-u32-totitle.c (check): Likewise.
81178         * tests/unicase/test-u32-toupper.c (check): Likewise.
81179         * tests/uninorm/test-u8-nfc.c (check): Likewise.
81180         * tests/uninorm/test-u8-nfd.c (check): Likewise.
81181         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
81182         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
81183         * tests/uninorm/test-u16-nfc.c (check): Likewise.
81184         * tests/uninorm/test-u16-nfd.c (check): Likewise.
81185         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
81186         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
81187         * tests/uninorm/test-u32-nfc.c (check): Likewise.
81188         * tests/uninorm/test-u32-nfd.c (check): Likewise.
81189         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
81190         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
81192 2009-04-05  Bruno Haible  <bruno@clisp.org>
81194         Work around an autoconf limitation.
81195         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
81196         comment line if it would be longer than 3 KB.
81198 2009-04-05  Bruno Haible  <bruno@clisp.org>
81200         Avoid test failure with libiconv-1.13.
81201         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
81202         of the expected test results.
81204 2009-04-05  Bruno Haible  <bruno@clisp.org>
81206         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
81207         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
81208         that it should be installed.
81210 2009-04-05  Bruno Haible  <bruno@clisp.org>
81212         * gnulib-tool: New option --copy-file.
81213         (func_usage): Document it.
81214         (func_dest_tmpfilename): Moved out of func_import.
81215         (func_add_file, func_update_file): New functions, extracted from
81216         func_import.
81217         (func_import): Update.
81219 2009-04-05  Karl Berry  <karl@gnu.org>
81221         * README: prominently mention gnulib-tool.
81222         Rearrange sections so getting the code is near the top.
81224 2009-04-05  Bruno Haible  <bruno@clisp.org>
81226         * lib/unicase.h: Mention u*_cmp2.
81227         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81228         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
81229         * lib/unicase/ulc-casecmp.c: Likewise.
81230         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
81231         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
81232         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
81233         unistr/u8-cmp.
81234         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
81235         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
81236         unistr/u16-cmp.
81237         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
81238         unistr/u32-cmp.
81240         * lib/uninorm.h: Mention u*_cmp2.
81241         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
81242         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
81243         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
81244         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
81245         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
81246         unistr/u8-cmp.
81247         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
81248         unistr/u16-cmp.
81249         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
81250         unistr/u32-cmp.
81252         New module 'unistr/u32-cmp2'.
81253         * lib/unistr/u32-cmp2.c: New file.
81254         * modules/unistr/u32-cmp2: New file.
81256         New module 'unistr/u16-cmp2'.
81257         * lib/unistr/u16-cmp2.c: New file.
81258         * modules/unistr/u16-cmp2: New file.
81260         New module 'unistr/u8-cmp2'.
81261         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
81262         * lib/unistr/u8-cmp2.c: New file.
81263         * lib/unistr/u-cmp2.h: New file.
81264         * modules/unistr/u8-cmp2: New file.
81266 2009-04-05  Bruno Haible  <bruno@clisp.org>
81268         * lib/unictype.h (uc_property_is_valid): New macro.
81269         * tests/unictype/test-pr_byname.c (main): Use it.
81271         * lib/unistr.h: Doc fixes.
81272         * lib/uniconv.h: Doc fixes.
81273         * lib/unictype.h: Doc fixes.
81275 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
81277         Port coreutils 7.2 to Solaris 8.
81279         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
81280         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
81281         for Solaris 8.  This is a bit of a hack, as it means it's the
81282         caller's responsibility to add -lnsl if needed, but most likely it
81283         won't be needed since only getaddrinfo uses this and getaddrinfo
81284         isn't needed on Solaris 8.
81286         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
81287         problem to Solaris 8 encountered with coreutils 7.2, which
81288         resulted in a message "fnmatch.c:292: warning: passing argument 4
81289         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
81290         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
81292 2009-04-03  Simon Josefsson  <simon@josefsson.org>
81294         * m4/ld-version-script.m4: Add FIXME comment.
81296 2009-04-02  Simon Josefsson  <simon@josefsson.org>
81298         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
81299         SOVERSION variable.
81301 2009-04-02  Bruno Haible  <bruno@clisp.org>
81303         * Makefile (info, html, dvi, pdf): Combine the rules.
81304         Suggested by Jim Meyering.
81306 2009-04-01  Bruno Haible  <bruno@clisp.org>
81308         * Makefile (info, html, dvi, pdf): New targets.
81309         Reported by Reuben Thomas <rrt@sc3d.org>.
81311 2009-04-01  Bruno Haible  <bruno@clisp.org>
81313         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
81314         can be put into PATH.
81315         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
81317 2009-04-01  Bruno Haible  <bruno@clisp.org>
81319         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
81321 2009-04-01  Bruno Haible  <bruno@clisp.org>
81323         Rename module 'visibility'.
81324         * modules/lib-symbol-visibility: Renamed from modules/visibility.
81325         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
81326         * doc/gnulib.texi: Update.
81327         * MODULES.html.sh (Misc): Update.
81328         * NEWS: Mention the change.
81330 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81332         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
81333         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
81334         Eric Blake <ebb9@byu.net> for review.
81335         * MODULES.html.sh: Add lib-msvc-compat.
81336         * doc/gnulib.texi: Link to new section.
81337         * m4/ld-output-def.m4: New file.
81338         * doc/ld-output-def.texi: New file.
81340 2009-04-01  Simon Josefsson  <simon@josefsson.org>
81342         Rename ld-version-script to lib-symbol-versions.  Suggested by
81343         Bruno Haible <bruno@clisp.org>.
81344         * modules/ld-version-script: Renamed to lib-symbol-versions.
81345         * doc/ld-version-script.texi: Fix module name.
81346         * MODULES.html.sh: Add lib-symbol-versions.
81348 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81350         * modules/u64-tests: New file.
81351         * tests/test-u64.c: New file.
81353 2009-03-04  Simon Josefsson  <simon@josefsson.org>
81355         * MODULES.html.sh: Mention u64.
81356         * modules/u64: New module.
81357         * modules/crypto/sha512: Depend on u64 module instead of providing
81358         u64.h.
81360 2009-03-27  Eric Blake  <ebb9@byu.net>
81362         test-strerror: make debugging EAI_SYSTEM easier
81363         * modules/getaddrinfo-tests (Depends-on): Add strerror.
81364         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
81365         failure was EAI_SYSTEM.
81367 2009-03-25  Bruno Haible  <bruno@clisp.org>
81369         Fix a problem with --enable-relocatable on Solaris 7.
81370         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
81371         since 2008-02-24.
81373 2009-03-25  Eric Blake  <ebb9@byu.net>
81375         test-sockets: avoid gcc warning
81376         * tests/test-sockets.c (main): Silence compiler warning.
81378 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81380         New modules nproc, pthread, contributed by Glen Lenker.
81382         * MODULES.html.sh: Add pthread, nproc.
81383         * lib/nproc.c: New file.
81384         * lib/nproc.h: New file.
81385         * lib/pthread.in.h: New file.
81386         * m4/pthread.m4: New file.
81387         * modules/nproc: New file.
81388         * modules/pthread: New file.
81390 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81392         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
81393         New variable.
81395 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
81397         filevercmp: handle simple~ and numbered.~3~ backup suffixes
81398         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
81399         * tests/test-filevercmp.c: Add tests for backup suffixes.
81401 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81403         * modules/stdlib (Depends-on): Add stdint, needed when defining
81404         struct random_data on, for example, HP-UX 10.20.  Reported by
81405         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
81407 2009-03-24  Simon Josefsson  <simon@josefsson.org>
81409         * lib/readline.c (readline): Call fflush on stdout after printing
81410         prompt.
81412 2009-03-20  Bruno Haible  <bruno@clisp.org>
81414         Remove dependency from 'close' module to -lws2_32 on native Windows.
81415         * lib/close-hook.h: New file.
81416         * lib/close-hook.c: New file.
81417         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
81418         w32sock.h.
81419         (_gl_close_fd_maybe_socket): Remove function.
81420         (rpl_close): Invoke execute_all_close_hooks instead of
81421         _gl_close_fd_maybe_socket.
81422         * lib/sockets.c: Include close-hook.h, w32sock.h.
81423         (close_fd_maybe_socket): New function, essentially from lib/close.c.
81424         (close_sockets_hook): New variable.
81425         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
81426         (gl_sockets_cleanup): Unregister it.
81427         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
81428         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
81429         * modules/close-hook: New file.
81430         * modules/close (Files): Remove lib/w32sock.h.
81431         (Depends-on): Add close-hook.
81432         (Link): Remove section.
81433         * modules/sockets (Files): Add lib/w32sock.h.
81434         (Depends-on): Add close-hook.
81435         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
81436         invocation.
81437         * NEWS: Mention that LIB_CLOSE is gone.
81439 2009-03-23  Eric Blake  <ebb9@byu.net>
81441         signal-tests: test previous patch
81442         * tests/test-signal.c: New file.
81443         * modules/signal-tests: Likewise.
81445         signal.h: always support 'volatile sig_atomic_t'
81446         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
81447         (gl_SIGNAL_H_DEFAULTS): Add a default.
81448         * modules/signal (Makefile.am): Substitute if needed.
81449         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
81450         users can blindly add volatile.
81451         * doc/posix-headers/signal.texi (signal.h): Document it.
81452         Reported by Matthew Woehlke.
81454 2009-03-23  Jim Meyering  <meyering@redhat.com>
81456         pathmax: PATH_MAX: use pathconf only when available
81457         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
81458         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
81459         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
81460         This avoids a link failure in a PSP cross-compilation environment
81461         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
81463         * lib/vasnprintf.c (divide): Fix typo in comment.
81465 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81467         * gnulib-tool (func_filter_filelist): Fix comment.
81469 2009-03-20  Bruno Haible  <bruno@clisp.org>
81471         Make sockets.h self-contained.
81472         * lib/sockets.c: Include sockets.h first.
81473         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
81475 2009-03-19  Eric Blake  <ebb9@byu.net>
81477         doc: mention more functions added in cygwin 1.7.0
81478         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
81479         addition.
81480         * doc/posix-functions/log2f.texi: Likewise.
81482 2009-03-19  Jim Meyering  <meyering@redhat.com>
81484         fsusage: avoid syntax error due to statement-before-declaration
81485         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
81486         after all declarations.  Reported by Matthew Woehlke in
81487         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
81489 2009-03-18  Eric Blake  <ebb9@byu.net>
81491         build-aux/compile: sync from automake
81492         * build-aux/compile: New file, from automake.
81493         * config/srclist.txt: Mention build-aux/compile.
81495 2009-03-17  Bruno Haible  <bruno@clisp.org>
81497         * lib/git-merge-changelog.c: Fix typo in comment.
81498         Reported by Reuben Thomas <rrt@sc3d.org>.
81500 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
81502         * m4/regex.m4: update and improve help for
81503         --without-included-regex.
81505 2009-03-17  Simon Josefsson  <simon@josefsson.org>
81507         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
81508         failure on missing include files.
81510 2009-03-17  Eric Blake  <ebb9@byu.net>
81512         doc: mention more functions added in cygwin 1.7.0
81513         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
81514         addition.
81515         * doc/posix-functions/fwscanf.texi: Likewise.
81516         * doc/posix-functions/swprintf.texi: Likewise.
81517         * doc/posix-functions/swscanf.texi: Likewise.
81518         * doc/posix-functions/vfwprintf.texi: Likewise.
81519         * doc/posix-functions/vfwscanf.texi: Likewise.
81520         * doc/posix-functions/vswprintf.texi: Likewise.
81521         * doc/posix-functions/vswscanf.texi: Likewise.
81522         * doc/posix-functions/vwprintf.texi: Likewise.
81523         * doc/posix-functions/vwscanf.texi: Likewise.
81524         * doc/posix-functions/wcscasecmp.texi: Likewise.
81525         * doc/posix-functions/wcsdup.texi: Likewise.
81526         * doc/posix-functions/wcsftime.texi: Likewise.
81527         * doc/posix-functions/wcsncasecmp.texi: Likewise.
81528         * doc/posix-functions/wprintf.texi: Likewise.
81529         * doc/posix-functions/wscanf.texi: Likewise.
81530         * doc/glibc-functions/gethostbyname2.texi: Likewise.
81532 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81534         maint.mk: really add $(AM_MAKEFLAGS)
81535         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
81536         was inadvertently omitted in the last commit.
81537         Spotted by Bruno Haible.
81539         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
81540         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
81541         $(AM_MAKEFLAGS)' rather than plain `make'.
81543         gnulib-tool: execute $MAKE not make
81544         * gnulib-tool: Default $MAKE to 'make'.
81545         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
81546         than make.  Initialize $MAKE in the do-autobuild script.
81548         gnulib-tool: use $MAKE not make in generated files
81549         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
81550         make, in generated files.  Initialize $MAKE in the do-autobuild
81551         script.
81553         * top/GNUmakefile (_have-git-version-gen): Fix typo.
81555         GNUmakefile: disable parallelism only for multiple, recursive targets
81556         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
81557         additions in the Makefile.
81558         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
81559         by Automake.
81560         (.NOTPARALLEL): Only disable parallel builds if multiple targets
81561         are listed on the command line and at least one of them is
81562         listed in $(ALL_RECURSIVE_TARGETS).
81564 2009-03-14  Bruno Haible  <bruno@clisp.org>
81566         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
81567         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
81568         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
81569         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
81570         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
81571         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
81572         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
81573         unistr/u8-uctomb.
81574         * modules/unistr/u8-strchr (Depends-on): Likewise.
81575         * modules/unistr/u8-strrchr (Depends-on): Likewise.
81576         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
81577         unistr/u16-uctomb.
81578         * modules/unistr/u16-strchr (Depends-on): Likewise.
81579         * modules/unistr/u16-strrchr (Depends-on): Likewise.
81581 2009-03-12  Bruno Haible  <bruno@clisp.org>
81583         Work around select() bug on Interix 3.5.
81584         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
81585         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
81586         * m4/select.m4: New file.
81587         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
81588         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
81589         * modules/select (Files): Add m4/select.m4.
81590         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
81591         * modules/nanosleep (Depends-on): Add select.
81592         * modules/poll (Depends-on): Likewise.
81593         * doc/posix-functions/select.texi: Mention the Interix bug.
81594         Reported by Markus Duft <mduft@gentoo.org>.
81596         * lib/select.c: Renamed from lib/winsock-select.c.
81597         * modules/select (Files): Add lib/select.c, remove
81598         lib/winsock-select.c.
81599         (configure.ac): Update.
81601 2009-03-12  Jim Meyering  <meyering@redhat.com>
81603         avoid gcc warnings about unused macro definitions
81604         * lib/readtokens.c (STREQ): Remove unused definition.
81605         * lib/xmalloc.c (SIZE_MAX): Likewise.
81606         * lib/openat-die.c (N_): Likewise.
81607         * lib/mountlist.c (SIZE_MAX): Remove definition.
81608         Instead, include <stdint.h>.
81609         * lib/readutmp.c: Likewise.
81610         * modules/readutmp (Depends-on): Add stdint.
81611         * modules/mountlist (Depends-on): Add stdint.
81612         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
81614 2009-03-10  Bruno Haible  <bruno@clisp.org>
81616         Tests for module 'mbmemcasecoll'.
81617         * modules/mbmemcasecoll-tests: New file.
81618         * tests/test-mbmemcasecoll1.sh: New file.
81619         * tests/test-mbmemcasecoll2.sh: New file.
81620         * tests/test-mbmemcasecoll3.sh: New file.
81621         * tests/test-mbmemcasecoll.c: New file.
81623         New module 'mbmemcasecoll'.
81624         * lib/mbmemcasecoll.h: New file.
81625         * lib/mbmemcasecoll.c: New file.
81626         * modules/mbmemcasecoll: New file.
81628         * tests/test-mbmemcasecmp.h: New file, extracted from
81629         tests/test-mbmemcasecmp.c.
81630         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
81631         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
81632         (main): Update.
81633         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
81635 2009-03-09  Bruno Haible  <bruno@clisp.org>
81637         Tests for module 'mbmemcasecmp'.
81638         * modules/mbmemcasecmp-tests: New file.
81639         * tests/test-mbmemcasecmp1.sh: New file.
81640         * tests/test-mbmemcasecmp2.sh: New file.
81641         * tests/test-mbmemcasecmp3.sh: New file.
81642         * tests/test-mbmemcasecmp.c: New file.
81644         New module 'mbmemcasecmp'.
81645         * lib/mbmemcasecmp.h: New file.
81646         * lib/mbmemcasecmp.c: New file.
81647         * modules/mbmemcasecmp: New file.
81649 2009-03-09  Bruno Haible  <bruno@clisp.org>
81651         Tests for module 'unicase/ulc-casecoll'.
81652         * modules/unicase/ulc-casecoll-tests: New file.
81653         * tests/unicase/test-ulc-casecoll1.sh: New file.
81654         * tests/unicase/test-ulc-casecoll2.sh: New file.
81655         * tests/unicase/test-ulc-casecoll.c: New file.
81657         New module 'unicase/ulc-casecoll'.
81658         * lib/unicase.h (ulc_casecoll): New declaration.
81659         * lib/unicase/ulc-casecoll.c: New file.
81660         * modules/unicase/ulc-casecoll: New file.
81662         New module 'unicase/ulc-casexfrm'.
81663         * lib/unicase.h (ulc_casexfrm): New declaration.
81664         * lib/unicase/ulc-casexfrm.c: New file.
81665         * modules/unicase/ulc-casexfrm: New file.
81667 2009-03-09  Bruno Haible  <bruno@clisp.org>
81669         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
81670         invocations.
81672         * m4/mbscasecmp.m4: Remove file.
81673         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
81674         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
81676         * m4/mbscasestr.m4: Remove file.
81677         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
81678         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
81680         * m4/mbschr.m4: Remove file.
81681         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
81682         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
81684         * m4/mbscspn.m4: Remove file.
81685         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
81686         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
81688         * m4/mbslen.m4: Remove file.
81689         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
81690         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
81692         * m4/mbsncasecmp.m4: Remove file.
81693         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
81694         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
81696         * m4/mbsnlen.m4: Remove file.
81697         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
81698         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
81700         * m4/mbspbrk.m4: Remove file.
81701         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
81702         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
81704         * m4/mbspcasecmp.m4: Remove file.
81705         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
81706         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
81708         * m4/mbsrchr.m4: Remove file.
81709         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
81710         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
81712         * m4/mbssep.m4: Remove file.
81713         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
81714         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
81716         * m4/mbsspn.m4: Remove file.
81717         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
81718         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
81720         * m4/mbsstr.m4: Remove file.
81721         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
81722         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
81724         * m4/mbstok_r.m4: Remove file.
81725         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
81726         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
81728         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
81730         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
81731         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
81733         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
81735 2009-03-08  Bruno Haible  <bruno@clisp.org>
81737         Tests for module 'unicase/ulc-casecmp'.
81738         * modules/unicase/ulc-casecmp-tests: New file.
81739         * tests/unicase/test-ulc-casecmp1.sh: New file.
81740         * tests/unicase/test-ulc-casecmp2.sh: New file.
81741         * tests/unicase/test-ulc-casecmp.c: New file.
81743         New module 'unicase/ulc-casecmp'.
81744         * lib/unicase.h (ulc_casecmp): New declaration.
81745         * lib/unicase/ulc-casecmp.c: New file.
81746         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
81747         'const SRC_UNIT *'.
81748         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
81749         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
81750         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
81751         * modules/unicase/ulc-casecmp: New file.
81753         Tests for module 'unicase/u32-is-cased'.
81754         * modules/unicase/u32-is-cased-tests: New file.
81755         * tests/unicase/test-u32-is-cased.c: New file.
81757         Tests for module 'unicase/u16-is-cased'.
81758         * modules/unicase/u16-is-cased-tests: New file.
81759         * tests/unicase/test-u16-is-cased.c: New file.
81761         Tests for module 'unicase/u8-is-cased'.
81762         * modules/unicase/u8-is-cased-tests: New file.
81763         * tests/unicase/test-u8-is-cased.c: New file.
81764         * tests/unicase/test-is-cased.h: New file.
81766         New module 'unicase/u32-is-cased'.
81767         * lib/unicase/u32-is-cased.c: New file.
81768         * modules/unicase/u32-is-cased: New file.
81770         New module 'unicase/u16-is-cased'.
81771         * lib/unicase/u16-is-cased.c: New file.
81772         * modules/unicase/u16-is-cased: New file.
81774         New module 'unicase/u8-is-cased'.
81775         * lib/unicase/u8-is-cased.c: New file.
81776         * lib/unicase/u-is-cased.h: New file.
81777         * modules/unicase/u8-is-cased: New file.
81779         Tests for module 'unicase/u32-is-casefolded'.
81780         * modules/unicase/u32-is-casefolded-tests: New file.
81781         * tests/unicase/test-u32-is-casefolded.c: New file.
81783         Tests for module 'unicase/u16-is-casefolded'.
81784         * modules/unicase/u16-is-casefolded-tests: New file.
81785         * tests/unicase/test-u16-is-casefolded.c: New file.
81787         Tests for module 'unicase/u8-is-casefolded'.
81788         * modules/unicase/u8-is-casefolded-tests: New file.
81789         * tests/unicase/test-u8-is-casefolded.c: New file.
81790         * tests/unicase/test-is-casefolded.h: New file.
81792         New module 'unicase/u32-is-casefolded'.
81793         * lib/unicase/u32-is-casefolded.c: New file.
81794         * modules/unicase/u32-is-casefolded: New file.
81796         New module 'unicase/u16-is-casefolded'.
81797         * lib/unicase/u16-is-casefolded.c: New file.
81798         * modules/unicase/u16-is-casefolded: New file.
81800         New module 'unicase/u8-is-casefolded'.
81801         * lib/unicase/u8-is-casefolded.c: New file.
81802         * modules/unicase/u8-is-casefolded: New file.
81804         Tests for module 'unicase/u32-is-titlecase'.
81805         * modules/unicase/u32-is-titlecase-tests: New file.
81806         * tests/unicase/test-u32-is-titlecase.c: New file.
81808         Tests for module 'unicase/u16-is-titlecase'.
81809         * modules/unicase/u16-is-titlecase-tests: New file.
81810         * tests/unicase/test-u16-is-titlecase.c: New file.
81812         Tests for module 'unicase/u8-is-titlecase'.
81813         * modules/unicase/u8-is-titlecase-tests: New file.
81814         * tests/unicase/test-u8-is-titlecase.c: New file.
81815         * tests/unicase/test-is-titlecase.h: New file.
81817         New module 'unicase/u32-is-titlecase'.
81818         * lib/unicase/u32-is-titlecase.c: New file.
81819         * modules/unicase/u32-is-titlecase: New file.
81821         New module 'unicase/u16-is-titlecase'.
81822         * lib/unicase/u16-is-titlecase.c: New file.
81823         * modules/unicase/u16-is-titlecase: New file.
81825         New module 'unicase/u8-is-titlecase'.
81826         * lib/unicase/u8-is-titlecase.c: New file.
81827         * modules/unicase/u8-is-titlecase: New file.
81829         Tests for module 'unicase/u32-is-lowercase'.
81830         * modules/unicase/u32-is-lowercase-tests: New file.
81831         * tests/unicase/test-u32-is-lowercase.c: New file.
81833         Tests for module 'unicase/u16-is-lowercase'.
81834         * modules/unicase/u16-is-lowercase-tests: New file.
81835         * tests/unicase/test-u16-is-lowercase.c: New file.
81837         Tests for module 'unicase/u8-is-lowercase'.
81838         * modules/unicase/u8-is-lowercase-tests: New file.
81839         * tests/unicase/test-u8-is-lowercase.c: New file.
81840         * tests/unicase/test-is-lowercase.h: New file.
81842         New module 'unicase/u32-is-lowercase'.
81843         * lib/unicase/u32-is-lowercase.c: New file.
81844         * modules/unicase/u32-is-lowercase: New file.
81846         New module 'unicase/u16-is-lowercase'.
81847         * lib/unicase/u16-is-lowercase.c: New file.
81848         * modules/unicase/u16-is-lowercase: New file.
81850         New module 'unicase/u8-is-lowercase'.
81851         * lib/unicase/u8-is-lowercase.c: New file.
81852         * modules/unicase/u8-is-lowercase: New file.
81854         Tests for module 'unicase/u32-is-uppercase'.
81855         * modules/unicase/u32-is-uppercase-tests: New file.
81856         * tests/unicase/test-u32-is-uppercase.c: New file.
81858         Tests for module 'unicase/u16-is-uppercase'.
81859         * modules/unicase/u16-is-uppercase-tests: New file.
81860         * tests/unicase/test-u16-is-uppercase.c: New file.
81862         Tests for module 'unicase/u8-is-uppercase'.
81863         * modules/unicase/u8-is-uppercase-tests: New file.
81864         * tests/unicase/test-u8-is-uppercase.c: New file.
81865         * tests/unicase/test-is-uppercase.h: New file.
81867         New module 'unicase/u32-is-uppercase'.
81868         * lib/unicase/u32-is-uppercase.c: New file.
81869         * modules/unicase/u32-is-uppercase: New file.
81871         New module 'unicase/u16-is-uppercase'.
81872         * lib/unicase/u16-is-uppercase.c: New file.
81873         * modules/unicase/u16-is-uppercase: New file.
81875         New module 'unicase/u8-is-uppercase'.
81876         * lib/unicase/u8-is-uppercase.c: New file.
81877         * modules/unicase/u8-is-uppercase: New file.
81879         New module 'unicase/u32-is-invariant'.
81880         * lib/unicase/u32-is-invariant.c: New file.
81881         * modules/unicase/u32-is-invariant: New file.
81883         New module 'unicase/u16-is-invariant'.
81884         * lib/unicase/u16-is-invariant.c: New file.
81885         * modules/unicase/u16-is-invariant: New file.
81887         New module 'unicase/u8-is-invariant'.
81888         * lib/unicase/u8-is-invariant.c: New file.
81889         * lib/unicase/invariant.h: New file.
81890         * lib/unicase/u-is-invariant.h: New file.
81891         * modules/unicase/u8-is-invariant: New file.
81893         Tests for module 'unicase/u32-casecoll'.
81894         * modules/unicase/u32-casecoll-tests: New file.
81895         * tests/unicase/test-u32-casecoll.c: New file.
81897         Tests for module 'unicase/u16-casecoll'.
81898         * modules/unicase/u16-casecoll-tests: New file.
81899         * tests/unicase/test-u16-casecoll.c: New file.
81901         Tests for module 'unicase/u8-casecoll'.
81902         * modules/unicase/u8-casecoll-tests: New file.
81903         * tests/unicase/test-u8-casecoll.c: New file.
81905         New module 'unicase/u32-casecoll'.
81906         * lib/unicase/u32-casecoll.c: New file.
81907         * modules/unicase/u32-casecoll: New file.
81909         New module 'unicase/u16-casecoll'.
81910         * lib/unicase/u16-casecoll.c: New file.
81911         * modules/unicase/u16-casecoll: New file.
81913         New module 'unicase/u8-casecoll'.
81914         * lib/unicase/u8-casecoll.c: New file.
81915         * lib/unicase/u-casecoll.h: New file.
81916         * modules/unicase/u8-casecoll: New file.
81918         New module 'unicase/u32-casexfrm'.
81919         * lib/unicase/u32-casexfrm.c: New file.
81920         * modules/unicase/u32-casexfrm: New file.
81922         New module 'unicase/u16-casexfrm'.
81923         * lib/unicase/u16-casexfrm.c: New file.
81924         * modules/unicase/u16-casexfrm: New file.
81926         New module 'unicase/u8-casexfrm'.
81927         * lib/unicase/u8-casexfrm.c: New file.
81928         * lib/unicase/u-casexfrm.h: New file.
81929         * modules/unicase/u8-casexfrm: New file.
81931         Tests for module 'unicase/u32-casecmp'.
81932         * modules/unicase/u32-casecmp-tests: New file.
81933         * tests/unicase/test-u32-casecmp.c: New file.
81935         Tests for module 'unicase/u16-casecmp'.
81936         * modules/unicase/u16-casecmp-tests: New file.
81937         * tests/unicase/test-u16-casecmp.c: New file.
81939         Tests for module 'unicase/u8-casecmp'.
81940         * modules/unicase/u8-casecmp-tests: New file.
81941         * tests/unicase/test-u8-casecmp.c: New file.
81942         * tests/unicase/test-casecmp.h: New file.
81944         New module 'unicase/u32-casecmp'.
81945         * lib/unicase/u32-casecmp.c: New file.
81946         * modules/unicase/u32-casecmp: New file.
81948         New module 'unicase/u16-casecmp'.
81949         * lib/unicase/u16-casecmp.c: New file.
81950         * modules/unicase/u16-casecmp: New file.
81952         New module 'unicase/u8-casecmp'.
81953         * lib/unicase/u8-casecmp.c: New file.
81954         * lib/unicase/u-casecmp.h: New file.
81955         * modules/unicase/u8-casecmp: New file.
81957         Tests for module 'unicase/u32-casefold'.
81958         * modules/unicase/u32-casefold-tests: New file.
81959         * tests/unicase/test-u32-casefold.c: New file.
81961         Tests for module 'unicase/u16-casefold'.
81962         * modules/unicase/u16-casefold-tests: New file.
81963         * tests/unicase/test-u16-casefold.c: New file.
81965         Tests for module 'unicase/u8-casefold'.
81966         * modules/unicase/u8-casefold-tests: New file.
81967         * tests/unicase/test-u8-casefold.c: New file.
81969         New module 'unicase/u32-casefold'.
81970         * lib/unicase/u32-casefold.c: New file.
81971         * modules/unicase/u32-casefold: New file.
81973         New module 'unicase/u16-casefold'.
81974         * lib/unicase/u16-casefold.c: New file.
81975         * modules/unicase/u16-casefold: New file.
81977         New module 'unicase/u8-casefold'.
81978         * lib/unicase/u8-casefold.c: New file.
81979         * lib/unicase/u-casefold.h: New file.
81980         * modules/unicase/u8-casefold: New file.
81982         New module 'unicase/tocasefold'.
81983         * lib/unicase/casefold.h: New file.
81984         * lib/unicase/tocasefold.c: New file.
81985         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
81986         * modules/unicase/tocasefold: New file.
81988         Tests for module 'unicase/u32-totitle'.
81989         * modules/unicase/u32-totitle-tests: New file.
81990         * tests/unicase/test-u32-totitle.c: New file.
81992         Tests for module 'unicase/u16-totitle'.
81993         * modules/unicase/u16-totitle-tests: New file.
81994         * tests/unicase/test-u16-totitle.c: New file.
81996         Tests for module 'unicase/u8-totitle'.
81997         * modules/unicase/u8-totitle-tests: New file.
81998         * tests/unicase/test-u8-totitle.c: New file.
82000         New module 'unicase/u32-totitle'.
82001         * lib/unicase/u32-totitle.c: New file.
82002         * modules/unicase/u32-totitle: New file.
82004         New module 'unicase/u16-totitle'.
82005         * lib/unicase/u16-totitle.c: New file.
82006         * modules/unicase/u16-totitle: New file.
82008         New module 'unicase/u8-totitle'.
82009         * lib/unicase/u8-totitle.c: New file.
82010         * lib/unicase/u-totitle.h: New file.
82011         * modules/unicase/u8-totitle: New file.
82013         Tests for module 'unicase/u32-tolower'.
82014         * modules/unicase/u32-tolower-tests: New file.
82015         * tests/unicase/test-u32-tolower.c: New file.
82017         Tests for module 'unicase/u16-tolower'.
82018         * modules/unicase/u16-tolower-tests: New file.
82019         * tests/unicase/test-u16-tolower.c: New file.
82021         Tests for module 'unicase/u8-tolower'.
82022         * modules/unicase/u8-tolower-tests: New file.
82023         * tests/unicase/test-u8-tolower.c: New file.
82025         New module 'unicase/u32-tolower'.
82026         * lib/unicase/u32-tolower.c: New file.
82027         * modules/unicase/u32-tolower: New file.
82029         New module 'unicase/u16-tolower'.
82030         * lib/unicase/u16-tolower.c: New file.
82031         * modules/unicase/u16-tolower: New file.
82033         New module 'unicase/u8-tolower'.
82034         * lib/unicase/u8-tolower.c: New file.
82035         * modules/unicase/u8-tolower: New file.
82037         Tests for module 'unicase/u32-toupper'.
82038         * modules/unicase/u32-toupper-tests: New file.
82039         * tests/unicase/test-u32-toupper.c: New file.
82041         Tests for module 'unicase/u16-toupper'.
82042         * modules/unicase/u16-toupper-tests: New file.
82043         * tests/unicase/test-u16-toupper.c: New file.
82045         Tests for module 'unicase/u8-toupper'.
82046         * modules/unicase/u8-toupper-tests: New file.
82047         * tests/unicase/test-u8-toupper.c: New file.
82049         New module 'unicase/u32-toupper'.
82050         * lib/unicase/u32-toupper.c: New file.
82051         * modules/unicase/u32-toupper: New file.
82053         New module 'unicase/u16-toupper'.
82054         * lib/unicase/u16-toupper.c: New file.
82055         * modules/unicase/u16-toupper: New file.
82057         New module 'unicase/u8-toupper'.
82058         * lib/unicase/u8-toupper.c: New file.
82059         * modules/unicase/u8-toupper: New file.
82061         New module 'unicase/u32-casemap'.
82062         * lib/unicase/u32-casemap.c: New file.
82063         * modules/unicase/u32-casemap: New file.
82065         New module 'unicase/u16-casemap'.
82066         * lib/unicase/u16-casemap.c: New file.
82067         * modules/unicase/u16-casemap: New file.
82069         New module 'unicase/u8-casemap'.
82070         * lib/unicase/unicasemap.h: New file.
82071         * lib/unicase/u8-casemap.c: New file.
82072         * lib/unicase/u-casemap.h: New file.
82073         * modules/unicase/u8-casemap: New file.
82075         New module 'unicase/special-casing'.
82076         * lib/unicase/special-casing.h: New file.
82077         * lib/unicase/special-casing.c: New file.
82078         * lib/unicase/special-casing-table.gperf: New file, generated by
82079         gen-uni-tables.c.
82080         * modules/unicase/special-casing: New file.
82082         Tests for module 'unicase/locale-language'.
82083         * modules/unicase/locale-language-tests: New file.
82084         * tests/unicase/test-locale-language.sh: New file.
82085         * tests/unicase/test-locale-language.c: New file.
82087         New module 'unicase/locale-language'.
82088         * lib/unicase/locale-language.c: New file.
82089         * lib/unicase/locale-languages.gperf: New file.
82090         * modules/unicase/locale-language: New file.
82092         Generate more tables for case conversion and case folding.
82093         * lib/gen-uni-tables.c (SCC_*): New enum items.
82094         (struct special_casing_rule): New type.
82095         (casing_rules, num_casing_rules, allocated_casing_rules): New
82096         variables.
82097         (add_casing_rule, fill_casing_rules): New functions.
82098         (struct casefold_rule): New type.
82099         (casefolding_rules, num_casefolding_rules,
82100         allocated_casefolding_rules): New variables.
82101         (fill_casefolding_rules): New function.
82102         (unicode_casefold): New variable.
82103         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
82104         sort_casing_rules, output_casing_rules): New functions.
82105         (main): Accept to more arguments: SpecialCasing.txt and
82106         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
82107         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
82108         Output mapping for casefolding.
82110         * lib/unicase.h: Include stdbool.h, uninorm.h.
82111         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
82112         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
82113         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
82114         arguments.
82115         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
82116         resultp arguments.
82117         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
82118         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
82119         resultp arguments.
82120         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
82121         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
82122         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
82123         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
82124         declarations.
82125         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
82127 2009-03-08  Bruno Haible  <bruno@clisp.org>
82129         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82130         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
82131         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
82132         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82134 2009-03-07  Bruno Haible  <bruno@clisp.org>
82136         Adjust u*_normcmp, u*_normcoll API.
82137         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
82138         u16_normcoll, u32_normcoll): Change failure conventions.
82139         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
82140         errno and return -1.
82141         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
82143 2009-03-07  Bruno Haible  <bruno@clisp.org>
82145         Tests for module 'uninorm/u32-normcoll'.
82146         * modules/uninorm/u32-normcoll-tests: New file.
82147         * tests/uninorm/test-u32-normcoll.c: New file.
82149         Tests for module 'uninorm/u16-normcoll'.
82150         * modules/uninorm/u16-normcoll-tests: New file.
82151         * tests/uninorm/test-u16-normcoll.c: New file.
82153         Tests for module 'uninorm/u8-normcoll'.
82154         * modules/uninorm/u8-normcoll-tests: New file.
82155         * tests/uninorm/test-u8-normcoll.c: New file.
82157 2009-03-07  Bruno Haible  <bruno@clisp.org>
82159         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
82160         tests/uninorm/test-u32-normcmp.c.
82161         * tests/uninorm/test-u32-normcmp.c: Include it.
82162         (test_nonascii): New function, extracted from main. Add some more
82163         tests.
82164         (main): Invoke test_ascii and test_nonascii.
82165         * modules/uninorm/u32-normcmp-tests (Files): Add
82166         tests/uninorm/test-u32-normcmp.h.
82167         (Depends-on): Remove uninorm/u32-normcmp.
82169         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
82170         tests/uninorm/test-u16-normcmp.c.
82171         * tests/uninorm/test-u16-normcmp.c: Include it.
82172         (test_nonascii): New function, extracted from main. Add some more
82173         tests.
82174         (main): Invoke test_ascii and test_nonascii.
82175         * modules/uninorm/u16-normcmp-tests (Files): Add
82176         tests/uninorm/test-u16-normcmp.h.
82177         (Depends-on): Remove uninorm/u16-normcmp.
82179         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
82180         tests/uninorm/test-u8-normcmp.c.
82181         * tests/uninorm/test-u8-normcmp.c: Include it.
82182         (test_nonascii): New function, extracted from main. Add some more
82183         tests.
82184         (main): Invoke test_ascii and test_nonascii.
82185         * modules/uninorm/u8-normcmp-tests (Files): Add
82186         tests/uninorm/test-u8-normcmp.h.
82187         (Depends-on): Remove uninorm/u8-normcmp.
82189 2009-03-07  Bruno Haible  <bruno@clisp.org>
82191         New module 'uninorm/u32-normcoll'.
82192         * lib/uninorm/u32-normcoll.c: New file.
82193         * modules/uninorm/u32-normcoll: New file.
82195         New module 'uninorm/u16-normcoll'.
82196         * lib/uninorm/u16-normcoll.c: New file.
82197         * modules/uninorm/u16-normcoll: New file.
82199         New module 'uninorm/u8-normcoll'.
82200         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
82201         declarations.
82202         * lib/uninorm/u8-normcoll.c: New file.
82203         * lib/uninorm/u-normcoll.h: New file.
82204         * modules/uninorm/u8-normcoll: New file.
82206         New module 'uninorm/u32-normxfrm'.
82207         * lib/uninorm/u32-normxfrm.c: New file.
82208         * modules/uninorm/u32-normxfrm: New file.
82210         New module 'uninorm/u16-normxfrm'.
82211         * lib/uninorm/u16-normxfrm.c: New file.
82212         * modules/uninorm/u16-normxfrm: New file.
82214         New module 'uninorm/u8-normxfrm'.
82215         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
82216         declarations.
82217         * lib/uninorm/u8-normxfrm.c: New file.
82218         * lib/uninorm/u-normxfrm.h: New file.
82219         * modules/uninorm/u8-normxfrm: New file.
82221 2009-03-07  Bruno Haible  <bruno@clisp.org>
82223         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
82224         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
82225         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
82227 2009-03-07  Bruno Haible  <bruno@clisp.org>
82229         New module 'memxfrm'.
82230         * lib/memxfrm.h: New file.
82231         * lib/memxfrm.c: New file.
82232         * modules/memxfrm: New file.
82234 2009-03-07  Bruno Haible  <bruno@clisp.org>
82236         New module 'memcmp2'.
82237         * lib/memcmp2.h: New file.
82238         * lib/memcmp2.c: New file.
82239         * modules/memcmp2: New file.
82241 2009-03-07  Bruno Haible  <bruno@clisp.org>
82243         Tests for module 'uninorm/decomposing-form'.
82244         * modules/uninorm/decomposing-form-tests: New file.
82245         * tests/uninorm/test-decomposing-form.c: New file.
82247         New module 'uninorm/decomposing-form'.
82248         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
82249         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
82250         Add 'decomposing_variant' field.
82251         * lib/uninorm/decomposing-form.c: New file.
82252         * lib/uninorm/nfc.c (uninorm_nfc): Update.
82253         * lib/uninorm/nfd.c (uninorm_nfd): Update.
82254         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
82255         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
82256         * modules/uninorm/decomposing-form: New file.
82257         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
82258         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
82260 2009-03-07  Bruno Haible  <bruno@clisp.org>
82262         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
82263         strings.
82265 2009-03-06  Bruno Haible  <bruno@clisp.org>
82267         Tests for module 'uninorm/u32-normcmp'.
82268         * tests/uninorm/test-u32-normcmp.c: New file.
82269         * modules/uninorm/u32-normcmp-tests: New file.
82271         Tests for module 'uninorm/u16-normcmp'.
82272         * tests/uninorm/test-u16-normcmp.c: New file.
82273         * modules/uninorm/u16-normcmp-tests: New file.
82275         Tests for module 'uninorm/u8-normcmp'.
82276         * tests/uninorm/test-u8-normcmp.c: New file.
82277         * modules/uninorm/u8-normcmp-tests: New file.
82279         New module 'uninorm/u32-normcmp'.
82280         * lib/uninorm/u32-normcmp.c: New file.
82281         * modules/uninorm/u32-normcmp: New file.
82283         New module 'uninorm/u16-normcmp'.
82284         * lib/uninorm/u16-normcmp.c: New file.
82285         * modules/uninorm/u16-normcmp: New file.
82287         New module 'uninorm/u8-normcmp'.
82288         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
82289         declarations.
82290         * lib/uninorm/u8-normcmp.c: New file.
82291         * lib/uninorm/u-normcmp.h: New file.
82292         * modules/uninorm/u8-normcmp: New file.
82294 2009-03-06  Bruno Haible  <bruno@clisp.org>
82296         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
82297         Reported by Eric Blake.
82299 2009-03-06  Eric Blake  <ebb9@byu.net>
82300             Bruno Haible  <bruno@clisp.org>
82302         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
82303         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
82304         condition.
82305         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82306         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
82307         condition.
82308         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
82310 2009-03-06  Eric Blake  <ebb9@byu.net>
82312         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
82313         to avoid compiler warnings.
82314         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
82316 2009-03-05  Bruno Haible  <bruno@clisp.org>
82318         * tests/test-ftell.c (main): Disable test beyond end of file on
82319         FreeMiNT.
82320         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82322 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
82324         * lib/filevercmp.c: Move hidden files up in ordering.
82325         * tests/test-filevercmp.c: Add tests for hidden files.
82327 2009-03-04  Bruno Haible  <bruno@clisp.org>
82329         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
82330         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
82331         AM_CFLAGS.
82332         Reported by Simon Josefsson.
82334 2009-03-03  Bruno Haible  <bruno@clisp.org>
82336         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
82337         Reported by Simon Josefsson.
82339         * doc/ld-version-script.texi: Update node reference.
82341 2009-03-03  Bruno Haible  <bruno@clisp.org>
82343         * modules/visibility (License): Change to 'unlimited'.
82344         Suggested by Simon Josefsson.
82346 2009-03-03  Jim Meyering  <meyering@redhat.com>
82348         unlinkdir: cannot_unlink_dir may modify process state
82349         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
82350         it's neither thread-safe nor appropriate for use in a library.
82352 2009-03-03  Eric Blake  <ebb9@byu.net>
82354         test-closein: silence test under Darwin
82355         * tests/test-closein.sh: Ignore stderr from cat, since we don't
82356         care if it dies from EPIPE or EBADF.
82358 2009-03-03  Bruno Haible  <bruno@clisp.org>
82360         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
82361         earlier.
82362         * doc/visibility.texi: Fix @node and @section.
82364 2009-03-03  Simon Josefsson  <simon@josefsson.org>
82366         * doc/gnulib.texi: Link to sections for ld version script and
82367         visibility.
82368         * doc/visibility.texi: Add @node and @section.
82369         * modules/ld-version-script: New module.
82370         * m4/ld-version-script.m4: New file.
82371         * doc/ld-version-script.texi: New file.
82373 2009-03-02  David Lutterkort  <lutter@redhat.com>
82375         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
82376         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82378 2009-03-02  Bruno Haible  <bruno@clisp.org>
82380         * doc/visibility.texi: Mention libtool's -export-symbols option.
82382 2009-03-02  Jim Meyering  <meyering@redhat.com>
82384         announce-gen: new option: --no-print-checksums
82385         * build-aux/announce-gen (usage): Describe it.
82386         (print_checksums): Print a newline here, not in the [*] footnote.
82387         (main): Honor it.
82389 2009-03-01  Bruno Haible  <bruno@clisp.org>
82391         Use socklen_t in the native Windows replacements prototypes.
82392         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
82393         instead of 'int'.
82394         * lib/getsockopt.c (rpl_getsockopt): Likewise.
82395         * lib/setsockopt.c (rpl_setsockopt): Likewise.
82396         * modules/getsockopt (Depends-on): Add socklen.
82397         * modules/setsockopt (Depends-on): Add socklen.
82399 2009-03-01  Bruno Haible  <bruno@clisp.org>
82401         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
82402         least 4.2.
82404 2009-03-01  Eric Blake  <ebb9@byu.net>
82405             Bruno Haible  <bruno@clisp.org>
82407         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
82408         error messages.
82409         * lib/wait-process.c (wait_subprocess): Omit error message about
82410         deadly signal sent to the child of termsigp != NULL.
82412 2009-03-01  Eric Blake  <ebb9@byu.net>
82414         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
82416 2009-03-01  Bruno Haible  <bruno@clisp.org>
82418         Avoid a gcc warning.
82419         * tests/test-sched.c (b): Make global.
82420         Reported by Eric Blake.
82422 2009-01-19  Martin Lambers  <marlam@marlam.de>
82424         Provide POSIX semantics for socket timeout options on W32.
82425         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
82426         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
82427         * modules/setsockopt: Depend on sys_time module for struct timeval.
82428         * modules/getsockopt: Depend on sys_time module for struct timeval.
82430 2009-03-01  Simon Josefsson  <simon@josefsson.org>
82432         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
82433         __USE_GNU, for consistency with netdb.in.h.
82434         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82436 2009-03-01  Bruno Haible  <bruno@clisp.org>
82438         More support for FreeMiNT.
82439         * lib/fseeko.c (rpl_fseeko): Complete last commit.
82440         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82442 2009-03-01  Bruno Haible  <bruno@clisp.org>
82444         More support for FreeMiNT.
82445         * lib/fpurge.c (fpurge): Correct last commit.
82446         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82448 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82450         Fix unportable awk script in vc-list-files.
82451         * build-aux/vc-list-files: In the replacement awk script, use
82452         substr with a second argument of 1, not zero.
82453         Report by Simon Josefsson.
82455 2009-02-28  Bruno Haible  <bruno@clisp.org>
82457         More support for FreeMiNT.
82458         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
82459         to FreeMiNT today.
82460         * lib/fwriting.c (fwriting): Likewise.
82461         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
82463 2009-02-28  Bruno Haible  <bruno@clisp.org>
82465         * tests/test-freadseek.c (main): Disable test beyond end of file on
82466         FreeMiNT.
82467         * tests/test-ftello.c (main): Likewise.
82468         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
82470 2009-02-28  Bruno Haible  <bruno@clisp.org>
82472         Add tentative support for FreeMiNT.
82473         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
82474         * lib/fpurge.c (fpurge): Likewise.
82475         * lib/freadable.c (freadable): Likewise.
82476         * lib/freading.c (freading): Likewise.
82477         * lib/freadptr.c (freadptr): Likewise.
82478         * lib/freadseek.c (freadptrinc): Likewise.
82479         * lib/fseeko.c (rpl_fseeko): Likewise.
82480         * lib/fseterr.c (fseterr): Likewise.
82481         * lib/fwritable.c (fwritable): Likewise.
82482         * lib/fwriting.c (fwriting): Likewise.
82483         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
82484         Hourihane.
82485         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
82487 2009-02-28  Bruno Haible  <bruno@clisp.org>
82489         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
82490         SIGCHLD.
82491         Reported by Jim Meyering.
82493 2009-02-28  Bruno Haible  <bruno@clisp.org>
82495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
82496         Mention the results of these tests on various platforms.
82497         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
82498         order.
82499         * doc/posix-functions/printf.texi: Likewise.
82500         * doc/posix-functions/snprintf.texi: Likewise.
82501         * doc/posix-functions/sprintf.texi: Likewise.
82502         * doc/posix-functions/vfprintf.texi: Likewise.
82503         * doc/posix-functions/vprintf.texi: Likewise.
82504         * doc/posix-functions/vsnprintf.texi: Likewise.
82505         * doc/posix-functions/vsprintf.texi: Likewise.
82506         * doc/glibc-functions/obstack_printf.texi: Likewise.
82507         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
82509 2009-02-28  Bruno Haible  <bruno@clisp.org>
82511         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
82512         Reported by Loïc Minier <lool@dooz.org>.
82514 2009-02-27  Bruno Haible  <bruno@clisp.org>
82516         * gnulib-tool (func_import): Make the sed expression used to create the
82517         sed script for updating the .gitignore file POSIX compliant.
82518         Reported by Eric Blake.
82520 2009-02-27  Bruno Haible  <bruno@clisp.org>
82522         * gnulib-tool (sed): Don't alias as "sed --posix".
82523         Reported by Eric Blake.
82525 2009-02-27  Bruno Haible  <bruno@clisp.org>
82527         Avoid test link errors.
82528         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
82529         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
82530         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
82531         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
82532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82534 2009-02-27  Bruno Haible  <bruno@clisp.org>
82536         Avoid spurious "(cached)" in configure output.
82537         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
82538         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
82539         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
82540         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
82541         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
82542         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
82543         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
82544         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
82545         Reported by Eric Blake.
82547 2009-02-27  Eric Blake  <ebb9@byu.net>
82549         printf: fix regression in previous patch
82550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
82552 2009-02-27  Bruno Haible  <bruno@clisp.org>
82554         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
82555         value.
82556         * lib/stdint.in.h: Likewise.
82557         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
82559 2009-02-27  Eric Blake  <ebb9@byu.net>
82561         doc: mention more functions added in cygwin 1.7.0
82562         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
82563         addition.
82564         * doc/posix-functions/open_wmemstream.texi: Likewise.
82565         * doc/posix-functions/wcsnlen.texi: Likewise.
82566         * doc/posix-functions/wcsnrtombs.texi: Likewise.
82567         * doc/posix-functions/wcstod.texi: Likewise.
82568         * doc/posix-functions/wcstof.texi: Likewise.
82569         * doc/posix-functions/wcstoimax.texi: Likewise.
82570         * doc/posix-functions/wcstok.texi: Likewise.
82571         * doc/posix-functions/wcstoumax.texi: Likewise.
82573         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
82574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
82575         * doc/posix-functions/fprintf.texi: Update.
82576         * doc/posix-functions/printf.texi: Update.
82577         * doc/posix-functions/snprintf.texi: Update.
82578         * doc/posix-functions/sprintf.texi: Update.
82579         * doc/posix-functions/vfprintf.texi: Update.
82580         * doc/posix-functions/vprintf.texi: Update.
82581         * doc/posix-functions/vsnprintf.texi: Update.
82582         * doc/posix-functions/vsprintf.texi: Update.
82583         * doc/glibc-functions/obstack_printf.texi: Update.
82584         * doc/glibc-functions/obstack_vprintf.texi: Update.
82586 2009-02-26  Eric Blake  <ebb9@byu.net>
82588         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
82589         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
82590         compilation bug by using runtime conversion.
82591         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
82592         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
82593         * modules/ceill-tests (Files): Use nan.h.
82594         * modules/floorl-tests (Files): Likewise.
82595         * modules/frexpl-tests (Files): Likewise.
82596         * modules/isnanl-tests (Files): Likewise.
82597         * modules/ldexpl-tests (Files): Likewise.
82598         * modules/roundl-tests (Files): Likewise.
82599         * modules/truncl-tests (Files): Likewise.
82600         * tests/test-ceill.c (main): Use a working NaN.
82601         * tests/test-floorl.c (main): Likewise.
82602         * tests/test-frexpl.c (main): Likewise.
82603         * tests/test-isnan.c (test_long_double): Likewise.
82604         * tests/test-isnanl.h (main): Likewise.
82605         * tests/test-ldexpl.h (main): Likewise.
82606         * tests/test-roundl.h (main): Likewise.
82607         * tests/test-truncl.h (main): Likewise.
82608         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
82610 2009-02-26  Eric Blake  <ebb9@byu.net>
82611             Bruno Haible  <bruno@clisp.org>
82613         Work around a *printf bug with %ls on Solaris.
82614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
82615         precision is specified, sprintf stops converting the wide string
82616         argument when the number of bytes that have been produced by this
82617         conversion equals or exceeds the precision.
82618         * doc/posix-functions/fprintf.texi: Update.
82619         * doc/posix-functions/printf.texi: Update.
82620         * doc/posix-functions/snprintf.texi: Update.
82621         * doc/posix-functions/sprintf.texi: Update.
82622         * doc/posix-functions/vfprintf.texi: Update.
82623         * doc/posix-functions/vprintf.texi: Update.
82624         * doc/posix-functions/vsnprintf.texi: Update.
82625         * doc/posix-functions/vsprintf.texi: Update.
82626         * doc/glibc-functions/obstack_printf.texi: Update.
82627         * doc/glibc-functions/obstack_vprintf.texi: Update.
82629 2009-02-26  Eric Blake  <ebb9@byu.net>
82631         stdlib: favor compiler check of random.h
82632         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
82633         to avoid an ObjC random.h installed by Swarm.
82635 2009-02-26  Bruno Haible  <bruno@clisp.org>
82637         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
82638         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
82639         Reported by Gary V. Vaughan <gary@gnu.org>.
82641 2009-02-26  Bruno Haible  <bruno@clisp.org>
82643         Fix *printf behaviour regarding the %ls directive.
82644         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
82645         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
82646         NEED_PRINTF_DIRECTIVE_LS.
82647         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
82648         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
82649         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
82650         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
82651         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
82652         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
82653         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
82654         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
82655         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
82656         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
82657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
82658         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
82659         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
82660         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
82661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
82662         * doc/posix-functions/fprintf.texi: Update.
82663         * doc/posix-functions/printf.texi: Update.
82664         * doc/posix-functions/snprintf.texi: Update.
82665         * doc/posix-functions/sprintf.texi: Update.
82666         * doc/posix-functions/vfprintf.texi: Update.
82667         * doc/posix-functions/vprintf.texi: Update.
82668         * doc/posix-functions/vsnprintf.texi: Update.
82669         * doc/posix-functions/vsprintf.texi: Update.
82670         * doc/glibc-functions/obstack_printf.texi: Update.
82671         * doc/glibc-functions/obstack_vprintf.texi: Update.
82672         Reported by Eric Blake.
82674 2009-02-25  Bruno Haible  <bruno@clisp.org>
82676         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
82677         with known value.
82678         Reported by Gary V. Vaughan <gary@gnu.org>.
82680 2009-02-25  Bruno Haible  <bruno@clisp.org>
82682         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
82683         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
82684         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
82685         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
82686         Reported by Gary V. Vaughan <gary@gnu.org>.
82688 2009-02-25  Bruno Haible  <bruno@clisp.org>
82690         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
82691         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
82692         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
82693         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
82694         Reported by Gary V. Vaughan <gary@gnu.org>.
82696 2009-02-25  Eric Blake  <ebb9@byu.net>
82698         tests: skip fseek/ftell tests if ungetc is broken
82699         * m4/ungetc.m4: New file.
82700         * modules/fseek-tests: Split test, so ungetc dependency is
82701         separate from rest of test.
82702         * modules/fseeko-tests: Likewise.
82703         * modules/ftell-tests: Likewise.
82704         * modules/ftello-tests: Likewise.
82705         * tests/test-fseek.c (main): Isolate ungetc dependency.
82706         * tests/test-fseeko.c (main): Likewise.
82707         * tests/test-ftell.c (main): Likewise.
82708         * tests/test-ftello.c (main): Likewise.
82709         * tests/test-fseek2.sh: New file.
82710         * tests/test-fseeko2.sh: Likewise.
82711         * tests/test-ftell2.sh: Likewise.
82712         * tests/test-ftello2.sh: Likewise.
82714 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
82716         test-getaddrinfo: fix usage of skip return code 77
82717         * tests/test-gettaddrinfo.c: Return skip code 77 only
82718         for first occurrence of skip (4x77 is not 77)
82720 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
82722         strtod: avoid C99 decl-after-statement
82723         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
82725 2009-02-24  Eric Blake  <ebb9@byu.net>
82727         strtod: detect HP-UX 11.31 bug
82728         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
82729         Reported by Gary V. Vaughan.
82731 2009-02-23  Bruno Haible  <bruno@clisp.org>
82733         Fix invalid read past end of memory block.
82734         * lib/vasnprintf.c (DCHAR_SET): Define.
82735         (local_wcslen): Define only when needed.
82736         (local_strnlen, local_wcsnlen): New functions.
82737         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
82738         directives that involve a conversion ourselves.
82739         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
82740         wcsnlen, mbrtowc, wcrtomb.
82741         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
82742         * tests/test-vasprintf-posix.c (test_function): Likewise.
82743         * tests/test-snprintf-posix.h (test_function): Likewise.
82744         * tests/test-sprintf-posix.h (test_function): Likewise.
82745         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82747 2009-02-22  Bruno Haible  <bruno@clisp.org>
82749         Implement new clarified decomposition of Hangul syllables.
82750         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
82751         of type LTV, return only a pairwise decomposition.
82752         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
82753         Likewise.
82754         * tests/uninorm/test-decomposition.c (main): Updated expected result.
82755         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
82756         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
82758 2009-02-22  Bruno Haible  <bruno@clisp.org>
82760         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
82761         zero-length results and shrink excess allocated memory.
82762         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
82763         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
82764         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
82765         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
82766         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
82767         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
82768         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
82769         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
82770         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
82771         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
82772         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
82773         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
82775 2009-02-21  Bruno Haible  <bruno@clisp.org>
82777         * doc/gnulib.texi: Include safe-alloc.texi earlier.
82778         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
82779         spaces after a period. Put a space between a macro name and its
82780         argument list. Trivial rewordings.
82781         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
82782         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
82783         (main): Return 0 explicitly.
82785 2009-02-21  Bruno Haible  <bruno@clisp.org>
82787         Tests for module 'uninorm/filter'.
82788         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
82789         * modules/uninorm/filter-tests: New file.
82791         New module 'uninorm/filter'.
82792         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
82793         uninorm_filter_flush, uninorm_filter_free): New declarations.
82794         * lib/uninorm/uninorm-filter.c: New file.
82795         * modules/uninorm/filter: New file.
82797 2009-02-21  Bruno Haible  <bruno@clisp.org>
82799         Tests for module 'uninorm/nfkc'.
82800         * tests/uninorm/test-nfkc.c: New file.
82801         * tests/uninorm/test-u8-nfkc.c: New file.
82802         * tests/uninorm/test-u16-nfkc.c: New file.
82803         * tests/uninorm/test-u32-nfkc.c: New file.
82804         * tests/uninorm/test-u32-nfkc-big.sh: New file.
82805         * tests/uninorm/test-u32-nfkc-big.c: New file.
82806         * modules/uninorm/nfkc-tests: New file.
82808         New module 'uninorm/nfkc'.
82809         * lib/uninorm/nfkc.c: New file.
82810         * modules/uninorm/nfkc: New file.
82812         Tests for module 'uninorm/nfkd'.
82813         * tests/uninorm/test-nfkd.c: New file.
82814         * tests/uninorm/test-u8-nfkd.c: New file.
82815         * tests/uninorm/test-u16-nfkd.c: New file.
82816         * tests/uninorm/test-u32-nfkd.c: New file.
82817         * tests/uninorm/test-u32-nfkd-big.sh: New file.
82818         * tests/uninorm/test-u32-nfkd-big.c: New file.
82819         * modules/uninorm/nfkd-tests: New file.
82821         New module 'uninorm/nfkd'.
82822         * lib/uninorm/nfkd.c: New file.
82823         * modules/uninorm/nfkd: New file.
82825         Tests for module 'uninorm/nfc'.
82826         * tests/uninorm/test-nfc.c: New file.
82827         * tests/uninorm/test-u8-nfc.c: New file.
82828         * tests/uninorm/test-u16-nfc.c: New file.
82829         * tests/uninorm/test-u32-nfc.c: New file.
82830         * tests/uninorm/test-u32-nfc-big.sh: New file.
82831         * tests/uninorm/test-u32-nfc-big.c: New file.
82832         * modules/uninorm/nfc-tests: New file.
82834         New module 'uninorm/nfc'.
82835         * lib/uninorm/nfc.c: New file.
82836         * modules/uninorm/nfc: New file.
82838         Tests for module 'uninorm/nfd'.
82839         * tests/uninorm/test-nfd.c: New file.
82840         * tests/uninorm/test-u8-nfd.c: New file.
82841         * tests/uninorm/test-u16-nfd.c: New file.
82842         * tests/uninorm/test-u32-nfd.c: New file.
82843         * tests/uninorm/test-u32-nfd-big.sh: New file.
82844         * tests/uninorm/test-u32-nfd-big.c: New file.
82845         * tests/uninorm/test-u32-normalize-big.h: New file.
82846         * tests/uninorm/test-u32-normalize-big.c: New file.
82847         * tests/uninorm/NormalizationTest.txt: New file, created from
82848         Unicode 5.1.0 NormalizationTest.txt.
82849         * modules/uninorm/nfd-tests: New file.
82851         New module 'uninorm/nfd'.
82852         * lib/uninorm/nfd.c: New file.
82853         * modules/uninorm/nfd: New file.
82855         New module 'uninorm/u32-normalize'.
82856         * lib/uninorm/u32-normalize.c: New file.
82857         * modules/uninorm/u32-normalize: New file.
82859         New module 'uninorm/u16-normalize'.
82860         * lib/uninorm/u16-normalize.c: New file.
82861         * modules/uninorm/u16-normalize: New file.
82863         New module 'uninorm/u8-normalize'.
82864         * lib/uninorm/u8-normalize.c: New file.
82865         * lib/uninorm/normalize-internal.h: New file.
82866         * lib/uninorm/u-normalize-internal.h: New file.
82867         * modules/uninorm/u8-normalize: New file.
82869         New module 'uninorm/decompose-internal'.
82870         * lib/uninorm/decompose-internal.c: New file.
82871         * modules/uninorm/decompose-internal: New file.
82873         Tests for module 'uninorm/composition'.
82874         * tests/uninorm/test-composition.c: New file.
82875         * modules/uninorm/composition-tests: New file.
82877         New module 'uninorm/composition'.
82878         * lib/uninorm/composition.c: New file.
82879         * lib/uninorm/composition-table.gperf: New file, generated by
82880         gen-uni-tables.
82881         * modules/uninorm/composition: New file.
82883         Tests for module 'uninorm/compat-decomposition'.
82884         * tests/uninorm/test-compat-decomposition.c: New file.
82885         * modules/uninorm/compat-decomposition-tests: New file.
82887         New module 'uninorm/compat-decomposition'.
82888         * lib/uninorm/decompose-internal.h: New file.
82889         * lib/uninorm/compat-decomposition.c: New file.
82890         * modules/uninorm/compat-decomposition: New file.
82892         Tests for module 'uninorm/canonical-decomposition'.
82893         * tests/uninorm/test-canonical-decomposition.c: New file.
82894         * modules/uninorm/canonical-decomposition-tests: New file.
82896         New module 'uninorm/canonical-decomposition'.
82897         * lib/uninorm/canonical-decomposition.c: New file.
82898         * modules/uninorm/canonical-decomposition: New file.
82900         Tests for module 'uninorm/decomposition'.
82901         * tests/uninorm/test-decomposition.c: New file.
82902         * modules/uninorm/decomposition-tests: New file.
82904         New module 'uninorm/decomposition'.
82905         * lib/uninorm/decomposition.c: New file.
82906         * modules/uninorm/decomposition: New file.
82908         New module 'uninorm/decomposition-table'.
82909         * lib/uninorm/decomposition-table.h: New file.
82910         * lib/uninorm/decomposition-table.c: New file.
82911         * lib/uninorm/decomposition-table1.h: New file, generated by
82912         gen-uni-tables.
82913         * lib/uninorm/decomposition-table2.h: New file, generated by
82914         gen-uni-tables.
82915         * modules/uninorm/decomposition-table: New file.
82917         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
82918         (UC_DECOMP_*): New enumeration items.
82919         (get_decomposition): New function.
82920         (struct decomp_table): New type.
82921         (output_decomposition, output_decomposition_tables): New functions.
82922         (unicode_composition_exclusions): New variable.
82923         (fill_composition_exclusions, debug_output_composition_tables): New
82924         functions.
82925         (main): Accept one more argument. Invoke fill_composition_exclusions.
82926         Output decomposition and composition tables.
82928         New module 'uninorm/base'.
82929         * lib/uninorm.h: New file.
82930         * lib/unictype.h: Update comment.
82931         * modules/uninorm/base: New file.
82933 2009-02-21  David Lutterkort  <lutter@redhat.com>
82935         Tests for module 'safe-alloc'.
82936         * tests/test-safe-alloc.c: New file.
82937         * modules/safe-alloc-tests: New file.
82939         New module 'safe-alloc'.
82940         * lib/safe-alloc.h: New file.
82941         * lib/safe-alloc.c: New file.
82942         * m4/safe-alloc.m4: New file.
82943         * modules/safe-alloc: New file.
82944         * doc/safe-alloc.texi: New file.
82945         * doc/gnulib.texi: Include it.
82946         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
82947         safe-alloc.
82949 2009-02-18  Bruno Haible  <bruno@clisp.org>
82951         Fix link error on non-glibc systems.
82952         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
82953         variable.
82954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82956 2009-02-18  Jim Meyering  <meyering@redhat.com>
82958         fts: avoid used-uninitialized error due to recent change
82959         * lib/fts.c (fts_read): Guard uses of the new member,
82960         parent->fts_n_dirs_remaining, since it's not relevant for
82961         the parent of a directory specified on the command-line.
82963 2009-02-17  James Youngman  <jay@gnu.org>
82964             Bruno Haible  <bruno@clisp.org>
82966         * m4/include_next.m4: Reformulate comment.
82968 2009-02-16  Jim Meyering  <meyering@redhat.com>
82970         fts: add #if guards so that the fts_lgpl module still builds
82971         * lib/fts.c: Guard just-added hash-table-using parts with
82972         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
82973         Reported by Simon Josefsson.
82975 2009-02-15  Bruno Haible  <bruno@clisp.org>
82977         * modules/array-mergesort-tests: New file.
82978         * tests/test-array-mergesort.c: New file.
82980         New module 'array-mergesort'.
82981         * modules/array-mergesort: New file.
82982         * lib/array-mergesort.h: New file.
82984 2009-02-15  Bruno Haible  <bruno@clisp.org>
82986         Fix 2009-02-07 commit.
82987         * lib/gen-uni-tables.c (output_predicate, output_category,
82988         output_combclass, output_bidi_category, output_decimal_digit,
82989         output_digit, output_numeric, output_mirror, output_scripts,
82990         output_ident_category, output_simple_mapping): Fix format directives.
82991         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
82993 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
82995         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
82996         fixes are available from IBM.
82998 2009-02-13  Jim Meyering  <meyering@redhat.com>
83000         fts: arrange not to stat non-directories in more cases
83001         This makes GNU find (when it doesn't need to stat each file)
83002         *much* more efficient at traversing reiserfs file systems.
83003         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
83004         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
83005         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
83006         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
83007         (leaf_optimization_applies): New function.
83008         (LCO_hash, LCO_compare): New helper functions.
83009         (link_count_optimize_ok): New function.
83010         (fts_stat): Initialize new member (if dir).
83011         (fts_read): Decrement parent's fts_n_dirs_remaining count if
83012         we've just stat'ed a directory.  Skip the stat call when possible.
83013         ---
83014         Note this AFS-related exchange:
83015         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
83016         and note find's pioctl call in find/fstype.c.
83017         But that is necessary only if you want to enable the
83018         optimization for AFS, and for now, I don't.
83020         fts: move a function definition "up" (no semantic change)
83021         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
83022         "up" to precede upcoming use of a related function.
83024 2009-02-11  Jim Meyering  <meyering@redhat.com>
83026         fts: correct internal computation of nlinks (optimization-related)
83027         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
83028         whether the current entry is a directory, so don't test it.
83030 2009-02-10  Bruno Haible  <bruno@clisp.org>
83032         Tests for module 'uniwbrk/ulc-wordbreaks'.
83033         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
83034         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
83035         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
83037         Tests for module 'uniwbrk/u32-wordbreaks'.
83038         * modules/uniwbrk/u32-wordbreaks-tests: New file.
83039         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
83041         Tests for module 'uniwbrk/u16-wordbreaks'.
83042         * modules/uniwbrk/u16-wordbreaks-tests: New file.
83043         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
83045         Tests for module 'uniwbrk/u8-wordbreaks'.
83046         * modules/uniwbrk/u8-wordbreaks-tests: New file.
83047         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
83049 2009-02-10  Bruno Haible  <bruno@clisp.org>
83051         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
83052         property.
83053         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
83054         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
83055         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
83057 2009-02-10  Simon Josefsson  <simon@josefsson.org>
83059         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
83060         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
83062 2009-02-10  Bruno Haible  <bruno@clisp.org>
83064         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
83065         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
83066         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
83067         * lib/unilbrk/u8-possible-linebreaks.c: Update.
83068         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
83069         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
83071 2009-02-09  Simon Josefsson  <simon@josefsson.org>
83073         * lib/sockets.h (gl_fd_to_handle): New function.
83075         * tests/test-sockets.c: Call gl_fd_to_handle.
83077 2009-02-09  Bruno Haible  <bruno@clisp.org>
83079         * doc/havelib.texi: Document the conventions on bi-arch systems.
83081 2009-02-08  Bruno Haible  <bruno@clisp.org>
83083         Document the AC_LIB_LINKFLAGS macro.
83084         * doc/havelib.texi: New file, mostly written on 2005-05-24.
83085         * doc/gnulib.texi: Include it.
83087 2009-02-08  Bruno Haible  <bruno@clisp.org>
83089         Fix wrong order of sections, compared to TOC.
83090         * doc/gnulib.texi: Include relocatable-maint.texi after the
83091         "Regular expressions" node, not before.
83093 2009-02-08  Bruno Haible  <bruno@clisp.org>
83095         Tests for module 'unicase/totitle'.
83096         * modules/unicase/totitle-tests: New file.
83098         Tests for module 'unicase/tolower'.
83099         * modules/unicase/tolower-tests: New file.
83101         Tests for module 'unicase/toupper'.
83102         * modules/unicase/toupper-tests: New file.
83103         * tests/unicase/test-mapping-part1.h: New file.
83104         * tests/unicase/test-mapping-part2.h: New file.
83106         New module 'unicase/totitle'.
83107         * modules/unicase/totitle: New file.
83108         * lib/unicase/totitle.c: New file.
83110         New module 'unicase/tolower'.
83111         * modules/unicase/tolower: New file.
83112         * lib/unicase/tolower.c: New file.
83114         New module 'unicase/toupper'.
83115         * modules/unicase/toupper: New file.
83116         * lib/unicase/toupper.c: New file.
83117         * lib/unicase/simple-mapping.h: New file.
83119         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
83120         (mapping_table): New structure.
83121         (output_simple_mapping): New function.
83122         (main): Invoke output_simple_mapping_test and output_simple_mapping.
83123         * modules/gen-uni-tables (Description): Update.
83124         * lib/unicase/toupper.h: New file, automatically generated by
83125         gen-uni-tables.
83126         * lib/unicase/tolower.h: New file, automatically generated by
83127         gen-uni-tables.
83128         * lib/unicase/totitle.h: New file, automatically generated by
83129         gen-uni-tables.
83130         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
83131         gen-uni-tables.
83132         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
83133         gen-uni-tables.
83134         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
83135         gen-uni-tables.
83137         New module 'unicase/base'.
83138         * modules/unicase/base: New file.
83139         * lib/unicase.h: New file.
83141 2009-02-08  Bruno Haible  <bruno@clisp.org>
83143         New module 'uniwbrk/ulc-wordbreaks'.
83144         * modules/uniwbrk/ulc-wordbreaks: New file.
83145         * lib/uniwbrk/ulc-wordbreaks.c: New file.
83147         New module 'uniwbrk/u32-wordbreaks'.
83148         * modules/uniwbrk/u32-wordbreaks: New file.
83149         * lib/uniwbrk/u32-wordbreaks.c: New file.
83151         New module 'uniwbrk/u16-wordbreaks'.
83152         * modules/uniwbrk/u16-wordbreaks: New file.
83153         * lib/uniwbrk/u16-wordbreaks.c: New file.
83155         New module 'uniwbrk/u8-wordbreaks'.
83156         * modules/uniwbrk/u8-wordbreaks: New file.
83157         * lib/uniwbrk/u8-wordbreaks.c: New file.
83158         * lib/uniwbrk/u-wordbreaks.h: New file.
83160         New module 'uniwbrk/table'.
83161         * modules/uniwbrk/table: New file.
83162         * lib/uniwbrk/wbrktable.h: New file.
83163         * lib/uniwbrk/wbrktable.c: New file.
83165         New module 'uniwbrk/wordbreak-property'.
83166         * modules/uniwbrk/wordbreak-property: New file.
83167         * lib/uniwbrk/wordbreak-property.c: New file.
83169         * lib/gen-uni-tables.c (WBP_*): New enum items.
83170         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
83171         (unicode_org_wbp): New variable.
83172         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
83173         New functions.
83174         (wbp_table): New structure.
83175         (output_wbp, output_wbrk_tables): New functions.
83176         (main): Accept additional argument. Invoke fill_org_wbp,
83177         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
83178         output_wbrk_tables.
83179         * modules/gen-uni-tables (Description): Update.
83180         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
83181         gen-uni-tables.
83183         New module 'uniwbrk/base'.
83184         * modules/uniwbrk/base: New file.
83185         * lib/uniwbrk.h: New file.
83187 2009-02-08  Bruno Haible  <bruno@clisp.org>
83189         Update to Unicode 5.1.0.
83190         * lib/gen-uni-tables.c (is_property_alphabetic): Include
83191         U+2185..U+2188.
83192         (is_property_default_ignorable_code_point): Don't include characters
83193         of category Cc or Cs and not-a-characters.
83194         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
83195         U+0D79, U+109E, U+109F, U+A60C.
83196         * lib/unictype/bidi_of.h: Regenerated.
83197         * lib/unictype/blocks.h: Regenerated.
83198         * lib/unictype/categ_C.h: Regenerated.
83199         * lib/unictype/categ_Cf.h: Regenerated.
83200         * lib/unictype/categ_Cn.h: Regenerated.
83201         * lib/unictype/categ_L.h: Regenerated.
83202         * lib/unictype/categ_Ll.h: Regenerated.
83203         * lib/unictype/categ_Lm.h: Regenerated.
83204         * lib/unictype/categ_Lo.h: Regenerated.
83205         * lib/unictype/categ_Lu.h: Regenerated.
83206         * lib/unictype/categ_M.h: Regenerated.
83207         * lib/unictype/categ_Mc.h: Regenerated.
83208         * lib/unictype/categ_Me.h: Regenerated.
83209         * lib/unictype/categ_Mn.h: Regenerated.
83210         * lib/unictype/categ_N.h: Regenerated.
83211         * lib/unictype/categ_Nd.h: Regenerated.
83212         * lib/unictype/categ_Nl.h: Regenerated.
83213         * lib/unictype/categ_No.h: Regenerated.
83214         * lib/unictype/categ_P.h: Regenerated.
83215         * lib/unictype/categ_Pd.h: Regenerated.
83216         * lib/unictype/categ_Pe.h: Regenerated.
83217         * lib/unictype/categ_Pf.h: Regenerated.
83218         * lib/unictype/categ_Pi.h: Regenerated.
83219         * lib/unictype/categ_Po.h: Regenerated.
83220         * lib/unictype/categ_Ps.h: Regenerated.
83221         * lib/unictype/categ_S.h: Regenerated.
83222         * lib/unictype/categ_Sk.h: Regenerated.
83223         * lib/unictype/categ_Sm.h: Regenerated.
83224         * lib/unictype/categ_So.h: Regenerated.
83225         * lib/unictype/categ_of.h: Regenerated.
83226         * lib/unictype/combining.h: Regenerated.
83227         * lib/unictype/ctype_alnum.h: Regenerated.
83228         * lib/unictype/ctype_alpha.h: Regenerated.
83229         * lib/unictype/ctype_graph.h: Regenerated.
83230         * lib/unictype/ctype_lower.h: Regenerated.
83231         * lib/unictype/ctype_print.h: Regenerated.
83232         * lib/unictype/ctype_punct.h: Regenerated.
83233         * lib/unictype/ctype_upper.h: Regenerated.
83234         * lib/unictype/decdigit.h: Regenerated.
83235         * lib/unictype/digit.h: Regenerated.
83236         * lib/unictype/mirror.h: Regenerated.
83237         * lib/unictype/numeric.h: Regenerated.
83238         * lib/unictype/pr_alphabetic.h: Regenerated.
83239         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
83240         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
83241         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
83242         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
83243         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
83244         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
83245         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
83246         * lib/unictype/pr_combining.h: Regenerated.
83247         * lib/unictype/pr_dash.h: Regenerated.
83248         * lib/unictype/pr_decimal_digit.h: Regenerated.
83249         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
83250         * lib/unictype/pr_deprecated.h: Regenerated.
83251         * lib/unictype/pr_diacritic.h: Regenerated.
83252         * lib/unictype/pr_extender.h: Regenerated.
83253         * lib/unictype/pr_format_control.h: Regenerated.
83254         * lib/unictype/pr_grapheme_base.h: Regenerated.
83255         * lib/unictype/pr_grapheme_extend.h: Regenerated.
83256         * lib/unictype/pr_grapheme_link.h: Regenerated.
83257         * lib/unictype/pr_id_continue.h: Regenerated.
83258         * lib/unictype/pr_id_start.h: Regenerated.
83259         * lib/unictype/pr_ideographic.h: Regenerated.
83260         * lib/unictype/pr_ignorable_control.h: Regenerated.
83261         * lib/unictype/pr_lowercase.h: Regenerated.
83262         * lib/unictype/pr_math.h: Regenerated.
83263         * lib/unictype/pr_numeric.h: Regenerated.
83264         * lib/unictype/pr_other_alphabetic.h: Regenerated.
83265         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
83266         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
83267         * lib/unictype/pr_other_id_continue.h: Regenerated.
83268         * lib/unictype/pr_other_lowercase.h: Regenerated.
83269         * lib/unictype/pr_other_math.h: Regenerated.
83270         * lib/unictype/pr_punctuation.h: Regenerated.
83271         * lib/unictype/pr_sentence_terminal.h: Regenerated.
83272         * lib/unictype/pr_soft_dotted.h: Regenerated.
83273         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
83274         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
83275         * lib/unictype/pr_unified_ideograph.h: Regenerated.
83276         * lib/unictype/pr_uppercase.h: Regenerated.
83277         * lib/unictype/pr_xid_continue.h: Regenerated.
83278         * lib/unictype/pr_xid_start.h: Regenerated.
83279         * lib/unictype/pr_zero_width.h: Regenerated.
83280         * lib/unictype/scripts.h: Regenerated.
83281         * lib/unictype/scripts_byname.gperf: Regenerated.
83282         * lib/unictype/sy_java_ident.h: Regenerated.
83283         * lib/unilbrk/lbrkprop1.h: Regenerated.
83284         * lib/unilbrk/lbrkprop2.h: Regenerated.
83285         * tests/unictype/test-categ_C.c: Regenerated.
83286         * tests/unictype/test-categ_Cf.c: Regenerated.
83287         * tests/unictype/test-categ_Cn.c: Regenerated.
83288         * tests/unictype/test-categ_L.c: Regenerated.
83289         * tests/unictype/test-categ_Ll.c: Regenerated.
83290         * tests/unictype/test-categ_Lm.c: Regenerated.
83291         * tests/unictype/test-categ_Lo.c: Regenerated.
83292         * tests/unictype/test-categ_Lu.c: Regenerated.
83293         * tests/unictype/test-categ_M.c: Regenerated.
83294         * tests/unictype/test-categ_Mc.c: Regenerated.
83295         * tests/unictype/test-categ_Me.c: Regenerated.
83296         * tests/unictype/test-categ_Mn.c: Regenerated.
83297         * tests/unictype/test-categ_N.c: Regenerated.
83298         * tests/unictype/test-categ_Nd.c: Regenerated.
83299         * tests/unictype/test-categ_Nl.c: Regenerated.
83300         * tests/unictype/test-categ_No.c: Regenerated.
83301         * tests/unictype/test-categ_P.c: Regenerated.
83302         * tests/unictype/test-categ_Pd.c: Regenerated.
83303         * tests/unictype/test-categ_Pe.c: Regenerated.
83304         * tests/unictype/test-categ_Pf.c: Regenerated.
83305         * tests/unictype/test-categ_Pi.c: Regenerated.
83306         * tests/unictype/test-categ_Po.c: Regenerated.
83307         * tests/unictype/test-categ_Ps.c: Regenerated.
83308         * tests/unictype/test-categ_S.c: Regenerated.
83309         * tests/unictype/test-categ_Sk.c: Regenerated.
83310         * tests/unictype/test-categ_Sm.c: Regenerated.
83311         * tests/unictype/test-categ_So.c: Regenerated.
83312         * tests/unictype/test-ctype_alnum.c: Regenerated.
83313         * tests/unictype/test-ctype_alpha.c: Regenerated.
83314         * tests/unictype/test-ctype_graph.c: Regenerated.
83315         * tests/unictype/test-ctype_lower.c: Regenerated.
83316         * tests/unictype/test-ctype_print.c: Regenerated.
83317         * tests/unictype/test-ctype_punct.c: Regenerated.
83318         * tests/unictype/test-ctype_upper.c: Regenerated.
83319         * tests/unictype/test-decdigit.h: Regenerated.
83320         * tests/unictype/test-digit.h: Regenerated.
83321         * tests/unictype/test-numeric.h: Regenerated.
83322         * tests/unictype/test-pr_alphabetic.c: Regenerated.
83323         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
83324         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
83325         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
83326         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
83327         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
83328         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
83329         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
83330         * tests/unictype/test-pr_combining.c: Regenerated.
83331         * tests/unictype/test-pr_dash.c: Regenerated.
83332         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
83333         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
83334         * tests/unictype/test-pr_deprecated.c: Regenerated.
83335         * tests/unictype/test-pr_diacritic.c: Regenerated.
83336         * tests/unictype/test-pr_extender.c: Regenerated.
83337         * tests/unictype/test-pr_format_control.c: Regenerated.
83338         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
83339         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
83340         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
83341         * tests/unictype/test-pr_id_continue.c: Regenerated.
83342         * tests/unictype/test-pr_id_start.c: Regenerated.
83343         * tests/unictype/test-pr_ideographic.c: Regenerated.
83344         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
83345         * tests/unictype/test-pr_lowercase.c: Regenerated.
83346         * tests/unictype/test-pr_math.c: Regenerated.
83347         * tests/unictype/test-pr_numeric.c: Regenerated.
83348         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
83349         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
83350         Regenerated.
83351         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
83352         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
83353         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
83354         * tests/unictype/test-pr_other_math.c: Regenerated.
83355         * tests/unictype/test-pr_punctuation.c: Regenerated.
83356         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
83357         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
83358         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
83359         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
83360         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
83361         * tests/unictype/test-pr_uppercase.c: Regenerated.
83362         * tests/unictype/test-pr_xid_continue.c: Regenerated.
83363         * tests/unictype/test-pr_xid_start.c: Regenerated.
83364         * tests/unictype/test-pr_zero_width.c: Regenerated.
83366         Update to Unicode 5.1.0.
83367         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
83368         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
83369         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
83370         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
83371         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
83372         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
83373         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
83374         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
83375         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
83376         (nonspacing_table_ind): Update.
83377         * tests/uniwidth/test-uc_width2.sh: Update expected result.
83379         Update to Unicode 5.1.0.
83380         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
83381         code transform.
83382         * lib/uniname/uniname.c (unicode_character_name,
83383         unicode_name_character): Add the range 0x1Fxxx to the code transform.
83384         * lib/uniname/uninames.h: Regenerated.
83385         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
83387 2009-02-07  Bruno Haible  <bruno@clisp.org>
83389         Merge gen-ctype and gen-lbrk into a single program.
83390         * lib/gen-uni-tables.c: New file, incorporating
83391         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
83392         Add directory prefixes to the names of the generated files.
83393         * lib/unictype/gen-ctype.c: Remove file.
83394         * lib/unilbrk/gen-lbrk.c: Remove file.
83395         * modules/gen-uni-tables: New file.
83396         * modules/unictype/gen-ctype: Remove file.
83397         * modules/unilbrk/gen-lbrk: Remove file.
83399 2009-02-07  Bruno Haible  <bruno@clisp.org>
83401         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
83403         New module 'unistr/u32-strcoll'.
83404         * modules/unistr/u32-strcoll: New file.
83405         * lib/unistr/u32-strcoll.c: New file.
83407         New module 'unistr/u16-strcoll'.
83408         * modules/unistr/u16-strcoll: New file.
83409         * lib/unistr/u16-strcoll.c: New file.
83411         New module 'unistr/u8-strcoll'.
83412         * modules/unistr/u8-strcoll: New file.
83413         * lib/unistr/u8-strcoll.c: New file.
83414         * lib/unistr/u-strcoll.h: New file.
83416 2009-02-07  Bruno Haible  <bruno@clisp.org>
83418         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
83419         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83420         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
83421         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
83422         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
83423         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
83425 2009-02-07  Bruno Haible  <bruno@clisp.org>
83427         Make 64-bit clean.
83428         * lib/unictype/gen-ctype.c (output_predicate, output_category,
83429         output_combclass, output_bidi_category, output_decimal_digit,
83430         output_digit, output_numeric, output_mirror, output_scripts,
83431         output_ident_category): Use proper width specifier in format strings.
83433 2009-02-07  Bruno Haible  <bruno@clisp.org>
83435         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
83436         failure behaviour.
83438 2009-02-07  Jim Meyering  <meyering@redhat.com>
83440         regex: avoid compilation failure with upcoming gcc-4.4
83441         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
83442         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
83443         "... error: integer overflow in preprocessor expression".
83445 2009-02-05  Ben Pfaff  <blp@gnu.org>
83447         Fix link errors on Windows when close module is used.
83448         * modules/close: Add $(LIB_CLOSE) to Link section.
83449         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
83450         $(LIB_CLOSE) on Windows.
83452 2009-02-05  Jim Meyering  <meyering@redhat.com>
83454         still avoid unused-parameter warnings, but do it cleanly
83455         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
83456         (get_fs_usage): Cast to void instead.
83457         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
83458         (dev_from_mount_options, read_file_system_list): Cast to void.
83459         Prompted by Bruno Haible.
83461 2009-02-04  Jim Meyering  <meyering@redhat.com>
83463         fsusage.c: correct copyright year
83464         * lib/fsusage.c: Reflect year in which the change is pushed into
83466         avoid misc. warnings
83467         * lib/fsusage.c (UNUSED_PARAM): Define.
83468         (get_fs_usage): Mark parameter "disk" as unused.
83469         * lib/getugroups.c (getgrent): Use "void" in prototype.
83470         * lib/mountlist.c: Mark unused parameters.
83471         (read_file_system_list): Declare a local with "const".
83472         * lib/nanosleep.c (getnow): Declare static.
83473         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
83475         dirfd: set errno upon failure
83476         * lib/dirfd.c: Include <errno.h>.
83477         Set errno to ENOTSUP when returning -1.
83478         * modules/dirfd (Depends-on): Add errno.
83479         Suggested by John Kodis <kodis@comcast.net>.
83481 2009-02-01  Bruno Haible  <bruno@clisp.org>
83483         Don't assume sizeof (long) >= sizeof (void *).
83484         * lib/memcmp.c: Include stdint.h.
83485         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
83486         srcp2 to 'const byte *'.
83487         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
83488         types to uintptr_t.
83489         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
83490         * modules/memcmp (Depends-on): Add stdint.
83491         Reported by Ozkan Sezer <sezeroz@gmail.com>.
83493 2009-01-30  Eric Blake  <ebb9@byu.net>
83495         fix more require-before-expand issues
83496         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
83497         expand, AC_PROG_AWK.
83498         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
83500 2009-01-28  Eric Blake  <ebb9@byu.net>
83502         version-etc: use consistent URL formatting
83503         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
83504         Improve formatting.  Use fputs for string without %.
83506 2009-01-28  Jim Meyering  <meyering@redhat.com>
83508         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
83509         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
83510         "underquoted definition of NAME" from autoconf-2.59.
83512 2009-01-28  Bruno Haible  <bruno@clisp.org>
83514         * doc/gnulib.texi: Add "Obsolete modules" to index.
83516 2009-01-28  Jim Meyering  <meyering@redhat.com>
83518         useless-if-before-free: recognize more variants
83519         * build-aux/useless-if-before-free: Also recognize e.g.,
83520         if (NULL != p) free (p);
83522 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
83524         test-getaddrinfo: skip (don't fail) this test when there's no network
83525         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
83526         on the presumption that it means you lack network access.
83528 2009-01-26  Jim Meyering  <meyering@redhat.com>
83530         fflush: avoid warnings on modern systems
83531         * lib/fflush.c (rpl_fflush): Move declarations of locals,
83532         pos and result, into scopes where they're used.
83534 2009-01-26  Eric Blake  <ebb9@byu.net>
83536         Silence warning reintroduced by recent extensions patch.
83537         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
83538         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
83539         autoconf.
83541         Backport improved autoconf semantics of AC_DEFUN_ONCE.
83542         * m4/00gnulib.m4: New file.
83543         * gnulib-tool (func_get_filelist): Always use it.
83544         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
83545         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
83547 2009-01-25  Bruno Haible  <bruno@clisp.org>
83549         Make test-quotearg work on MacOS X and AIX.
83550         * tests/test-quotearg.sh: New file.
83551         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
83552         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
83553         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
83554         include <libintl.h>.
83555         (fake_locale): Remove variable.
83556         (gettext, dgettext, dcgettext): Remove functions.
83557         (main): Instead of setting a fake locale, set a real locale. Call
83558         textdomain and bindtextdomain.
83559         * modules/quotearg-tests (Files): Add the new files.
83560         (Depends-on): Add gettext, setenv, unsetenv.
83561         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
83562         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
83563         Augment TESTS_ENVIRONMENT.
83565 2009-01-25  Bruno Haible  <bruno@clisp.org>
83567         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
83568         fr_FR.ISO8859-1 locale on MacOS X.
83569         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
83570         ja_JP.eucJP locale on MacOS X.
83571         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
83572         zh_CN.GB18030 locale on MacOS X.
83574 2009-01-25  Bruno Haible  <bruno@clisp.org>
83576         Avoid link errors on MacOS X 10.3.
83577         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
83578         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
83580 2009-01-25  Bruno Haible  <bruno@clisp.org>
83582         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83583         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
83584         * modules/pipe (Files): Remove m4/posix_spawn.m4.
83585         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83586         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
83587         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83588         posix_spawnattr_init, posix_spawnattr_setsigmask,
83589         posix_spawnattr_setflags, posix_spawnattr_destroy.
83591         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
83592         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
83593         * modules/execute (Files): Remove m4/posix_spawn.m4.
83594         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
83595         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
83596         posix_spawnattr_init, posix_spawnattr_setsigmask,
83597         posix_spawnattr_setflags, posix_spawnattr_destroy.
83599 2009-01-25  Bruno Haible  <bruno@clisp.org>
83601         * lib/glthread/threadlib.c: Include <stdlib.h>.
83603 2009-01-25  Bruno Haible  <bruno@clisp.org>
83605         * lib/glthread/threadlib.c (dummy): New declaration.
83607 2009-01-25  Bruno Haible  <bruno@clisp.org>
83609         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
83610         multibyte characters also for the GB18030 encoding. Don't crash when
83611         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
83613 2009-01-25  Bruno Haible  <bruno@clisp.org>
83615         Avoid redefining 'struct random_data' on OSF/1 5.1.
83616         * lib/stdlib.in.h: Include <random.h> if it exists.
83617         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
83618         HAVE_RANDOM_H. Include <random.h> when testing whether
83619         'struct random_data' exists.
83620         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
83622 2009-01-25  Bruno Haible  <bruno@clisp.org>
83624         Don't install charset.alias on MacOS X >= 10.3.
83625         * lib/localcharset.c (DARWIN7): New macro.
83626         (get_charset_aliases): Hardcode the result for Darwin7.
83627         * modules/localcharset (install-exec-local): Don't install
83628         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
83630 2009-01-25  Bruno Haible  <bruno@clisp.org>
83632         Don't install charset.alias on mingw and Cygwin.
83633         * modules/localcharset (install-exec-local): Don't install
83634         charset.alias on mingw and Cygwin, if the file does not yet exist.
83635         The result for these platforms is hardcoded in localcharset.c.
83637 2009-01-25  Bruno Haible  <bruno@clisp.org>
83639         Make it possible again to use AC_GNU_SOURCE together with gnulib.
83640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
83641         before requiring AC_USE_SYSTEM_EXTENSIONS.
83643 2009-01-25  Jim Meyering  <meyering@redhat.com>
83645         c-strtod: avoid warnings
83646         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
83647         "assignment discards qualifiers from pointer target type" warnings.
83649 2009-01-24  Bruno Haible  <bruno@clisp.org>
83651         Add support for non-UTF-8 locales on MacOS X.
83652         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
83653         canonical encodings. For Darwin 7 and newer, don't map traditional
83654         encodings to UTF-8.
83655         Reported by Vincent Lefevre <vincent@vinc17.org>
83656         at <http://savannah.gnu.org/bugs/?25235>.
83658 2009-01-24  Bruno Haible  <bruno@clisp.org>
83660         * doc/gnulib.texi (Obsolete modules): New section.
83661         Reported by Mike Frysinger <vapier@gentoo.org>.
83663 2009-01-24  Bruno Haible  <bruno@clisp.org>
83665         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
83666         (%.dvi): New rule.
83668 2009-01-24  Bruno Haible  <bruno@clisp.org>
83670         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
83671         Reported by Eric Blake.
83673 2009-01-24  Bruno Haible  <bruno@clisp.org>
83675         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
83676         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
83677         Reported by Gary V. Vaughan <gary@gnu.org>.
83679 2009-01-24  Bruno Haible  <bruno@clisp.org>
83681         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
83683 2009-01-23  Bruno Haible  <bruno@clisp.org>
83685         Make c-strtod, c-strtold usable in libraries.
83686         * lib/c-strtod.c: Include string.h instead of xalloc.h.
83687         (C_STRTOD): Call strdup instead of xstrdup.
83688         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
83689         * modules/c-strtold (Depends-on): Likewise.
83690         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
83691         * NEWS: Mention the change.
83692         Reported by Michael Gold <mgold@ncf.ca>.
83694 2009-01-23  Jim Meyering  <meyering@redhat.com>
83696         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
83697         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
83698         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
83700 2009-01-23  Simon Josefsson  <simon@josefsson.org>
83702         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
83703         GNU CoreUtils.
83704         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
83705         * modules/version-etc (Description): Update.
83707 2009-01-22  Bruno Haible  <bruno@clisp.org>
83709         Cache the C locale object.
83710         * lib/c-strtod.c (c_locale_cache): New variable.
83711         (c_locale): New function.
83712         (C_STRTOD): Use it, and don't call freelocale.
83713         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
83714         Suggested by Paolo Bonzini.
83716 2009-01-21  Bruno Haible  <bruno@clisp.org>
83718         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
83719         conditions other than overflow.
83721 2009-01-21  Bruno Haible  <bruno@clisp.org>
83723         * lib/c-strtod.c: Include errno.h.
83724         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
83725         value from STRTOD_L and STRTOD.
83727 2009-01-21  Bruno Haible  <bruno@clisp.org>
83728         and Jim Meyering  <meyering@redhat.com>
83730         nanosleep: skip configure test (fail it) for apple universal builds
83731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
83732         universal builds, assume that nanosleep does not work.
83733         * modules/nanosleep (Depends-on): Add multiarch.
83735         mktime: skip configure test (fail it) for apple universal builds
83736         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
83737         universal builds, assume that mktime does not work.
83738         * modules/mktime (Depends-on): Add multiarch.
83740 2009-01-21  Eric Blake  <ebb9@byu.net>
83742         multiarch: avoid expand-before-require warning
83743         * modules/multiarch (configure.ac): Require, rather than expand,
83744         gl_MULTIARCH.
83745         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
83746         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
83747         enforce that all clients require it.  Partial reversion of
83748         2008-12-29 patch.
83750         error: avoid expand-before-require warning
83751         * modules/errno (configure.ac): Require, rather than expand,
83752         gl_HEADER_ERRNO_H.
83753         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
83754         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
83755         enforce that all clients require it.
83757         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
83758         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
83759         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
83760         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
83762 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
83764         Revert:
83765         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83767         regex: do not depend on obsolete modules.
83768         * modules/regex: Remove memcmp and memmove.
83770 2009-01-20  Bruno Haible  <bruno@clisp.org>
83772         Make the 'link' module link on Windows NT 4.
83773         * lib/link.c (_WIN32_WINNT): Don't define.
83774         (CreateHardLinkFuncType): New type.
83775         (CreateHardLinkFunc, initialized): New variables.
83776         (initialize): New function.
83777         (link): Invoke CreateHardLink indirectly through the function pointer.
83779 2009-01-20  Bruno Haible  <bruno@clisp.org>
83781         Fix compilation failure on mingw.
83782         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
83784 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
83786         * doc/c-strtod.texi: Mention a couple of restrictions.
83788 2009-01-20  Jim Meyering  <meyering@redhat.com>
83790         gettimeofday: move more declarations out of functions
83791         * lib/gettimeofday.c: Move extern declarations of tzset and
83792         gmtime out of containing functions.  Prompted by Bruno Haible.
83794 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
83796         regex: do not depend on obsolete modules.
83797         * modules/regex: Remove memcmp and memmove.
83799 2009-01-19  Bruno Haible  <bruno@clisp.org>
83801         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83802         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
83803         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83804         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
83805         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
83807 2009-01-19  Bruno Haible  <bruno@clisp.org>
83809         * tests/test-link.c: Include <errno.h>.
83810         (main): Exit with code 77 when a hard link cannot be created due to
83811         the file system.
83812         * tests/test-link.sh: Skip test when a hard link cannot be created due
83813         to the file system.
83814         Suggested by Eric Blake.
83816 2009-01-19  Martin Lambers  <marlam@marlam.de>
83818         * modules/link-tests: New file.
83819         * tests/test-link.sh: New file.
83820         * tests/test-link.c: New file.
83822 2009-01-19  Eric Blake  <ebb9@byu.net>
83824         doc: mention another function added in cygwin 1.7.0
83825         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
83826         Another new function in cygwin 1.7.
83828 2009-01-19  Bruno Haible  <bruno@clisp.org>
83830         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
83831         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
83832         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
83833         gl_BIGENDIAN, not AC_C_BIGENDIAN.
83834         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
83835         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
83836         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
83837         * m4/md4.m4 (gl_MD4): Likewise.
83838         * m4/md5.m4 (gl_MD5): Likewise.
83839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
83840         * m4/sha1.m4 (gl_SHA1): Likewise.
83841         * m4/sha256.m4 (gl_SHA256): Likewise.
83842         * m4/sha512.m4 (gl_SHA512): Likewise.
83844 2009-01-19  Bruno Haible  <bruno@clisp.org>
83846         * modules/uniname/uniname-tests (Depends-on): Add progname.
83847         * tests/uniname/test-uninames.c: Include progname.h.
83848         (main): Call set_program_name.
83850         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
83851         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
83852         (main): Call set_program_name.
83854         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
83855         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
83856         (main): Call set_program_name.
83858         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
83859         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
83860         (main): Call set_program_name.
83862         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
83863         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
83864         (main): Call set_program_name.
83866         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
83867         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
83868         (main): Call set_program_name.
83870         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
83871         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
83872         (main): Call set_program_name.
83874         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
83875         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
83876         (main): Call set_program_name.
83878         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
83879         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
83880         (main): Call set_program_name.
83882 2009-01-19  Eric Blake  <ebb9@byu.net>
83884         test-unistd: test previous patch
83885         * tests/test-unistd.c: Test *_FILENO macros.
83887         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
83888         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83889         Guarantee a definition.
83890         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
83891         * modules/unistd-safer (Depends-on): Add dependency on unistd.
83892         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
83893         * lib/dup-safer.c (STDERR_FILENO): Likewise.
83894         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83895         Likewise.
83896         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
83897         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
83898         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
83899         Likewise.
83900         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
83901         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
83902         (STDERR_FILENO): Likewise.
83903         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
83904         (STDERR_FILENO): Likewise.
83905         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
83906         (STDERR_FILENO): Likewise.
83907         Reported by Elbert Pol.
83909 2009-01-19  Eric Blake  <ebb9@byu.net>
83911         doc: mention more functions added in cygwin 1.7.0
83912         * doc/posix-functions/abort.texi (abort): Update wording related
83913         to cygwin.
83914         * doc/posix-functions/daylight.texi (daylight): Likewise.
83915         * doc/posix-functions/optarg.texi (optarg): Likewise.
83916         * doc/posix-functions/optarg.texi (opterr): Likewise.
83917         * doc/posix-functions/optarg.texi (optind): Likewise.
83918         * doc/posix-functions/optarg.texi (optopt): Likewise.
83919         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
83920         worked in 1.5.x, and was withdrawn in 1.7.
83921         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
83922         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
83923         cygwin versions.
83924         * doc/posix-functions/perror.texi (perror): Likewise.
83925         * doc/posix-functions/printf.texi (printf): Likewise.
83926         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
83927         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
83928         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
83929         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
83930         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
83931         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
83932         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83933         Likewise.
83934         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83935         Likewise.
83936         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
83937         this function.
83938         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
83939         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
83940         Likewise.
83941         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
83942         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
83943         * doc/posix-functions/confstr.texi (confstr): Likewise.
83944         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
83945         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
83946         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
83947         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
83948         * doc/posix-functions/fputws.texi (fputws): Likewise.
83949         * doc/posix-functions/fwide.texi (fwide): Likewise.
83950         * doc/posix-functions/getwc.texi (getwc): Likewise.
83951         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
83952         * doc/posix-functions/putwc.texi (putwc): Likewise.
83953         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
83954         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
83955         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
83956         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
83957         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
83958         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
83959         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
83960         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
83961         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
83962         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
83963         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
83965 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83967         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
83968         * lib/ioctl.c: Include <sys/ioctl.h>.
83970 2009-01-19  Simon Josefsson  <simon@josefsson.org>
83972         * modules/getdate-tests (Depends-on): Add progname.
83973         * tests/test-getdate.c: Use progname module, to avoid link errors
83974         on non-glibc systems.
83976 2009-01-18  Simon Josefsson  <simon@josefsson.org>
83978         * modules/filenamecat-tests (Depends-on): Add progname.
83979         * modules/fstrcmp-tests (Depends-on): Likewise.
83981         * tests/test-filenamecat.c: Use progname module, to avoid link
83982         errors on non-glibc systems.
83983         * tests/test-fstrcmp.c: Likewise.
83985 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
83987         gettimeofday: avoid warning: nested extern declaration of 'localtime'
83988         * lib/gettimeofday.c: Move extern declaration out of function.
83990 2009-01-18  Bruno Haible  <bruno@clisp.org>
83992         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
83993         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
83994         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
83996 2009-01-18  Bruno Haible  <bruno@clisp.org>
83998         * lib/strftime.c (MEMPCPY): Remove unused macro.
83999         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
84001 2009-01-18  Martin Lambers  <marlam@marlam.de>
84003         New module 'link'.
84004         * lib/unistd.in.h (link): New declaration.
84005         * lib/link.c: New file.
84006         * m4/link.m4: New file.
84007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
84008         HAVE_LINK.
84009         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
84010         * modules/link: New file.
84011         * doc/posix-functions/link.texi: Mention the new module.
84013 2009-01-18  Bruno Haible  <bruno@clisp.org>
84015         * tests/test-avltree_list.c (main): Call set_program_name.
84016         * tests/test-avltree_oset.c (main): Likewise.
84017         * tests/test-obstack-printf.c: Include progname.h.
84018         (main): Call set_program_name.
84019         * tests/test-quotearg.c: Include progname.h.
84020         (main): Call set_program_name.
84021         * tests/test-xmemdup0.c: Include progname.h.
84022         (main): Call set_program_name.
84024 2009-01-18  Bruno Haible  <bruno@clisp.org>
84026         New module 'alphasort'.
84027         * lib/dirent.in.h (alphasort): New declaration.
84028         * lib/alphasort.c: New file, from glibc with modifications.
84029         * m4/alphasort.m4: New file.
84030         * modules/alphasort: New file.
84031         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
84032         HAVE_ALPHASORT.
84033         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
84034         HAVE_ALPHASORT.
84035         * doc/posix-functions/alphasort.texi: Mention the new module and the
84036         portability problems.
84038 2009-01-18  Bruno Haible  <bruno@clisp.org>
84040         New module 'scandir'.
84041         * lib/dirent.in.h (scandir): New declaration.
84042         * lib/scandir.c: New file, from glibc with modifications.
84043         * m4/scandir.m4: New file.
84044         * modules/scandir: New file.
84045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
84046         HAVE_SCANDIR.
84047         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
84048         HAVE_SCANDIR.
84049         * doc/posix-functions/scandir.texi: Mention the new module and the
84050         portability problems.
84052 2009-01-17  Bruno Haible  <bruno@clisp.org>
84054         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
84055         Update documentation.
84056         (func_remove_suffix): Escape all dots in the suffix. Update
84057         documentation.
84058         (func_filter_filelist): Update documentation.
84059         Reported by Ralf Wildenhues.
84061 2009-01-17  Bruno Haible  <bruno@clisp.org>
84063         * modules/dprintf-posix-tests: New file.
84064         * tests/test-dprintf-posix.sh: New file.
84065         * tests/test-dprintf-posix.c: New file.
84067         New modules 'dprintf', 'dprintf-posix'.
84068         * lib/stdio.in.h (dprintf): New declaration.
84069         * lib/dprintf.c: New file.
84070         * m4/dprintf.m4: New file.
84071         * m4/dprintf-posix.m4: New file.
84072         * modules/dprintf: New file.
84073         * modules/dprintf-posix: New file.
84074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
84075         HAVE_DPRINTF, REPLACE_DPRINTF.
84076         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
84077         HAVE_DPRINTF, REPLACE_DPRINTF.
84078         * doc/posix-functions/dprintf.texi: Mention the new modules.
84080 2009-01-17  Bruno Haible  <bruno@clisp.org>
84082         * modules/vdprintf-posix-tests: New file.
84083         * tests/test-vdprintf-posix.sh: New file.
84084         * tests/test-vdprintf-posix.c: New file.
84086         New modules 'vdprintf', 'vdprintf-posix'.
84087         * lib/stdio.in.h (vdprintf): New declaration.
84088         * lib/vdprintf.c: New file.
84089         * m4/vdprintf.m4: New file.
84090         * m4/vdprintf-posix.m4: New file.
84091         * modules/vdprintf: New file.
84092         * modules/vdprintf-posix: New file.
84093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
84094         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84095         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
84096         HAVE_VDPRINTF, REPLACE_VDPRINTF.
84097         * doc/posix-functions/vdprintf.texi: Mention the new modules.
84099 2009-01-17  Bruno Haible  <bruno@clisp.org>
84101         Fix replacement of fopen on mingw.
84102         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
84103         mingw.
84105 2009-01-17  Bruno Haible  <bruno@clisp.org>
84107         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
84108         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
84110 2009-01-17  Bruno Haible  <bruno@clisp.org>
84112         Avoid test-fflush2.sh failure on mingw.
84113         * tests/test-fflush2.c: Include binary-io.h.
84114         (main): Put standard input into binary mode.
84115         * modules/fflush-tests (Depends-on): Add binary-io.
84117 2009-01-17  Bruno Haible  <bruno@clisp.org>
84119         * lib/wchar.in.h: In another particular situation, include only the
84120         system's <wchar.h> file.
84121         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
84122         Reported by Albert Chin-A-Young <china@thewrittenword.com>
84123         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
84125 2009-01-17  Bruno Haible  <bruno@clisp.org>
84127         Support for stripping executables in --enable-relocatable.
84128         * build-aux/install-reloc: Expect one more argument, or an environment
84129         variable RELOC_STRIP_PROG. If set, strip the destination program and
84130         its wrapper.
84131         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
84132         RELOC_STRIP_PROG.
84133         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
84134         to set RELOCATABLE_STRIP.
84135         * NEWS: Mention the new Makefile requirement.
84137 2009-01-17  Bruno Haible  <bruno@clisp.org>
84139         * build-aux/install-reloc: Remove debugging information left over by
84140         C compiler on MacOS X.
84142 2009-01-17  Bruno Haible  <bruno@clisp.org>
84144         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
84145         * lib/progreloc.c (find_executable): Fix type of pointer passed to
84146         _NSGetExecutablePath.
84148 2009-01-16  Jim Meyering  <meyering@redhat.com>
84150         strerror: avoid warnings about discarding "const"
84151         * lib/strerror.c (rpl_strerror): Instead of returning a const
84152         string from each and every "case", use a variable, and add a single
84153         cast after the switch.
84155 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
84157         * lib/arpa_inet.in.h: Add extern "C" block for C++.
84159 2009-01-16  Bruno Haible  <bruno@clisp.org>
84161         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
84162         array initializer syntax that also works in C++ mode.
84163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84165 2009-01-16  Jim Meyering  <meyering@redhat.com>
84167         poll: suppress a warning
84168         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
84169         to ignore "...unsigned expression < 0 is always false" warnings.
84171 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
84173         poll: remove declarations of unused variables
84174         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
84175         sockbuf and optlen.
84177 2009-01-15  Bruno Haible  <bruno@clisp.org>
84179         Make fflush-after-ungetc POSIX compliant on BSD systems.
84180         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
84181         (clear_ungetc_buffer): Implement also for other systems.
84182         (rpl_fflush): On glibc systems, invoke
84183         clear_ungetc_buffer_preserving_position. Otherwise, invoke
84184         clear_ungetc_buffer after fetching the stream's position, not before.
84186 2009-01-15  Bruno Haible  <bruno@clisp.org>
84188         Make fflush-after-ungetc POSIX compliant on glibc systems.
84189         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
84190         after ungetc.
84191         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
84192         (rpl_fflush): On glibc systems, simply call the system's fflush
84193         function after clearing the ungetc buffer.
84194         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
84195         Instead, lseek only to the end of file, then use the system's fseeko
84196         for the rest. On glibc systems, reset the EOF indicator bit.
84198 2009-01-15  Jim Meyering  <meyering@redhat.com>
84200         openmp.m4: revert quote-adding change, for portability to older autoconf
84201         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
84202         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
84203         Simon Josefsson noticed the problem when using autoconf-2.61.
84205 2009-01-15  Bruno Haible  <bruno@clisp.org>
84207         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
84208         * tests/test-fflush2.c (ASSERT): Always fail.
84209         (main): Add two tests for fflush() after ungetc(), taking into account
84210         the Austin Group's clarification.
84211         Suggested by Eric Blake.
84213 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
84215         mktime.m4: remove K&R-style function prototypes
84216         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
84217         for the Sun C++ compiler.
84219 2009-01-14  Bruno Haible  <bruno@clisp.org>
84221         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
84222         while including <wchar.h>.
84223         * lib/wchar.in.h: In two particular situations on HP-UX, include only
84224         the system's <wchar.h> file.
84225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84227 2009-01-14  Bruno Haible  <bruno@clisp.org>
84229         * m4/csharp.m4: Don't mention gettext on the serial number line.
84230         * m4/csharpexec.m4: Likewise.
84231         * m4/eaccess.m4: Likewise.
84232         * m4/javaexec.m4: Likewise.
84233         * m4/sig_atomic_t.m4: Likewise.
84234         * m4/tmpdir.m4: Likewise.
84235         * m4/intldir.m4: Bump gettext version.
84236         * m4/lib-ld.m4: Likewise.
84238 2009-01-14  Bruno Haible  <bruno@clisp.org>
84240         * lib/progname.c (set_program_name): Add more comments.
84241         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
84243 2009-01-14  Simon Josefsson  <simon@josefsson.org>
84245         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
84246         were sys/stat.h does not define it.
84248 2009-01-14  Jim Meyering  <meyering@redhat.com>
84250         many *.m4 files: improve m4 quoting
84251         99% of this change was performed by running the following commands:
84252         git ls-files | grep '\.m4$' | xargs perl -pi \
84253           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
84254           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84255           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
84256           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
84257         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
84258         The remainder were to add Copyright dates, increment serial numbers,
84259         undo some changes in comments, exclude m4/intl.m4, and add quotes
84260         around the "1" in ",1" where the unusual spacing prohibited the
84261         above regexps from doing the job.  For more details, see
84262         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
84263         * m4/acl.m4: Modified.
84264         * m4/afs.m4: Likewise.
84265         * m4/alloca.m4: Likewise.
84266         * m4/argp.m4: Likewise.
84267         * m4/argz.m4: Likewise.
84268         * m4/atexit.m4: Likewise.
84269         * m4/bison-i18n.m4: Likewise.
84270         * m4/bison.m4: Likewise.
84271         * m4/byteswap.m4: Likewise.
84272         * m4/c-stack.m4: Likewise.
84273         * m4/c-strtod.m4: Likewise.
84274         * m4/calloc.m4: Likewise.
84275         * m4/canonicalize-lgpl.m4: Likewise.
84276         * m4/chown.m4: Likewise.
84277         * m4/clock_time.m4: Likewise.
84278         * m4/codeset.m4: Likewise.
84279         * m4/copy-file.m4: Likewise.
84280         * m4/csharp.m4: Likewise.
84281         * m4/csharpcomp.m4: Likewise.
84282         * m4/csharpexec.m4: Likewise.
84283         * m4/d-ino.m4: Likewise.
84284         * m4/d-type.m4: Likewise.
84285         * m4/dirfd.m4: Likewise.
84286         * m4/double-slash-root.m4: Likewise.
84287         * m4/eaccess.m4: Likewise.
84288         * m4/eealloc.m4: Likewise.
84289         * m4/environ.m4: Likewise.
84290         * m4/errno_h.m4: Likewise.
84291         * m4/euidaccess.m4: Likewise.
84292         * m4/execute.m4: Likewise.
84293         * m4/fatal-signal.m4: Likewise.
84294         * m4/fchdir.m4: Likewise.
84295         * m4/fcntl_h.m4: Likewise.
84296         * m4/fileblocks.m4: Likewise.
84297         * m4/filenamecat.m4: Likewise.
84298         * m4/findprog.m4: Likewise.
84299         * m4/flexmember.m4: Likewise.
84300         * m4/fnmatch.m4: Likewise.
84301         * m4/fopen.m4: Likewise.
84302         * m4/fpending.m4: Likewise.
84303         * m4/fprintf-posix.m4: Likewise.
84304         * m4/free.m4: Likewise.
84305         * m4/frexp.m4: Likewise.
84306         * m4/frexpl.m4: Likewise.
84307         * m4/fsusage.m4: Likewise.
84308         * m4/ftruncate.m4: Likewise.
84309         * m4/gc-camellia.m4: Likewise.
84310         * m4/gc-random.m4: Likewise.
84311         * m4/gc.m4: Likewise.
84312         * m4/getaddrinfo.m4: Likewise.
84313         * m4/getcwd-abort-bug.m4: Likewise.
84314         * m4/getcwd-path-max.m4: Likewise.
84315         * m4/getdate.m4: Likewise.
84316         * m4/getdomainname.m4: Likewise.
84317         * m4/getgroups.m4: Likewise.
84318         * m4/gethostname.m4: Likewise.
84319         * m4/gethrxtime.m4: Likewise.
84320         * m4/getline.m4: Likewise.
84321         * m4/getloadavg.m4: Likewise.
84322         * m4/getndelim2.m4: Likewise.
84323         * m4/getpass.m4: Likewise.
84324         * m4/gettext.m4: Likewise.
84325         * m4/gettime.m4: Likewise.
84326         * m4/gettimeofday.m4: Likewise.
84327         * m4/gnulib-common.m4: Likewise.
84328         * m4/group-member.m4: Likewise.
84329         * m4/host-os.m4: Likewise.
84330         * m4/iconv.m4: Likewise.
84331         * m4/iconv_open.m4: Likewise.
84332         * m4/inet_ntop.m4: Likewise.
84333         * m4/inet_pton.m4: Likewise.
84334         * m4/inline.m4: Likewise.
84335         * m4/intldir.m4: Likewise.
84336         * m4/intlmacosx.m4: Likewise.
84337         * m4/intmax.m4: Likewise.
84338         * m4/intmax_t.m4: Likewise.
84339         * m4/inttypes.m4: Likewise.
84340         * m4/inttypes_h.m4: Likewise.
84341         * m4/inttypes-pri.m4: Likewise.
84342         * m4/isapipe.m4: Likewise.
84343         * m4/isnand.m4: Likewise.
84344         * m4/isnanf.m4: Likewise.
84345         * m4/isnanl.m4: Likewise.
84346         * m4/javacomp.m4: Likewise.
84347         * m4/javaexec.m4: Likewise.
84348         * m4/jm-winsz1.m4: Likewise.
84349         * m4/jm-winsz2.m4: Likewise.
84350         * m4/lchown.m4: Likewise.
84351         * m4/lcmessage.m4: Likewise.
84352         * m4/ldexpl.m4: Likewise.
84353         * m4/lib-ld.m4: Likewise.
84354         * m4/lib-link.m4: Likewise.
84355         * m4/libsigsegv.m4: Likewise.
84356         * m4/link-follow.m4: Likewise.
84357         * m4/localcharset.m4: Likewise.
84358         * m4/locale-fr.m4: Likewise.
84359         * m4/locale-ja.m4: Likewise.
84360         * m4/locale-tr.m4: Likewise.
84361         * m4/locale-zh.m4: Likewise.
84362         * m4/lock.m4: Likewise.
84363         * m4/longlong.m4: Likewise.
84364         * m4/ls-mntd-fs.m4: Likewise.
84365         * m4/lstat.m4: Likewise.
84366         * m4/malloc.m4: Likewise.
84367         * m4/mathl.m4: Likewise.
84368         * m4/mbrtowc.m4: Likewise.
84369         * m4/mbstate_t.m4: Likewise.
84370         * m4/mbswidth.m4: Likewise.
84371         * m4/memchr.m4: Likewise.
84372         * m4/memcmp.m4: Likewise.
84373         * m4/memcpy.m4: Likewise.
84374         * m4/memmem.m4: Likewise.
84375         * m4/memmove.m4: Likewise.
84376         * m4/mempcpy.m4: Likewise.
84377         * m4/memrchr.m4: Likewise.
84378         * m4/memset.m4: Likewise.
84379         * m4/minmax.m4: Likewise.
84380         * m4/mkdir-slash.m4: Likewise.
84381         * m4/mkdtemp.m4: Likewise.
84382         * m4/mktime.m4: Likewise.
84383         * m4/mmap-anon.m4: Likewise.
84384         * m4/mountlist.m4: Likewise.
84385         * m4/nanosleep.m4: Likewise.
84386         * m4/nls.m4: Likewise.
84387         * m4/nocrash.m4: Likewise.
84388         * m4/open.m4: Likewise.
84389         * m4/openat.m4: Likewise.
84390         * m4/openmp.m4: Likewise.
84391         * m4/pathmax.m4: Likewise.
84392         * m4/perl.m4: Likewise.
84393         * m4/physmem.m4: Likewise.
84394         * m4/pipe.m4: Likewise.
84395         * m4/po.m4: Likewise.
84396         * m4/poll.m4: Likewise.
84397         * m4/posixtm.m4: Likewise.
84398         * m4/posixver.m4: Likewise.
84399         * m4/printf-frexp.m4: Likewise.
84400         * m4/printf-frexpl.m4: Likewise.
84401         * m4/printf-posix.m4: Likewise.
84402         * m4/printf-posix-rpl.m4: Likewise.
84403         * m4/printf.m4: Likewise.
84404         * m4/progtest.m4: Likewise.
84405         * m4/putenv.m4: Likewise.
84406         * m4/readline.m4: Likewise.
84407         * m4/readlink.m4: Likewise.
84408         * m4/readutmp.m4: Likewise.
84409         * m4/realloc.m4: Likewise.
84410         * m4/regex.m4: Likewise.
84411         * m4/relocatable.m4: Likewise.
84412         * m4/relocatable-lib.m4: Likewise.
84413         * m4/rename-dest-slash.m4: Likewise.
84414         * m4/rename.m4: Likewise.
84415         * m4/rmdir-errno.m4: Likewise.
84416         * m4/rmdir.m4: Likewise.
84417         * m4/roundf.m4: Likewise.
84418         * m4/roundl.m4: Likewise.
84419         * m4/rpmatch.m4: Likewise.
84420         * m4/save-cwd.m4: Likewise.
84421         * m4/selinux-selinux-h.m4: Likewise.
84422         * m4/setenv.m4: Likewise.
84423         * m4/settime.m4: Likewise.
84424         * m4/sig2str.m4: Likewise.
84425         * m4/sig_atomic_t.m4: Likewise.
84426         * m4/signalblocking.m4: Likewise.
84427         * m4/signbit.m4: Likewise.
84428         * m4/sigpipe.m4: Likewise.
84429         * m4/sockets.m4: Likewise.
84430         * m4/sockpfaf.m4: Likewise.
84431         * m4/st_dm_mode.m4: Likewise.
84432         * m4/stat-time.m4: Likewise.
84433         * m4/stdbool.m4: Likewise.
84434         * m4/stdint.m4: Likewise.
84435         * m4/stdint_h.m4: Likewise.
84436         * m4/stpcpy.m4: Likewise.
84437         * m4/stpncpy.m4: Likewise.
84438         * m4/strcase.m4: Likewise.
84439         * m4/strchrnul.m4: Likewise.
84440         * m4/strcspn.m4: Likewise.
84441         * m4/strdup.m4: Likewise.
84442         * m4/strftime.m4: Likewise.
84443         * m4/strndup.m4: Likewise.
84444         * m4/strnlen.m4: Likewise.
84445         * m4/strpbrk.m4: Likewise.
84446         * m4/strptime.m4: Likewise.
84447         * m4/strsep.m4: Likewise.
84448         * m4/strtod.m4: Likewise.
84449         * m4/strtoimax.m4: Likewise.
84450         * m4/strtok_r.m4: Likewise.
84451         * m4/strtol.m4: Likewise.
84452         * m4/strtoll.m4: Likewise.
84453         * m4/strtoul.m4: Likewise.
84454         * m4/strtoull.m4: Likewise.
84455         * m4/strtoumax.m4: Likewise.
84456         * m4/strverscmp.m4: Likewise.
84457         * m4/threadlib.m4: Likewise.
84458         * m4/timegm.m4: Likewise.
84459         * m4/tm_gmtoff.m4: Likewise.
84460         * m4/tmpdir.m4: Likewise.
84461         * m4/tmpfile.m4: Likewise.
84462         * m4/tzset.m4: Likewise.
84463         * m4/uintmax_t.m4: Likewise.
84464         * m4/unlinkdir.m4: Likewise.
84465         * m4/unlocked-io.m4: Likewise.
84466         * m4/uptime.m4: Likewise.
84467         * m4/userspec.m4: Likewise.
84468         * m4/utimbuf.m4: Likewise.
84469         * m4/utime.m4: Likewise.
84470         * m4/utimes-null.m4: Likewise.
84471         * m4/utimes.m4: Likewise.
84472         * m4/vararrays.m4: Likewise.
84473         * m4/vasnprintf.m4: Likewise.
84474         * m4/vfprintf-posix.m4: Likewise.
84475         * m4/vprintf-posix.m4: Likewise.
84476         * m4/wait-process.m4: Likewise.
84477         * m4/wchar_t.m4: Likewise.
84478         * m4/wint_t.m4: Likewise.
84479         * m4/write-any-file.m4: Likewise.
84480         * m4/yield.m4: Likewise.
84482 2009-01-13  Bruno Haible  <bruno@clisp.org>
84484         Avoid test-copy-file.sh failures when ACL support insufficient.
84485         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
84486         TESTS_ENVIRONMENT.
84487         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
84488         Reported by Jim Meyering.
84490 2009-01-13  Bruno Haible  <bruno@clisp.org>
84492         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
84493         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
84494         * modules/unistdio/u8-printf-parse (Files): Likewise.
84495         * modules/unistdio/u32-printf-parse (Files): Likewise.
84496         * modules/unistdio/ulc-printf-parse (Files): Likewise.
84498 2009-01-13  Simon Josefsson  <simon@josefsson.org>
84500         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
84501         and m4/inttypes_h.m4 too.
84503 2009-01-12  Eric Blake  <ebb9@byu.net>
84505         tests: IRIX 6.2 cc can't compile -0.0 into .data
84506         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
84507         rather than at compile-time.
84508         * tests/test-floorl.c (minus_zero): Likewise.
84509         * tests/test-frexpl.c (minus_zero): Likewise.
84510         * tests/test-isnan.c (minus_zerol): Likewise.
84511         * tests/test-isnanl.h (minus_zero): Likewise.
84512         * tests/test-ldexpl.c (minus_zero): Likewise.
84513         * tests/test-roundl.c (minus_zero): Likewise.
84514         * tests/test-signbit.c (minus_zerol): Likewise.
84515         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
84516         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
84517         * tests/test-truncl.c (minus_zero): Likewise.
84518         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
84519         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
84520         Reported by Tom G. Christensen and Nelson H. F. Beebe.
84522 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84524         regex: fix glibc bug 9697
84525         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
84526         handling.
84528 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84530         regex: fix glibc bug 697
84531         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
84532         being NULL also if there are no backreferences.
84534 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
84536         regex: merge glibc changes
84537         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
84538         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
84539         re_string_skip_chars, re_string_reconstruct): Likewise.
84540         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
84542 2009-01-07  Jim Meyering  <meyering@redhat.com>
84544         poll: filter through cppi
84545         * lib/poll.c: Indent cpp directives to reflect nesting.
84547 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
84549         poll: don't return uninitialized
84550         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
84552 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
84554         avoid compile failure on AIX 6.1
84555         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
84556         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
84558 2009-01-04  Jim Meyering  <meyering@redhat.com>
84560         remove duplicate inclusion of <stdio.h>
84561         * tests/test-fprintf-posix.c: Likewise.
84562         * tests/test-printf-posix.c: Likewise.
84563         * tests/test-snprintf-posix.c: Likewise.
84564         * tests/test-sprintf-posix.c: Likewise.
84565         * tests/test-vasprintf-posix.c: Likewise.
84566         * tests/test-vfprintf-posix.c: Likewise.
84567         * tests/test-vprintf-posix.c: Likewise.
84568         * tests/test-vsnprintf-posix.c: Likewise.
84569         * tests/test-vsprintf-posix.c: Likewise.
84571 2009-01-03  Jim Meyering  <meyering@redhat.com>
84573         gnulib-tool: fix sed-based filtering
84574         * gnulib-tool (func_filter_filelist): Remove extra backslash
84575         in sed_fff_filter definition.
84577 2009-01-02  Jim Meyering  <meyering@redhat.com>
84579         strftime: avoid compilation failure on Solaris 2.6
84580         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
84581         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
84582         Don't #define mbrlen or mbsinit, since now they're guaranteed to
84583         be available.  Reported by Tom G. Christensen.  Details in
84584         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
84586 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84587             Bruno Haible  <bruno@clisp.org>
84589         Speed up gnulib-tool by doing more string processing through shell
84590         built-ins.
84591         * gnulib-tool (fast_func_append): New variable.
84592         (func_remove_prefix, func_remove_suffix): New functions.
84593         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
84594         (func_filter_filelist): New function.
84595         (func_get_dependencies): Use func_remove_suffix instead of sed.
84596         (func_get_automake_snippet): Use func_filter_filelist instead of a
84597         subshell and sed invocation.
84599 2009-01-01  Bruno Haible  <bruno@clisp.org>
84601         Fix a security bug.
84602         * gnulib-tool (func_import, import, update): Don't allow the characters
84603         '"', '$', '`', '\' in macro arguments that become part of commands that
84604         are evaluated.
84606 2009-01-01  Bruno Haible  <bruno@clisp.org>
84608         * gnulib-tool (func_reset_sigpipe): Add more comments.
84610 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84612         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
84613         func_emit_tests_Makefile_am, func_import): Abort loops early if we
84614         already know the answer.
84616 2009-01-01  Jim Meyering  <meyering@redhat.com>
84618         * lib/version-etc.c (version_etc_va): Update copyright year.
84620 2008-12-30  Bruno Haible  <bruno@clisp.org>
84622         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
84623         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
84624         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
84626 2008-12-29  Eric Blake  <ebb9@byu.net>
84628         multiarch: avoid autoconf AC_REQUIRE bug
84629         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
84630         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
84631         2.63 and older.
84632         Reported by Bruno Haible, and analyzed in
84633         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
84635 2008-12-29  Bruno Haible  <bruno@clisp.org>
84637         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
84638         files in subdirectories correctly.
84639         Reported by Ralf Wildenhues.
84641 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84643         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
84644         rather than 'join FILE -', for Solaris join.
84646 2008-12-29  Bruno Haible  <bruno@clisp.org>
84648         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
84649         quoting.
84650         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
84651         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
84652         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
84653         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
84654         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
84655         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
84656         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
84657         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
84658         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
84659         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
84660         * m4/nls.m4 (AM_NLS): Likewise.
84661         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
84662         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
84663         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
84664         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
84665         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
84666         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
84667         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
84668         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
84669         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
84670         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
84671         * m4/xsize.m4 (gl_XSIZE): Likewise.
84672         Suggested by Jim Meyering.
84674 2008-11-17  Bruce Korb  <bkorb@gnu.org>
84676         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
84677         * lib/parse-duration.c: use a switch instead of cascading if's.
84679 2008-12-29  Eric Blake  <ebb9@byu.net>
84681         wchar.h: supply WEOF on Irix 5.3
84682         * lib/wchar.in.h (wint_t): Also supply WEOF.
84683         * lib/wctype.in.h (wint_t): Likewise.
84684         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
84685         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
84686         Reported by Tom G. Christensen.
84688 2008-12-26  Bruno Haible  <bruno@clisp.org>
84690         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
84691         i486, i586, i686.
84693 2008-12-26  Bruno Haible  <bruno@clisp.org>
84695         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
84697 2008-12-26  Bruno Haible  <bruno@clisp.org>
84699         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
84700         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
84701         not __STDC_CONSTANT_MACROS.
84702         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
84704 2008-12-25  Bruno Haible  <bruno@clisp.org>
84706         Add support for universal builds to vasnprintf.
84707         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
84708         universal builds, guess no.
84709         * modules/vasnprintf-posix (Depends-on): Add multiarch.
84710         * modules/vasprintf-posix (Depends-on): Likewise.
84711         * modules/fprintf-posix (Depends-on): Likewise.
84712         * modules/vfprintf-posix (Depends-on): Likewise.
84713         * modules/snprintf-posix (Depends-on): Likewise.
84714         * modules/vsnprintf-posix (Depends-on): Likewise.
84715         * modules/sprintf-posix (Depends-on): Likewise.
84716         * modules/vsprintf-posix (Depends-on): Likewise.
84717         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
84718         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
84719         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
84720         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
84721         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
84722         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
84723         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
84725         Add support for universal builds to <inttypes.h>.
84726         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
84727         _SCNu64_PREFIX): In Apple
84728         universal builds, define directly, using _LP64.
84729         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
84730         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
84731         * modules/inttypes (Depends-on): Add multiarch.
84732         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84734         Add support for universal builds to <stdint.h>.
84735         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
84736         universal builds, define directly, using _LP64.
84737         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
84738         Apple universal builds, don't test for the size and suffix of ptrdiff_t
84739         and size_t.
84740         * modules/stdint (Depends-on): Add multiarch.
84741         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
84743         New module 'multiarch'.
84744         * modules/multiarch: New file.
84745         * m4/multiarch.m4: New file.
84747 2008-12-25  Bruno Haible  <bruno@clisp.org>
84749         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
84751 2008-12-25  Bruno Haible  <bruno@clisp.org>
84753         * modules/btowc (License): Relicense under LGPLv2+.
84754         * modules/mbsinit (License): Likewise.
84755         * modules/mbrtowc (License): Likewise.
84756         * modules/wcrtomb (License): Likewise.
84757         * modules/streq (License): Likewise.
84758         Reported by David Lutterkort <lutter@redhat.com>.
84760 2008-12-23  Bruno Haible  <bruno@clisp.org>
84762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
84764 2008-12-23  Bruno Haible  <bruno@clisp.org>
84766         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
84767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
84768         GETADDRINFO_LIB, not in LIBS.
84769         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
84770         * modules/canon-host (Link): Likewise.
84771         * NEWS: Mention the change.
84772         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
84773         GETADDRINFO_LIB.
84775 2008-12-22  Bruno Haible  <bruno@clisp.org>
84777         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
84778         * doc/posix-functions/iswalpha_l.texi: Likewise.
84779         * doc/posix-functions/iswblank_l.texi: Likewise.
84780         * doc/posix-functions/iswcntrl_l.texi: Likewise.
84781         * doc/posix-functions/iswctype_l.texi: Likewise.
84782         * doc/posix-functions/iswdigit_l.texi: Likewise.
84783         * doc/posix-functions/iswgraph_l.texi: Likewise.
84784         * doc/posix-functions/iswlower_l.texi: Likewise.
84785         * doc/posix-functions/iswprint_l.texi: Likewise.
84786         * doc/posix-functions/iswpunct_l.texi: Likewise.
84787         * doc/posix-functions/iswspace_l.texi: Likewise.
84788         * doc/posix-functions/iswupper_l.texi: Likewise.
84789         * doc/posix-functions/iswxdigit_l.texi: Likewise.
84790         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
84791         * doc/posix-functions/open_wmemstream.texi: Likewise.
84792         * doc/posix-functions/swscanf.texi: Likewise.
84793         * doc/posix-functions/towctrans_l.texi: Likewise.
84794         * doc/posix-functions/towlower.texi: Likewise.
84795         * doc/posix-functions/towlower_l.texi: Likewise.
84796         * doc/posix-functions/towupper.texi: Likewise.
84797         * doc/posix-functions/towupper_l.texi: Likewise.
84798         * doc/posix-functions/vfwprintf.texi: Likewise.
84799         * doc/posix-functions/vfwscanf.texi: Likewise.
84800         * doc/posix-functions/vswscanf.texi: Likewise.
84801         * doc/posix-functions/vwprintf.texi: Likewise.
84802         * doc/posix-functions/vwscanf.texi: Likewise.
84803         * doc/posix-functions/wcpcpy.texi: Likewise.
84804         * doc/posix-functions/wcpncpy.texi: Likewise.
84805         * doc/posix-functions/wcscasecmp.texi: Likewise.
84806         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
84807         * doc/posix-functions/wcscoll_l.texi: Likewise.
84808         * doc/posix-functions/wcsdup.texi: Likewise.
84809         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84810         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
84811         * doc/posix-functions/wcsnlen.texi: Likewise.
84812         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84813         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
84814         * doc/posix-functions/wctrans_l.texi: Likewise.
84815         * doc/posix-functions/wctype_l.texi: Likewise.
84816         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
84817         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
84818         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
84819         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
84820         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
84821         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
84822         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
84823         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
84824         * doc/glibc-functions/wcschrnul.texi: Likewise.
84825         * doc/glibc-functions/wcsftime_l.texi: Likewise.
84826         * doc/glibc-functions/wcstod_l.texi: Likewise.
84827         * doc/glibc-functions/wcstof_l.texi: Likewise.
84828         * doc/glibc-functions/wcstol_l.texi: Likewise.
84829         * doc/glibc-functions/wcstold_l.texi: Likewise.
84830         * doc/glibc-functions/wcstoll_l.texi: Likewise.
84831         * doc/glibc-functions/wcstoq.texi: Likewise.
84832         * doc/glibc-functions/wcstoul_l.texi: Likewise.
84833         * doc/glibc-functions/wcstoull_l.texi: Likewise.
84834         * doc/glibc-functions/wcstouq.texi: Likewise.
84835         * doc/glibc-functions/wmempcpy.texi: Likewise.
84837 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
84838             Eric Blake  <ebb9@byu.net>
84839             Paolo Bonzini  <bonzini@gnu.org>
84840             Bruno Haible  <bruno@clisp.org>
84842         Make c-stack work on Haiku.
84843         * lib/c-stack.c (SA_ONSTACK): Define fallback.
84844         (c_stack_action): Use SA_ONSTACK flag.
84846 2008-12-22  Bruno Haible  <bruno@clisp.org>
84848         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
84850 2008-12-22  Bruno Haible  <bruno@clisp.org>
84852         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
84853         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
84854         being overridden.
84855         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
84856         New macros.
84857         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
84858         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
84859         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
84860         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
84862 2008-12-22  Bruno Haible  <bruno@clisp.org>
84864         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
84865         from test code.
84867 2008-12-22  Eric Blake  <ebb9@byu.net>
84869         Avoid gcc warnings on cygwin.
84870         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
84871         Avoid unused variable.
84872         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
84873         Likewise.
84875 2008-12-22  Bruno Haible  <bruno@clisp.org>
84877         Remove HAVE_MBRTOWC conditionals.
84878         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
84879         (mbscasecmp): Assume mbrtowc function.
84880         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
84881         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
84882         * lib/mbschr.c: Include mbuiter.h unconditionally.
84883         (mbschr): Assume mbrtowc function.
84884         * lib/mbscspn.c: Include mbuiter.h unconditionally.
84885         (mbscspn): Assume mbrtowc function.
84886         * lib/mbslen.c: Include mbuiter.h unconditionally.
84887         (mbslen): Assume mbrtowc function.
84888         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
84889         (mbsncasecmp): Assume mbrtowc function.
84890         * lib/mbsnlen.c: Include mbiter.h unconditionally.
84891         (mbsnlen): Assume mbrtowc function.
84892         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
84893         (mbspbrk): Assume mbrtowc function.
84894         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
84895         (mbspcasecmp): Assume mbrtowc function.
84896         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
84897         (mbsrchr): Assume mbrtowc function.
84898         * lib/mbssep.c: Include mbuiter.h unconditionally.
84899         (mbssep): Assume mbrtowc function.
84900         * lib/mbsspn.c: Include mbuiter.h unconditionally.
84901         (mbsspn): Assume mbrtowc function.
84902         * lib/mbsstr.c: Include mbuiter.h unconditionally.
84903         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
84904         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
84905         (mbstok_r): Assume mbrtowc function.
84906         * lib/propername.c: Include mbuiter.h unconditionally.
84907         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
84908         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
84909         (trim2): Assume mbrtowc function.
84910         * lib/mbswidth.c (mbsinit): Remove fallback definition.
84911         (mbsnwidth): Assume mbrtowc function.
84912         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
84913         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
84914         fallback definitions.
84915         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
84917 2008-12-22  Bruno Haible  <bruno@clisp.org>
84919         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
84921 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
84923         * modules/regex: Request emulations for the mb*/wc* functions we need.
84924         * m4/regex.m4: Don't look for those functions here.
84925         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
84927 2008-12-22  Bruno Haible  <bruno@clisp.org>
84929         * modules/fnmatch (Depends-on): Remove duplicated dependency.
84931 2008-12-21  Bruno Haible  <bruno@clisp.org>
84933         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
84934         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
84935         (Include): Remove conditionalization.
84936         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
84937         (Include): Remove conditionalization.
84938         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
84939         (Include): Remove conditionalization.
84940         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
84941         * m4/mbfile.m4 (gl_MBFILE): Likewise.
84942         * NEWS: Mention the change.
84943         Reported by Alan Hourihane <alanh@fairlite.co.uk>
84944         via Sergey Poznyakoff <gray@gnu.org.ua>.
84946 2008-12-21  Bruno Haible  <bruno@clisp.org>
84948         * MODULES.html.sh (Extended multibyte and wide character utilities
84949         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
84950         wcrtomb, wcsrtombs.
84951         (Support for systems lacking POSIX:2008): Add accept, bind, close,
84952         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
84953         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
84954         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
84956 2008-12-21  Bruno Haible  <bruno@clisp.org>
84958         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
84960 2008-12-21  Bruno Haible  <bruno@clisp.org>
84962         * modules/wcsnrtombs-tests: New file.
84963         * tests/test-wcsnrtombs1.sh: New file.
84964         * tests/test-wcsnrtombs2.sh: New file.
84965         * tests/test-wcsnrtombs3.sh: New file.
84966         * tests/test-wcsnrtombs4.sh: New file.
84967         * tests/test-wcsnrtombs.c: New file.
84969         New module 'wcsnrtombs'.
84970         * lib/wchar.in.h (wcsnrtombs): New declaration.
84971         * lib/wcsnrtombs.c: New file.
84972         * lib/wcsrtombs-state.c: New file.
84973         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
84974         (internal_state): Remove variable.
84975         * m4/wcsnrtombs.m4: New file.
84976         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
84977         compilation units.
84978         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
84979         HAVE_WCSNRTOMBS.
84980         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
84981         HAVE_WCSNRTOMBS.
84982         * modules/wcsnrtombs: New file.
84983         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
84984         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
84986 2008-12-21  Bruno Haible  <bruno@clisp.org>
84988         * modules/wcsrtombs-tests: New file.
84989         * tests/test-wcsrtombs1.sh: New file.
84990         * tests/test-wcsrtombs2.sh: New file.
84991         * tests/test-wcsrtombs3.sh: New file.
84992         * tests/test-wcsrtombs4.sh: New file.
84993         * tests/test-wcsrtombs.c: New file.
84995         New module 'wcsrtombs'.
84996         * lib/wchar.in.h (wcsrtombs): New declaration.
84997         * lib/wcsrtombs.c: New file.
84998         * m4/wcsrtombs.m4: New file.
84999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
85000         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
85002         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
85003         * modules/wcsrtombs: New file.
85004         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
85005         bugs.
85007 2008-12-21  Bruno Haible  <bruno@clisp.org>
85009         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
85010         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
85011         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
85012         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
85013         if not correct.
85014         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
85015         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
85016         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85017         m4/locale-zh.m4, m4/codeset.m4.
85018         * doc/posix-functions/wcrtomb.texi: Document the bug.
85020 2008-12-21  Bruno Haible  <bruno@clisp.org>
85022         Work around a btowc() bug on IRIX 6.5.
85023         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
85024         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
85025         REPLACE_WTOBC if not.
85026         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
85027         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
85028         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
85030 2008-12-21  Bruno Haible  <bruno@clisp.org>
85032         * modules/wcrtomb-tests: New file.
85033         * tests/test-wcrtomb.sh: New file.
85034         * tests/test-wcrtomb.c: New file.
85036         New module 'wcrtomb'.
85037         * lib/wchar.in.h (wcrtomb): New declaration.
85038         * lib/wcrtomb.c: New file.
85039         * m4/wcrtomb.m4: New file.
85040         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
85041         HAVE_WCRTOMB.
85042         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
85043         HAVE_WCRTOMB.
85044         * modules/wcrtomb: New file.
85045         * doc/posix-functions/wcrtomb.texi: Mention the new module.
85047 2008-12-21  Bruno Haible  <bruno@clisp.org>
85049         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
85050         * modules/mbsrtowcs (Files): Likewise.
85051         * modules/wctob (Files): Likewise.
85052         * modules/c-strcase-tests (Files): Likewise.
85053         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
85054         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
85055         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
85056         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
85057         * modules/vasnprintf-posix-tests (Files): Likewise.
85059 2008-12-21  William Pursell  <bill.pursell@gmail.com>
85061         gitlog-to-changelog: pass all command-line arguments to git-log
85062         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
85063         it is sometimes convenient to filter the commits in various ways.
85064         gitlog-to-changelog only allows --since to specify a start date,
85065         but git-log itself supports many other filtering mechanisms.
85066         At the moment, I want to filter by branch name.  Rather than
85067         adding a --branch option to gitlog-to-changelog, it seems more
85068         flexible to simply pass all options directly to git-log and let
85069         git do the work.  Notice that this effectively makes --since a
85070         redundant option for gitlog-to-changelog, but removing it would
85071         require current usage to change since calls would then require
85072         an additional '--'.
85074 2008-12-21  Bruno Haible  <bruno@clisp.org>
85076         * modules/mbsnrtowcs-tests: New file.
85077         * tests/test-mbsnrtowcs1.sh: New file.
85078         * tests/test-mbsnrtowcs2.sh: New file.
85079         * tests/test-mbsnrtowcs3.sh: New file.
85080         * tests/test-mbsnrtowcs4.sh: New file.
85081         * tests/test-mbsnrtowcs.c: New file.
85083         New module 'mbsnrtowcs'.
85084         * lib/wchar.in.h (mbsnrtowcs): New declaration.
85085         * lib/mbsnrtowcs.c: New file.
85086         * lib/mbsrtowcs-state.c: New file.
85087         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
85088         (internal_state): Remove variable.
85089         * m4/mbsnrtowcs.m4: New file.
85090         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
85091         compilation units.
85092         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
85093         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85094         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
85095         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
85096         * modules/mbsnrtowcs: New file.
85097         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
85098         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
85099         portability problem.
85101 2008-12-21  Bruno Haible  <bruno@clisp.org>
85103         Work around mbsrtowcs bug.
85104         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
85105         (gl_FUNC_MBSRTOWCS): Invoke it.
85106         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85107         m4/locale-zh.m4.
85108         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
85110 2008-12-21  Bruno Haible  <bruno@clisp.org>
85112         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
85114 2008-12-21  Bruno Haible  <bruno@clisp.org>
85116         Update doc for AIX.
85117         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
85118         16-bit wchar_t type.
85119         * doc/posix-functions/btowc.texi: Likewise.
85120         * doc/posix-functions/fgetwc.texi: Likewise.
85121         * doc/posix-functions/fgetws.texi: Likewise.
85122         * doc/posix-functions/fputwc.texi: Likewise.
85123         * doc/posix-functions/fputws.texi: Likewise.
85124         * doc/posix-functions/fwide.texi: Likewise.
85125         * doc/posix-functions/fwprintf.texi: Likewise.
85126         * doc/posix-functions/fwscanf.texi: Likewise.
85127         * doc/posix-functions/getwchar.texi: Likewise.
85128         * doc/posix-functions/getwc.texi: Likewise.
85129         * doc/posix-functions/iswalnum.texi: Likewise.
85130         * doc/posix-functions/iswalpha.texi: Likewise.
85131         * doc/posix-functions/iswblank.texi: Likewise.
85132         * doc/posix-functions/iswcntrl.texi: Likewise.
85133         * doc/posix-functions/iswctype.texi: Likewise.
85134         * doc/posix-functions/iswdigit.texi: Likewise.
85135         * doc/posix-functions/iswgraph.texi: Likewise.
85136         * doc/posix-functions/iswlower.texi: Likewise.
85137         * doc/posix-functions/iswprint.texi: Likewise.
85138         * doc/posix-functions/iswpunct.texi: Likewise.
85139         * doc/posix-functions/iswspace.texi: Likewise.
85140         * doc/posix-functions/iswupper.texi: Likewise.
85141         * doc/posix-functions/iswxdigit.texi: Likewise.
85142         * doc/posix-functions/mbrtowc.texi: Likewise.
85143         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85144         * doc/posix-functions/mbstowcs.texi: Likewise.
85145         * doc/posix-functions/mbtowc.texi: Likewise.
85146         * doc/posix-functions/putwchar.texi: Likewise.
85147         * doc/posix-functions/putwc.texi: Likewise.
85148         * doc/posix-functions/swprintf.texi: Likewise.
85149         * doc/posix-functions/tolower.texi: Likewise.
85150         * doc/posix-functions/toupper.texi: Likewise.
85151         * doc/posix-functions/towctrans.texi: Likewise.
85152         * doc/posix-functions/ungetwc.texi: Likewise.
85153         * doc/posix-functions/vswprintf.texi: Likewise.
85154         * doc/posix-functions/wcrtomb.texi: Likewise.
85155         * doc/posix-functions/wcscat.texi: Likewise.
85156         * doc/posix-functions/wcschr.texi: Likewise.
85157         * doc/posix-functions/wcscmp.texi: Likewise.
85158         * doc/posix-functions/wcscoll.texi: Likewise.
85159         * doc/posix-functions/wcscpy.texi: Likewise.
85160         * doc/posix-functions/wcscspn.texi: Likewise.
85161         * doc/posix-functions/wcsftime.texi: Likewise.
85162         * doc/posix-functions/wcslen.texi: Likewise.
85163         * doc/posix-functions/wcsncat.texi: Likewise.
85164         * doc/posix-functions/wcsncmp.texi: Likewise.
85165         * doc/posix-functions/wcsncpy.texi: Likewise.
85166         * doc/posix-functions/wcspbrk.texi: Likewise.
85167         * doc/posix-functions/wcsrchr.texi: Likewise.
85168         * doc/posix-functions/wcsrtombs.texi: Likewise.
85169         * doc/posix-functions/wcsspn.texi: Likewise.
85170         * doc/posix-functions/wcsstr.texi: Likewise.
85171         * doc/posix-functions/wcstod.texi: Likewise.
85172         * doc/posix-functions/wcstof.texi: Likewise.
85173         * doc/posix-functions/wcstoimax.texi: Likewise.
85174         * doc/posix-functions/wcstok.texi: Likewise.
85175         * doc/posix-functions/wcstold.texi: Likewise.
85176         * doc/posix-functions/wcstoll.texi: Likewise.
85177         * doc/posix-functions/wcstol.texi: Likewise.
85178         * doc/posix-functions/wcstombs.texi: Likewise.
85179         * doc/posix-functions/wcstoull.texi: Likewise.
85180         * doc/posix-functions/wcstoul.texi: Likewise.
85181         * doc/posix-functions/wcstoumax.texi: Likewise.
85182         * doc/posix-functions/wcswidth.texi: Likewise.
85183         * doc/posix-functions/wcsxfrm.texi: Likewise.
85184         * doc/posix-functions/wctob.texi: Likewise.
85185         * doc/posix-functions/wctomb.texi: Likewise.
85186         * doc/posix-functions/wctrans.texi: Likewise.
85187         * doc/posix-functions/wctype.texi: Likewise.
85188         * doc/posix-functions/wcwidth.texi: Likewise.
85189         * doc/posix-functions/wmemchr.texi: Likewise.
85190         * doc/posix-functions/wmemcmp.texi: Likewise.
85191         * doc/posix-functions/wmemcpy.texi: Likewise.
85192         * doc/posix-functions/wmemmove.texi: Likewise.
85193         * doc/posix-functions/wmemset.texi: Likewise.
85194         * doc/posix-functions/wprintf.texi: Likewise.
85195         * doc/posix-functions/wscanf.texi: Likewise.
85197 2008-12-21  Bruno Haible  <bruno@clisp.org>
85199         Update doc for HP-UX 11.11.
85200         * doc/posix-functions/btowc.texi: Clarify that the function is missing
85201         in HP-UX version 11.00, not in all versions of HP-UX 11.
85202         * doc/posix-functions/fwide.texi: Likewise.
85203         * doc/posix-functions/fwprintf.texi: Likewise.
85204         * doc/posix-functions/fwscanf.texi: Likewise.
85205         * doc/posix-functions/inet_ntop.texi: Likewise.
85206         * doc/posix-functions/inet_pton.texi: Likewise.
85207         * doc/posix-functions/mbrlen.texi: Likewise.
85208         * doc/posix-functions/mbrtowc.texi: Likewise.
85209         * doc/posix-functions/mbsinit.texi: Likewise.
85210         * doc/posix-functions/mbsrtowcs.texi: Likewise.
85211         * doc/posix-functions/swprintf.texi: Likewise.
85212         * doc/posix-functions/swscanf.texi: Likewise.
85213         * doc/posix-functions/towctrans.texi: Likewise.
85214         * doc/posix-functions/vfwprintf.texi: Likewise.
85215         * doc/posix-functions/vswprintf.texi: Likewise.
85216         * doc/posix-functions/vwprintf.texi: Likewise.
85217         * doc/posix-functions/wcrtomb.texi: Likewise.
85218         * doc/posix-functions/wcsrtombs.texi: Likewise.
85219         * doc/posix-functions/wcsstr.texi: Likewise.
85220         * doc/posix-functions/wctob.texi: Likewise.
85221         * doc/posix-functions/wctrans.texi: Likewise.
85222         * doc/posix-functions/wmemchr.texi: Likewise.
85223         * doc/posix-functions/wmemcmp.texi: Likewise.
85224         * doc/posix-functions/wmemcpy.texi: Likewise.
85225         * doc/posix-functions/wmemmove.texi: Likewise.
85226         * doc/posix-functions/wmemset.texi: Likewise.
85227         * doc/posix-functions/wprintf.texi: Likewise.
85228         * doc/posix-functions/wscanf.texi: Likewise.
85230 2008-12-21  Bruno Haible  <bruno@clisp.org>
85232         Work around a portability problem.
85233         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
85234         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
85236 2008-12-20  Bruno Haible  <bruno@clisp.org>
85238         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
85239         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
85240         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
85241         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
85242         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
85244         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
85245         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
85246         set.
85247         (GNULIB_defined_mbstate_t): New macro.
85248         (mbsinit): Redefine if REPLACE_MBSINIT is set.
85249         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
85250         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
85251         reuses the system's mbrtowc function but works around the bugs.
85252         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
85253         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
85254         macros.
85255         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
85256         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
85257         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
85258         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
85259         REPLACE_MBSINIT if mbsinit needs to be overridden.
85260         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
85261         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85262         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
85263         REPLACE_MBSINIT, REPLACE_MBRTOWC.
85264         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
85265         m4/locale-zh.m4.
85266         (Depends): Add mbsinit.
85267         * modules/mbsinit (Depends): Add mbrtowc.
85268         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
85270 2008-12-20  Bruno Haible  <bruno@clisp.org>
85272         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
85273         so that there are no conversion errors on AIX.
85274         * tests/test-mbsrtowcs.c (main): LIkewise.
85276 2008-12-20  Bruno Haible  <bruno@clisp.org>
85278         Work around wctob bug on Solaris <= 9.
85279         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
85280         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
85281         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
85282         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
85283         * modules/wctob (Files): Add m4/locale-fr.m4.
85284         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
85286 2008-12-20  Bruno Haible  <bruno@clisp.org>
85288         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
85289         /dev/null.
85290         * tests/test-select-in.sh: Likewise.
85291         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85293 2008-12-20  Bruno Haible  <bruno@clisp.org>
85295         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
85296         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
85297         Cygwin 1.5.x.
85299 2008-12-20  Bruno Haible  <bruno@clisp.org>
85301         Ensure mbstate_t is defined on HP-UX 11.11.
85302         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
85303         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
85304         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
85305         AC_USE_SYSTEM_EXTENSIONS.
85306         * modules/fnmatch (Depends-on): Add extensions.
85307         * modules/mbrlen (Depends-on): Likewise.
85308         * modules/mbrtowc (Depends-on): Likewise.
85309         * modules/mbsinit (Depends-on): Likewise.
85310         * modules/mbsrtowcs (Depends-on): Likewise.
85311         * modules/mbswidth (Depends-on): Likewise.
85312         * modules/quotearg (Depends-on): Likewise.
85313         * modules/strftime (Depends-on): Likewise.
85315 2008-12-20  Bruno Haible  <bruno@clisp.org>
85317         Ensure wctob is declared on IRIX 6.5.
85318         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
85319         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
85320         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
85321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
85322         of HAVE_WCTOB.
85323         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
85324         HAVE_WCTOB.
85325         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
85327 2008-12-19  Bruno Haible  <bruno@clisp.org>
85329         * modules/mbsrtowcs-tests: New file.
85330         * tests/test-mbsrtowcs1.sh: New file.
85331         * tests/test-mbsrtowcs2.sh: New file.
85332         * tests/test-mbsrtowcs3.sh: New file.
85333         * tests/test-mbsrtowcs4.sh: New file.
85334         * tests/test-mbsrtowcs.c: New file.
85336         New module 'mbsrtowcs'.
85337         * lib/wchar.in.h (mbsrtowcs): New declaration.
85338         * lib/mbsrtowcs.c: New file.
85339         * m4/mbsrtowcs.m4: New file.
85340         * modules/mbsrtowcs: New file.
85341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
85342         HAVE_MBSRTOWCS.
85343         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
85344         HAVE_MBSRTOWCS.
85345         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
85347 2008-12-19  Bruno Haible  <bruno@clisp.org>
85349         New module 'mbrlen'.
85350         * lib/wchar.in.h (mbrlen): New declaration.
85351         * lib/mbrlen.c: New file.
85352         * m4/mbrlen.m4: New file.
85353         * modules/mbrlen: New file.
85354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
85355         HAVE_MBRLEN.
85356         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
85357         HAVE_MBRLEN.
85358         * doc/posix-functions/mbrlen.texi: Document the new module.
85360 2008-12-19  Bruno Haible  <bruno@clisp.org>
85362         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
85363         * modules/mbrtowc (Depends-on): Add verify.
85364         Suggested by Paul Eggert.
85366 2008-12-18  Bruno Haible  <bruno@clisp.org>
85368         * modules/mbsinit-tests: New file.
85369         * tests/test-mbsinit.sh: New file.
85370         * tests/test-mbsinit.c: New file.
85372 2008-12-18  Bruno Haible  <bruno@clisp.org>
85374         * modules/mbrtowc-tests: New file.
85375         * tests/test-mbrtowc1.sh: New file.
85376         * tests/test-mbrtowc2.sh: New file.
85377         * tests/test-mbrtowc3.sh: New file.
85378         * tests/test-mbrtowc4.sh: New file.
85379         * tests/test-mbrtowc.c: New file.
85381         New module 'mbrtowc'.
85382         * lib/wchar.in.h (mbstate_t): Override when the system does not have
85383         mbsinit and mbrtowc.
85384         (mbrtowc): New declaration.
85385         * lib/mbrtowc.c: New file.
85386         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
85387         * modules/mbrtowc: New file.
85388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
85389         HAVE_MBRTOWC.
85390         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
85391         HAVE_MBRTOWC.
85392         * doc/posix-functions/mbrtowc.texi: Document the new module.
85394 2008-12-18  Bruno Haible  <bruno@clisp.org>
85396         New module 'wctob'.
85397         * lib/wchar.in.h (wctob): New declaration.
85398         * lib/wctob.c: New file.
85399         * m4/wctob.m4: New file.
85400         * modules/wctob: New file.
85401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
85402         HAVE_WCTOB.
85403         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
85404         * doc/posix-functions/wctob.texi: Document the new module.
85406 2008-12-18  Bruno Haible  <bruno@clisp.org>
85408         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
85409         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
85411 2008-12-18  Simon Josefsson  <simon@josefsson.org>
85413         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
85414         G. Christensen" <tgc@jupiterrise.com>.
85416         * lib/flock.c: Need to include errno.h.  Reported by "Tom
85417         G. Christensen" <tgc@jupiterrise.com>.
85419         * lib/flock.c: Need to include string.h.  Reported by "Tom
85420         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
85421         <ebb9@byu.net>.
85423 2008-12-18  Bruno Haible  <bruno@clisp.org>
85425         * m4/locale-ja.m4: New file, from GNU gettext.
85427 2008-12-17  Bruno Haible  <bruno@clisp.org>
85429         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
85430         Suggested by Eric Blake.
85432 2008-12-17  Bruno Haible  <bruno@clisp.org>
85434         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
85436 2008-12-17  Bruno Haible  <bruno@clisp.org>
85438         * lib/mbsinit.c: Include verify.h. Verify an assumption.
85439         * modules/mbsinit (Depends-on): Add verify.
85440         Suggested by Paul Eggert.
85442 2008-12-17  Bruno Haible  <bruno@clisp.org>
85444         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
85445         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
85446         gl_FUNC_MBRTOWC.
85447         * m4/mbiter.m4 (gl_MBITER): LIkewise.
85448         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
85449         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
85450         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
85451         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
85452         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
85453         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
85454         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
85455         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
85456         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
85457         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
85458         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
85459         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
85460         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
85461         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
85462         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
85463         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
85464         * modules/trim (configure.ac): Likewise.
85466 2008-12-17  Bruno Haible  <bruno@clisp.org>
85468         * modules/btowc-tests: New file.
85469         * tests/test-btowc1.sh: New file.
85470         * tests/test-btowc2.sh: New file.
85471         * tests/test-btowc.c: New file.
85473         New module 'btowc'.
85474         * lib/wchar.in.h (btowc): New declaration.
85475         * lib/btowc.c: New file.
85476         * m4/btowc.m4: New file.
85477         * modules/btowc: New file.
85478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
85479         HAVE_BTOWC.
85480         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
85481         * doc/posix-functions/btowc.texi: Document the new module.
85483 2008-12-17  Bruno Haible  <bruno@clisp.org>
85485         New module 'mbsinit'.
85486         * lib/wchar.in.h (mbsinit): New declaration.
85487         * lib/mbsinit.c: New file.
85488         * m4/mbsinit.m4: New file.
85489         * modules/mbsinit: New file.
85490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
85491         HAVE_MBSINIT.
85492         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
85493         HAVE_MBSINIT.
85494         * doc/posix-functions/mbsinit.texi: Document the new module.
85496 2008-12-16  Bruno Haible  <bruno@clisp.org>
85498         * lib/unistd.in.h: Add comment.
85499         * tests/test-environ.c: Don't include <stdlib.h>.
85501 2008-12-16  Bruno Haible  <bruno@clisp.org>
85503         * lib/parse-duration.h (parse_duration): Document return value
85504         convention.
85505         * lib/parse-duration.c: Include specification header first. Add
85506         comments.
85507         (_): Remove macro.
85508         (parse_year_month_day, parse_hour_minute_second): Move side effects
85509         outside of strchr call.
85510         (parse_non_iso8601): Move side effects outside of isspace call.
85511         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
85512         call.
85514 2008-12-16  Bruno Haible  <bruno@clisp.org>
85516         * tests/test-parse-duration.sh: Produce no output when the test
85517         succeeds.
85519 2008-12-16  Bruno Haible  <bruno@clisp.org>
85521         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
85522         expressions.
85524 2008-12-15  Bruno Haible  <bruno@clisp.org>
85526         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
85527         * doc/glibc-functions/flistxattr.texi: Likewise.
85528         * doc/glibc-functions/fopencookie.texi: Likewise.
85529         * doc/glibc-functions/fremovexattr.texi: Likewise.
85530         * doc/glibc-functions/fsetxattr.texi: Likewise.
85531         * doc/glibc-functions/getxattr.texi: Likewise.
85532         * doc/glibc-functions/lgetxattr.texi: Likewise.
85533         * doc/glibc-functions/listxattr.texi: Likewise.
85534         * doc/glibc-functions/llistxattr.texi: Likewise.
85535         * doc/glibc-functions/lremovexattr.texi: Likewise.
85536         * doc/glibc-functions/lsetxattr.texi: Likewise.
85537         * doc/glibc-functions/removexattr.texi: Likewise.
85538         * doc/glibc-functions/setxattr.texi: Likewise.
85539         * doc/posix-functions/open_memstream.texi: Likewise.
85541 2008-12-15  Eric Blake  <ebb9@byu.net>
85543         Update doc for cygwin 1.7.
85544         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
85545         functions.
85546         * doc/posix-functions/fchmodat.texi: Likewise.
85547         * doc/posix-functions/fchownat.texi: Likewise.
85548         * doc/posix-functions/fdopendir.texi: Likewise.
85549         * doc/posix-functions/fmemopen.texi: Likewise.
85550         * doc/posix-functions/freeaddrinfo.texi: Likewise.
85551         * doc/posix-functions/fstatat.texi: Likewise.
85552         * doc/posix-functions/futimens.texi: Likewise.
85553         * doc/posix-functions/gai_strerror.texi: Likewise.
85554         * doc/posix-functions/getaddrinfo.texi: Likewise.
85555         * doc/posix-functions/getnameinfo.texi: Likewise.
85556         * doc/posix-functions/if_freenameindex.texi: Likewise.
85557         * doc/posix-functions/if_indextoname.texi: Likewise.
85558         * doc/posix-functions/if_nameindex.texi: Likewise.
85559         * doc/posix-functions/if_nametoindex.texi: Likewise.
85560         * doc/posix-functions/insque.texi: Likewise.
85561         * doc/posix-functions/linkat.texi: Likewise.
85562         * doc/posix-functions/llrint.texi: Likewise.
85563         * doc/posix-functions/llrintf.texi: Likewise.
85564         * doc/posix-functions/llrintl.texi: Likewise.
85565         * doc/posix-functions/lockf.texi: Likewise.
85566         * doc/posix-functions/lrintl.texi: Likewise.
85567         * doc/posix-functions/mkdirat.texi: Likewise.
85568         * doc/posix-functions/mkfifoat.texi: Likewise.
85569         * doc/posix-functions/mknodat.texi: Likewise.
85570         * doc/posix-functions/mq_close.texi: Likewise.
85571         * doc/posix-functions/mq_getattr.texi: Likewise.
85572         * doc/posix-functions/mq_notify.texi: Likewise.
85573         * doc/posix-functions/mq_open.texi: Likewise.
85574         * doc/posix-functions/mq_receive.texi: Likewise.
85575         * doc/posix-functions/mq_send.texi: Likewise.
85576         * doc/posix-functions/mq_setattr.texi: Likewise.
85577         * doc/posix-functions/mq_timedreceive.texi: Likewise.
85578         * doc/posix-functions/mq_timedsend.texi: Likewise.
85579         * doc/posix-functions/mq_unlink.texi: Likewise.
85580         * doc/posix-functions/open_memstream.texi: Likewise.
85581         * doc/posix-functions/openat.texi: Likewise.
85582         * doc/posix-functions/posix_fadvise.texi: Likewise.
85583         * doc/posix-functions/posix_fallocate.texi: Likewise.
85584         * doc/posix-functions/posix_madvise.texi: Likewise.
85585         * doc/posix-functions/posix_memalign.texi: Likewise.
85586         * doc/posix-functions/posix_openpt.texi: Likewise.
85587         * doc/posix-functions/readlinkat.texi: Likewise.
85588         * doc/posix-functions/remque.texi: Likewise.
85589         * doc/posix-functions/renameat.texi: Likewise.
85590         * doc/posix-functions/rintl.texi: Likewise.
85591         * doc/posix-functions/sem_unlink.texi: Likewise.
85592         * doc/posix-functions/shm_open.texi: Likewise.
85593         * doc/posix-functions/shm_unlink.texi: Likewise.
85594         * doc/posix-functions/signgam.texi: Likewise.
85595         * doc/posix-functions/sigset.texi: Likewise.
85596         * doc/posix-functions/stpcpy.texi: Likewise.
85597         * doc/posix-functions/stpncpy.texi: Likewise.
85598         * doc/posix-functions/strerror.texi: Likewise.
85599         * doc/posix-functions/strtod.texi: Likewise.
85600         * doc/posix-functions/symlinkat.texi: Likewise.
85601         * doc/posix-functions/unlinkat.texi: Likewise.
85602         * doc/posix-functions/utimensat.texi: Likewise.
85603         * doc/glibc-functions/bindresvport.texi: Likewise.
85604         * doc/glibc-functions/dn_expand.texi: Likewise.
85605         * doc/glibc-functions/exp10.texi: Likewise.
85606         * doc/glibc-functions/exp10f.texi: Likewise.
85607         * doc/glibc-functions/fgetxattr.texi: Likewise.
85608         * doc/glibc-functions/flistxattr.texi: Likewise.
85609         * doc/glibc-functions/fopencookie.texi: Likewise.
85610         * doc/glibc-functions/freeifaddrs.texi: Likewise.
85611         * doc/glibc-functions/fremovexattr.texi: Likewise.
85612         * doc/glibc-functions/fsetxattr.texi: Likewise.
85613         * doc/glibc-functions/getifaddrs.texi: Likewise.
85614         * doc/glibc-functions/getxattr.texi: Likewise.
85615         * doc/glibc-functions/lgetxattr.texi: Likewise.
85616         * doc/glibc-functions/listxattr.texi: Likewise.
85617         * doc/glibc-functions/llistxattr.texi: Likewise.
85618         * doc/glibc-functions/lremovexattr.texi: Likewise.
85619         * doc/glibc-functions/lsetxattr.texi: Likewise.
85620         * doc/glibc-functions/pow10.texi: Likewise.
85621         * doc/glibc-functions/pow10f.texi: Likewise.
85622         * doc/glibc-functions/rcmd_af.texi: Likewise.
85623         * doc/glibc-functions/removexattr.texi: Likewise.
85624         * doc/glibc-functions/res_init.texi: Likewise.
85625         * doc/glibc-functions/res_mkquery.texi: Likewise.
85626         * doc/glibc-functions/res_query.texi: Likewise.
85627         * doc/glibc-functions/res_querydomain.texi: Likewise.
85628         * doc/glibc-functions/res_send.texi: Likewise.
85629         * doc/glibc-functions/rresvport_af.texi: Likewise.
85630         * doc/glibc-functions/setxattr.texi: Likewise.
85631         * doc/glibc-functions/strcasestr.texi: Likewise.
85633 2008-12-15  Bruno Haible  <bruno@clisp.org>
85635         Fix compilation error on OSF/1 4.0.
85636         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
85637         <sys/time.h>, simply delegate to the system header.
85638         Reported by Daniel Richard G. <oss@teragram.com>.
85640 2008-12-15  Bruno Haible  <bruno@clisp.org>
85642         * doc/posix-functions/openat.texi: Mention the 'openat' module.
85643         * doc/posix-functions/fchmodat.texi: Likewise.
85644         * doc/posix-functions/fchownat.texi: Likewise.
85645         * doc/posix-functions/fdopendir.texi: Likewise.
85646         * doc/posix-functions/fstatat.texi: Likewise.
85647         * doc/posix-functions/mkdirat.texi: Likewise.
85648         * doc/posix-functions/unlinkat.texi: Likewise.
85650 2008-12-14  Bruno Haible  <bruno@clisp.org>
85652         Update doc for POSIX:2008.
85653         * doc/posix-functions/faccessat.texi: New file.
85654         * doc/posix-functions/fchmodat.texi: New file.
85655         * doc/posix-functions/fchownat.texi: New file.
85656         * doc/posix-functions/fdopendir.texi: New file.
85657         * doc/posix-functions/fstatat.texi: New file.
85658         * doc/posix-functions/futimens.texi: New file.
85659         * doc/posix-functions/linkat.texi: New file.
85660         * doc/posix-functions/mkdirat.texi: New file.
85661         * doc/posix-functions/mkfifoat.texi: New file.
85662         * doc/posix-functions/mknodat.texi: New file.
85663         * doc/posix-functions/open_wmemstream.texi: New file.
85664         * doc/posix-functions/openat.texi: New file.
85665         * doc/posix-functions/psiginfo.texi: New file.
85666         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
85667         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
85668         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
85669         * doc/posix-functions/readlinkat.texi: New file.
85670         * doc/posix-functions/renameat.texi: New file.
85671         * doc/posix-functions/strerror_l.texi: New file.
85672         * doc/posix-functions/symlinkat.texi: New file.
85673         * doc/posix-functions/unlinkat.texi: New file.
85674         * doc/posix-functions/utimensat.texi: New file.
85675         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85677 2008-12-14  Bruno Haible  <bruno@clisp.org>
85679         Update doc for POSIX:2008.
85680         * doc/posix-functions/alphasort.texi: Renamed from
85681         doc/glibc-functions/alphasort.texi.
85682         * doc/posix-functions/dirfd.texi: Renamed from
85683         doc/glibc-functions/dirfd.texi.
85684         * doc/posix-functions/dprintf.texi: Renamed from
85685         doc/glibc-functions/dprintf.texi.
85686         * doc/posix-functions/duplocale.texi: Renamed from
85687         doc/glibc-functions/duplocale.texi.
85688         * doc/posix-functions/fexecve.texi: Renamed from
85689         doc/glibc-functions/fexecve.texi.
85690         * doc/posix-functions/fmemopen.texi: Renamed from
85691         doc/glibc-functions/fmemopen.texi.
85692         * doc/posix-functions/freelocale.texi: Renamed from
85693         doc/glibc-functions/freelocale.texi.
85694         * doc/posix-functions/getdate_err.texi: Renamed from
85695         doc/glibc-functions/getdate_err.texi.
85696         * doc/posix-functions/isalnum_l.texi: Renamed from
85697         doc/glibc-functions/isalnum_l.texi.
85698         * doc/posix-functions/isalpha_l.texi: Renamed from
85699         doc/glibc-functions/isalpha_l.texi.
85700         * doc/posix-functions/isblank_l.texi: Renamed from
85701         doc/glibc-functions/isblank_l.texi.
85702         * doc/posix-functions/iscntrl_l.texi: Renamed from
85703         doc/glibc-functions/iscntrl_l.texi.
85704         * doc/posix-functions/isdigit_l.texi: Renamed from
85705         doc/glibc-functions/isdigit_l.texi.
85706         * doc/posix-functions/isgraph_l.texi: Renamed from
85707         doc/glibc-functions/isgraph_l.texi.
85708         * doc/posix-functions/islower_l.texi: Renamed from
85709         doc/glibc-functions/islower_l.texi.
85710         * doc/posix-functions/isprint_l.texi: Renamed from
85711         doc/glibc-functions/isprint_l.texi.
85712         * doc/posix-functions/ispunct_l.texi: Renamed from
85713         doc/glibc-functions/ispunct_l.texi.
85714         * doc/posix-functions/isspace_l.texi: Renamed from
85715         doc/glibc-functions/isspace_l.texi.
85716         * doc/posix-functions/isupper_l.texi: Renamed from
85717         doc/glibc-functions/isupper_l.texi.
85718         * doc/posix-functions/iswalnum_l.texi: Renamed from
85719         doc/glibc-functions/iswalnum_l.texi.
85720         * doc/posix-functions/iswalpha_l.texi: Renamed from
85721         doc/glibc-functions/iswalpha_l.texi.
85722         * doc/posix-functions/iswblank_l.texi: Renamed from
85723         doc/glibc-functions/iswblank_l.texi.
85724         * doc/posix-functions/iswcntrl_l.texi: Renamed from
85725         doc/glibc-functions/iswcntrl_l.texi.
85726         * doc/posix-functions/iswctype_l.texi: Renamed from
85727         doc/glibc-functions/iswctype_l.texi.
85728         * doc/posix-functions/iswdigit_l.texi: Renamed from
85729         doc/glibc-functions/iswdigit_l.texi.
85730         * doc/posix-functions/iswgraph_l.texi: Renamed from
85731         doc/glibc-functions/iswgraph_l.texi.
85732         * doc/posix-functions/iswlower_l.texi: Renamed from
85733         doc/glibc-functions/iswlower_l.texi.
85734         * doc/posix-functions/iswprint_l.texi: Renamed from
85735         doc/glibc-functions/iswprint_l.texi.
85736         * doc/posix-functions/iswpunct_l.texi: Renamed from
85737         doc/glibc-functions/iswpunct_l.texi.
85738         * doc/posix-functions/iswspace_l.texi: Renamed from
85739         doc/glibc-functions/iswspace_l.texi.
85740         * doc/posix-functions/iswupper_l.texi: Renamed from
85741         doc/glibc-functions/iswupper_l.texi.
85742         * doc/posix-functions/iswxdigit_l.texi: Renamed from
85743         doc/glibc-functions/iswxdigit_l.texi.
85744         * doc/posix-functions/isxdigit_l.texi: Renamed from
85745         doc/glibc-functions/isxdigit_l.texi.
85746         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
85747         doc/glibc-functions/mbsnrtowcs.texi.
85748         * doc/posix-functions/mkdtemp.texi: Renamed from
85749         doc/glibc-functions/mkdtemp.texi.
85750         * doc/posix-functions/newlocale.texi: Renamed from
85751         doc/glibc-functions/newlocale.texi.
85752         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
85753         doc/glibc-functions/nl_langinfo_l.texi.
85754         * doc/posix-functions/open_memstream.texi: Renamed from
85755         doc/glibc-functions/open_memstream.texi.
85756         * doc/posix-functions/opterr.texi: Renamed from
85757         doc/glibc-functions/opterr.texi.
85758         * doc/posix-functions/optind.texi: Renamed from
85759         doc/glibc-functions/optind.texi.
85760         * doc/posix-functions/optopt.texi: Renamed from
85761         doc/glibc-functions/optopt.texi.
85762         * doc/posix-functions/psignal.texi: Renamed from
85763         doc/glibc-functions/psignal.texi.
85764         * doc/posix-functions/scandir.texi: Renamed from
85765         doc/glibc-functions/scandir.texi.
85766         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
85767         doc/glibc-functions/sched_get_priority_min.texi.
85768         * doc/posix-functions/signgam.texi: Renamed from
85769         doc/glibc-functions/signgam.texi.
85770         * doc/posix-functions/stpcpy.texi: Renamed from
85771         doc/glibc-functions/stpcpy.texi.
85772         * doc/posix-functions/stpncpy.texi: Renamed from
85773         doc/glibc-functions/stpncpy.texi.
85774         * doc/posix-functions/strcasecmp_l.texi: Renamed from
85775         doc/glibc-functions/strcasecmp_l.texi.
85776         * doc/posix-functions/strcoll_l.texi: Renamed from
85777         doc/glibc-functions/strcoll_l.texi.
85778         * doc/posix-functions/strfmon_l.texi: Renamed from
85779         doc/glibc-functions/strfmon_l.texi.
85780         * doc/posix-functions/strftime_l.texi: Renamed from
85781         doc/glibc-functions/strftime_l.texi.
85782         * doc/posix-functions/strncasecmp_l.texi: Renamed from
85783         doc/glibc-functions/strncasecmp_l.texi.
85784         * doc/posix-functions/strndup.texi: Renamed from
85785         doc/glibc-functions/strndup.texi.
85786         * doc/posix-functions/strnlen.texi: Renamed from
85787         doc/glibc-functions/strnlen.texi.
85788         * doc/posix-functions/strsignal.texi: Renamed from
85789         doc/glibc-functions/strsignal.texi.
85790         * doc/posix-functions/strxfrm_l.texi: Renamed from
85791         doc/glibc-functions/strxfrm_l.texi.
85792         * doc/posix-functions/timer_gettime.texi: Renamed from
85793         doc/glibc-functions/timer_gettime.texi.
85794         * doc/posix-functions/tolower_l.texi: Renamed from
85795         doc/glibc-functions/tolower_l.texi.
85796         * doc/posix-functions/toupper_l.texi: Renamed from
85797         doc/glibc-functions/toupper_l.texi.
85798         * doc/posix-functions/towctrans_l.texi: Renamed from
85799         doc/glibc-functions/towctrans_l.texi.
85800         * doc/posix-functions/towlower_l.texi: Renamed from
85801         doc/glibc-functions/towlower_l.texi.
85802         * doc/posix-functions/towupper_l.texi: Renamed from
85803         doc/glibc-functions/towupper_l.texi.
85804         * doc/posix-functions/uselocale.texi: Renamed from
85805         doc/glibc-functions/uselocale.texi.
85806         * doc/posix-functions/vdprintf.texi: Renamed from
85807         doc/glibc-functions/vdprintf.texi.
85808         * doc/posix-functions/wcpcpy.texi:
85809         Renamed from doc/glibc-functions/wcpcpy.texi.
85810         * doc/posix-functions/wcpncpy.texi: Renamed from
85811         doc/glibc-functions/wcpncpy.texi.
85812         * doc/posix-functions/wcscasecmp.texi: Renamed from
85813         doc/glibc-functions/wcscasecmp.texi.
85814         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
85815         doc/glibc-functions/wcscasecmp_l.texi.
85816         * doc/posix-functions/wcscoll_l.texi: Renamed from
85817         doc/glibc-functions/wcscoll_l.texi.
85818         * doc/posix-functions/wcsdup.texi: Renamed from
85819         doc/glibc-functions/wcsdup.texi.
85820         * doc/posix-functions/wcsncasecmp.texi: Renamed from
85821         doc/glibc-functions/wcsncasecmp.texi.
85822         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
85823         doc/glibc-functions/wcsncasecmp_l.texi.
85824         * doc/posix-functions/wcsnlen.texi: Renamed from
85825         doc/glibc-functions/wcsnlen.texi.
85826         * doc/posix-functions/wcsnrtombs.texi: Renamed from
85827         doc/glibc-functions/wcsnrtombs.texi.
85828         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
85829         doc/glibc-functions/wcsxfrm_l.texi.
85830         * doc/posix-functions/wctrans_l.texi: Renamed from
85831         doc/glibc-functions/wctrans_l.texi.
85832         * doc/posix-functions/wctype_l.texi: Renamed from
85833         doc/glibc-functions/wctype_l.texi.
85834         * doc/gnulib.texi (Function Substitutes): Add these subsections.
85835         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
85836         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
85837         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
85838         these subsections.
85839         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
85840         Remove sections.
85842 2008-12-14  Bruno Haible  <bruno@clisp.org>
85844         Update doc for POSIX:2008.
85845         * doc/posix-functions/*.texi: Update URL of POSIX specification.
85847 2008-12-14  Bruno Haible  <bruno@clisp.org>
85849         Update doc for POSIX:2008.
85850         * doc/pastposix-functions/bcmp.texi: Renamed from
85851         doc/posix-functions/bcmp.texi.
85852         * doc/pastposix-functions/bcopy.texi: Renamed from
85853         doc/posix-functions/bcopy.texi.
85854         * doc/pastposix-functions/bsd_signal.texi: Renamed from
85855         doc/posix-functions/bsd_signal.texi.
85856         * doc/pastposix-functions/bzero.texi: Renamed from
85857         doc/posix-functions/bzero.texi.
85858         * doc/pastposix-functions/ecvt.texi: Renamed from
85859         doc/posix-functions/ecvt.texi.
85860         * doc/pastposix-functions/fcvt.texi: Renamed from
85861         doc/posix-functions/fcvt.texi.
85862         * doc/pastposix-functions/ftime.texi: Renamed from
85863         doc/posix-functions/ftime.texi.
85864         * doc/pastposix-functions/gcvt.texi: Renamed from
85865         doc/posix-functions/gcvt.texi.
85866         * doc/pastposix-functions/getcontext.texi: Renamed from
85867         doc/posix-functions/getcontext.texi.
85868         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
85869         doc/posix-functions/gethostbyaddr.texi.
85870         * doc/pastposix-functions/gethostbyname.texi: Renamed from
85871         doc/posix-functions/gethostbyname.texi.
85872         * doc/pastposix-functions/getwd.texi: Renamed from
85873         doc/posix-functions/getwd.texi.
85874         * doc/pastposix-functions/h_errno.texi: Renamed from
85875         doc/posix-functions/h_errno.texi.
85876         * doc/pastposix-functions/index.texi: Renamed from
85877         doc/posix-functions/index.texi.
85878         * doc/pastposix-functions/makecontext.texi: Renamed from
85879         doc/posix-functions/makecontext.texi.
85880         * doc/pastposix-functions/mktemp.texi: Renamed from
85881         doc/posix-functions/mktemp.texi.
85882         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
85883         doc/posix-functions/pthread_attr_getstackaddr.texi.
85884         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
85885         doc/posix-functions/pthread_attr_setstackaddr.texi.
85886         * doc/pastposix-functions/rindex.texi: Renamed from
85887         doc/posix-functions/rindex.texi.
85888         * doc/pastposix-functions/scalb.texi: Renamed from
85889         doc/posix-functions/scalb.texi.
85890         * doc/pastposix-functions/setcontext.texi: Renamed from
85891         doc/posix-functions/setcontext.texi.
85892         * doc/pastposix-functions/swapcontext.texi: Renamed from
85893         doc/posix-functions/swapcontext.texi.
85894         * doc/pastposix-functions/ualarm.texi: Renamed from
85895         doc/posix-functions/ualarm.texi.
85896         * doc/pastposix-functions/usleep.texi: Renamed from
85897         doc/posix-functions/usleep.texi.
85898         * doc/pastposix-functions/vfork.texi: Renamed from
85899         doc/posix-functions/vfork.texi.
85900         * doc/pastposix-functions/wcswcs.texi: Renamed from
85901         doc/posix-functions/wcswcs.texi.
85902         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
85903         (Function Substitutes): Update.
85905 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85907         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
85908         m4/strerror.m4.
85910 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85911             Bruno Haible  <bruno@clisp.org>
85913         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
85915 2008-12-13  Bruno Haible  <bruno@clisp.org>
85917         * modules/strtoull (Depends-on): Remove unistd.
85919 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85921         * modules/strtoull (Depends-on): Add stdlib.
85923 2008-12-11  Simon Josefsson  <simon@josefsson.org>
85925         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
85927 2008-12-10  Jim Meyering  <meyering@redhat.com>
85929         gl_ASSERT: don't say assertions are disabled when they're not
85930         * m4/assert.m4 (gl_ASSERT): Do not make configure report
85931         "checking whether to enable assertions... no", when they are in
85932         fact enabled.  This is solely a bug in the output of configure.
85933         In spite of saying "no", NDEBUG was not defined in that case.
85934         Also, as noted by Eric Blake, leave assertions enabled upon
85935         --enable-assert=INVALID.
85937 2008-12-10  Bruno Haible  <bruno@clisp.org>
85939         Change MODULES.html to refer to POSIX:2008 where possible.
85940         * MODULES.html.sh (POSIX2008_URL): New variable.
85941         (posix_headers): Remove sys/timeb, ucontext.
85942         (posix2001_headers): New variable.
85943         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
85944         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
85945         index, makecontext, mktemp, pthread_attr_getstackaddr,
85946         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
85947         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
85948         (posix2001_functions): New variable.
85949         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
85950         otherwise.
85952 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85954         add missing include to parse-duration.c
85955         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
85956         * modules/parse-duration (Depends-on): Add xalloc.
85958         fix sed script reading maint.mk
85959         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
85960         (syntax-check-rules): Use it.
85962 2008-12-09  Bruno Haible  <bruno@clisp.org>
85964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
85965         MacOS X 10.4/PowerPC.
85966         Reported by Simon Josefsson.
85968 2008-12-08  Jim Meyering  <meyering@redhat.com>
85970         work around mingw's lack of some S_IF definitions
85971         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
85972         Reported by Simon Josefsson.
85974 2008-12-08  Bruno Haible  <bruno@clisp.org>
85976         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
85977         applied to variables. Needed on MacOS X 10.4/PowerPC.
85978         Reported by Simon Josefsson.
85980 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
85981         and Eric Blake  <ebb9@byu.net>
85983         assert: honor --enable-assert
85984         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
85985         order to honor --enable-assert, rather than treating it as a
85986         synonym for --disable-assert.
85988 2008-12-08  Jim Meyering  <meyering@redhat.com>
85990         * lib/posixtm.c: Remove now-useless declaration of mktime.
85992         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
85994 2008-12-07  Bruno Haible  <bruno@clisp.org>
85996         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
85997         test_once): Mark functions as static.
85998         * tests/test-tls.c (test_tls): Likewise.
86000 2008-12-07  Bruno Haible  <bruno@clisp.org>
86002         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
86003         iconv_register_autodetect.
86005 2008-12-07  Jim Meyering  <meyering@redhat.com>
86007         posixtm.c: avoid a warning
86008         * lib/posixtm.c (posixtime): Don't initialize tm0.
86009         It's no longer needed to placate gcc4's -Wuninitialized,
86010         and the attempt to placate would elicit a new warning.
86012         unicodeio.c: mark unused parameters
86013         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86014         (fallback_failure_callback): Likewise.
86016 2008-12-07  Bruno Haible  <bruno@clisp.org>
86018         * gnulib-tool (func_create_testdir): When building the tests
86019         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
86020         Reported by Simon Josefsson.
86022 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86024         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
86026 2008-12-06  Bruno Haible  <bruno@clisp.org>
86028         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
86029         Suggested by Eric Blake.
86031 2008-12-06  Bruno Haible  <bruno@clisp.org>
86033         Fix a c-stack test failure on MacOS X.
86034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
86035         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
86036         handler for SIGBUS as well.
86037         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
86038         install a signal handler for SIGBUS as well.
86039         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
86041 2008-12-06  Bruno Haible  <bruno@clisp.org>
86043         Advocacy documentation.
86044         * doc/gnulib-intro.texi (Benefits): New section.
86045         * doc/gnulib.texi: Update.
86047 2008-12-06  Bruno Haible  <bruno@clisp.org>
86049         Document the 'manywarnings' module.
86050         * doc/manywarnings.texi: New file.
86051         * doc/gnulib.texi: Include it.
86053 2008-12-05  Eric Blake  <ebb9@byu.net>
86055         tests: silence some gcc warnings
86056         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
86057         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
86058         type mismatches.
86060 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86061             Bruno Haible  <bruno@clisp.org>
86063         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
86065 2008-11-29  Jim Meyering  <meyering@redhat.com>
86067         unicodeio.c: mark unused parameters
86068         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
86069         (fallback_failure_callback): Likewise.
86071         fts: fix a thinko
86072         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
86073         (set_stat_type): Return S_IF*-valued "type" directly.
86074         Prompted by James Youngman's spotting a related bug.
86075         Confirmed by further testing through find.
86077         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
86078         * lib/fts.c (D_TYPE): Define.
86079         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
86080         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
86081         (s_ifmt_shift_bits): New function.
86082         (set_stat_type): New function.
86083         (fts_build): When not calling fts_stat, call set_stat_type
86084         to propagate dirent.d_type info to fts_read caller.
86085         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
86086         fts_statp->st_mode type information may be valid.
86088 2008-11-28  Simon Josefsson  <simon@josefsson.org>
86090         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
86091         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
86092         <sds@gnu.org>.
86094 2008-11-20  Bruno Haible  <bruno@clisp.org>
86096         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
86097         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
86098         INCLUDE_NEXT.
86099         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
86100         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
86101         * modules/math (Makefile.am): Substitute
86102         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
86103         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86105 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
86106             Bruno Haible  <bruno@clisp.org>
86108         * lib/stdint.in.h: Define all type macros so that their expansion is
86109         a single typedef'ed token. Fixes a compilation failure in Boost which
86110         does "using ::int8_t;".
86112 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86114         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
86115         gl_MANYWARN_ALL_GCC.
86116         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
86117         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
86118         * modules/manywarnings: New file.
86119         * MODULES.html.sh: Mention manywarnings module.
86121 2008-11-18  Bruno Haible  <bruno@clisp.org>
86123         * doc/gnulib-tool.texi (Unit tests): New section.
86125 2008-11-18  Simon Josefsson  <simon@josefsson.org>
86127         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
86128         paths like 'lib/po/foo.po'.
86130 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86132         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
86133         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
86135 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86137         * m4/warnings.m4: Use CPPFLAGS to really check whether the
86138         parameter works.
86140 2008-11-17  Simon Josefsson  <simon@josefsson.org>
86142         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
86144 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86146         * modules/parse-duration-tests: New file.
86147         * tests/test-parse-duration.sh: New file.
86148         * tests/test-parse-duration.c: New file.
86150         New module 'parse-duration'.
86151         * lib/parse-duration.h: New file.
86152         * lib/parse-duration.c: New file.
86153         * modules/parse-duration: New file.
86155 2008-11-17  Bruno Haible  <bruno@clisp.org>
86157         * tests/test-select-out.sh: Comment out the first pipe test.
86158         Reported by Simon Josefsson.
86160 2008-11-17  Bruno Haible  <bruno@clisp.org>
86162         * modules/getaddrinfo (Depends-on): Add servent, hostent.
86163         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
86164         gl_HOSTENT.
86166 2008-11-17  Bruno Haible  <bruno@clisp.org>
86168         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
86169         -lnetwork and -lnet. Needed for Haiku and BeOS.
86171 2008-11-16  Bruno Haible  <bruno@clisp.org>
86173         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
86175 2008-11-16  Bruno Haible  <bruno@clisp.org>
86177         Avoid test failure on Haiku.
86178         * tests/test-fsync.c: Include <errno.h>.
86179         (main): Don't require that fsync (0) fails.
86181 2008-11-15  Bruno Haible  <bruno@clisp.org>
86183         New module 'hostent'.
86184         * modules/hostent: New file.
86185         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
86187 2008-11-15  Bruno Haible  <bruno@clisp.org>
86189         New module 'servent'.
86190         * modules/servent: New file.
86191         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
86193 2008-11-15  Bruno Haible  <bruno@clisp.org>
86195         Avoid generating same test program with two different rules.
86196         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
86197         test-frexp to test-frexp-nolibm.
86198         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
86199         test-frexpl to test-frexpl-nolibm.
86201 2008-11-15  Bruno Haible  <bruno@clisp.org>
86203         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
86204         $(FREXPL_LIBM).
86206 2008-11-15  Bruno Haible  <bruno@clisp.org>
86208         * lib/netdb.in.h: Activate the definitions also when the system's
86209         <netdb.h> has 'struct addrinfo'.
86210         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
86211         EAI_OVERFLOW or AI_NUMERICSERV.
86212         * doc/posix-headers/netdb.texi: Document the problem.
86214 2008-11-15  Bruno Haible  <bruno@clisp.org>
86216         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
86218         Make the 'sched' module work on platforms where <sched.h> exists but
86219         is incomplete (such as Haiku).
86220         * lib/sched.in.h; Include the system's <sched.h> if it exists.
86221         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
86222         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
86223         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
86224         HAVE_STRUCT_SCHED_PARAM.
86225         * modules/sched (Depends-on): Add include_next.
86226         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
86227         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
86228         * doc/posix-headers/sched.texi: Document the issue.
86230 2008-11-13  Jim Meyering  <meyering@redhat.com>
86232         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
86233         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
86234         test would fail due to the difference in the Report bugs to ...
86235         line.  The expected address is empty, "<>", while the actual
86236         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
86238 2008-11-12  Bruno Haible  <bruno@clisp.org>
86240         lstat: don't compile lstat.c on systems lacking lstat
86241         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
86242         which don't have lstat; this is handled by lib/sys_stat.in.h already.
86243         Reported by Daniel P. Berrange via Jim Meyering.
86245 2008-11-12  Jim Meyering  <meyering@redhat.com>
86247         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
86249 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86251         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
86252         instead.
86254 2008-11-12  Bruno Haible  <bruno@clisp.org>
86256         * lib/unicodeio.c: Include unistr.h.
86257         (utf8_wctomb): Remove function.
86258         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
86260 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86262         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
86263         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
86264         <bruno@clisp.org>.
86265         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
86267 2008-11-12  Simon Josefsson  <simon@josefsson.org>
86269         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
86270         * doc/gnulib.texi: Add section for warnings.
86272 2008-11-11  Bruno Haible  <bruno@clisp.org>
86274         * lib/sockets.h: Add a comment.
86276 2008-11-11  Karl Berry  <karl@gnu.org>
86278         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
86280 2008-11-11  Eric Blake  <ebb9@byu.net>
86282         fdl.texi: avoid git symlinks
86283         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
86285 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86287         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
86289 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86291         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
86292         (gl_WARN_ADD): Substitute $2 if literal.
86294 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86296         * m4/warning.m4: Remove.
86298 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
86300         * m4/warnings.m4: Almost complete rewrite. :-)
86302 2008-11-10  Simon Josefsson  <simon@josefsson.org>
86304         * modules/warnings: New module.
86305         * m4/warnings.m4: New file.
86306         * MODULES.html.sh: Mention warnings module.
86307         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
86308         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86310 2008-11-10  Eric Blake  <ebb9@byu.net>
86312         fdl.texi: make a symlink to the latest version
86313         * doc/standards.texi: Revert today's earlier change.
86314         * doc/fdl-1.2.texi: Rename from old fdl.texi...
86315         * doc/fdl.texi: ...and replace this with a symlink to the newer
86316         fdl-1.3.texi.
86318 2008-11-10  Bruno Haible  <bruno@clisp.org>
86320         * tests/test-select-fd.c (main): Accept the result file name as fourth
86321         argument.
86322         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
86323         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
86325 2008-11-10  Bruno Haible  <bruno@clisp.org>
86327         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
86328         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
86329         as autoconf-substituted macros.
86330         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
86331         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
86332         gl_NETDB_H_DEFAULTS. Set these variables.
86333         * modules/netdb (Makefile.am): Substitute these variables.
86335 2008-11-10  Eric Blake  <ebb9@byu.net>
86337         standards.texi: include correct file for FDL 1.3
86338         * doc/standards.texi (GNU Free Documentation License): Change
86339         include file to pull in FDL 1.3, not 1.2.
86341         fdl.texi: revert accidental change to license
86342         * doc/fdl.texi: This is FDL 1.2, not 1.3.
86344 2008-11-10  Bruno Haible  <bruno@clisp.org>
86346         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
86347         cross-compiling guesses also when the native compile gives no result.
86349 2008-11-10  Bruno Haible  <bruno@clisp.org>
86351         * lib/spawni.c (__spawni): Force variable into the stack.
86353 2008-11-10  Bruno Haible  <bruno@clisp.org>
86355         Add support for Haiku.
86356         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
86357         glibc and BeOS, but also on Haiku.
86358         * lib/fpurge.c (fpurge): Likewise.
86359         * lib/freadable.c (freadable): Likewise.
86360         * lib/freadahead.c (freadahead): Likewise.
86361         * lib/freading.c (freading): Likewise.
86362         * lib/freadptr.c (freadptr): Likewise.
86363         * lib/freadseek.c (freadptrinc): Likewise.
86364         * lib/fseeko.c (rpl_fseeko): Likewise.
86365         * lib/fseterr.c (fseterr): Likewise.
86366         * lib/fwritable.c (fwritable): Likewise.
86367         * lib/fwriting.c (fwriting): Likewise.
86368         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
86370 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86372         * lib/config.charset: Treat Haiku like BeOS.
86374 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
86376         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
86377         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
86379 2008-11-08  Bruno Haible  <bruno@clisp.org>
86381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
86382         AC_CACHE_CHECK.
86384 2008-11-08  Bruno Haible  <bruno@clisp.org>
86386         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
86388 2008-11-08  Bruno Haible  <bruno@clisp.org>
86390         * tests/test-select-fd.c: New file.
86391         * tests/test-select-in.sh: New file.
86392         * tests/test-select-out.sh: New file.
86393         * tests/test-select-stdin.c: New file.
86394         * modules/select-tests (Files): Add the new files.
86395         (Depends-on): Add gettimeofday.
86396         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
86397         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
86398         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
86400 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
86401             Bruno Haible  <bruno@clisp.org>
86403         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
86405 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
86407         * build-aux/pmccabe2html: Added support for C++ source files.
86409 2008-11-05  Ben Pfaff  <blp@gnu.org>
86411         Fix lib/close.c build on Windows.
86412         * modules/close (Files): Add lib/w32sock.h.
86414 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
86416         Accept Bison's NEWS format.
86417         * build-aux/announce-gen (print_news_deltas): Tweak
86418         $re_prefix.
86420 2008-11-04  Bruno Haible  <bruno@clisp.org>
86422         * modules/random_r (Maintainer): Add glibc.
86424 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86426         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
86427         by karl@freefriends.org (Karl Berry).
86428         * doc/alloca.texi: Likewise.
86429         * doc/c-ctype.texi: Likewise.
86430         * doc/c-strcase.texi: Likewise.
86431         * doc/c-strcaseeq.texi: Likewise.
86432         * doc/c-strcasestr.texi: Likewise.
86433         * doc/c-strstr.texi: Likewise.
86434         * doc/c-strtod.texi: Likewise.
86435         * doc/c-strtold.texi: Likewise.
86436         * doc/ctime.texi: Likewise.
86437         * doc/error.texi: Likewise.
86438         * doc/fdl.texi: Likewise.
86439         * doc/gcd.texi: Likewise.
86440         * doc/getdate.texi: Likewise.
86441         * doc/gnulib-intro.texi: Likewise.
86442         * doc/gnulib-tool.texi: Likewise.
86443         * doc/gnulib.texi: Likewise.
86444         * doc/inet_ntoa.texi: Likewise.
86445         * doc/maintain.texi: Likewise.
86446         * doc/make-stds.texi: Likewise.
86447         * doc/quote.texi: Likewise.
86448         * doc/regexprops-generic.texi: Likewise.
86449         * doc/standards.texi: Likewise.
86450         * doc/verify.texi: Likewise.
86451         * doc/visibility.texi: Likewise.
86452         * doc/gnulib.texi (GNU Free Documentation License): Include
86453         fdl-1.3.texi instead of fdl.texi.
86455 2008-11-04  Simon Josefsson  <simon@josefsson.org>
86457         * doc/fdl-1.3.texi: New file, from
86458         <http://www.gnu.org/licenses/fdl-1.3.texi>.
86459         * modules/fdl-1.3: Add.
86460         * MODULES.html.sh: Add fdl-1.3.
86462 2008-11-03  Bruno Haible  <bruno@clisp.org>
86464         Make determination of absolute name of header file work with AIX xlc.
86465         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
86466         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
86467         preprocessing.
86468         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86469         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86471 2008-11-03  Simon Josefsson  <simon@josefsson.org>
86473         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
86474         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
86475         <ludo@gnu.org>.
86477 2008-11-02  Bruno Haible  <bruno@clisp.org>
86479         Mark 'strpbrk' obsolete.
86480         * modules/strpbrk (Status, Notice): New sections.
86481         * modules/strtok_r (Depends-on): Add strpbrk.
86483 2008-11-02  Bruno Haible  <bruno@clisp.org>
86485         Mark 'strdup' obsolete.
86486         * modules/strdup (Status, Notice): New sections.
86487         * modules/findprog (Depends-on): Add strdup.
86488         * modules/getaddrinfo (Depends-on): Likewise.
86489         * modules/localename (Depends-on): Likewise.
86490         * modules/relocatable-lib (Depends-on): Likewise.
86491         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
86492         * modules/relocatable-prog (Depends-on): Likewise.
86493         * modules/trim (Depends-on): Likewise.
86494         * modules/unictype/gen-ctype (Depends-on): Likewise.
86495         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86497 2008-11-02  Bruno Haible  <bruno@clisp.org>
86499         Mark 'strcspn' obsolete.
86500         * modules/strcspn (Status, Notice): New sections.
86502 2008-11-02  Bruno Haible  <bruno@clisp.org>
86504         Mark 'rmdir' obsolete.
86505         * modules/rmdir (Status, Notice): New sections.
86506         * modules/clean-temp (Depends-on): Add rmdir.
86507         * modules/openat (Depends-on): Likewise.
86509 2008-11-02  Bruno Haible  <bruno@clisp.org>
86511         Mark 'raise' obsolete.
86512         * modules/raise (Status, Notice): New sections.
86513         (Include): Specify <signal.h>.
86514         * modules/stdio (Depends-on): Add raise.
86515         * modules/write (Depends-on): Likewise.
86517 2008-11-02  Bruno Haible  <bruno@clisp.org>
86519         Mark 'memset' obsolete.
86520         * modules/memset (Status, Notice): New sections.
86522 2008-11-02  Bruno Haible  <bruno@clisp.org>
86524         Mark 'memmove' obsolete.
86525         * modules/memmove (Status, Notice): New sections.
86526         * modules/argp (Depends-on): Add memmove.
86527         * modules/argz (Depends-on): Likewise.
86528         * modules/canonicalize (Depends-on): Likewise.
86529         * modules/canonicalize-lgpl (Depends-on): Likewise.
86530         * modules/fts (Depends-on): Likewise.
86531         * modules/getcwd (Depends-on): Likewise.
86532         * modules/human (Depends-on): Likewise.
86533         * modules/regex (Depends-on): Likewise.
86534         * modules/striconveh (Depends-on): Likewise.
86535         * modules/trim (Depends-on): Likewise.
86536         * modules/unistr/u8-move (Depends-on): Likewise.
86537         * modules/unistr/u16-move (Depends-on): Likewise.
86538         * modules/unistr/u32-move (Depends-on): Likewise.
86540 2008-11-02  Bruno Haible  <bruno@clisp.org>
86542         Mark 'memcpy' obsolete.
86543         * modules/memcpy (Status, Notice): New sections.
86545 2008-11-02  Bruno Haible  <bruno@clisp.org>
86547         Mark 'memcmp' obsolete.
86548         * modules/memcmp (Status, Notice): New sections.
86549         * modules/argmatch (Depends-on): Add memchr.
86550         * modules/backupfile (Depends-on): Likewise.
86551         * modules/c-strcasestr (Depends-on): Likewise.
86552         * modules/crypto/des (Depends-on): Likewise.
86553         * modules/csharpcomp (Depends-on): Likewise.
86554         * modules/fnmatch (Depends-on): Likewise.
86555         * modules/git-merge-changelog (Depends-on): Likewise.
86556         * modules/isnand (Depends-on): Likewise.
86557         * modules/isnand-nolibm (Depends-on): Likewise.
86558         * modules/isnanf (Depends-on): Likewise.
86559         * modules/isnanf-nolibm (Depends-on): Likewise.
86560         * modules/isnanl (Depends-on): Likewise.
86561         * modules/isnanl-nolibm (Depends-on): Likewise.
86562         * modules/mbchar (Depends-on): Likewise.
86563         * modules/memcoll (Depends-on): Likewise.
86564         * modules/quotearg (Depends-on): Likewise.
86565         * modules/regex (Depends-on): Likewise.
86566         * modules/relocatable-prog (Depends-on): Likewise.
86567         * modules/same (Depends-on): Likewise.
86568         * modules/signbit (Depends-on): Likewise.
86569         * modules/strcasestr-simple (Depends-on): Likewise.
86570         * modules/unictype/gen-ctype (Depends-on): Likewise.
86571         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
86572         * modules/uniname/uniname (Depends-on): Likewise.
86573         * modules/unistr/u8-cmp (Depends-on): Likewise.
86575 2008-11-02  Bruno Haible  <bruno@clisp.org>
86577         Mark 'memchr' obsolete.
86578         * modules/memchr (Status, Notice): New sections.
86579         * modules/argp (Depends-on): Add memchr.
86580         * modules/base64 (Depends-on): Likewise.
86581         * modules/c-strcasestr (Depends-on): Likewise.
86582         * modules/chdir-long (Depends-on): Likewise.
86583         * modules/fnmatch (Depends-on): Likewise.
86584         * modules/getsubopt (Depends-on): Likewise.
86585         * modules/git-merge-changelog (Depends-on): Likewise.
86586         * modules/glob (Depends-on): Likewise.
86587         * modules/strcasestr-simple (Depends-on): Likewise.
86588         * modules/strnlen (Depends-on): Likewise.
86590 2008-11-02  Bruno Haible  <bruno@clisp.org>
86592         Mark 'atexit' obsolete.
86593         * modules/atexit (Status, Notice): New sections.
86594         * modules/chdir-long (Depends-on): Add atexit.
86595         * modules/wait-process (Depends-on): Likewise.
86597 2008-11-02  Bruno Haible  <bruno@clisp.org>
86599         * gnulib-tool: New option --with-obsolete.
86600         (func_usage): Document it.
86601         (func_modules_transitive_closure): Drop obsolete dependencies if
86602         incobsolete is not true.
86603         (func_import): Read and save the incobsolete variable to the cache.
86605 2008-11-02  Bruno Haible  <bruno@clisp.org>
86607         * modules/TEMPLATE-EXTENDED: New field 'Status'.
86608         * gnulib-tool: New option --extract-status.
86609         (func_usage): Document it.
86610         (sed_extract_prog): Recognize it.
86611         (func_get_status): New function.
86613 2008-10-30  Simon Josefsson  <simon@josefsson.org>
86615         * modules/sockets (License): Change from LGPL to LGPLv2+.
86617 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86619         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
86621 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86623         * MODULES.html.sh (Support for systems lacking POSIX:2001):
86624         Mention times and sys_times.
86625         * modules/sys_times, modules/sys_times-tests: New modules.
86626         * modules/times, modules/times-tests: Likewise
86627         * m4/sys_times_h.m4: New file.
86628         * lib/sys_times.in.h: Likewise
86629         * lib/times.c: Likewise.
86630         * tests/test-sys_times.c: Likewise.
86631         * tests/test-times.c: Likewise.
86632         * doc/posix-headers/sys_times.texi: Update.
86633         * doc/posix-functions/times.texi: Update.
86635 2008-10-28  Jim Meyering  <meyering@redhat.com>
86637         * modules/tempname (Depends-on): Add lstat.
86639         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
86641 2008-10-28  Simon Josefsson  <simon@josefsson.org>
86643         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
86644         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
86645         using idiom used elsewhere in gnulib.
86647 2008-10-27  Jim Meyering  <meyering@redhat.com>
86649         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
86651 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86653         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
86654         TESTS_ENVIRONMENT, for shell scripts that needs to call built
86655         programs.
86656         * tests/test-argp-2.sh: Use $EXEEXT when needed.
86658 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86660         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
86662 2008-10-27  Bruno Haible  <bruno@clisp.org>
86664         * tests/test-lstat.c: Include <stdio.h>.
86666 2008-10-27  Simon Josefsson  <simon@josefsson.org>
86668         * modules/lstat-tests: New module.
86669         * tests/test-lstat.c: New file.
86671 2008-10-26  Jim Meyering  <meyering@redhat.com>
86673         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
86675 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86676             Bruno Haible  <bruno@clisp.org>
86678         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
86679         * modules/configmake (Include): Add a note that the include must come
86680         after all system headers.
86681         * lib/javaversion.c: Include configmake.h after all other includes.
86683 2008-10-26  Bruno Haible  <bruno@clisp.org>
86685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
86686         HAVE_STRUCT_RANDOM_DATA to 1.
86687         (gl_STDLIB_H): Simplify.
86689 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86691         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
86692         substitute HAVE_STRUCT_RANDOM_DATA.
86693         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
86694         random_data.
86695         * modules/stdlib (Makefile.am): Substitute
86696         HAVE_STRUCT_RANDOM_DATA.
86698 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86700         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
86701         * doc/gnulib-intro.texi (Copyright): Likewise.
86703 2008-10-26  Simon Josefsson  <simon@josefsson.org>
86705         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
86706         findings.
86708 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
86709             Bruno Haible  <bruno@clisp.org>
86711         * lib/unistd.in.h: Include <winsock2.h>.
86712         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
86713         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
86714         Provide dummy declarations.
86715         (gethostname): Override.
86716         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
86717         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
86718         gl_PREREQ_SYS_H_WINSOCK2.
86719         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
86720         * doc/posix-functions/gethostname.texi: More details.
86722 2008-10-25  Bruno Haible  <bruno@clisp.org>
86724         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
86725         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
86726         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
86728         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
86729         here ...
86730         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
86731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
86732         gl_UNISTD_H_DEFAULTS.
86734 2008-10-25  Eric Blake  <ebb9@byu.net>
86736         signbit: avoid spurious compiler failure
86737         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
86738         declarations inside function.
86740 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86741             Bruno Haible  <bruno@clisp.org>
86743         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
86744         * modules/random_r (Depends-on): Add stdint.
86746 2008-10-24  Bruno Haible  <bruno@clisp.org>
86748         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
86749         Eggert.
86750         * modules/strerror (License): Likewise.
86752 2008-10-24  Jim Meyering  <meyering@redhat.com>
86754         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
86755         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
86757 2008-10-24  Eric Blake  <ebb9@byu.net>
86759         getgroups: fix compilation when getgroups is available
86760         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
86761         but with <config.h> override of getgroups disabled.
86763 2008-10-24  Simon Josefsson  <simon@josefsson.org>
86765         * doc/gnulib.texi (Header files): Add note about C++ problems.
86766         Explained by Bruno Haible <bruno@clisp.org>.
86768 2008-10-23  Bruno Haible  <bruno@clisp.org>
86770         Define a dummy SA_NODEFER macro on Interix.
86771         * lib/signal.in.h (SA_NODEFER): Define fallback.
86772         Reported by Aleksey Cheusov <cheusov@tut.by> via
86773         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
86775 2008-10-23  Bruno Haible  <bruno@clisp.org>
86777         * modules/freadahead (License): Change to LGPLv2+.
86778         Suggested by Simon Josefsson.
86780 2008-10-23  Jim Meyering  <meyering@redhat.com>
86782         random_r: new module
86783         * modules/random_r: New file.
86784         * m4/random_r.m4: New file.
86785         * lib/random_r.c: New file, from glibc.
86786         * modules/random_r-tests: New file.
86787         * tests/test-random_r.c: New file.
86788         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
86789          Declare.
86790         (RAND_MAX): Define.
86791         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
86792         * modules/stdlib: Substitute them, too.
86793         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
86794         * doc/glibc-functions/initstate_r.texi: Mention the new module.
86795         * doc/glibc-functions/random_r.texi: Likewise.
86796         * doc/glibc-functions/setstate_r.texi: Likewise.
86797         * doc/glibc-functions/srandom_r.texi: Likewise.
86798         * config/srclist.txt: Mention it.
86800 2008-10-23  David Lutterkort  <lutter@redhat.com>
86802         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
86803         link requirement
86805 2008-10-23  Jim Meyering  <meyering@redhat.com>
86807         selinux-h: mark parameters of stub functions as intentionally unused
86808         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
86809         * lib/se-context.in.h: Likewise.
86811 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86813         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
86815 2008-10-22  Simon Josefsson  <simon@josefsson.org>
86817         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
86819 2008-10-22  Eric Blake  <ebb9@byu.net>
86821         glthread/thread: avoid compiler warning
86822         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
86823         Add unreachable abort to silence compiler.
86825 2008-10-22  Eric Blake  <ebb9@byu.net>
86827         netdb: also supply struct addrinfo for cygwin 1.5.x
86828         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
86829         older cygwin.
86830         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
86831         cygwin.
86832         * doc/posix-headers/netdb.texi (netdb.h): Document this.
86834 2008-10-22  Bruno Haible  <bruno@clisp.org>
86836         * users.txt: Update entry about pspp.
86838 2008-10-21  Bruno Haible  <bruno@clisp.org>
86840         Simplification.
86841         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
86842         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
86844         Simplification.
86845         * lib/ioctl.c (ioctl): Don't undefine.
86846         * lib/socket.c (socket): Don't undefine.
86848         Remove unused module indicator macros.
86849         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
86850         GNULIB_$1 as a C macro.
86852         * doc/posix-functions/close.texi: Undo last change.
86853         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
86854         Windows platforms.
86856 2008-10-21  Bruno Haible  <bruno@clisp.org>
86858         Add gethostname() declaration to <unistd.h>.
86859         * lib/unistd.in.h (gethostname): New declaration.
86860         * lib/gethostname.c: Include <unistd.h>.
86861         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
86862         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
86863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
86864         and HAVE_GETHOSTNAME.
86865         * modules/gethostname (Depends-on): Add unistd.
86866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
86867         (Include): Specify <unistd.h>.
86868         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
86869         HAVE_GETHOSTNAME.
86870         * tests/test-gethostname.c: Include <unistd.h> first.
86872 2008-10-21  Bruno Haible  <bruno@clisp.org>
86874         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
86875         * modules/select-tests (Depends-on): Likewise.
86876         Reported by Simon Josefsson.
86878 2008-10-21  Simon Josefsson  <simon@josefsson.org>
86880         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
86881         * lib/accept.c: New file, based on winsock.c.
86882         * lib/bind.c: New file, based on winsock.c.
86883         * lib/connect.c: New file, based on winsock.c.
86884         * lib/getpeername.c: New file, based on winsock.c.
86885         * lib/getsockname.c: New file, based on winsock.c.
86886         * lib/getsockopt.c: New file, based on winsock.c.
86887         * lib/ioctl.c: New file, based on winsock.c.
86888         * lib/listen.c: New file, based on winsock.c.
86889         * lib/recv.c: New file, based on winsock.c.
86890         * lib/recvfrom.c: New file, based on winsock.c.
86891         * lib/send.c: New file, based on winsock.c.
86892         * lib/sendto.c: New file, based on winsock.c.
86893         * lib/setsockopt.c: New file, based on winsock.c.
86894         * lib/shutdown.c: New file, based on winsock.c.
86895         * lib/socket.c: New file, based on winsock.c.
86896         * lib/w32sock.h: New file, based on winsock.c.
86897         * lib/winsock.c: Remove file.
86898         * modules/accept: Likewise.
86899         * modules/bind: Likewise.
86900         * modules/connect: Likewise.
86901         * modules/getpeername: Likewise.
86902         * modules/getsockname: Likewise.
86903         * modules/getsockopt: Likewise.
86904         * modules/ioctl: Likewise.
86905         * modules/listen: Likewise.
86906         * modules/recv: Likewise.
86907         * modules/recvfrom: Likewise.
86908         * modules/send: Likewise.
86909         * modules/sendto: Likewise.
86910         * modules/setsockopt: Likewise.
86911         * modules/shutdown: Likewise.
86912         * modules/socket: Use socket.c instead of winsock.c.
86913         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
86914         * doc/posix-functions/accept.texi: Doc fix.
86915         * doc/posix-functions/bind.texi: Doc fix.
86916         * doc/posix-functions/close.texi: Doc fix.
86917         * doc/posix-functions/connect.texi: Doc fix.
86918         * doc/posix-functions/getpeername.texi: Doc fix.
86919         * doc/posix-functions/getsockname.texi: Doc fix.
86920         * doc/posix-functions/getsockopt.texi: Doc fix.
86921         * doc/posix-functions/ioctl.texi: Doc fix.
86922         * doc/posix-functions/listen.texi: Doc fix.
86923         * doc/posix-functions/recv.texi: Doc fix.
86924         * doc/posix-functions/recvfrom.texi: Doc fix.
86925         * doc/posix-functions/send.texi: Doc fix.
86926         * doc/posix-functions/sendto.texi: Doc fix.
86927         * doc/posix-functions/setsockopt.texi: Doc fix.
86928         * doc/posix-functions/shutdown.texi: Doc fix.
86929         * doc/posix-functions/socket.texi: Doc fix.
86931 2008-10-20  Bruno Haible  <bruno@clisp.org>
86933         Take into account the role of SIGABRT_COMPAT on Windows 2008.
86934         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
86935         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
86936         as an alias for SIGABRT.
86937         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
86938         (sigaction): Map it to SIGABRT.
86939         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
86941 2008-10-20  Bruno Haible  <bruno@clisp.org>
86943         * lib/fts.c: Don't include lstat.h.
86944         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
86946         Move the lstat() declaration to <sys/stat.h>.
86947         * lib/lstat.h: Remove file.
86948         * lib/sys_stat.in.h: Add special invocation convention.
86949         (lstat): New declaration.
86950         * lib/lstat.c (orig_lstat): New function.
86951         (rpl_lstat): Use orig_lstat instead of lstat.
86952         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
86953         AC_C_INLINE. Set REPLACE_LSTAT.
86954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
86955         and REPLACE_LSTAT.
86956         * modules/lstat (Files): Remove lib/lstat.h.
86957         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
86958         (Include): Specify <sys/stat.h> instead of lstat.h.
86959         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
86960         REPLACE_LSTAT.
86961         * NEWS: Mention the change.
86963 2008-10-20  Bruno Haible  <bruno@clisp.org>
86965         * modules/posix_spawn-tests: New file.
86966         * tests/test-posix_spawn3.c: New file.
86968 2008-10-20  Bruno Haible  <bruno@clisp.org>
86970         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
86971         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86972         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
86973         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
86974         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
86976 2008-10-20  Bruno Haible  <bruno@clisp.org>
86978         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
86979         of posix_spawn on AIX 5.3.
86981 2008-10-20  Bruno Haible  <bruno@clisp.org>
86983         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
86985 2008-10-20  Bruno Haible  <bruno@clisp.org>
86987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
86988         of AC_LANG_PROGRAM.
86990 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86992         * lib/netdb.in.h: Don't define GNU specific constants until they
86993         are supported or needed.  Reported by Bruno Haible
86994         <bruno@clisp.org>.
86996 2008-10-20  Simon Josefsson  <simon@josefsson.org>
86998         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
87000 2008-10-20  Simon Josefsson  <simon@josefsson.org>
87002         * lib/getaddrinfo.h: Remove file.
87003         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
87004         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
87005         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
87006         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
87007         * modules/netdb: Substitute GNULIB_GETADDRINFO.
87008         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
87009         * tests/test-getaddrinfo.c: Likewise.
87010         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
87011         * NEWS: Mention change.
87013 2008-10-19  Bruno Haible  <bruno@clisp.org>
87015         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
87017 2008-10-19  Bruno Haible  <bruno@clisp.org>
87019         * lib/wait-process.c: Include simply <sys/wait.h>.
87020         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
87021         WIFSTOPPED): Remove fallback definitions.
87022         * modules/wait-process (Depends-on): Add sys_wait.
87024         New module 'sys_wait'.
87025         * modules/sys_wait: New file.
87026         * lib/sys_wait.in.h: New file, partially copied from
87027         lib/wait-process.c.
87028         * m4/sys_wait_h.m4: New file.
87029         * doc/posix-headers/sys_wait.texi: Mention the new module.
87031 2008-10-19  Bruno Haible  <bruno@clisp.org>
87033         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
87035 2008-10-19  Bruno Haible  <bruno@clisp.org>
87037         Assume that waitpid() fills an 'int' status, not a 'union wait'.
87038         * lib/wait-process.c (WAIT_T): Remove type.
87039         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
87040         (wait_subprocess): Update.
87042 2008-10-19  Bruno Haible  <bruno@clisp.org>
87044         New module 'atoll'.
87045         * modules/atoll: New file.
87046         * lib/stdlib.in.h (atoll): New declaration.
87047         * lib/atoll.c: New file, from glibc with modifications.
87048         * m4/atoll.m4: New file.
87049         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
87050         HAVE_ATOLL.
87051         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
87052         * doc/posix-functions/atoll.texi: Mention the new module.
87054 2008-10-19  Bruno Haible  <bruno@clisp.org>
87056         Add strtoull() declaration to <stdlib.h>.
87057         * lib/stdlib.in.h (strtoull): New declaration.
87058         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87059         Set HAVE_STRTOULL.
87060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
87061         HAVE_STRTOULL.
87062         * modules/strtoull (Depends-on): Add stdlib.
87063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87064         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
87065         HAVE_STRTOULL.
87067 2008-10-19  Bruno Haible  <bruno@clisp.org>
87069         Add strtoll() declaration to <stdlib.h>.
87070         * lib/stdlib.in.h (strtoll): New declaration.
87071         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
87072         Set HAVE_STRTOLL.
87073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
87074         HAVE_STRTOLL.
87075         * modules/strtoll (Depends-on): Add stdlib.
87076         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87077         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
87079 2008-10-19  Bruno Haible  <bruno@clisp.org>
87081         * modules/bcopy (Depends-on): Add strings.
87082         (Include): Specify <strings.h>.
87084 2008-10-19  Bruno Haible  <bruno@clisp.org>
87086         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
87088 2008-10-19  Bruno Haible  <bruno@clisp.org>
87090         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
87091         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
87092         mingw.
87094 2008-10-19  Bruno Haible  <bruno@clisp.org>
87096         * lib/atanl.c: Don't include isnanl.h.
87097         * lib/cosl.c: Likewise.
87098         * lib/ldexpl.c: Likewise.
87099         * lib/logl.c: Likewise.
87100         * lib/sinl.c: Likewise.
87101         * lib/sqrtl.c: Likewise.
87102         * lib/tanl.c: Likewise.
87104         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
87105         * lib/isnanf.h: Remove file.
87106         * lib/isnand.h: Remove file.
87107         * lib/isnanl.h: Remove file.
87108         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
87109         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
87110         macros.
87111         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
87112         HAVE_ISNANF, don't define it as a C macro.
87113         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
87114         HAVE_ISNAND, don't define it as a C macro.
87115         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
87116         HAVE_ISNANL, don't define it as a C macro.
87117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
87118         HAVE_ISNAN[FDL].
87119         * modules/isnanf (Files): Remove lib/isnanf.h.
87120         (Depends-on): Add math.
87121         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87122         (Include): Specify <math.h> instead of isnanf.h.
87123         * modules/isnand (Files): Remove lib/isnand.h.
87124         (Depends-on): Add math.
87125         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87126         (Include): Specify <math.h> instead of isnand.h.
87127         * modules/isnanl (Files): Remove lib/isnanl.h.
87128         (Depends-on): Add math.
87129         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
87130         (Include): Specify <math.h> instead of isnanl.h.
87131         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
87132         HAVE_ISNAN[FDL].
87133         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
87134         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
87135         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
87136         * NEWS: Mention the change.
87138 2008-10-18  Bruno Haible  <bruno@clisp.org>
87140         Add getusershell(), setusershell(), endusershell() declarations to
87141         <unistd.h>.
87142         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
87143         declarations.
87144         * lib/getusershell.c: Include unistd.h.
87145         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
87146         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87147         HAVE_GETUSERSHELL.
87148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
87149         and HAVE_GETUSERSHELL.
87150         * modules/getusershell (Depends-on): Add unistd, extensions.
87151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87152         (Include): Specify <unistd.h>.
87153         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
87154         HAVE_GETUSERSHELL.
87156 2008-10-18  Bruno Haible  <bruno@clisp.org>
87158         Add a getloadavg() declaration to <stdlib.h>.
87159         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
87160         getloadavg declaration.
87161         (getloadavg): New declaration.
87162         * lib/getloadavg.c: Include <stdlib.h> first.
87163         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
87164         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
87165         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
87166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
87167         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87168         * modules/getloadavg (Depends-on): Add stdlib, extensions.
87169         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87170         (Include): Specify <stdlib.h>.
87171         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
87172         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
87174 2008-10-18  Bruno Haible  <bruno@clisp.org>
87176         * lib/dirchownmod.c: Don't include lchmod.h.
87178         Move the lchmod() declaration to <sys/stat.h>.
87179         * lib/lchmod.h: Remove file.
87180         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
87181         (lchmod): New declaration, moved here from lib/lchown.h.
87182         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
87183         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
87184         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
87185         and HAVE_LCHMOD.
87186         * modules/lchmod (Files): Remove lib/lchmod.h.
87187         (Depends-on): Add sys_stat, extensions.
87188         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
87189         (Include): Specify <sys/stat.h> instead of lchmod.h.
87190         * modules/sys_stat (Depends-on): Add link-warning.
87191         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
87192         definition of GL_LINK_WARNING.
87193         * NEWS: Mention the change.
87195 2008-10-18  Bruno Haible  <bruno@clisp.org>
87197         * lib/fchdir.c: Don't include dirfd.h.
87198         * lib/fts.c: Likewise.
87199         * lib/getcwd.c: Likewise.
87200         * lib/glob.c: Likewise.
87202         Move the dirfd() declaration to <dirent.h>.
87203         * lib/dirfd.h: Remove file.
87204         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
87205         (dirfd): New declaration.
87206         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
87207         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
87208         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
87209         HAVE_DECL_DIRFD.
87210         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
87211         HAVE_DECL_DIRFD.
87212         * modules/dirfd (Files): Remove lib/dirfd.h.
87213         (Depends-on): Add dirent, extensions.
87214         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
87215         (Include): Specify <dirent.h> instead of dirfd.h.
87216         * modules/dirent (Depends-on): Add link-warning.
87217         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
87218         definition of GL_LINK_WARNING.
87219         * NEWS: Mention the change.
87221 2008-10-18  Bruno Haible  <bruno@clisp.org>
87223         Move the euidaccess() declaration to <unistd.h>.
87224         * lib/euidaccess.h: Remove file.
87225         * lib/unistd.in.h (euidaccess): New declaration.
87226         * lib/euidaccess.c: Don't include euidaccess.h.
87227         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
87228         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
87229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
87230         and HAVE_EUIDACCESS.
87231         * modules/euidaccess (Files): Remove lib/euidaccess.h.
87232         (Depends-on): Add unistd.
87233         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87234         (Include): Specify <unistd.h> instead of euidaccess.h.
87235         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
87236         HAVE_EUIDACCESS.
87237         * NEWS: Mention the change.
87239 2008-10-18  Bruno Haible  <bruno@clisp.org>
87241         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
87243         Move the getdomainname() declaration to <unistd.h>.
87244         * lib/getdomainname.h: Remove file.
87245         * lib/unistd.in.h (getdomainname): New declaration.
87246         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
87247         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
87248         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
87249         HAVE_GETDOMAINNAME.
87250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87251         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
87252         * modules/getdomainname (Files): Remove lib/getdomainname.h.
87253         (Depends-on): Add unistd, extensions.
87254         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87255         (Includes): Specify <unistd.h> instead of getdomainname.h.
87256         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
87257         HAVE_GETDOMAINNAME.
87258         * NEWS: Mention the change.
87260 2008-10-18  Bruno Haible  <bruno@clisp.org>
87262         * modules/dirent: New file.
87263         * m4/dirent_h.m4: New file.
87264         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
87265         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
87266         * modules/fchdir (Files): Remove lib/dirent.in.h.
87267         (Depends-on): Add dirent.
87268         (Makefile.am): Move rules to modules/dirent.
87269         * doc/posix-headers/dirent.texi: Mention the new module.
87271 2008-10-18  Bruno Haible  <bruno@clisp.org>
87273         Avoid -Wunused-parameter warnings in public gnulib header files.
87274         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
87275         macro.
87276         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
87278 2008-10-18  Bruno Haible  <bruno@clisp.org>
87280         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
87281         * doc/glibc-functions/error.texi: Mention the module 'error'.
87282         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
87283         * doc/glibc-functions/getdomainname.texi: Mention the module
87284         'getdomainname'.
87285         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
87286         * doc/glibc-functions/getpagesize.texi: Mention the module
87287         'getpagesize'.
87288         * doc/glibc-functions/getusershell.texi: Mention the module
87289         'getusershell'.
87290         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
87291         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
87292         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
87293         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
87294         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
87295         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
87296         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
87297         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
87298         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
87299         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
87300         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
87301         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
87302         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
87303         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
87305 2008-10-17  Bruno Haible  <bruno@clisp.org>
87307         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
87308         HP-UX and IRIX, use -0.0L.
87309         * tests/test-ceill.c (minus_zero): Likewise.
87310         * tests/test-floorl.c (minus_zero): Likewise.
87311         * tests/test-frexpl.c (minus_zero): Likewise.
87312         * tests/test-isnan.c (minus_zerol): Likewise.
87313         * tests/test-isnanl.h (minus_zero): Likewise.
87314         * tests/test-ldexpl.c (minus_zero): Likewise.
87315         * tests/test-roundl.c (minus_zero): Likewise.
87316         * tests/test-signbit.c (minus_zerol): Likewise.
87317         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87318         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87319         * tests/test-truncl.c (minus_zero): Likewise.
87320         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87321         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87322         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
87323         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
87325 2008-10-17  Bruno Haible  <bruno@clisp.org>
87327         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
87328         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
87329         that it gets activated only for gcc >= 3.0.
87330         * lib/dirent.in.h: Likewise.
87331         * lib/errno.in.h: Likewise.
87332         * lib/fcntl.in.h: Likewise.
87333         * lib/float.in.h: Likewise.
87334         * lib/iconv.in.h: Likewise.
87335         * lib/inttypes.in.h: Likewise.
87336         * lib/locale.in.h: Likewise.
87337         * lib/math.in.h: Likewise.
87338         * lib/netdb.in.h: Likewise.
87339         * lib/netinet_in.in.h: Likewise.
87340         * lib/search.in.h: Likewise.
87341         * lib/signal.in.h: Likewise.
87342         * lib/spawn.in.h: Likewise.
87343         * lib/stdarg.in.h: Likewise.
87344         * lib/stdint.in.h: Likewise.
87345         * lib/stdio.in.h: Likewise.
87346         * lib/stdlib.in.h: Likewise.
87347         * lib/string.in.h: Likewise.
87348         * lib/strings.in.h: Likewise.
87349         * lib/sys_file.in.h: Likewise.
87350         * lib/sys_ioctl.in.h: Likewise.
87351         * lib/sys_select.in.h: Likewise.
87352         * lib/sys_socket.in.h: Likewise.
87353         * lib/sys_stat.in.h: Likewise.
87354         * lib/sys_time.in.h: Likewise.
87355         * lib/sysexits.in.h: Likewise.
87356         * lib/time.in.h: Likewise.
87357         * lib/unistd.in.h: Likewise.
87358         * lib/wchar.in.h: Likewise.
87359         * lib/wctype.in.h: Likewise.
87360         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
87362 2008-10-17  Jim Meyering  <meyering@redhat.com>
87364         ignore-value: don't depend on inline module
87365         * modules/ignore-value (Depends-on): Remove 'inline'.
87366         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
87367         Suggestion from Bruno Haible.
87369 2008-10-17  Bruno Haible  <bruno@clisp.org>
87371         New implementation of condition variables for Win32.
87372         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
87373         (gl_linked_waitqueue_t): New type.
87374         (gl_cond_t): Use it.
87375         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
87376         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
87377         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
87378         (glthread_cond_init_func, glthread_cond_wait_func,
87379         glthread_cond_timedwait_func, glthread_cond_signal_func,
87380         glthread_cond_broadcast_func, glthread_cond_destroy_func):
87381         Reimplemented on the basis of gl_linked_waitqueue_t.
87382         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
87383         gl_waitqueue_t.
87384         (gl_rwlock_t): Update.
87385         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
87387 2008-10-17  Simon Josefsson  <simon@josefsson.org>
87389         * modules/recvfrom (Depends-on): Add dependency on getpeername.
87390         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87392 2008-10-17  Jim Meyering  <meyering@redhat.com>
87394         ignore-value: new module
87395         * modules/ignore-value: New file.
87396         * lib/ignore-value.h: New file.
87397         * MODULES.html.sh (Compiler warning management): New section,
87398         just for this module.  More to come.
87400 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
87402         open-safer.c: avoid 'signed and unsigned in conditional...' warning
87403         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
87404         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
87406 2008-10-16  Jim Meyering  <meyering@redhat.com>
87408         openat-die.c: avoid 'no previous prototype' warning
87409         * lib/openat-die.c: Include "openat.h".
87410         Reported by Reuben Thomas <rrt@sc3d.org>.
87412 2008-10-16  Simon Josefsson  <simon@josefsson.org>
87414         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
87415         * lib/netdb.in.h: Fix typo.
87416         Reported by Bruno Haible  <bruno@clisp.org>
87418         * lib/netdb.in.h: Include sys/socket.h for platforms without
87419         netdb.h, to get structures like hostent on MinGW.
87420         * modules/netdb (Depends-on): Add sys_socket.
87422 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87424         * modules/netdb, modules/netdb-tests: New file.
87425         * m4/netdb_h.m4: New file.
87426         * lib/netdb.in.h: Add, currently just an empty file pending
87427         definitions.
87428         * tests/test-netdb.c: New file.
87429         * doc/posix-headers/netdb.texi: Mention that we replace it if
87430         needed.
87431         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87432         netdb.
87434 2008-10-15  Simon Josefsson  <simon@josefsson.org>
87436         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
87437         with code.
87439 2008-10-13  Bruno Haible  <bruno@clisp.org>
87441         * lib/glthread/cond.c (glthread_cond_wait_func,
87442         glthread_cond_timedwait_func): Add a comment.
87444 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87446         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
87447         * tests/test-select.c: Likewise,
87449 2008-10-13  Bruno Haible  <bruno@clisp.org>
87451         * lib/glthread/cond.c (glthread_cond_wait_func,
87452         glthread_cond_timedwait_func): Fix variable name.
87453         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87455 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
87457         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
87458         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
87459         struct sockaddr.sa_len.
87460         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
87462 2008-10-13  Simon Josefsson  <simon@josefsson.org>
87464         * build-aux/pmccabe2html: Add css and css_url parameters.
87466 2008-10-12  Bruno Haible  <bruno@clisp.org>
87468         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
87469         calling aclx_get.
87470         Reported by Rainer Tammer <tammer@tammer.net>.
87472 2008-10-12  Bruno Haible  <bruno@clisp.org>
87474         Use msvcrt aware primitives for creation/termination of Win32 threads.
87475         * lib/glthread/thread.c: Include <process.h>.
87476         (glthread_create_func): Use _beginthreadex instead of CreateThread.
87477         (wrapper_func): Update signature.
87478         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
87480 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87481             Bruno Haible  <bruno@clisp.org>
87483         Provide a Win32 implementation of the 'cond' module.
87484         * lib/glthread/cond.h [USE_WIN32]: New implementation.
87485         * lib/glthread/cond.c (glthread_cond_init_func,
87486         glthread_cond_wait_func, glthread_cond_timedwait_func,
87487         glthread_cond_signal_func, glthread_cond_broadcast_func,
87488         glthread_cond_destroy_func) [USE_WIN32]: New functions.
87489         * modules/cond (Dependencies): Add gettimeofday.
87491 2008-10-11  Bruno Haible  <bruno@clisp.org>
87493         Make sleep work on older versions of mingw.
87494         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
87495         only whether it exists.
87496         * doc/posix-functions/sleep.texi: Mention the problem with older
87497         versions of mingw.
87499 2008-10-11  Bruno Haible  <bruno@clisp.org>
87501         New module 'shutdown'.
87502         * modules/shutdown: New file.
87503         * lib/sys_socket.in.h (shutdown): New declaration.
87504         * lib/winsock.c (shutdown): New function.
87505         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
87506         GNULIB_SHUTDOWN.
87507         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
87508         * doc/posix-functions/shutdown.texi: Document the new module.
87510 2008-10-11  Jim Meyering  <meyering@redhat.com>
87512         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
87514 2008-10-11  Bruno Haible  <bruno@clisp.org>
87516         New module 'fclose'.
87517         * modules/fclose: New file.
87518         * lib/stdio.in.h (fclose): New declaration.
87519         * lib/fclose.c: New file.
87520         * m4/fclose.m4: New file.
87521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
87522         REPLACE_FCLOSE.
87523         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
87524         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
87525         REPLACE_FCLOSE.
87526         * modules/close (Depends-on): fclose.
87527         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
87529 2008-10-11  Bruno Haible  <bruno@clisp.org>
87531         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
87532         set errno and don't call _close.
87534 2008-10-10  Bruno Haible  <bruno@clisp.org>
87536         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
87537         ACL, not afterwards. Fixes test failure on Cygwin.
87539 2008-10-09  Ben Pfaff  <blp@gnu.org>
87541         * build-aux/announce-gen: Fix gnulib version related part of usage
87542         message.  Die with a useful error message if no tarballs are
87543         found.
87545 2008-10-10  Jim Meyering  <meyering@redhat.com>
87547         bootstrap: use git's --depth=N option only if it's supported
87548         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
87549         recognize the --depth option.  Reported by Pádraig Brady.
87551 2008-10-09  Bruno Haible  <bruno@clisp.org>
87553         New module 'ioctl'.
87554         * modules/ioctl: New file.
87555         * lib/sys_socket.in.h (ioctl): Remove declaration.
87556         * lib/winsock.c: Include <sys/ioctl.h>.
87557         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
87558         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
87559         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
87560         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
87561         * doc/posix-functions/ioctl.texi: Mention the new module.
87563 2008-10-09  Bruno Haible  <bruno@clisp.org>
87565         New module 'sys_ioctl'.
87566         * lib/sys_ioctl.in.h: New file.
87567         * m4/sys_ioctl_h.m4: New file.
87568         * modules/sys_ioctl: New file.
87569         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
87571 2008-10-09  Bruno Haible  <bruno@clisp.org>
87573         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
87574         * lib/winsock.c: Include <stdarg.h>.
87575         (rpl_ioctl): Change to second argument 'int' and then varargs.
87577 2008-10-09  Bruno Haible  <bruno@clisp.org>
87579         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
87580         when the sys_socket module is present and the system has <winsock2.h>.
87582 2008-10-09  Bruno Haible  <bruno@clisp.org>
87584         * doc/posix-functions/close.texi: Mention module 'close' instead of
87585         module 'sys_socket'.
87587 2008-10-09  Bruno Haible  <bruno@clisp.org>
87589         * doc/glibc-headers/sys_ioctl.texi: New file.
87590         * doc/gnulib.texi: Include it.
87592 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87593             Bruno Haible  <bruno@clisp.org>
87595         Combine the two replacements of 'close'.
87596         * lib/sys_socket.in.h (close): Define to a reminder to include
87597         <unistd.h>.
87598         (_gl_close_fd_maybe_socket): New declaration.
87599         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
87600         * lib/winsock.c (close): Remove undefinition.
87601         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
87602         needed for the gnulib module 'close'.
87603         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
87604         define to an error symbol or to a warning, if suitable.
87605         * lib/close.c: Include <sys/socket.h>.
87606         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
87607         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
87608         UNISTD_H_HAVE_WINSOCK2_H.
87609         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
87610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87611         UNISTD_H_HAVE_WINSOCK2_H.
87612         * modules/sys_socket (Files): Add m4/unistd_h.m4.
87613         (configure.ac): Set a module indicator.
87614         (Makefile.am): Substitute GNULIB_CLOSE.
87615         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
87616         * modules/poll-tests (Depends-on): Add close.
87617         * modules/select-tests (Depends-on): Likewise.
87619 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87620             Bruno Haible  <bruno@clisp.org>
87622         New module 'close'.
87623         * modules/close: New file.
87624         * lib/unistd.in.h (close): Move declaration out of the
87625         FCHDIR_REPLACEMENT scope.
87626         (_gl_unregister_fd): New declaration.
87627         * lib/close.c: New file.
87628         * lib/fchdir.c (rpl_close): Remove function.
87629         * m4/close.m4: New file.
87630         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87631         close.
87632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
87633         REPLACE_CLOSE.
87634         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
87635         REPLACE_CLOSE.
87636         * modules/fchdir (Depends-on): Add close.
87638 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87639             Bruno Haible  <bruno@clisp.org>
87641         * lib/fcntl.in.h (open): Simplify conditionals.
87642         (_gl_register_fd): New declaration.
87643         * lib/fchdir.c (rpl_open): Remove function.
87644         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
87645         also.
87646         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
87647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
87648         open.
87650 2008-10-09  Jim Meyering  <meyering@redhat.com>
87652         GNUmakefile: use the more name-space-friendly "_version"
87653         * top/GNUmakefile (_dummy): Update.
87654         (_version): Rename from "version".
87656 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87657             Bruno Haible  <bruno@clisp.org>
87659         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
87660         rpl_close.
87661         (_gl_register_fd): New function, extracted from rpl_open.
87662         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
87663         (rpl_open, rpl_opendir): Use _gl_register_fd.
87665 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
87667         Fix organization of 'open' replacement.
87668         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
87669         (gl_FUNC_OPEN): Use it.
87670         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
87672 2008-10-08  Bruno Haible  <bruno@clisp.org>
87674         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
87676 2008-10-08  Simon Josefsson  <simon@josefsson.org>
87678         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
87679         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
87680         listen).
87682 2008-10-08  Eric Blake  <ebb9@byu.net>
87684         GNUmakefile: add 'make version' target
87685         * top/GNUmakefile (_curr-ver): Split version update rules...
87686         (version): ...into a target.
87688 2008-10-07  Bruno Haible  <bruno@clisp.org>
87690         Use a more portable replacement expression for -0.0L.
87691         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
87692         instead of -0.0L. Fix m4 quotation.
87694         * tests/test-signbit.c: Include <float.h>.
87695         (minus_zero): New variable.
87696         (test_signbitl): Use minus_zero instead of -zero.
87697         * modules/signbit-tests (Depends-on): Add float.
87699         * tests/test-ceill.c: Include <float.h>.
87700         (zero): Remove variable.
87701         (minus_zero): New variable.
87702         (main): Use minus_zero instead of -zero.
87703         * modules/ceill-tests (Depends-on): Add float.
87705         * tests/test-floorl.c: Include <float.h>.
87706         (zero): Remove variable.
87707         (minus_zero): New variable.
87708         (main): Use minus_zero instead of -zero.
87709         * modules/floorl-tests (Depends-on): Add float.
87711         * tests/test-roundl.c: Include <float.h>.
87712         (zero): Remove variable.
87713         (minus_zero): New variable.
87714         (main): Use minus_zero instead of -zero.
87715         * modules/roundl-tests (Depends-on): Add float.
87717         * tests/test-truncl.c: Include <float.h>.
87718         (zero): Remove variable.
87719         (minus_zero): New variable.
87720         (main): Use minus_zero instead of -zero.
87721         * modules/truncl-tests (Depends-on): Add float.
87723         * tests/test-frexpl.c (zero): Remove variable.
87724         (minus_zero): New variable.
87725         (main): Use minus_zero instead of -zero.
87726         * modules/frexpl-tests (Depends-on): Add float.
87728         * tests/test-isnan.c (zerol): Remove variable.
87729         (minus_zerol): New variable.
87730         (test_long_double): Use minus_zerol instead of -zerol.
87731         * modules/isnan-tests (Depends-on): Add float.
87733         * tests/test-isnanl.h (zero): Remove variable.
87734         (minus_zero): New variable.
87735         (main): Use minus_zero instead of -zero.
87736         * modules/isnanl-nolibm-tests (Depends-on): Add float.
87737         * modules/isnanl-tests (Depends-on): Add float.
87739         * tests/test-ldexpl.c (zero): Remove variable.
87740         (minus_zero): New variable.
87741         (main): Use minus_zero instead of -zero.
87742         * modules/ldexpl-tests (Depends-on): Add float.
87744         * tests/test-snprintf-posix.h (zerol): Remove variable.
87745         (minus_zerol): New variable.
87746         (test_function): Use minus_zerol instead of -zerol.
87747         * modules/snprintf-posix-tests (Depends-on): Add float.
87748         * modules/vsnprintf-posix-tests (Depends-on): Add float.
87750         * tests/test-sprintf-posix.h (zerol): Remove variable.
87751         (minus_zerol): New variable.
87752         (test_function): Use minus_zerol instead of -zerol.
87753         * modules/sprintf-posix-tests (Depends-on): Add float.
87754         * modules/vsprintf-posix-tests (Depends-on): Add float.
87756         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
87757         (minus_zerol): New variable.
87758         (test_function): Use minus_zerol instead of -zerol.
87759         * modules/vasnprintf-posix-tests (Depends-on): Add float.
87761         * tests/test-vasprintf-posix.c (zerol): Remove variable.
87762         (minus_zerol): New variable.
87763         (test_function): Use minus_zerol instead of -zerol.
87764         * modules/vasprintf-posix-tests (Depends-on): Add float.
87766 2008-10-07  Simon Josefsson  <simon@josefsson.org>
87768         * MODULES.html.sh (Support for building documentation): Mention
87769         pmccabe2html.  Sort entries.
87771         Add pmccabe2html module, from gnupdf.
87772         * build-aux/pmccabe.css: New file.
87773         * build-aux/pmccabe2html: New file.
87774         * m4/pmccabe2html.m4: New file.
87775         * modules/pmccabe2html: New file.
87777 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
87779         flock: new module
87780         * MODULES.html.sh: Add to list of modules.
87781         * lib/flock.c: flock implementation for Windows and Unix systems
87782         which have fcntl.
87783         * doc/glibc-functions/flock.texi: Update documentation.
87784         * lib/sys_file.in.h: <sys/file.h> header file.
87785         * m4/flock.m4: M4 macros.
87786         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
87787         * modules/flock: flock module.
87788         * modules/flock-tests: flock tests module.
87789         * modules/sys_file: sys/file.h module.
87790         * tests/test-flock.c: test suite for flock.
87792 2008-10-06  Jim Meyering  <meyering@redhat.com>
87794         bootstrap: check for LT_INIT more portably still ;-)
87795         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
87796         Spotted by Bruno Haible.
87798 2008-10-06  Eric Blake  <ebb9@byu.net>
87800         test-signbit: avoid tripping Irix cc bug on -0.0L
87801         * tests/test-signbit.c (minus_zerol): Delete, and replace with
87802         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
87803         entire testsuite consistent and avoids an Irix 6.2 bug.
87805 2008-10-05  Bruno Haible  <bruno@clisp.org>
87806             Jim Meyering  <jim@meyering.net>
87808         Add an option for ignoring EPIPE during close_stdout.
87809         * lib/closeout.h: Include <stdbool.h>.
87810         (close_stdout_set_ignore_EPIPE): New declaration.
87811         * lib/closeout.c: Include <stdbool.h>.
87812         (ignore_EPIPE): New variable.
87813         (close_stdout_set_ignore_EPIPE): New function.
87814         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
87815         * lib/close-stream.c (close_stream): Mention the possible EPIPE
87816         failure.
87817         * modules/closeout (Depends-on): Add stdbool.
87819 2008-10-05  Bruno Haible  <bruno@clisp.org>
87821         * modules/accept: New file.
87822         * modules/bind: New file.
87823         * modules/connect: New file.
87824         * modules/getpeername: New file.
87825         * modules/getsockname: New file.
87826         * modules/getsockopt: New file.
87827         * modules/listen: New file.
87828         * modules/recv: New file.
87829         * modules/recvfrom: New file.
87830         * modules/send: New file.
87831         * modules/sendto: New file.
87832         * modules/setsockopt: New file.
87833         * modules/socket: New file.
87834         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
87835         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
87836         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
87837         the particular module is requested. Add a link warning when the
87838         particular module is not requested.
87839         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
87840         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
87841         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
87842         the particular module is requested.
87843         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
87844         gl_SYS_SOCKET_H_DEFAULTS): New macros.
87845         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
87846         * modules/sys_socket (Depends-on): Add link-warning.
87847         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
87848         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
87849         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
87850         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
87851         GL_LINK_WARNING.
87852         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
87853         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
87854         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
87855         * doc/posix-functions/getpeername.texi: Mention the new module
87856         'getpeername'.
87857         * doc/posix-functions/getsockname.texi: Mention the new module
87858         'getsockname'.
87859         * doc/posix-functions/getsockopt.texi: Mention the new module
87860         'getsockopt'.
87861         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
87862         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
87863         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
87864         * doc/posix-functions/send.texi: Mention the new module 'send'.
87865         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
87866         * doc/posix-functions/setsockopt.texi: Mention the new module
87867         'setsockopt'.
87868         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
87869         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
87870         listen, connect, accept.
87871         * modules/select-tests (Depends-on): Likewise.
87873 2008-10-05  Bruno Haible  <bruno@clisp.org>
87875         * lib/winsock.c (strerror): Remove unused #undef.
87876         (rpl_close): Remove unused local variable.
87878         * modules/sys_socket (Depends-on); Add errno.
87880 2008-10-05  Bruno Haible  <bruno@clisp.org>
87882         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
87883         (select): Add a link warning when the 'select' module is not used.
87884         * modules/sys_select (Depends-on): Add link-warning.
87885         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
87886         Suggested by Paolo Bonzini.
87888 2008-10-05  Jim Meyering  <meyering@redhat.com>
87890         bootstrap: check for LT_INIT more portably
87891         * build-aux/bootstrap: Avoid using grep -E, since it's not
87892         portable enough.  Suggestion from Bruno Haible.
87894 2008-10-05  Bruno Haible  <bruno@clisp.org>
87896         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
87897         as being fixed by gnulib.
87899 2008-10-05  Bruno Haible  <bruno@clisp.org>
87901         * modules/select-tests: New file, mostly copied from
87902         modules/sys_select-tests.
87903         * tests/test-select.c: New file, mostly copied from
87904         tests/test-sys_select.c.
87905         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
87906         * modules/sys_select-tests (Depends-on): Remove all dependencies.
87907         (Makefile.am): Remove test_sys_select_LDADD.
87909         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
87910         to an undefined symbol, for an error message.
87911         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
87912         (gl_SYS_SELECT_H_DEFAULTS): New macro.
87913         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
87914         winsock-select.c here.
87915         * modules/sys_select (Files): Remove lib/winsock-select.c.
87916         (Depends-on): Remove alloca.
87917         (Makefile.am): Substitute GNULIB_SELECT.
87918         * modules/select: New file.
87919         * doc/posix-functions/select.texi: Update.
87921 2008-10-05  Bruno Haible  <bruno@clisp.org>
87923         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
87924         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
87925         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
87926         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
87927         getdtablesize.
87928         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
87929         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
87931 2008-10-05  Bruno Haible  <bruno@clisp.org>
87933         * modules/getdtablesize-tests: New file.
87934         * tests/test-getdtablesize.c: New file.
87936         New module 'getdtablesize'.
87937         * lib/unistd.in.h (getdtablesize): New declaration.
87938         * lib/getdtablesize.c: New file.
87939         * m4/getdtablesize.m4: New file.
87940         * modules/getdtablesize: New file.
87941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87942         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
87943         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
87944         HAVE_GETDTABLESIZE.
87945         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
87947 2008-10-05  Bruno Haible  <bruno@clisp.org>
87949         * modules/sched (Makefile.am): Fix typo.
87950         Reported by Simon Josefsson.
87952 2008-10-05  Jim Meyering  <meyering@redhat.com>
87954         bootstrap: check for LT_INIT, too
87955         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
87956         are deprecated.  Suggestion from Ralf Wildenhues.
87958 2008-10-05  Bruno Haible  <bruno@clisp.org>
87960         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
87961         overriding them by ours.
87962         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
87964 2008-10-05  Jim Meyering  <meyering@redhat.com>
87966         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
87967         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
87968         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
87970 2008-10-04  Bruno Haible  <bruno@clisp.org>
87972         * modules/dup2 (License): Change to LGPLv2+.
87973         * modules/sleep (License): Likewise.
87974         * modules/perror (License): Likewise.
87975         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
87976         Blake.
87977         * modules/signal (License): Likewise.
87978         * modules/sigprocmask (License): Likewise.
87979         * modules/raise (License): Change to LGPLv2+, with approval by Jim
87980         Meyering.
87982 2008-10-04  Bruno Haible  <bruno@clisp.org>
87984         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
87985         Reported by Rainer Tammer <tammer@tammer.net>.
87987 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
87988             Bruno Haible  <bruno@clisp.org>
87990         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
87991         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
87992         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
87994 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
87996         filevercmp: new module
87997         * lib/filevercmp.h: New function filevercmp comparing version strings.
87998         * lib/filevercmp.c: Implementation of filevercmp function.
87999         * modules/filevercmp: Module metadata.
88000         * tests/test-filevercmp.c: Unit test for new module.
88001         * modules/filevercmp-tests: Unit test metadata.
88002         * MODULES.html.sh: Add filevercmp module.
88004 2008-10-03  Bruno Haible  <bruno@clisp.org>
88006         * lib/c-ctype.h: Add comment.
88007         Reported by Jim Meyering.
88009 2008-10-02  Bruno Haible  <bruno@clisp.org>
88011         * modules/posix_spawn-internal (Depends-on): Add 'open'.
88013 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88015         * build-aux/bootstrap: Allow renaming bootstrap, and change the
88016         name of bootstrap.conf accordingly.
88018 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88020         * build-aux/bootstrap: Install git-merge-changelog configuration
88021         items into .gitconfig if needed.
88023 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
88025         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
88026         git repository, and initialize/update it accordingly.
88028 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
88030         * modules/fsync-tests: New file.
88031         * tests/test-fsync.c: New file.
88033         New module 'fsync'.
88034         * lib/fsync.c: New file.
88035         * m4/fsync.m4: New file.
88036         * modules/fsync: New file.
88037         * lib/unistd.in.h (fsync): New declaration.
88038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
88039         GNULIB_FSYNC and HAVE_FSYNC.
88040         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
88041         * MODULES.html.sh (posix_functions): Add fsync.
88042         * doc/posix-functions/fsync.texi: Mention the new module.
88044 2008-10-02  Jim Meyering  <meyering@redhat.com>
88046         fts.c: sync with similar code from coreutils' remove.c
88047         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
88048         Guard also with "#if defined __linux__", since for now at least,
88049         this code is Linux-kernel-specific.
88051 2008-10-02  Jim Meyering  <meyering@redhat.com>
88053         fts: bug fixes
88054         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
88055         Include <sys/vfs.h>, not <sys/statfs.h>.
88057         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
88058         Include <sys/vfs.h>, not <sys/statfs.h>.
88060 2008-10-01  Bruno Haible  <bruno@clisp.org>
88062         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
88063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
88064         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
88065         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
88066         * doc/posix-functions/posix_spawnp.texi: Likewise.
88067         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
88068         whether posix_spawn actually works.
88069         * m4/pipe.m4 (gl_PIPE): Likewise.
88070         * modules/execute (Files): Add m4/posix_spawn.m4.
88071         * modules/pipe (Files): Add m4/posix_spawn.m4.
88072         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
88074 2008-10-01  Jim Meyering  <meyering@redhat.com>
88076         remove trailing spaces
88077         * NEWS: Likewise.
88078         * lib/poll.c (poll): Likewise.
88079         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
88080         * lib/winsock.c (rpl_close): Likewise.
88081         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
88082         * modules/yield: Likewise.
88083         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
88084         * tests/test-sys_select.c (connect_to_socket): Likewise.
88086         fts.c: adjust a new interface to be more generally useful
88087         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
88088         (fts_build): Adjust caller.
88090 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88092         * modules/cond-tests: New file.
88093         * tests/test-cond.c: New file.
88095 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88096             Bruno Haible  <bruno@clisp.org>
88098         * modules/cond (Dependencies): Add errno, time.
88099         * lib/glthread/cond.h: Include <time.h>.
88100         (gl_cond_define, gl_cond_define_initialized): Use the same definition
88101         across platforms.
88103 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88104             Bruno Haible  <bruno@clisp.org>
88106         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
88108 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88109             Bruno Haible  <bruno@clisp.org>
88111         * modules/tls-tests (Depends-on): Add thread, yield.
88112         (configure.ac): Remove all checks.
88113         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
88114         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88115         gl_thread_self): Remove definitions. Include glthread/thread.h and
88116         glthread/yield.h instead.
88117         (test_tls): Pass an additional NULL argument to gl_thread_join.
88119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88120             Bruno Haible  <bruno@clisp.org>
88122         * modules/lock-tests (Depends-on): Add thread, yield.
88123         (configure.ac): Remove all checks.
88124         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
88125         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
88126         gl_thread_self): Remove definitions. Include glthread/thread.h and
88127         glthread/yield.h instead.
88128         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
88129         additional NULL argument to gl_thread_join.
88131 2008-09-30  Bruno Haible  <bruno@clisp.org>
88133         Fix the Win32 implementation of the 'thread' module.
88134         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
88135         pointer type.
88136         (gl_thread_self): Invoke gl_thread_self_func.
88137         (gl_thread_self_func): New declaration.
88138         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
88139         (do_init_self_key, init_self_key): New functions.
88140         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
88141         Remove some fields.
88142         (running_threads, running_lock): Remove variables.
88143         (get_current_thread_handle): New function.
88144         (gl_thread_self_func, wrapper_func, glthread_create_func,
88145         glthread_join_func, gl_thread_exit_func): Largely rewritten and
88146         simplified.
88148 2008-09-30  Bruno Haible  <bruno@clisp.org>
88150         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
88151         files.
88153 2008-09-30  Jim Meyering  <meyering@redhat.com>
88155         fts.m4: correct the test for statfs.f_type
88156         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
88157         when checking for statfs.f_type.
88159 2008-09-15  Simon Josefsson  <simon@josefsson.org>
88161         tests: avoid some compiler warnings
88162         * tests/test-memchr.c (main): Pass NULL indirectly.
88163         * tests/test-getdate.c (main): Remove unused variable 'ret'.
88165 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
88167         getdate.y: disallow countable dayshifts like "4 yesterday ago"
88168         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
88169         exactly specified dayshifts.
88170         (dayshift): New rule.
88171         (rel): Add dayshift.
88172         (relative_time_table) [tomorrow, yesterday, today, now]:
88173         Use tDAY_SHIFT in place of tDAY_UNIT.
88174         * tests/test-getdate.c: Add tests for now-disallowed countable
88175         dayshifts, e.g., "4 yesterday ago".
88177 2008-09-29  Bruno Haible  <bruno@clisp.org>
88179         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
88180         * tests/test-posix_spawn1.in.sh: Renamed from
88181         tests/test-posix_spawn.in.sh.
88182         * tests/test-posix_spawn2.c: New file.
88183         * tests/test-posix_spawn2.in.sh: New file.
88184         * modules/posix_spawnp-tests (Files): Update.
88185         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
88187 2008-09-29  Bruno Haible  <bruno@clisp.org>
88189         Propagate effects of putenv/setenv/unsetenv to child processes.
88190         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
88191         * lib/pipe.c (create_pipe): Likewise.
88193 2008-09-29  Bruno Haible  <bruno@clisp.org>
88195         Enable use of shell scripts as executables in mingw.
88196         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
88197         run the program as a shell script.
88198         * lib/pipe.c (create_pipe): Likewise.
88199         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
88200         resulting array.
88202 2008-09-29  Eric Blake  <ebb9@byu.net>
88204         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
88206 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
88208         * doc/posix-functions/accept.texi: Update mingw problems.
88209         * doc/posix-functions/bind.texi: Update mingw problems.
88210         * doc/posix-functions/close.texi: Update mingw problems.
88211         * doc/posix-functions/connect.texi: Update mingw problems.
88212         * doc/posix-functions/getpeername.texi: Update mingw problems.
88213         * doc/posix-functions/getsockname.texi: Update mingw problems.
88214         * doc/posix-functions/getsockopt.texi: Update mingw problems.
88215         * doc/posix-functions/ioctl.texi: Update mingw problems.
88216         * doc/posix-functions/listen.texi: Update mingw problems.
88217         * doc/posix-functions/recv.texi: Update mingw problems.
88218         * doc/posix-functions/recvfrom.texi: Update mingw problems.
88219         * doc/posix-functions/select.texi: Update mingw problems.
88220         * doc/posix-functions/send.texi: Update mingw problems.
88221         * doc/posix-functions/sendto.texi: Update mingw problems.
88222         * doc/posix-functions/setsockopt.texi: Update mingw problems.
88223         * doc/posix-functions/socket.texi: Update mingw problems.
88225 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
88226             Bruno Haible  <bruno@clisp.org>
88228         * lib/sys_select.in.h: Include sys/time.h.
88229         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
88230         * modules/sys_select: Depend on sys_time.
88231         * tests/test-sys_select.c: Test that sys/select.h defines struct
88232         timeval fully.
88234 2008-09-29  Bruno Haible  <bruno@clisp.org>
88236         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
88237         * lib/sys_select.in.h: Likewise.
88239 2008-09-29  Bruno Haible  <bruno@clisp.org>
88241         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
88243 2008-09-29  Bruno Haible  <bruno@clisp.org>
88245         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
88246         Set LIBSOCKET instead of augmenting LIBS.
88247         * modules/sockets (Link): New section.
88248         * modules/sockets-tests (test_sockets_LDADD): New variable.
88249         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
88250         * modules/poll-tests (test_poll_LDADD): New variable.
88251         * NEWS: Document the change.
88253 2008-09-29  Bruno Haible  <bruno@clisp.org>
88255         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
88256         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
88257         ARPA_INET_H directly.
88258         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
88260 2008-09-28  Bruno Haible  <bruno@clisp.org>
88262         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
88263         from gl_HEADER_SYS_SOCKET.
88264         (gl_HEADER_SYS_SOCKET): Invoke it.
88265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
88267 2008-09-28  Bruno Haible  <bruno@clisp.org>
88269         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
88270         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
88271         Needed on OSF/1 4.0.
88273 2008-09-28  Bruno Haible  <bruno@clisp.org>
88275         Override open more carefully.
88276         * lib/open.c (orig_open): New function.
88277         (rpl_open): Use orig_open instead of open.
88278         * lib/fcntl.in.h: Add special invocation convention.
88279         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
88280         (gl_FUNC_OPEN): Invoke it.
88282         Override freopen more carefully.
88283         * lib/freopen.c (orig_freopen): New function.
88284         (rpl_freopen): Use orig_freopen instead of freopen.
88285         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
88286         (gl_FUNC_FREOPEN): Invoke it.
88288         Override fopen more carefully.
88289         * lib/fopen.c (orig_fopen): New function.
88290         (rpl_fopen): Use orig_fopen instead of fopen.
88291         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
88292         (gl_FUNC_FOPEN): Invoke it.
88293         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
88295 2008-09-28  Bruno Haible  <bruno@clisp.org>
88297         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
88298         SIGPIPE.
88300 2008-09-28  Bruno Haible  <bruno@clisp.org>
88302         * tests/test-sigaction.c (handler, main): Disable the check whether
88303         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
88304         glibc systems with LinuxThreads.
88306 2008-09-28  Bruno Haible  <bruno@clisp.org>
88308         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
88310         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
88311         with AIX xlc.
88312         * lib/fcntl.in.h (open): Likewise.
88313         Reported by Rainer Tammer <tammer@tammer.net>.
88315 2008-09-28  Bruno Haible  <bruno@clisp.org>
88317         * modules/posix_spawnp-tests: New file.
88318         * tests/test-posix_spawn.c: New file.
88319         * tests/test-posix_spawn.in.sh: New file.
88321         New module 'posix_spawnp'.
88322         * modules/posix_spawnp: New file.
88323         * lib/spawnp.c: New file, from GNU libc with modifications.
88324         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
88326         New module 'posix_spawn'.
88327         * modules/posix_spawn: New file.
88328         * lib/spawn.c: New file, from GNU libc with modifications.
88329         * doc/posix-functions/posix_spawn.texi: Mention the new module.
88331         New module 'posix_spawnattr_destroy'.
88332         * modules/posix_spawnattr_destroy: New file.
88333         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
88334         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
88335         module.
88337         New module 'posix_spawnattr_setsigmask'.
88338         * modules/posix_spawnattr_setsigmask: New file.
88339         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
88340         modifications.
88341         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
88342         new module.
88344         New module 'posix_spawnattr_getsigmask'.
88345         * modules/posix_spawnattr_getsigmask: New file.
88346         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
88347         modifications.
88348         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
88349         new module.
88351         New module 'posix_spawnattr_setsigdefault'.
88352         * modules/posix_spawnattr_setsigdefault: New file.
88353         * lib/spawnattr_setdefault.c: New file, from GNU libc with
88354         modifications.
88355         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
88356         new module.
88358         New module 'posix_spawnattr_getsigdefault'.
88359         * modules/posix_spawnattr_getsigdefault: New file.
88360         * lib/spawnattr_getdefault.c: New file, from GNU libc with
88361         modifications.
88362         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
88363         new module.
88365         New module 'posix_spawnattr_setschedpolicy'.
88366         * modules/posix_spawnattr_setschedpolicy: New file.
88367         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
88368         modifications.
88369         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
88370         new module.
88372         New module 'posix_spawnattr_getschedpolicy'.
88373         * modules/posix_spawnattr_getschedpolicy: New file.
88374         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
88375         modifications.
88376         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
88377         new module.
88379         New module 'posix_spawnattr_setschedparam'.
88380         * modules/posix_spawnattr_setschedparam: New file.
88381         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
88382         modifications.
88383         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
88384         new module.
88386         New module 'posix_spawnattr_getschedparam'.
88387         * modules/posix_spawnattr_getschedparam: New file.
88388         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
88389         modifications.
88390         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
88391         new module.
88393         New module 'posix_spawnattr_setpgroup'.
88394         * modules/posix_spawnattr_setpgroup: New file.
88395         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
88396         modifications.
88397         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
88398         module.
88400         New module 'posix_spawnattr_getpgroup'.
88401         * modules/posix_spawnattr_getpgroup: New file.
88402         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
88403         modifications.
88404         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
88405         module.
88407         New module 'posix_spawnattr_setflags'.
88408         * modules/posix_spawnattr_setflags: New file.
88409         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
88410         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
88411         module.
88413         New module 'posix_spawnattr_getflags'.
88414         * modules/posix_spawnattr_getflags: New file.
88415         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
88416         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
88417         module.
88419         New module 'posix_spawnattr_init'.
88420         * modules/posix_spawnattr_init: New file.
88421         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
88422         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
88423         module.
88425         New module 'posix_spawn_file_actions_destroy'.
88426         * modules/posix_spawn_file_actions_destroy: New file.
88427         * lib/spawn_faction_destroy.c: New file, from GNU libc with
88428         modifications.
88429         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
88430         the new module.
88432         New module 'posix_spawn_file_actions_addopen'.
88433         * modules/posix_spawn_file_actions_addopen: New file.
88434         * lib/spawn_faction_addopen.c: New file, from GNU libc with
88435         modifications.
88436         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
88437         the new module.
88439         New module 'posix_spawn_file_actions_adddup2'.
88440         * modules/posix_spawn_file_actions_adddup2: New file.
88441         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
88442         modifications.
88443         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
88444         the new module.
88446         New module 'posix_spawn_file_actions_addclose'.
88447         * modules/posix_spawn_file_actions_addclose: New file.
88448         * lib/spawn_faction_addclose.c: New file, from GNU libc with
88449         modifications.
88450         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
88451         the new module.
88453         New module 'posix_spawn_file_actions_init'.
88454         * modules/posix_spawn_file_actions_init: New file.
88455         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
88456         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
88457         new module.
88459         New module 'posix_spawn-internal'.
88460         * modules/posix_spawn-internal: New file.
88461         * lib/spawn_int.h: New file, from GNU libc with modifications.
88462         * lib/spawni.c: New file, from GNU libc with modifications.
88463         * m4/posix_spawn.m4: New file.
88465         New module 'spawn'.
88466         * modules/spawn: New file.
88467         * lib/spawn.in.h: New file, from GNU libc with modifications.
88468         * m4/spawn_h.m4: New file.
88469         * doc/posix-headers/spawn.texi: Mention the new module.
88471 2008-09-28  Bruno Haible  <bruno@clisp.org>
88473         * modules/sched-tests: New file.
88474         * tests/test-sched.c: New file.
88476         New module 'sched'.
88477         * modules/sched: New file.
88478         * lib/sched.in.h: New file.
88479         * m4/sched_h.m4: New file.
88480         * doc/posix-headers/sched.texi: Mention the new module.
88482 2008-09-27  Eric Blake  <ebb9@byu.net>
88484         Fix previous patch, and tweak references to $0.
88485         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
88486         (func_version, func_gnulib_dir): Don't call this program
88487         gnulib-tool.
88488         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
88489         with using $0 in function.
88490         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
88491         (func_fatal_error): Reuse the name the user invoked us with.
88493 2008-09-27  Bruno Haible  <bruno@clisp.org>
88495         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
88496         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
88497         (gl_ICONV_H): Not here.
88498         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
88499         instead of assigning ICONV_H directly.
88501         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
88502         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
88503         WCHAR_H directly.
88505 2008-09-27  Bruno Haible  <bruno@clisp.org>
88507         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
88508         * modules/arpa_inet (Depends-on): Add link-warning.
88509         (Makefile.am): Insert the definition of GL_LINK-WARNING.
88510         * modules/unistd (Makefile.am): Likewise.
88512 2008-09-26  Bruno Haible  <bruno@clisp.org>
88514         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
88515         variables.
88516         (func_version): Essentially copied from gnulib-tool.
88517         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
88518         func_readlink): Copied from gnulib-tool.
88520 2008-09-26  Bruno Haible  <bruno@clisp.org>
88522         * gnulib-tool (func_version): Change directory to $gnulib_dir before
88523         invoking git-version-gen.
88525 2008-09-26  Bruno Haible  <bruno@clisp.org>
88527         * posix-modules: Update to directory names changed on 2008-01-19.
88528         Remove commas in output before splitting into words. No more need to
88529         avoid 'ftruncate' since 2007-02-19.
88531 2008-09-26  Bruno Haible  <bruno@clisp.org>
88533         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
88535 2008-09-26  Bruno Haible  <bruno@clisp.org>
88537         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
88538         * modules/fwriteerror (Depends-on): Add errno.
88540 2008-09-26  Bruno Haible  <bruno@clisp.org>
88542         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
88543         * tests/test-vc-list-files-cvs.sh: Likewise.
88545 2008-09-26  Bruno Haible  <bruno@clisp.org>
88547         * doc/posix-headers/sys_resource.texi: Reorder items.
88549 2008-09-26  Jim Meyering  <meyering@redhat.com>
88551         fts: tweak inode comparison function
88552         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
88553         inode numbers, as documented.
88555         fts: sort dirent entries on inode number before traversing
88556         This avoids a quadratic, seek-related performance penalty when
88557         operating on a directory containing many entries (measurable at 10k;
88558         3.5 hours at 2 million entries with a cold cache) on certain types
88559         of file systems, including ext3 and ext4, but not tmpfs.
88560         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
88561         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
88562         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
88563         (fs_handles_readdir_ordered_dirents_efficiently): New function.
88564         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
88565         (fts_build): Set the stat.st_ino member from D_INO.
88566         If it is likely to be useful, sort dirent entries on inode number.
88568         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
88569         and the struct statfs.f_type member.
88570         * modules/fts (Depends-on): Add d-ino.
88572 2008-09-26  Bruno Haible  <bruno@clisp.org>
88574         * modules/sigpipe-die (Depends-on): Add sigpipe.
88576         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
88577         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
88578         and GNULIB_STDIO_H_SIGPIPE are set.
88579         * lib/stdio-write.c: New file.
88580         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
88581         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88582         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88583         REPLACE_STDIO_WRITE_FUNCS.
88584         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
88585         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88586         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88587         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88588         * modules/stdio (Files): Add lib/stdio-write.c.
88589         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
88590         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
88591         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
88592         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
88593         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
88594         REPLACE_FPRINTF_POSIX.
88595         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
88596         REPLACE_PRINTF_POSIX.
88597         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
88598         REPLACE_VFPRINTF_POSIX.
88599         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
88600         REPLACE_VPRINTF_POSIX.
88601         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
88602         SIGPIPE issue.
88603         * doc/posix-functions/fputc.texi: Likewise.
88604         * doc/posix-functions/fputs.texi: Likewise.
88605         * doc/posix-functions/fwrite.texi: Likewise.
88606         * doc/posix-functions/printf.texi: Likewise.
88607         * doc/posix-functions/putc.texi: Likewise.
88608         * doc/posix-functions/putchar.texi: Likewise.
88609         * doc/posix-functions/puts.texi: Likewise.
88610         * doc/posix-functions/vfprintf.texi: Likewise.
88611         * doc/posix-functions/vprintf.texi: Likewise.
88613         * modules/safe-write (Depends-on): Add write.
88615         * modules/sigpipe-tests: New file.
88616         * tests/test-sigpipe.c: New file.
88617         * tests/test-sigpipe.sh: New file.
88619         * modules/write: New file.
88620         * lib/unistd.in.h: Include <sys/types.h>.
88621         (write): New declaration.
88622         * lib/write.c: New file.
88623         * m4/write.m4: New file.
88624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
88625         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
88626         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
88627         GNULIB_WRITE, REPLACE_WRITE.
88628         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
88629         and the SIGPIPE issue.
88631         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
88632         (raise): New declaration.
88633         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
88634         (ext_signal): New function.
88635         (rpl_raise): New function.
88636         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
88637         GNULIB_SIGNAL_H_SIGPIPE.
88638         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
88639         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
88641         * modules/sigpipe: New file.
88642         * m4/sigpipe.m4: New file.
88644 2008-09-25  Derek Price  <derek@ximbiot.com>
88645             Bruno Haible  <bruno@clisp.org>
88647         * gnulib-tool (func_import): Report all license incompatibilities, not
88648         just the first one.
88650 2008-09-25  Bruno Haible  <bruno@clisp.org>
88652         * gnulib-tool (func_import): When computing the edits, consider not
88653         only the Makefile.ams that exist but also those that will be generated.
88655 2008-09-25  Simon Josefsson  <simon@josefsson.org>
88657         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
88658         fixes gnulib-tool --test warning about duplicate dependency.
88660 2008-09-25  Bruno Haible  <bruno@clisp.org>
88662         * gnulib-tool: Don't ask the user to perform edits in the generated
88663         Makefile.ams.
88664         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
88665         apply to the Makefile.am being generated.
88666         (func_emit_tests_Makefile_am): Execute edits that apply to the
88667         Makefile.am being generated.
88668         (func_import): Setup list of Makefile.am edits before emitting the
88669         Makefile.ams, not at the end.
88670         (func_create_testdir): Update.
88671         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88673 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88675         * gnulib-tool (func_import): Store the --tests-base option in the
88676         comment in gnulib-cache.m4.
88678 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
88680         * NEWS: Document increased portability that sys_select now provides.
88682         * lib/sys_select.in.h: Install select wrapper.
88683         * lib/sys_socket.in.h: Use more descriptive name when there is no
88684         select wrapper.
88685         * lib/winsock-select.c: New.
88686         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
88687         Require gl_HEADER_SYS_SOCKET.
88688         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
88689         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
88690         * tests/test-sys_select.c: Add functional tests.
88692 2008-09-24  Eric Blake  <ebb9@byu.net>
88694         open, fopen: close fd leak in last patch
88695         * lib/open.c (rpl_open): Close fd before returning error.
88696         * lib/fopen.c (rpl_fopen): Close fd before returning error.
88697         * doc/posix-functions/open.texi (open): Document that Irix also
88698         has the bug.
88699         * doc/posix-functions/fopen.texi (fopen): Likewise.
88700         Reported by Paolo Bonzini.
88702 2008-09-24  Bruno Haible  <bruno@clisp.org>
88704         Ensure that a filename ending in a slash cannot be used to access a
88705         non-directory.
88706         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
88707         to check whether it's really a directory.
88708         * lib/fopen.c: Include fcntl.h, unistd.h.
88709         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
88710         and fdopen().
88711         * modules/fopen (Depends-on): Add unistd.
88712         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
88713         * tests/test-fopen.c (main): Likewise.
88714         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
88715         * doc/posix-functions/fopen.texi: Likewise.
88716         Reported by Eric Blake.
88718 2008-09-23  Eric Blake  <ebb9@byu.net>
88720         c-stack: avoid compiler optimizations when provoking overflow
88721         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
88722         recursion harder to optimize, to ensure a stack overflow occurs.
88723         * tests/test-c-stack.c (recurse): Likewise.
88724         Borrowed from libsigsegv.
88726         c-stack: work around Irix sigaltstack bug
88727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
88728         whether sigaltstack uses wrong end of stack_t (copied in part from
88729         libsigsegv).
88730         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
88731         Irix bug, without requiring an over-allocation.
88732         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
88733         bug.
88735         fopen: document mingw bug on directories
88736         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
88737         not allowing a stream visiting a directory, even though reading
88738         from such a stream is not portable.
88740 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88742         * lib/poll.c: Rewrite.
88743         * modules/poll: Depend on alloca.
88745 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88747         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
88748         instead define prototypes for a full set of wrappers.  Ensure
88749         that Cygwin does not use the compatibility code, which is only
88750         for MinGW.
88751         * lib/winsock.c: New.
88752         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
88753         * modules/sys_socket: Add lib/winsock.c.
88755         * modules/poll-tests: Add errno and perror.
88756         * tests/test-poll.c: Use ioctl, not ioctlsocket.
88758 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
88760         * tests/test-poll.c: Downgrade minimum needed Winsock version.
88762 2008-09-23  Bruno Haible  <bruno@clisp.org>
88764         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
88765         * doc/glibc-functions/*: Likewise.
88767 2008-09-23  Simon Josefsson  <simon@josefsson.org>
88769         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
88770         success.
88772 2008-09-22  Eric Blake  <ebb9@byu.net>
88773             Bruno Haible  <bruno@clisp.org>
88775         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
88776         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
88777         supply %A but mishandle pseudo-NaN.
88778         Reported by Simon Josefsson.
88780 2008-09-21  Bruno Haible  <bruno@clisp.org>
88782         * tests/test-lock.c (main): Tweak skip message.
88783         * tests/test-tls.c (main): Likewise.
88785 2008-09-21  Bruno Haible  <bruno@clisp.org>
88787         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
88788         whether 'struct sigaction' has sa_sigaction here...
88789         (gl_PREREQ_SIG_HANDLER_H): ... not here.
88790         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
88792 2008-09-21  Bruno Haible  <bruno@clisp.org>
88794         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
88795         section.
88796         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
88797         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
88798         the new section.
88799         (Support for obsolete systems lacking POSIX:2001): New section.
88800         (String handling <string.h>): Move strdup to the new section.
88801         Suggested by Simon Josefsson and Paolo Bonzini.
88803 2008-09-21  Bruno Haible  <bruno@clisp.org>
88805         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
88806         exponents in %e and %g results on 'long double'. Needed for mingw's
88807         improved *printf functions.
88808         * tests/test-vasprintf-posix.c (test_function): Likewise.
88809         * tests/test-snprintf-posix.h (test_function): Likewise.
88810         * tests/test-sprintf-posix.h (test_function): Likewise.
88811         Reported by Eric Blake.
88813 2008-09-21  Bruno Haible  <bruno@clisp.org>
88815         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
88816         * tests/test-sprintf-posix.h (test_function): Likewise.
88818 2008-09-21  Bruno Haible  <bruno@clisp.org>
88820         * modules/getpass (Depends-on): Add strdup-posix.
88822         New module 'strdup-posix'.
88823         * modules/strdup-posix: New file.
88824         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
88825         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
88826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
88827         REPLACE_STRDUP.
88828         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
88829         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
88830         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88831         strdup-posix.
88833         * modules/strdup (Depends-on): Remove malloc-posix.
88835 2008-09-20  Bruno Haible  <bruno@clisp.org>
88837         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
88838         Wildenhues.
88840 2008-09-20  Bruno Haible  <bruno@clisp.org>
88842         Ensure that wint_t gets defined on IRIX 5.3.
88843         * lib/wchar.in.h (wint_t): Define if not defined by the system.
88844         * lib/wctype.in.h (wint_t): Likewise.
88845         (__wctype_wint_t): Remove type.
88846         (isw*): Use wint_t instead of __wctype_wint_t.
88847         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
88848         * modules/wchar (Files): Add m4/wint_t.m4.
88849         (Makefile.am): Substitute HAVE_WINT_T.
88850         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
88851         * tests/test-wctype.c: Check that wint_t is defined.
88852         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
88853         * doc/posix-headers/wctype.texi: Likewise.
88854         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88856 2008-09-18  Bruno Haible  <bruno@clisp.org>
88858         * gnulib-tool (func_exit): Update comment.
88860 2008-09-18  Simon Josefsson  <simon@josefsson.org>
88862         * modules/getaddrinfo (Depends-on): Remove strdup, this module
88863         assumes strdup exists and does not depend on strdup to return
88864         ENOMEM on out of memory conditions.
88866 2008-09-18  Bruno Haible  <bruno@clisp.org>
88868         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
88869         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
88870         digits for the exponent.
88872 2008-09-18  Jim Meyering  <meyering@redhat.com>
88873             Bruno Haible  <bruno@clisp.org>
88875         * lib/vasnprintf.c (decimal_point_char): Define also if
88876         NEED_PRINTF_INFINITE_LONG_DOUBLE.
88878 2008-09-16  Bruno Haible  <bruno@clisp.org>
88879         and Eric Blake  <ebb9@byu.net>
88881         vasnprintf: support Irix 5.3
88882         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
88883         that mishandle long double infinity.
88884         Reported by Tom G. Christensen.
88886 2008-09-16  Bruno Haible  <bruno@clisp.org>
88888         * doc/glibc-functions/scandir.texi: Mention the function is missing on
88889         Solaris 9.
88890         * doc/glibc-functions/alphasort.texi: Likewise.
88891         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
88893 2008-09-16  Jim Meyering  <meyering@redhat.com>
88895         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
88896         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
88897         a umask modification leak out of a subshell.  Otherwise, the
88898         opensolaris /bin/sh would be accepted and thus cause unwarranted
88899         failures in the coreutils test suite.
88901 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
88903         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
88904         to succeed.
88906 2008-09-16  Jim Meyering  <meyering@redhat.com>
88908         avoid spurious test failure when library is built without ACL support
88909         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
88910         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
88911         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
88912         * tests/test-copy-acl.sh: Likewise.
88914 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88916         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
88917         based on character occurrence counts.
88919 2008-09-15  Eric Blake  <ebb9@byu.net>
88921         tests: avoid some compiler warnings
88922         * tests/test-memchr.c (main): Pass NULL indirectly.
88923         * tests/test-closein.c (main): Avoid unused variable.
88925 2008-09-15  Bruno Haible  <bruno@clisp.org>
88927         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
88928         are missing on OpenBSD 4.0 individually.
88929         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88931 2008-09-15  Bruno Haible  <bruno@clisp.org>
88933         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
88934         * doc/posix-functions/strerror.texi: Mention also Cygwin.
88935         * doc/posix-functions/perror.texi: Likewise.
88936         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
88937         is missing.
88938         Reported by Eric Blake.
88940         * lib/errno.in.h: Use replacement values >= 2000.
88941         Reported by Eric Blake.
88943 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88945         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
88946         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
88947         limit.
88948         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
88949         compareseq was aborted.
88951 2008-09-14  Bruno Haible  <bruno@clisp.org>
88953         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
88954         yvec_edit_count.
88955         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
88956         (fstrcmp_bounded): Simplify result computation accordingly.
88958 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88960         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
88961         (fstrcmp): Define in terms of fstrcmp_bounded.
88962         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
88963         lower_bound argument.
88964         Return quickly if the result is certainly < lower_bound.
88965         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
88967 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88969         * lib/diffseq.h (EARLY_ABORT): New macro.
88970         (compareseq): Change return type to bool. Return true when EARLY_ABORT
88971         evaluates to true.
88973 2008-09-14  Bruno Haible  <bruno@clisp.org>
88975         * modules/perror-tests: New file.
88976         * tests/test-perror.sh: New file.
88977         * tests/test-perror.c: New file.
88979         New module 'perror'.
88980         * lib/stdio.in.h (perror): New declaration.
88981         * lib/perror.c: New file.
88982         * m4/perror.m4: New file.
88983         * modules/perror: New file.
88984         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
88985         * doc/posix-functions/perror.texi: Mention the perror module.
88986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
88987         REPLACE_PERROR.
88988         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
88989         REPLACE_PERROR.
88991 2008-09-14  Bruno Haible  <bruno@clisp.org>
88993         * modules/stdio (Makefile.am): Reorder to match the order in
88994         lib/stdio.in.h.
88995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
88997 2008-09-13  Bruno Haible  <bruno@clisp.org>
88999         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
89001 2008-09-13  Bruno Haible  <bruno@clisp.org>
89003         Extend strerror to cover the added errno values.
89004         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
89005         (rpl_strerror): Provide error messages for the added errno values and
89006         for the WSA* values.
89007         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
89008         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
89009         strerror.
89010         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
89011         * modules/strerror (Depends-on): Add errno.
89012         * doc/posix-functions/strerror.texi: Document the change.
89013         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
89014         and EOVERFLOW.
89016 2008-09-13  Bruno Haible  <bruno@clisp.org>
89018         * modules/EOVERFLOW: Remove file.
89019         * m4/eoverflow.m4: Remove file.
89020         * modules/EOVERFLOW-tests: Remove file.
89021         * tests/test-EOVERFLOW.c: Remove file.
89022         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
89023         * modules/ftell (Depends-on): Likewise.
89024         * modules/getdelim (Depends-on): Likewise.
89025         * modules/getugroups (Depends-on): Likewise.
89026         * modules/poll (Depends-on): Likewise.
89027         * modules/snprintf (Depends-on): Likewise.
89028         * modules/sprintf-posix (Depends-on): Likewise.
89029         * modules/vasnprintf (Depends-on): Likewise.
89030         * modules/vasprintf (Depends-on): Likewise.
89031         * modules/vfprintf-posix (Depends-on): Likewise.
89032         * modules/vsnprintf (Depends-on): Likewise.
89033         * modules/vsprintf-posix (Depends-on): Likewise.
89034         * modules/xvasprintf (Depends-on): Likewise.
89035         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89036         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
89037         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
89038         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
89039         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89040         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
89041         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
89042         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
89043         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89044         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
89045         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
89046         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
89047         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89048         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
89049         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
89050         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
89051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89052         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
89053         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
89054         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
89055         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89056         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
89057         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
89058         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
89059         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
89060         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89061         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
89062         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
89063         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
89064         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
89065         * MODULES.html.sh: Remove EOVERFLOW.
89066         * NEWS: Mention the change.
89068 2008-09-13  Bruno Haible  <bruno@clisp.org>
89070         * modules/errno-tests: New file.
89071         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
89073         * lib/errno.in.h: New file.
89074         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
89075         * modules/errno: New file.
89076         * doc/posix-headers/errno.texi: Update documentation.
89077         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
89079 2008-09-13  Bruno Haible  <bruno@clisp.org>
89081         * tests/test-poll.c: Use #if for native Windows, rather than testing
89082         __MSVCRT__.
89084 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89085             Bruno Haible  <bruno@clisp.org>
89087         * lib/glob.c: Don't include <pwd.h> on native Windows.
89088         (WINDOWS32): New macro.
89089         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
89091 2008-09-13  Bruno Haible  <bruno@clisp.org>
89093         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
89094         (ETIMEDOUT): Remove macro.
89095         (glthread_cond_timedwait_multithreaded): New declaration.
89096         (glthread_cond_timedwait): Use it.
89097         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
89098         (glthread_cond_timedwait_multithreaded): New function.
89100 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89102         * modules/poll-tests: Do not check for io.h.
89103         * tests/test-poll.c: Check for __MSVCRT__ instead.
89105 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89107         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
89108         * modules/poll-tests: Add inet_pton, stdbool, sockets.
89109         * tests/test-poll.c: Use them.  Use _pipe on Windows.
89111 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
89113         * modules/poll-tests: New.
89114         * tests/test-poll.c: New.
89116 2008-09-12  Eric Blake  <ebb9@byu.net>
89118         frexp: test for NetBSD failure on -0.0
89119         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
89120         not all, bugs from NetBSD 3.0 have been fixed.
89121         * doc/posix-functions/frexp.texi (frexp): Document bug.
89122         Reported by Thomas Klausner.
89124         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
89125         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
89126         literal -0.0.
89127         Reported by Jonathan C. Patschke <jp@centtech.com>.
89129 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89131         * lib/glthread/cond.h: Use dummy implementation also if
89132         USE_WIN32_THREADS.
89134 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89136         * modules/fnmatch-posix (License): Change to LGPLv2+.
89137         * modules/fnmatch-gnu (License): Likewise.
89139 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89141         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
89143 2008-09-11  Jim Meyering  <meyering@redhat.com>
89145         * users.txt: Add gtk-vnc.
89147 2008-09-08  Simon Josefsson  <simon@josefsson.org>
89149         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
89150         rotate amounts.
89152         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
89153         required for 16-bit and 8-bit rotates.
89154         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
89155         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
89156         UINT8_MAX instead of hard-coded constants.
89157         Suggested by Paul Eggert.
89159 2008-09-07  Bruno Haible  <bruno@clisp.org>
89161         * tests/test-striconveh.c (main): Check behaviour when converting from
89162         UTF-7.
89164         Make striconveh work better with stateful encodings.
89165         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
89166         that iconv does not increment the inptr when returning -1/EINVAL.
89168 2008-09-07  Bruno Haible  <bruno@clisp.org>
89170         * build-aux/config.rpath: Update according to libtool-2.2.6.
89171         * build-aux/config.libpath: Likewise.
89173 2008-09-06  Bruno Haible  <bruno@clisp.org>
89175         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
89176         * lib/freadptr.c (freadptr): Likewise.
89177         * lib/freadseek.c (freadptrinc): Likewise.
89178         Reported by Simon Josefsson.
89180 2008-09-06  Bruno Haible  <bruno@clisp.org>
89182         * modules/freadptr (License): Change to LGPLv2+.
89183         * modules/freadseek (License): Likewise.
89184         Suggested by Eric Blake.
89186         * modules/memchr2 (License): Change to LGPLv2+.
89187         Approved by Eric Blake.
89189 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89190             Bruno Haible  <bruno@clisp.org>
89192         Make gnulib-tool work with native 'sed' on AIX.
89193         * gnulib-tool (sed_noop): New variable.
89194         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
89195         func_add_or_update, func_create_testdir): Use it to initialize sed
89196         script variables.
89197         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89199 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
89200             Bruno Haible  <bruno@clisp.org>
89202         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
89203         also works after #include directives.
89205 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
89207         getdate.y: reject an out-of-range timezone value
89208         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
89209         the range [-24...+24].  When specified with only one or two digits,
89210         * tests/test-getdate.c: Tests for the fix.
89211         * doc/getdate.texi: Document this change.
89213 2008-09-03  Bruno Haible  <bruno@clisp.org>
89215         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
89217 2008-09-02  Simon Josefsson  <simon@josefsson.org>
89219         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
89220         <bruce.korb@gmail.com> with ideas from Ben Pfaff
89221         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
89222         Blake <ebb9@byu.net>.
89224         * tests/test-bitrotate.c: Add more test vectors.
89226 2008-09-02  Eric Blake  <ebb9@byu.net>
89228         vasnprintf-posix: handle large precision via %.*d
89229         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
89230         when handling it ourselves.
89231         * tests/test-vasnprintf-posix.c (test_function): Add test.
89232         * tests/test-snprintf-posix.h (test_function): Likewise.
89233         * tests/test-sprintf-posix.h (test_function): Likewise.
89234         * tests/test-vasprintf-posix.c (test_function): Likewise.
89235         Reported by Alain Guibert.
89237 2008-09-01  Eric Blake  <ebb9@byu.net>
89239         c-stack: make configure-time check more robust
89240         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
89241         successful sigaction call.
89242         Reported by Tom G. Christensen.
89244 2008-09-01  Bruno Haible  <bruno@clisp.org>
89246         New module 'findprog-lgpl'.
89247         * modules/findprog-lgpl: New file.
89248         * lib/findprog-lgpl.c: New file.
89249         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
89250         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
89251         to decide whether to use strdup or xstrdup, concatenated_filename or
89252         xconcatenated_filename.
89254 2008-09-01  Bruno Haible  <bruno@clisp.org>
89256         Split module 'concat-filename' into 'concat-filename' (LGPL) and
89257         'xconcat-filename' (GPL).
89258         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
89259         (License): Change to LGPLv2+.
89260         * modules/xconcat-filename: New file.
89261         * lib/concat-filename.h (concatenated_filename): Change specification.
89262         (xconcatenated_filename): New declaration.
89263         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
89264         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
89265         memory situations.
89266         * lib/xconcat-filename.c: New file.
89267         * NEWS: Mention the change.
89268         * lib/findprog.c: Include concat-filename.h, not filename.h.
89269         (find_in_path): Use xconcatenated_filename instead of
89270         concatenated_filename.
89271         * lib/javacomp.c: Include concat-filename.h, not filename.h.
89272         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89273         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89274         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89275         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
89276         instead of concatenated_filename.
89277         * lib/javaexec.c: Include concat-filename.h, not filename.h.
89278         (execute_java_class): Use xconcatenated_filename instead of
89279         concatenated_filename.
89280         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
89281         * modules/javacomp (Depends-on): Likewise.
89282         * modules/javaexec (Depends-on): Likewise.
89284 2008-09-01  Bruno Haible  <bruno@clisp.org>
89286         Split module 'filename' into 'filename' and 'concat-filename'.
89287         * modules/filename: Keep only lib/filename.h.
89288         (License): Change to LGPLv2+.
89289         * modules/concat-filename: New file, extracted from modules/filename.
89290         * lib/filename.h (concatenated_filename): Remove declaration.
89291         * lib/concat-filename.h: New file, extracted from lib/filename.h.
89292         * lib/concat-filename.c: Include concat-filename.h.
89293         * NEWS: Mention the change.
89295 2008-09-01  Simon Josefsson  <simon@josefsson.org>
89297         * lib/bitrotate.h (rotl8, rotr8): Add.
89299         * modules/bitrotate (configure.ac): Need
89300         AC_REQUIRE([AC_C_INLINE]).
89301         (Description): Mention stdint.h.  Reported by Bruno Haible
89302         <bruno@clisp.org>.
89304         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
89305         Paolo Bonzini <bonzini@gnu.org>.
89307 2008-08-31  Bruno Haible  <bruno@clisp.org>
89309         Assume Solaris specific bi-arch conventions on Solaris systems.
89310         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
89311         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
89312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
89313         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
89314         like acl_libdirstem.
89315         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
89316         acl_libdirstem.
89317         * NEWS: Mention the change.
89318         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
89320 2008-08-31  Jim Meyering  <meyering@redhat.com>
89322         * lib/strftime.h: Add comments describing the two added arguments.
89324         remove duplicate #include directives
89325         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
89326         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
89328 2008-08-31  Bruno Haible  <bruno@clisp.org>
89330         New module 'sigpipe-die'.
89331         * modules/sigpipe-die: New file.
89332         * lib/sigpipe-die.h: New file.
89333         * lib/sigpipe-die.c: New file.
89334         * MODULES.html.sh (Signal handling): Add sigpipe-die.
89336 2008-08-31  Bruno Haible  <bruno@clisp.org>
89338         Don't override previously installed signal handlers.
89339         * lib/fatal-signal.c (saved_sigactions): New variable.
89340         (uninstall_handlers): Reset the signal to the saved handler, not
89341         to SIG_DFL (except when ignored).
89342         (install_handlers): Save the previous handlers.
89344 2008-08-30  Bruno Haible  <bruno@clisp.org>
89346         * gnulib-tool (func_reset_sigpipe): New function.
89347         (func_get_automake_snippet, func_modules_transitive_closure,
89348         func_import): Invoke it before a join command that reads from stdin,
89349         to avoid "echo: write error: Broken pipe" error messages on stderr.
89350         Reported by Sam Steingold <sds@gnu.org>.
89352 2008-08-30  Bruno Haible  <bruno@clisp.org>
89354         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
89355         Code copied from m4/open.m4.
89356         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
89357         access and the filename ends in a slash. Code copied from lib/open.c.
89358         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
89359         * tests/test-fopen.c (main): Check against bug with trailing slash.
89361 2008-08-29  Bruno Haible  <bruno@clisp.org>
89363         Avoid some "gcc -pedantic" warnings.
89364         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
89365         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
89366         * lib/dirent.in.h: Likewise.
89367         * lib/fcntl.in.h: Likewise.
89368         * lib/float.in.h: Likewise.
89369         * lib/iconv.in.h: Likewise.
89370         * lib/inttypes.in.h: Likewise.
89371         * lib/locale.in.h: Likewise.
89372         * lib/math.in.h: Likewise.
89373         * lib/netinet_in.in.h: Likewise.
89374         * lib/search.in.h: Likewise.
89375         * lib/signal.in.h: Likewise.
89376         * lib/stdarg.in.h: Likewise.
89377         * lib/stdint.in.h: Likewise.
89378         * lib/stdio.in.h: Likewise.
89379         * lib/stdlib.in.h: Likewise.
89380         * lib/string.in.h: Likewise.
89381         * lib/strings.in.h: Likewise.
89382         * lib/sys_select.in.h: Likewise.
89383         * lib/sys_socket.in.h: Likewise.
89384         * lib/sys_stat.in.h: Likewise.
89385         * lib/sys_time.in.h: Likewise.
89386         * lib/sysexits.in.h: Likewise.
89387         * lib/time.in.h: Likewise.
89388         * lib/unistd.in.h: Likewise.
89389         * lib/wchar.in.h: Likewise.
89390         * lib/wctype.in.h: Likewise.
89391         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
89392         * modules/fchdir (Makefile.am): Likewise.
89393         * modules/fcntl (Makefile.am): Likewise.
89394         * modules/float (Makefile.am): Likewise.
89395         * modules/iconv_open (Makefile.am): Likewise.
89396         * modules/inttypes (Makefile.am): Likewise.
89397         * modules/locale (Makefile.am): Likewise.
89398         * modules/math (Makefile.am): Likewise.
89399         * modules/netinet_in (Makefile.am): Likewise.
89400         * modules/search (Makefile.am): Likewise.
89401         * modules/signal (Makefile.am): Likewise.
89402         * modules/stdarg (Makefile.am): Likewise.
89403         * modules/stdint (Makefile.am): Likewise.
89404         * modules/stdio (Makefile.am): Likewise.
89405         * modules/stdlib (Makefile.am): Likewise.
89406         * modules/string (Makefile.am): Likewise.
89407         * modules/strings (Makefile.am): Likewise.
89408         * modules/sys_select (Makefile.am): Likewise.
89409         * modules/sys_socket (Makefile.am): Likewise.
89410         * modules/sys_stat (Makefile.am): Likewise.
89411         * modules/sys_time (Makefile.am): Likewise.
89412         * modules/sysexits (Makefile.am): Likewise.
89413         * modules/time (Makefile.am): Likewise.
89414         * modules/unistd (Makefile.am): Likewise.
89415         * modules/wchar (Makefile.am): Likewise.
89416         * modules/wctype (Makefile.am): Likewise.
89417         Reported by Reuben Thomas <rrt@sc3d.org>.
89419 2008-08-29  Bruno Haible  <bruno@clisp.org>
89421         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
89422         any more.
89424 2008-08-29  Simon Josefsson  <simon@josefsson.org>
89426         * MODULES.html.sh (Misc): Add bitrotate.
89428         * modules/bitrotate: New file.
89430         * lib/bitrotate.h: New file.
89432         * modules/bitrotate-tests: New file.
89434         * tests/test-bitrotate.c: New file.
89436         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
89437         on the bitrotate module.
89439         * lib/arctwo.c: Use new bitrotate module.
89441 2008-08-29  Jim Meyering  <meyering@redhat.com>
89443         bootstrap: merge changes from coreutils
89444         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
89445         of copied files.  Remove a kludge, now that this is fixed.
89446         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
89447         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
89448         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
89450 2008-08-29  Bruno Haible  <bruno@clisp.org>
89452         * MODULES.html.sh: Remove --cvs-urls option.
89454 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
89456         maint.mk: adjust to file name change
89457         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
89459 2008-08-28  Jim Meyering  <meyering@redhat.com>
89461         * modules/getndelim2 (License): Relicense to LGPLv2+.
89462         Approved by Richard Stallman for the version of 1995, and by
89463         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
89465 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
89467         * lib/getdelim.c (flockfile, funlockfile): Make all of them
89468         dummy if one is not available.  Do not touch them if
89469         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
89470         (getc_maybe_unlocked): New.
89471         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
89473 2008-08-26  Eric Blake  <ebb9@byu.net>
89475         doc/INSTALL: resync from autoconf
89476         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
89477         (INSTALL_PRELUDE): Delete; this is done more efficiently by
89478         moving...
89479         * install.texi [!autoconf]: ...here.  Resync from autoconf.
89480         * INSTALL: Regenerate.
89481         * INSTALL.ISO: New file.
89482         * INSTALL.UTF-8: Likewise.
89484 2008-08-26  Jim Meyering  <meyering@redhat.com>
89486         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
89487         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
89488         these definitions conditional, so that they may be overridden, too.
89490 2008-08-26  Bruno Haible  <bruno@clisp.org>
89492         Generate INSTALL file variants with prettier quotes.
89493         * doc/Makefile (INSTALL_PRELUDE): New macro.
89494         (INSTALL): Use it.
89495         (INSTALL.ISO, INSTALL.UTF-8): New rules.
89497 2008-08-26  Bruno Haible  <bruno@clisp.org>
89499         Run makeinfo in an English locale.
89500         * doc/Makefile (MAKEINFO): New variable.
89502 2008-08-26  Bruno Haible  <bruno@clisp.org>
89504         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
89505         Suggested by Eric Blake.
89507 2008-08-25  Bruno Haible  <bruno@clisp.org>
89509         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
89511 2008-08-25  Eric Blake  <ebb9@byu.net>
89513         c-stack: test that stack overflow can be caught
89514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
89515         that platform allows handling stack overflow; at least OS/2 EMX
89516         has sigaltstack, but crashes before transferring control to
89517         handler on stack overflow.
89518         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
89519         check for HAVE_STACK_OVERFLOW_HANDLING.
89520         Reported by Elbert Pol.
89522 2008-08-25  Bruno Haible  <bruno@clisp.org>
89524         * doc/posix-functions/strftime.texi: Fix description of strftime
89525         module.
89527 2008-08-24  Bruno Haible  <bruno@clisp.org>
89529         * tests/uniwidth/test-uc_width2.c: New file.
89530         * tests/uniwidth/test-uc_width2.sh: New file.
89531         * modules/uniwidth/width-tests (Files): Add the new files.
89532         (TESTS): Add uniwidth/test-uc_width2.sh.
89533         (TESTS_ENVIRONMENT): New variable.
89534         (check_PROGRAMS): Add test-uc_width2.
89535         (test_uc_width2_SOURCES): New variable.
89537         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
89538         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
89539         not 0x00AB.
89540         Reported by Alexander V. Lukyanov <lav@netis.ru>.
89542 2008-08-22  Eric Blake  <ebb9@byu.net>
89544         test-lock, test-tls: mention why a test is skipped
89545         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
89546         skipped.
89547         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
89549         count-one-bits: relax license
89550         * modules/count-one-bits (License): Relicense to LGPLv2+.
89551         Suggested by Ludovic Courtès, approved by Ben Pfaff.
89553 2008-08-22  Andreas Schwab  <schwab@suse.de>
89555         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
89556         Remove spurious space in assignment.
89558 2008-08-21  Simon Josefsson  <simon@josefsson.org>
89560         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
89561         Paul Eggert <eggert@CS.UCLA.EDU>.
89563 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
89565         * modules/gettext: Add m4/threadlib.m4.
89567 2008-08-19  Eric Blake  <ebb9@byu.net>
89569         test-c-stack: fix compilation failure on FreeBSD 5.0
89570         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
89571         headers before <sys/resource.h>.
89572         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
89573         the bug.
89574         Reported by Nelson H. F. Beebe.
89576         strverscmp: migrate from "strverscmp.h" to <string.h>
89577         * modules/string (Makefile.am): Add new hooks.
89578         * modules/strverscmp (Files): Remove strverscmp.h.
89579         (Depends-on): Add string.
89580         (configure.ac): Add indicator.
89581         (Include): Mention new header.
89582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
89583         defaults.
89584         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
89585         results.
89586         * lib/strverscmp.h: Delete.
89587         * lib/string.in.h (strverscmp): Provide declaration, when needed.
89588         * tests/test-strverscmp.c (includes): Adjust client.
89589         * lib/check-version.c (includes): Likewise.
89590         * NEWS: Document the change.
89592         strverscmp: add unit test
89593         * modules/strverscmp-tests: New file.
89594         * tests/test-strverscmp.c: Likewise.
89596 2008-08-19  Simon Josefsson  <simon@josefsson.org>
89598         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
89599         regarding Windows crypto stuff, from Mono.
89601 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
89603         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
89604         if present, for intel RND.  Return error on failures.
89606 2008-08-18  Ben Pfaff  <blp@gnu.org>
89608         gitlog-to-changelog: give better diagnostic for failed pipe-open
89609         * build-aux/gitlog-to-changelog: Improve error message: suggest
89610         that the version of Git may be too old.
89612 2008-08-18  Simon Josefsson  <simon@josefsson.org>
89614         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
89615         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
89617 2008-08-18  Bruno Haible  <bruno@clisp.org>
89619         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
89620         pthread_in_use().
89622 2008-08-18  Bruno Haible  <bruno@clisp.org>
89624         * lib/glthread/threadlib.c: Include <pthread.h>.
89626 2008-08-18  Bruno Haible  <bruno@clisp.org>
89628         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
89629         glthread_recursive_lock_* macros.
89630         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
89631         Fix syntax error.
89633 2008-08-18  Bruno Haible  <bruno@clisp.org>
89635         * lib/glthread/thread.c: Avoid forcing a context switch right after
89636         thread creation.
89638 2008-08-17  Bruno Haible  <bruno@clisp.org>
89640         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
89641         * lib/glthread/thread.h: Provide Win32 specific implementation.
89642         * modules/thread (Files): Add lib/glthread/thread.c.
89643         (Depends-on): Add lock.
89644         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
89646 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89648         New module 'yield'.
89649         * modules/yield: New file.
89650         * lib/glthread/yield.h: New file.
89651         * m4/yield.m4: New file.
89652         * MODULES.html.sh (Multithreading): Add yield.
89654 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89656         New module 'thread'.
89657         * modules/thread: New file.
89658         * lib/glthread/thread.h: New file.
89659         * m4/thread.m4: New file.
89660         * MODULES.html.sh (Multithreading): Add thread.
89662 2008-08-17  Bruno Haible  <bruno@clisp.org>
89664         * lib/glthread/lock.h: Include <stdlib.h> always.
89665         * lib/glthread/tls.h: Likewise.
89666         * lib/glthread/cond.h: Likewise.
89668 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
89670         New module 'cond'.
89671         * modules/cond: New file.
89672         * lib/glthread/cond.h: New file.
89673         * lib/glthread/cond.c: New file.
89674         * m4/cond.m4: New file.
89675         * MODULES.html.sh (Multithreading): Add cond.
89677 2008-08-16  Eric Blake  <ebb9@byu.net>
89679         c-stack: fix regression on Irix 5.3 from 2008-06-21
89680         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
89681         sa_sigaction...
89682         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
89683         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
89684         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
89685         * modules/signal (Makefile.am): Use the value.
89686         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
89687         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
89688         * doc/posix-headers/signal.texi (signal.h): Document this
89689         portability issue.
89690         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
89691         Reported by Tom G. Christensen.
89693 2008-08-17  Bruno Haible  <bruno@clisp.org>
89695         New module 'threadlib'.
89696         * modules/threadlib: New file.
89697         * lib/glthread/threadlib.c: New file, extracted from
89698         lib/glthread/lock.c.
89699         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
89700         functions.
89701         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
89702         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
89703         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
89704         macros.
89705         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
89706         (gl_DISABLE_THREADS): Remove macro.
89707         * modules/lock (Files): Remove build-aux/config.rpath.
89708         (Depends-on): Remove havelib. Add threadlib.
89709         (configure.ac-early): Remove section.
89710         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
89711         * modules/tls (Depends-on): Remove lock. Add threadlib.
89712         (Link): New section, copied from threadlib.
89713         * MODULES.html.sh (Multithreading): Add threadlib.
89715 2008-08-14  Bruno Haible  <bruno@clisp.org>
89717         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
89718         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
89719         glthread_rwlock_unlock, glthread_rwlock_destroy,
89720         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
89721         glthread_recursive_lock_destroy): Define as macros always.
89722         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
89723         glthread_lock_lock.
89724         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
89725         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
89726         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
89727         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
89728         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
89729         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
89730         (glthread_recursive_lock_lock_func): Renamed from
89731         glthread_recursive_lock_lock.
89732         (glthread_recursive_lock_unlock_func): Renamed from
89733         glthread_recursive_lock_unlock.
89734         (glthread_recursive_lock_destroy_func): Renamed from
89735         glthread_recursive_lock_destroy.
89737 2008-08-14  Bruno Haible  <bruno@clisp.org>
89739         * lib/glthread/lock.h: Renamed from lib/lock.h.
89740         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
89741         * lib/glthread/tls.h: Renamed from lib/tls.h.
89742         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
89743         * lib/fstrcmp.c: Update includes.
89744         * lib/strsignal.c: Update includes.
89745         * modules/lock (Files, Makefile.am): Update.
89746         (Include): Change to "glthread/lock.h".
89747         * modules/tls (Files, Makefile.am): Update.
89748         (Include): Change to "glthread/tls.h".
89749         * tests/test-lock.c: Update includes.
89750         * tests/test-tls.c: Update includes.
89751         * NEWS: Mention the renamed header files.
89753 2008-08-11  Jim Meyering  <meyering@redhat.com>
89755         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
89757 2008-08-11  Eric Blake  <ebb9@byu.net>
89759         test-c-stack: avoid C99-ism
89760         * tests/test-c-stack.c (main): Fix whitespace, move declaration
89761         before statement.
89762         Reported by Alain Guibert.
89764 2008-08-10  Jim Meyering  <meyering@redhat.com>
89766         ensure that return value of uinttostr et al are not ignored
89767         * lib/inttostr.h (__GNUC_PREREQ): Define.
89768         (__attribute_warn_unused_result__): Define.
89769         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
89771 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
89773         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
89774         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
89776 2008-08-07  Jim Meyering  <meyering@redhat.com>
89778         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
89780         * modules/mkstemp (License): Relicense under LGPLv2+.
89781         * modules/tempname (License): Likewise.
89783 2008-08-06  Bruno Haible  <bruno@clisp.org>
89785         * lib/poll.c (poll): Further micro-optimization.
89787 2008-08-06  Jim Meyering  <meyering@redhat.com>
89789         inet_pton.c: use locale-independent tolower
89790         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
89791         (inet_pton6): Use c_tolower rather than tolower.
89792         * modules/inet_pton (Depends-on): Add c-ctype.
89794 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
89796         * lib/poll.c (poll): Avoid division when timeout is 0, cache
89797         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
89799 2008-08-06  Jim Meyering  <meyering@redhat.com>
89801         * modules/inet_pton (License): Relicense under LGPLv2+.
89803 2008-08-03  Bruno Haible  <bruno@clisp.org>
89805         Additional non-aborting API for lock and tls.
89806         * lib/lock.h: Include <errno.h>.
89807         (glthread_lock_init): New macro/function.
89808         (gl_lock_init): Define as wrapper around glthread_lock_init.
89809         (glthread_lock_lock): New macro/function.
89810         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
89811         (glthread_lock_unlock): New macro/function.
89812         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
89813         (glthread_lock_destroy): New macro/function.
89814         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
89815         (glthread_rwlock_init): New macro/function.
89816         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
89817         (glthread_rwlock_rdlock): New macro/function.
89818         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
89819         (glthread_rwlock_wrlock): New macro/function.
89820         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
89821         (glthread_rwlock_unlock): New macro/function.
89822         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
89823         (glthread_rwlock_destroy): New macro/function.
89824         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
89825         (glthread_recursive_lock_init): New macro/function.
89826         (gl_recursive_lock_init): Define as wrapper around
89827         glthread_recursive_lock_init.
89828         (glthread_recursive_lock_lock): New macro/function.
89829         (gl_recursive_lock_lock): Define as wrapper around
89830         glthread_recursive_lock_lock.
89831         (glthread_recursive_lock_unlock): New macro/function.
89832         (gl_recursive_lock_unlock): Define as wrapper around
89833         glthread_recursive_lock_unlock.
89834         (glthread_recursive_lock_destroy): New macro/function.
89835         (gl_recursive_lock_destroy): Define as wrapper around
89836         glthread_recursive_lock_destroy.
89837         (glthread_once): New macro/function.
89838         (gl_once): Define as wrapper around glthread_once.
89839         Update function declarations.
89840         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
89841         glthread_rwlock_init. Return error code.
89842         (glthread_rwlock_rdlock_multithreaded): Renamed from
89843         glthread_rwlock_rdlock. Return error code.
89844         (glthread_rwlock_wrlock_multithreaded): Renamed from
89845         glthread_rwlock_wrlock. Return error code.
89846         (glthread_rwlock_unlock_multithreaded): Renamed from
89847         glthread_rwlock_unlock. Return error code.
89848         (glthread_rwlock_destroy_multithreaded): Renamed from
89849         glthread_rwlock_destroy. Return error code.
89850         (glthread_recursive_lock_init_multithreaded): Renamed from
89851         glthread_recursive_lock_init. Return error code.
89852         (glthread_recursive_lock_lock_multithreaded): Renamed from
89853         glthread_recursive_lock_lock. Return error code.
89854         (glthread_recursive_lock_unlock_multithreaded): Renamed from
89855         glthread_recursive_lock_unlock. Return error code.
89856         (glthread_recursive_lock_destroy_multithreaded): Renamed from
89857         glthread_recursive_lock_destroy. Return error code.
89858         (glthread_once_call): Make static.
89859         (glthread_once_multithreaded): Renamed from glthread_once.
89860         * lib/tls.h: Include <errno.h>.
89861         (glthread_tls_key_init): New macro/function.
89862         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
89863         (glthread_tls_set): New macro/function.
89864         (gl_tls_set): Define as wrapper around glthread_tls_set.
89865         (glthread_tls_key_destroy): New macro/function.
89866         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
89867         Update function declarations.
89868         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
89869         glthread_tls_get.
89870         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89872 2008-08-04  Eric Blake  <ebb9@byu.net>
89874         gnumakefile: use space, not TAB, outside of targets
89875         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
89877 2008-08-02  Jim Meyering  <meyering@redhat.com>
89879         getdate.y: avoid locale-dependent date parsing failure
89880         In Turkish locales, getdate would fail to recognize keywords
89881         containing a lowercase "i".  The solution is not to rely on
89882         locale-sensitive case-conversion.
89883         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
89884         (lookup_word): Use c_toupper in place of toupper.
89885         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
89886         Reported by Vefa Bicakci <bicave@superonline.com> in
89887         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
89888         * modules/getdate (Depends-on): Add c-ctype.
89890 2008-08-02  Bruno Haible  <bruno@clisp.org>
89892         * gnulib-tool (func_import): When updating or creating a .gitignore
89893         file, prepend each added line with a slash, and ignore leading slashes
89894         from the existing lines.
89895         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
89897 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89899         Portability fix for GNU make 3.79.1.
89900         * top/GNUmakefile: Avoid 'else COND', which older GNU make
89901         versions do not understand.
89903 2008-08-01  Bruno Haible  <bruno@clisp.org>
89905         Work around bug of HP-UX 10.20 cc with -0.0 literal.
89906         * tests/test-isnanf.h (zero): New variable.
89907         (main): Avoid literal -0.0f.
89908         * tests/test-isnand.h (zero): New variable.
89909         (main): Avoid literal -0.0.
89910         * tests/test-isnanl.h (zero): New variable.
89911         (main): Avoid literal -0.0L.
89912         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
89913         (test_float, test_double, test_long_double): Avoid literals -0.0f,
89914         -0.0, -0.0L.
89915         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
89916         (test_signbitd): Avoid literal -0.0.
89917         (test_signbitl): Avoid literal -0.0L.
89918         * tests/test-ceilf1.c (zero): New variable.
89919         (main): Avoid literal -0.0f.
89920         * tests/test-ceill.c (zero): New variable.
89921         (main): Avoid literal -0.0L.
89922         * tests/test-floorf1.c (zero): New variable.
89923         (main): Avoid literal -0.0f.
89924         * tests/test-floorl.c (zero): New variable.
89925         (main): Avoid literal -0.0L.
89926         * tests/test-roundf1.c (zero): New variable.
89927         (main): Avoid literal -0.0f.
89928         * tests/test-round1.c (zero): New variable.
89929         (main): Avoid literal -0.0.
89930         * tests/test-roundl.c (zero): New variable.
89931         (main): Avoid literal -0.0L.
89932         * tests/test-truncf1.c (zero): New variable.
89933         (main): Avoid literal -0.0f.
89934         * tests/test-trunc1.c (zero): New variable.
89935         (main): Avoid literal -0.0.
89936         * tests/test-truncl.c (zero): New variable.
89937         (main): Avoid literal -0.0L.
89938         * tests/test-frexp.c (zero): New variable.
89939         (main): Avoid literal -0.0.
89940         * tests/test-frexpl.c (zero): New variable.
89941         (main): Avoid literal -0.0L.
89942         * tests/test-ldexpl.c (zero): New variable.
89943         (main): Avoid literal -0.0L.
89944         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89945         (zerod, zerol): New variables.
89946         (test_function): Avoid literals -0.0, -0.0L.
89947         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
89948         (zerod, zerol): New variables.
89949         (test_function): Avoid literals -0.0, -0.0L.
89950         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89951         (zerod, zerol): New variables.
89952         (test_function): Avoid literals -0.0, -0.0L.
89953         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
89954         (zerod, zerol): New variables.
89955         (test_function): Avoid literals -0.0, -0.0L.
89956         * tests/test-strtod.c (zero): New variable.
89957         (main): Avoid literal -0.0.
89958         Reported by Jonathan C. Patschke <jp@centtech.com>.
89960 2008-07-31  Jim Meyering  <meyering@redhat.com>
89962         sha256.h: correct definition of SHA224_DIGEST_SIZE
89963         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
89964         Reported by Paulie Pena IV <paulie4@gmail.com>.
89965         Define as 224 / 8, rather than as a literal.
89966         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
89967         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
89968         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
89970 2008-07-31  Bruno Haible  <bruno@clisp.org>
89972         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
89973         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
89974         Reported by Jonathan Patschke <jp@centtech.com>.
89976 2008-07-31  Bruno Haible  <bruno@clisp.org>
89978         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
89979         Reported by Paolo Bonzini <bonzini@gnu.org>.
89981 2008-07-30  Eric Blake  <ebb9@byu.net>
89983         test-strtod: allow compilation without -lm
89984         * tests/test-strtod.c (main): Avoid link dependence on fabs.
89985         Reported by Dennis Clarke <blastwave@gmail.com>.
89987 2008-07-28  Jim Meyering  <meyering@redhat.com>
89989         bootstrap: work also when there are no .po files in po/
89990         * build-aux/bootstrap (update_po_files): Complete the change
89991         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
89993 2008-07-27  Jim Meyering  <meyering@redhat.com>
89995         * users.txt: Add zile.
89997 2008-07-26  Ben Pfaff  <blp@gnu.org>
89999         Add missing dependencies on new m4/exponent[fdl].m4 files.
90000         * modules/isnanf-nolibm: Add m4/exponentf.m4.
90001         * modules/isnand-nolibm: Add m4/exponentd.m4.
90002         * modules/isnanl-nolibm: Add m4/exponentl.m4.
90003         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
90004         m4/isnan[fdl].m4, because the macros actually used moved.
90005         Reported by Jim Meyering.
90007 2008-07-14  Ben Pfaff  <blp@gnu.org>
90009         Add isinf module.
90010         * lib/isinf.c: New file.
90011         * lib/math.in.h: Define isinf macro if we have decided to replace
90012         it.
90013         * m4/isinf.m4: New file.
90014         * m4/math_h.m4: Initialize and substitute variables for isinf
90015         module.
90016         * modules/isinf: New file.
90017         * modules/isinf-tests: New file.
90018         * modules/math: Add substitutions for new module.
90019         * tests/test-isinf.c: New file.
90020         * doc/posix-functions/isinf.texi: Mention new module.
90021         * MODULES.html.sh: Mention new module.
90023 2008-07-14  Ben Pfaff  <blp@gnu.org>
90025         Factor out some macros for use by additional modules.
90026         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
90027         exponentf.m4.
90028         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
90029         exponentd.m4.
90030         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
90031         file exponentl.m4.
90032         * m4/exponentf.m4: New file.
90033         * m4/exponentd.m4: New file.
90034         * m4/exponentl.m4: New file.
90035         * modules/isnanf: Use new file m4/exponentf.m4.
90036         * modules/isnand: Use new file m4/exponentd.m4.
90037         * modules/isnanl: Use new file m4/exponentl.m4.
90039 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
90041         mktime.c: normalize tp->tm_isdst value to -1/0/1.
90042         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
90043         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
90044         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
90046         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
90047         readlink on platforms without PATH_MAX.
90049 2008-07-21  Eric Blake  <ebb9@byu.net>
90051         Warn, not fail, on stale version.
90052         * top/GNUmakefile (_curr-ver): Tone down previous patch.
90054         Don't allow installation with stale devel version number.
90055         * top/GNUmakefile (_is-install-target): New macro.
90056         (_curr-ver): Forbid installation with stale version number.
90058 2008-07-20  Bruno Haible  <bruno@clisp.org>
90060         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
90061         TESTS_ENVIRONMENT.
90062         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
90064 2008-07-20  Bruno Haible  <bruno@clisp.org>
90066         * lib/c-stack.h (c_stack_action): Add documentation.
90067         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
90069 2008-07-20  Bruno Haible  <bruno@clisp.org>
90071         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
90072         * modules/readlink (License): Likewise.
90074 2008-07-17  Eric Blake  <ebb9@byu.net>
90076         * modules/c-stack (Link): Fix typo.
90078         Make c-stack use libsigsegv, when available.
90079         * modules/c-stack (Depends-on): Add libsigsegv.
90080         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
90081         needed.
90082         * lib/c-stack.c (SIGSTKSZ): Define fallback.
90083         (segv_handler, overflow_handler, c_stack_action)
90084         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
90085         implementation when libsigsegv is available, but only when using
90086         the library is necessary.
90087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
90088         comment, explaining why XSI check fails on Linux.
90089         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
90090         * tests/test-c-stack2.sh: Tweak skip message.
90091         * NEWS: Document new link-time requirements.
90093 2008-07-16  Eric Blake  <ebb9@byu.net>
90095         c-stack: Expose false positives when not using libsigsegv.
90096         * modules/c-stack-tests (Files): Expand test.
90097         * tests/test-c-stack.c (main): Add means to conditionally trigger
90098         non-overflow SIGSEGV.
90099         * tests/test-c-stack2.sh: New file.
90101 2008-07-14  Bruno Haible  <bruno@clisp.org>
90103         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
90104         Reported by Eric Blake.
90106 2008-07-14  Sam Steingold  <sds@gnu.org>
90107             Bruno Haible  <bruno@clisp.org>
90109         New module libsigsegv.
90110         * modules/libsigsegv: New file.
90111         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
90112         modifications.
90113         * MODULES.html.sh (Signal handling): New section.
90115 2008-07-14  Bruno Haible  <bruno@clisp.org>
90117         * modules/unictype/ctype-* (Description): Add the word "function".
90118         Improves the resulting doc in MODULES.html.
90120 2008-07-12  Ben Pfaff  <blp@gnu.org>
90122         Add longlong module.
90123         * modules/longlong: New file.
90125 2008-07-12  Bruno Haible  <bruno@clisp.org>
90127         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
90128         to empty.
90130 2008-07-10  Ben Pfaff  <blp@gnu.org>
90132         Add isnan module.
90133         * doc/posix-functions/isnan.texi: Mention new module.
90134         * lib/math.in.h: Define isnan macro if we have decided to replace
90135         it.
90136         * m4/isnan.m4: New file.
90137         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
90138         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
90139         also.
90140         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
90141         redundancy.
90142         * m4/math_h.m4: Initialize and substitute variables for isnan
90143         module.
90144         * modules/isnan: New file.
90145         * modules/isnan-tests: New file.
90146         * modules/math: Add substitutions for new module.
90147         * tests/test-isnan.c: New file.
90148         * MODULES.html.sh: Mention new module.
90150 2008-07-10  Ben Pfaff  <blp@gnu.org>
90152         Add isnanf module.
90153         * lib/isnanf.m4: New file.
90154         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
90155         (gl_HAVE_ISNANF_IN_LIBM): New macro.
90156         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
90157         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
90158         * modules/isnanf: New file.
90159         * modules/isnanf-tests: New file.
90160         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
90161         files.
90162         * tests/test-isnanf-nolibm.c: factored most of its contents into
90163         new file tests/test-isnanf.h.
90164         * tests/test-isnanf.h: New file.
90165         * tests/test-isnanf.c: New file.
90166         * MODULES.html.sh: Mention new module.
90167         * doc/glibc-functions/isnanf.texi: Mention new module.
90169 2008-07-10  Ben Pfaff  <blp@gnu.org>
90171         Add isnand module.
90172         * lib/isnand.h: New file.
90173         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
90174         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
90175         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
90176         functionality also.
90177         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
90178         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
90179         (gl_HAVE_ISNAND_IN_LIBM): New macro.
90180         * modules/isnand: New file.
90181         * modules/isnand-tests: New file.
90182         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
90183         files.
90184         * tests/test-isnand-nolibm.c: factored most of its contents into
90185         new file tests/test-isnand.h.
90186         * tests/test-isnand.h: New file.
90187         * tests/test-isnand.c: New file.
90188         * MODULES.html.sh: Mention new module.
90190 2008-07-10  Ben Pfaff  <blp@gnu.org>
90192         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
90193         * lib/isnand.h: Rename lib/isnand-nolibm.h.
90194         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
90195         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
90196         * modules/isnanf-nolibm: Update references to renamed files.
90197         * modules/isnand-nolibm: Likewise.
90198         * modules/isnanf-nolibm-tests: Likewise.
90199         * modules/isnand-nolibm-tests: Likewise.
90200         * lib/frexp.c: Likewise.
90201         * lib/isfinite.c: Likewise.
90202         * lib/signbitd.c: Likewise.
90203         * lib/signbitf.c: Likewise.
90204         * lib/vasnprintf.c: Likewise.
90205         * tests/test-ceilf1.c: Likewise.
90206         * tests/test-ceilf2.c: Likewise.
90207         * tests/test-floorf1.c: Likewise.
90208         * tests/test-floorf2.c: Likewise.
90209         * tests/test-frexp.c: Likewise.
90210         * tests/test-round1.c: Likewise.
90211         * tests/test-round2.c: Likewise.
90212         * tests/test-roundf1.c: Likewise.
90213         * tests/test-strtod.c: Likewise.
90214         * tests/test-trunc1.c: Likewise.
90215         * tests/test-trunc2.c: Likewise.
90216         * tests/test-truncf1.c: Likewise.
90217         * tests/test-truncf2.c: Likewise.
90218         * NEWS: Mention the renamed header files.
90220 2008-07-11  Jim Meyering  <meyering@redhat.com>
90222         vc-list-files: make the last-resort awk code more portable
90223         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
90224         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
90225         does not support it.
90227 2008-07-10  Eric Blake  <ebb9@byu.net>
90229         Work with tar's bootstrap.
90230         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
90231         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
90232         an m4 comment.
90234 2008-07-09  Jim Meyering  <meyering@redhat.com>
90236         posix-shell.m4: fix typo that made this test malfunction
90237         * m4/posix-shell.m4: Remove capitalization in variable name.
90239 2008-07-08  Bruno Haible  <bruno@clisp.org>
90241         * m4/onceonly.m4: Update comments.
90242         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90244 2008-07-04  Jim Meyering  <meyering@redhat.com>
90246         * users.txt: Add vc-dwim.
90247         (bison, coreutils): Use the gitweb URL.
90249 2008-07-03  Jim Meyering  <meyering@redhat.com>
90251         * users.txt: Add libffcall.  From Sam Steingold.
90253 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
90255         getdate.y: do not ignore TZ with relative day, month or year offset
90256         * lib/getdate.y (get_date): Move the tz-handling block to follow the
90257         relative-date-handling, since otherwise, the latter would clobber the
90258         sole output (an updated Start value) of the tz-handling block.
90259         * tests/test-getdate.c: Tests for the fix
90261 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90263         Recognize 'foo_LIBRARIES += libgnu.a'.
90264         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
90265         makefile snippet has already specified an installation location,
90266         also using '+='.
90268 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
90270         getdate.y: factor out common actions
90271         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
90272         Use them in place of open-coded actions.
90274 2008-07-01  Simon Josefsson  <simon@josefsson.org>
90276         Add self-test for getdate module.
90277         * modules/getdate-tests: New file.
90278         * tests/test-getdate.c: New file.
90280 2008-06-29  Bruno Haible  <bruno@clisp.org>
90282         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
90283         .gitignore.
90284         Reported by Sylvain Beucler <beuc@beuc.net>.
90286 2008-06-29  Bruno Haible  <bruno@clisp.org>
90288         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
90289         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
90291 2008-06-29  Bruno Haible  <bruno@clisp.org>
90293         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
90294         EXTRA_DIST.
90295         Reported by Sylvain Beucler <beuc@beuc.net>.
90297 2008-06-26  Jim Meyering  <meyering@redhat.com>
90299         make several modules depend on the "open" module
90300         This provides slightly increased consistency when opening-for-write
90301         the name of a non-directory spelled with a trailing slash.
90302         * modules/chdir-safer: Likewise.
90303         * modules/chown: Likewise.
90304         * modules/clean-temp: Likewise.
90305         * modules/copy-file: Likewise.
90306         * modules/fchdir: Likewise.
90307         * modules/fcntl-safer: Likewise.
90308         * modules/pipe: Likewise.
90309         * modules/utime: Likewise.
90310         Prompted by Eric Blake and Bruno Haible.
90312 2008-06-24  Andreas Schwab  <schwab@suse.de>
90314         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
90315         literals can be used as initializers for global variables.
90317 2008-06-23  Eric Blake  <ebb9@byu.net>
90319         Make gnulib-cache.m4 easier to diff.
90320         * gnulib-tool (func_import): Allow newlines when reading cached
90321         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
90323 2008-06-23  Bruno Haible  <bruno@clisp.org>
90325         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
90326         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
90327         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
90328         m4/signalblocking.m4.
90329         (gl_PREREQ_SIGACTION): Don't invoke it.
90330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
90331         gl_PREREQ_SIG_HANDLER_H.
90332         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90333         Don't check for sigaction here.
90335 2008-06-23  Bruno Haible  <bruno@clisp.org>
90337         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
90338         (install_handlers): Don't set the SA_RESETHAND flag.
90340 2008-06-23  Bruno Haible  <bruno@clisp.org>
90342         * m4/sigaction.m4: Comment fixes.
90343         * lib/signal.in.h: Likewise.
90345 2008-06-23  Eric Blake  <ebb9@byu.net>
90347         Fix typo.
90348         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
90350         Avoid SA_ namespace.
90351         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
90352         Reported by Ralf Wildenhues.
90354         Avoid test failure due to SA_RESTORER.
90355         * tests/test-sigaction.c (SA_MASK): New macro.
90356         (main): Avoid failing due to extension flags being set.
90357         Reported by Jim Meyering.
90359         Revert use of sig-handler.h in sigprocmask.c.
90360         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
90361         it requires the existence of struct sigaction.
90362         * lib/sigprocmask.c (handler_t): Restore typedef.
90363         (rpl_signal, old_handlers): Use local type.
90365 2008-06-22  Bruno Haible  <bruno@clisp.org>
90367         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
90368         conditionally.
90369         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
90371 2008-06-22  Bruno Haible  <bruno@clisp.org>
90373         * doc/posix-functions/siginterrupt.texi: Move note.
90375         * lib/signal.in.h (SA_RESTART): New macro.
90376         * lib/sigaction.c: Update comment.
90378         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
90380         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
90381         (gl_PREREQ_SIGPROCMASK): Invoke it.
90382         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
90384         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
90386         * lib/sigprocmask.c: Update a comment.
90388 2008-06-21  Eric Blake  <ebb9@byu.net>
90390         Use sigaction module rather than signal().
90391         * modules/c-stack (Depends-on): Add sigaction.
90392         * modules/fatal-signal (Depends-on): Likewise.
90393         * modules/nanosleep (Depends-on): Likewise.
90394         * modules/sigprocmask (Files): Add sig-handler.h.
90395         * modules/sigaction (Files): Likewise.
90396         * lib/sig-handler.h (get_handler): New file, suggested by Paul
90397         Eggert.
90398         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
90399         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
90400         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
90401         (init_fatal_signals): Likewise.
90402         * lib/nanosleep.c (rpl_nanosleep): Likewise.
90403         (siginterrupt): Delete fallback.
90404         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
90405         instead.
90406         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
90407         siginterrupt.
90409         New module sigaction, for mingw.
90410         * modules/sigaction: New module...
90411         * modules/sigaction-tests: ...and its test.
90412         * m4/sigaction.m4: New file.
90413         * lib/sigaction.c: Likewise.
90414         * tests/test-sigaction.c: Likewise.
90415         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
90416         * modules/signal (Makefile.am): Likewise.
90417         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
90418         needed.
90419         * doc/posix-headers/signal.texi (signal.h): Mention provided
90420         types.
90421         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
90422         that sigaction is preferable.
90423         * doc/posix-functions/sigaction.texi (sigaction): Mention new
90424         module.
90425         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90426         sigaction.
90428         Improve robustness of sigprocmask by overriding signal.
90429         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
90430         is in use.
90431         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
90432         (SIGKILL, SIGSTOP): Provide fallbacks.
90433         (rpl_signal): Implement.
90434         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
90435         signal can be called inside handlers.
90437         Fix nanosleep module on mingw.
90438         * modules/nanosleep (Depends-on): Add sys_select.
90439         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
90441         Fix licensing of sigprocmask.
90442         * modules/raise (License): Relicense as LGPL.
90444 2008-06-21  Bruno Haible  <bruno@clisp.org>
90446         * lib/propername.c (proper_name_utf8): Don't use the transliterated
90447         result if it contains question marks.
90448         Reported by Michael Geng <linux@michaelgeng.de>.
90450 2008-06-19  Bruno Haible  <bruno@clisp.org>
90452         Fix CVS-ism.
90453         * doc/gnulib.texi: Include updated-stamp.texi.
90454         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
90455         (updated-stamp.texi): New rule.
90456         (gnulib.info): Depend on it.
90457         * doc/.gitignore: Add updated-stamp.texi.
90458         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
90460 2008-06-19  Bruno Haible  <bruno@clisp.org>
90462         * doc/Makefile (gnulib.info): Update and simplify dependencies.
90463         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
90465 2008-06-19  Eric Blake  <ebb9@byu.net>
90467         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
90468         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
90469         Reported by Stepan Kasal.
90471 2008-06-18  Bruno Haible  <bruno@clisp.org>
90473         * lib/fatal-signal.c (init_fatal_signals): Add comment.
90474         Reported by Eric Blake.
90476 2008-06-18  Eric Blake  <ebb9@byu.net>
90478         Work around cygwin 1.5.25 strsignal bug.
90479         * tests/test-strsignal.c: Allow for const char *.
90480         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
90482 2008-06-18  Simon Josefsson  <simon@josefsson.org>
90484         * users.txt: Update URL to article and add author/date
90485         information.
90487 2008-06-17  Bruno Haible  <bruno@clisp.org>
90489         New macro gl_DISABLE_THREADS.
90490         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
90491         if the user did not pass --enable-threads or --disable-threads option.
90492         (gl_DISABLE_THREADS): New macro.
90493         Reported by Eric Blake <ebb9@byu.net>.
90495 2008-06-17  Bruno Haible  <bruno@clisp.org>
90497         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
90498         when the macro ignores it.
90499         Based on a patch by Eric Blake <ebb9@byu.net>.
90501 2008-06-17  Bruno Haible  <bruno@clisp.org>
90503         * modules/tls (License): Change to LGPLv2+.
90504         Reported by Eric Blake.
90506 2008-06-17  Eric Blake  <ebb9@byu.net>
90508         Simplify c-stack prerequisites.
90509         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
90510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
90511         no longer requires <ucontext.h> to exist.  Optimize setrlimit
90512         check.
90513         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
90514         <sys/resource.h>.
90516         Move c-stack test into testsuite.
90517         * modules/c-stack-tests: New file.
90518         * lib/c-stack.c [DEBUG]: Move test program...
90519         * tests/test-c-stack.c: ...into this new file.  Skip rather than
90520         fail test if sigaltstack is lacking.
90521         * tests/test-c-stack.sh: New driver file.
90523 2008-06-16  Eric Blake  <ebb9@byu.net>
90525         Use raise module consistently.
90526         * modules/fatal-signal (Depends-on): Add raise.
90527         * modules/sigprocmask (Depends-on): Likewise.
90528         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
90529         * lib/sigprocmask.c (sigprocmask): Likewise.
90530         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
90531         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
90533         Fix compliance bug in sigpending.
90534         * lib/sigprocmask.c (sigpending): Return pending array via
90535         parameter, not return value.
90537 2008-06-14  Eric Blake  <ebb9@byu.net>
90539         Improve obstack-printf test code.
90540         * tests/test-obstack-printf.c (test_function): Fix comment, and
90541         simplify usage of obstack_* in macros.  Add a test for coverage.
90542         Reported by Bruno Haible.
90544 2008-06-14  Bruno Haible  <bruno@clisp.org>
90546         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
90547         array size as a constant, not as a const variable.
90548         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
90549         AC_USE_SYSTEM_EXTENSIONS.
90550         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
90551         Test whether the obstack_printf function actually exists.
90552         * modules/obstack-printf (Depends-on): Add extensions.
90553         (Include): Remove obstack.h.
90554         * modules/obstack-printf-posix (Depends-on): Add extensions.
90555         (Include): Remove obstack.h.
90557 2008-06-13  Eric Blake  <ebb9@byu.net>
90559         Add obstack-printf and obstack-printf-posix modules.
90560         * modules/obstack-printf: New file.
90561         * modules/obstack-printf-posix: Likewise.
90562         * MODULES.html.sh (Misc): Mention them.
90563         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
90564         Likewise.
90565         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
90566         Likewise.
90567         * modules/stdio (Makefile.am): Accomodate new modules.
90568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
90569         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
90570         Declare.
90571         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
90572         functions.
90573         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
90574         (gl_REPLACE_OBSTACK_PRINTF): New macros
90575         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
90576         * tests/test-obstack-printf.c: New file.
90577         * modules/obstack-printf-tests: Likewise.
90578         * modules/obstack-printf-posix-tests: Likewise.
90580 2008-06-11  Bruno Haible  <bruno@clisp.org>
90582         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
90583         * lib/open.c: Include errno.h.
90584         (open): Fail when attempting to write to a file that has a trailing
90585         slash.
90586         * tests/test-open.c (main): Test against trailing slash bug.
90587         * doc/posix-functions/open.texi: Mention the trailing slash bug.
90589 2008-06-10  Bruno Haible  <bruno@clisp.org>
90591         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
90592         for $? to work inside the trap command, with various /bin/sh-s.
90593         * tests/test-vc-list-files-cvs.sh: Likewise.
90595 2008-06-10  Bruno Haible  <bruno@clisp.org>
90597         * lib/acl-internal.h: Don't include gettext.h here.
90598         * lib/set-mode-acl.c: Include gettext.h here.
90599         * lib/copy-acl.c: Likewise.
90601 2008-06-10  Bruno Haible  <bruno@clisp.org>
90603         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
90604         * lib/wait-process.c (wait_subprocess): Likewise.
90605         * lib/execute.h (execute): Add termsigp argument.
90606         * lib/execute.c (execute): Likewise.
90607         * lib/csharpcomp.c (compile_csharp_using_pnet,
90608         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
90609         * lib/csharpexec.c (execute_csharp_using_pnet,
90610         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
90611         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
90612         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
90613         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
90614         is_jikes_present): Update.
90615         * lib/javaexec.c (execute_java_class): Update.
90616         * lib/javaversion.c (execute_and_read_line): Update.
90617         * NEWS: Document the changes.
90618         Reported by Eric Blake.
90620 2008-06-10  Eric Blake  <ebb9@byu.net>
90622         Add missing include.
90623         * tests/test-strstr.c (includes): Add <signal.h>.
90624         * tests/test-strcasestr.c (includes): Likewise.
90625         * tests/test-memmem.c (includes): Likewise.
90627 2008-06-10  Bruno Haible  <bruno@clisp.org>
90629         * lib/wait-process.c (wait_subprocess): Add an assertion.
90631 2008-06-10  Bruno Haible  <bruno@clisp.org>
90633         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
90635 2008-06-10  Bruno Haible  <bruno@clisp.org>
90637         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
90638         using alarm().
90639         * tests/test-strcasestr.c (main): Likewise.
90640         * tests/test-strstr.c (main): Likewise.
90642 2008-06-09  Bruno Haible  <bruno@clisp.org>
90644         Work around the Solaris 10 ACE ACLs ABI change.
90645         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
90646         declare if ACL_NO_TRIVIAL is present.
90647         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
90648         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
90649         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
90650         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
90651         define if ACL_NO_TRIVIAL is present.
90652         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
90653         and use the current ABI.
90654         (file_has_acl): Use same #if condition as elsewhere.
90655         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
90656         in use, and use the current ABI.
90657         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
90658         Reported by Jim Meyering.
90660 2008-06-09  Eric Blake  <ebb9@byu.net>
90662         Work around environments that (stupidly) ignore SIGALRM.
90663         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
90664         before using alarm().
90665         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90666         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
90667         Reported by Ian Beckwith <ianb@erislabs.net>.
90669         Produce autobuild blurb earlier in log.
90670         * modules/autobuild (configure.ac-early): Move AB_INIT here.
90672 2008-06-09  Jim Meyering  <meyering@redhat.com>
90673         and Ondřej Vašík  <ovasik@redhat.com>
90675         utimens.c: correct kernel bug work-around
90676         Ondřej Vašík found that the invalid return value of 280 indicates
90677         failure, not success, and the kernel bug we're trying to work
90678         around affects not just the utimensat call, but also the fallback
90679         futimens call.
90680         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
90681         not success.
90682         [HAVE_FUTIMENS]: Use the same work-around, here.
90684 2008-06-09  Jim Meyering  <meyering@redhat.com>
90686         add more guards around definition of ACE_-related code
90687         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
90688         ALLOW and ACE_OWNER are also defined.
90690 2008-06-08  Bruno Haible  <bruno@clisp.org>
90692         * lib/acl-internal.h: Add me as co-author.
90693         * lib/file-has-acl.c: Likewise.
90694         * lib/set-mode-acl.c: Likewise.
90695         * lib/copy-acl.c: Likewise.
90697 2008-06-08  Bruno Haible  <bruno@clisp.org>
90699         Add support for AIX ACLs.
90700         * lib/acl-internal.h (acl_nontrivial): New declaration.
90701         * lib/file-has-acl.c (acl_nontrivial): New function.
90702         (file_has_acl): Add implementation using AIX 4 ACL API.
90703         * lib/set-mode-acl.c (qset_acl): Likewise.
90704         * lib/copy-acl.c (qcopy_acl): Likewise.
90706 2008-06-08  Bruno Haible  <bruno@clisp.org>
90708         Add support for HP-UX ACLs.
90709         * lib/acl-internal.h (acl_nontrivial): New declaration.
90710         * lib/file-has-acl.c (acl_nontrivial): New function.
90711         (file_has_acl): Add implementation using HP-UX 11 ACL API.
90712         * lib/set-mode-acl.c (qset_acl): Likewise.
90713         * lib/copy-acl.c (qcopy_acl): Likewise.
90715 2008-06-08  Bruno Haible  <bruno@clisp.org>
90717         Add support for Cygwin ACLs.
90718         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
90719         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
90720         the chmod_or_fchmod call.
90721         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
90723 2008-06-08  Bruno Haible  <bruno@clisp.org>
90725         Fix bug with setuid modes in Solaris 10+ code.
90726         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
90727         succeeded, when the mode contains some special bits.
90729 2008-06-08  Bruno Haible  <bruno@clisp.org>
90731         Add support for Solaris 7..10 ACLs.
90732         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
90733         declarations.
90734         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
90735         functions.
90736         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
90737         * lib/set-mode-acl.c (qset_acl): Likewise.
90738         * lib/copy-acl.c (qcopy_acl): Likewise.
90740 2008-06-08  Bruno Haible  <bruno@clisp.org>
90742         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
90743         declaration.
90744         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
90745         (acl_access_nontrivial): Remove MacOS X case.
90746         (file_has_acl): Use acl_extended_nontrivial.
90747         * lib/copy-acl.c (qcopy_acl): Likewise.
90749 2008-06-08  Bruno Haible  <bruno@clisp.org>
90751         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
90753 2008-06-08  Jim Meyering  <meyering@redhat.com>
90755         * modules/acl (Maintainer): Add Bruno Haible.
90757 2008-06-07  Bruno Haible  <bruno@clisp.org>
90759         Improve support for Tru64 ACLs.
90760         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
90761         ACL on OSF/1.
90763 2008-06-07  Bruno Haible  <bruno@clisp.org>
90765         Add support for MacOS X ACLs.
90766         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
90767         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
90768         * lib/set-mode-acl.c (qset_acl): Likewise.
90769         * lib/copy-acl.c (qcopy_acl): Likewise.
90771 2008-06-07  Bruno Haible  <bruno@clisp.org>
90773         Fix memory leak introduced on 2008-05-22.
90774         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
90775         use.
90777 2008-06-07  Bruno Haible  <bruno@clisp.org>
90779         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
90780         to construct an empty ACL.
90782 2008-06-07  Bruno Haible  <bruno@clisp.org>
90784         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
90785         precisely.
90786         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
90788 2008-06-07  Bruno Haible  <bruno@clisp.org>
90790         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
90791         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
90793 2008-06-07  Bruno Haible  <bruno@clisp.org>
90795         * doc/posix-functions/_setjmp.texi: Explain the use of this function
90796         regardless of POSIX.
90797         * doc/posix-functions/_longjmp.texi: Likewise.
90798         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
90799         SystemV platform in this case.
90801 2008-06-06  Eric Blake  <ebb9@byu.net>
90803         Document abort() bugs.
90804         * doc/posix-functions/abort.texi (abort): Mention anomalies.
90806         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
90807         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
90808         sigsetjmp.
90809         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
90810         siglongjmp, but only as a macro.
90811         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
90812         is obsolete.
90813         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
90815         Tweak documentation to cover cygwin argz bugs.
90816         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
90817         argz bug fix; no code change needed since no cygwin releases
90818         occurred between the last fix and the bug being tested.
90819         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
90820         module and recently fixed cygwin bugs.
90821         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
90822         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
90823         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
90824         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
90825         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
90826         Likewise.
90827         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
90828         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
90829         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
90830         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
90831         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
90832         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
90833         Likewise.
90835         Avoid gcc warning on cygwin.
90836         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
90837         !ACL_NO_TRIVIAL]: Avoid unused variable.
90839 2008-06-05  Eric Blake  <ebb9@byu.net>
90841         Be tolerant of UNKNOWN version in gnulib-tool test dir.
90842         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
90843         git-version-gen fails to come up with a version.
90844         Reported by Simon Josefsson.
90846 2008-06-05  Jim Meyering  <meyering@redhat.com>
90847             Paul Eggert  <eggert@cs.ucla.edu>
90849         utimens.c: work around a probable Linux kernel bug
90850         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
90851         appears to be a kernel bug that causes utimensat to return 280
90852         instead of 0, indicating success.
90854 2008-06-04  Bruno Haible  <bruno@clisp.org>
90856         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
90857         2008-06-01 commit.
90859 2008-06-04  Bruno Haible  <bruno@clisp.org>
90861         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
90862         * lib/file-has-acl.c (acl_access_nontrivial): New function.
90863         (file_has_acl): Use it. Save errno afterwards.
90864         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
90866 2008-06-03  Bruno Haible  <bruno@clisp.org>
90868         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
90869         draft code. Simplify #ifs.
90870         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
90871         Put Solaris code after POSIX-draft code. Fix comments regarding
90872         Solaris 10, HP-UX. Mention Cygwin.
90873         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
90875 2008-06-03  Eric Blake  <ebb9@byu.net>
90877         Provide fallback for older kernels.
90878         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
90879         Provide runtime fallback if kernel lacks support.
90880         Reported by Mike Frysinger.
90882 2008-06-02  Bruno Haible  <bruno@clisp.org>
90884         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
90885         it exists.
90887 2008-06-02  Bruno Haible  <bruno@clisp.org>
90889         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
90890         * lib/copy-acl.c (qcopy_acl): Update comment.
90892 2008-06-02  Bruno Haible  <bruno@clisp.org>
90894         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
90895         like ACL APIs.
90897 2008-06-02  Bruno Haible  <bruno@clisp.org>
90899         * tests/test-file-has-acl.sh: Use different code for Cygwin.
90900         * tests/test-set-mode-acl.sh: Likewise.
90901         * tests/test-copy-acl.sh: Likewise.
90902         * tests/test-copy-file.sh: Likewise.
90904 2008-06-02  Bruno Haible  <bruno@clisp.org>
90906         * tests/test-file-has-acl.sh: Remove unused code.
90908 2008-06-01  Bruno Haible  <bruno@clisp.org>
90910         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
90911         (copy_acl): Just a wrapper around qcopy_acl that emits the error
90912         messages.
90913         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
90915 2008-06-01  Bruno Haible  <bruno@clisp.org>
90917         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
90918         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
90919         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
90920         APIs.
90921         * modules/acl-tests (configure.ac): Remove tests now contained in
90922         m4/acl.m4.
90924 2008-06-02  Jim Meyering  <meyering@redhat.com>
90926         announce-gen: use a better key-server host name
90927         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
90928         it may be more consistently reliable.  Suggested by Werner Koch
90929         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
90931 2008-06-01  Bruno Haible  <bruno@clisp.org>
90933         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
90934         Reported by Voroskoi Andras <voroskoi@gmail.com>.
90936 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
90938         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
90940 2008-06-01  Bruno Haible  <bruno@clisp.org>
90942         New ACL tests.
90943         * tests/test-file-has-acl.sh: New file.
90944         * tests/test-file-has-acl.c: New file.
90945         * tests/test-set-mode-acl.sh: New file.
90946         * tests/test-set-mode-acl.c: New file.
90947         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
90948         * tests/test-copy-acl.c: New file.
90949         * modules/acl-tests: New file, based on modules/copy-file-tests.
90950         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
90951         (Depends-on): Add acl-tests.
90952         (configure.ac): Remove checks.
90953         (Makefile.am): Don't create test-sameacls program here any more.
90955 2008-06-01  Bruno Haible  <bruno@clisp.org>
90957         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
90958         * tests/test-sameacls.c: Include progname.h.
90959         (main): Invoke set_program_name. Portability fixes for MacOS X,
90960         Solaris, HP-UX.
90962 2008-06-01  Bruno Haible  <bruno@clisp.org>
90964         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
90965         function.
90966         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
90968 2008-06-01  Bruno Haible  <bruno@clisp.org>
90970         * modules/rpmatch (Depends-on): Add strdup.
90972 2008-06-01  Bruno Haible  <bruno@clisp.org>
90974         * lib/pipe.c: Include unistd-safer.h.
90975         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
90976         * modules/pipe (Depends-on): Add unistd-safer.
90978 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90980         * modules/autobuild (configure.ac): Call AB_INIT.
90982 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90984         * tests/test-getaddrinfo.c: Don't print debug messages by default.
90985         Suggested by Bruno Haible <bruno@clisp.org>.
90987 2008-05-30  Simon Josefsson  <simon@josefsson.org>
90989         * tests/test-base64.c: Cast size_t to unsigned long when invoking
90990         printf.  Use %lu instead of %d.  Reported by Bruno Haible
90991         <bruno@clisp.org>.
90993 2008-05-29  Eric Blake  <ebb9@byu.net>
90995         Prefer new POSIX 200x interfaces over futimesat.
90996         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
90997         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
90998         when available.
90999         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
91001 2008-05-28  Bruno Haible  <bruno@clisp.org>
91003         * modules/stpcpy (License): Change to LGPLv2+.
91004         Requested by David Lutterkort <dlutter@redhat.com>.
91006 2008-05-27  Bruno Haible  <bruno@clisp.org>
91008         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
91009         current mingw.
91010         Reported by Jose E. Marchesi <jemarch@gnu.org>.
91012 2008-05-27  Bruno Haible  <bruno@clisp.org>
91014         * modules/iconv_open (Link): New section, from module 'iconv'.
91015         * modules/striconv (Link): Likewise.
91016         * modules/striconveh (Link): Likewise.
91017         * modules/xstriconv (Link): Likewise.
91018         * modules/unicodeio (Link): Likewise.
91019         * modules/propername (Link): Likewise.
91020         Reported by Jim Meyering.
91022 2008-05-26  Jim Meyering  <meyering@redhat.com>
91024         sha256: do not artificially restrict buffer length to be < 2^32
91025         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
91026         uint32_t to size_t.
91027         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
91028         to match.
91030         avoid unaligned access errors, e.g., on sparc
91031         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
91032         direct access through a possibly-unaligned uint64* pointer.
91033         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
91034         direct access through a possibly-unaligned uint32* pointer.
91035         Prompted by this patch from Tom "spot" Callaway:
91036         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
91038         sha512.c: fix typo in comment
91039         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
91041 2008-05-25  Bruno Haible  <bruno@clisp.org>
91043         * lib/set-mode-acl.c: Renamed from lib/acl.c.
91044         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
91045         (Makefile.am): Update lib_SOURCES.
91047 2008-05-25  Bruno Haible  <bruno@clisp.org>
91049         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
91051 2008-05-25  Jim Meyering  <meyering@redhat.com>
91053         useless-if-before-free: freed expr may have white-space differences
91054         * build-aux/useless-if-before-free: Recognize cases in which the
91055         freed expression differs from the tested one in embedded white
91056         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
91057         $1 was used, so we can't make any regexp shy.  Improved tests now
91058         detect this.
91060         useless-if-before-free: accept white space in the expression.
91061         * build-aux/useless-if-before-free: For now, any white space
91062         in the expression must be identical in the free argument.
91064         useless-if-before-free: efficiency tweak
91065         * build-aux/useless-if-before-free: Make the expression-matching
91066         regexp "shy".
91067         Make the *outer* regexp shy, not the expr-matching one.
91069         update code-in-comment to accept cast of free arg
91070         * build-aux/useless-if-before-free: Update regexp.
91072 2008-05-25  Bruno Haible  <bruno@clisp.org>
91074         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
91075         * modules/copy-file-tests (Files, Makefile.am): Update.
91076         * tests/test-copy-file.c (func_test_copy): Update.
91078 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
91080         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
91082 2008-05-23  Bruno Haible  <bruno@clisp.org>
91084         Improve support for ACLs on OSF/1.
91085         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
91086         Remove fallback for unknown flavors of ACLs.
91088 2008-05-22  Bruno Haible  <bruno@clisp.org>
91090         Add support for ACLs on OSF/1.
91091         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
91092         replacements.
91093         (acl_free_text): New macro fallback.
91094         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
91095         acl_free.
91096         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
91097         acl_free_text function. Require AC_C_INLINE.
91099 2008-05-22  Bruno Haible  <bruno@clisp.org>
91101         Make copy_acl work on MacOS X 10.5.
91102         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
91103         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
91104         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
91105         If MODE_INSIDE_ACL, don't assume that every system has the same text
91106         representation for ACLs as FreeBSD.
91107         * lib/copy-acl.c (copy_acl): Add support for platforms with
91108         !MODE_INSIDE_ACL.
91109         * lib/file-has-acl.c (file_has_acl): Likewise.
91110         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
91111         FreeBSD, MacOS X, or IRIX, respectively.
91113 2008-05-22  Bruno Haible  <bruno@clisp.org>
91115         * lib/acl.h: Don't include <sys/acl.h>.
91116         (GETACLCNT): Move fallback to lib/acl-internal.h.
91117         * lib/acl-internal.h: Include <sys/acl.h> here.
91118         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
91120 2008-05-22  Bruno Haible  <bruno@clisp.org>
91122         Split off copy_acl function to separate file.
91123         * lib/copy-acl.c: New file, extracted from lib/acl.c.
91124         * lib/acl.c (copy_acl): Moved function to separate file.
91125         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
91126         * modules/acl (Files): Add lib/copy-acl.c.
91127         (Makefiles.am): Augment lib_SOURCES.
91129 2008-05-22  Bruno Haible  <bruno@clisp.org>
91131         * modules/copy-file-tests: New file.
91132         * tests/test-copy-file.sh: New file.
91133         * tests/test-copy-file.c: New file.
91134         * tests/test-copy-file-sameacls.c: New file.
91136 2008-05-22  Eric Blake  <ebb9@byu.net>
91138         Avoid gcc warning.
91139         * tests/test-memcmp.c (main): Pass NULL indirectly.
91141 2008-05-21  Bruno Haible  <bruno@clisp.org>
91143         Add reference doc about ACLs.
91144         * doc/acl-resources.txt: New file.
91145         * doc/acl-cygwin.txt: New file.
91147 2008-05-21  Bruno Haible  <bruno@clisp.org>
91149         Avoid one more warning from gcc.
91150         * lib/vasnprintf.c (IF_LINT): Update comments.
91151         (VASNPRINTF): Use it also for the 'prefix' array initializer.
91153 2008-05-21  Jim Meyering  <meyering@redhat.com>
91155         avoid a warning from gcc
91156         * lib/vasnprintf.c (IF_LINT): Define.
91157         (scale10_round_decimal_long_double):
91158         Use it to avoid a "may be used uninitialized" warning.
91159         (scale10_round_decimal_double): Likewise.
91161 2008-05-21  Simon Josefsson  <simon@josefsson.org>
91163         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
91164         declared.
91166 2008-05-20  Bruno Haible  <bruno@clisp.org>
91168         * tests/test-memcmp.c (main): Test also the sign of the result. Test
91169         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
91171 2008-05-20  Simon Josefsson  <simon@josefsson.org>
91173         * modules/memcmp-tests: New file.
91174         * tests/test-memcmp.c: New file.
91176 2008-05-19  Bruno Haible  <bruno@clisp.org>
91178         * modules/propername (Notice, configure.ac): Put quoted "..." into
91179         --keyword option.
91180         * lib/propername.h: Update comments accordingly.
91181         Reported by Eric Blake.
91183 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
91185         * modules/getpass-gnu (Depends-on): Add fseeko.
91187 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91189         * modules/base64-tests: New file.
91191 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
91193         * lib/base64.c (base64_decode_ctx): If a decode context structure
91194         was passed in use it to ignore newlines.  If a context structure
91195         was _not_ passed in, continue to treat newlines as garbage (this
91196         is the historical behavior).  Formerly base64_decode.
91197         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91198         takes a decode context structure.
91199         * lib/base64.h (base64_decode): Macro for four-argument calls.
91200         (base64_decode_alloc): Likewise.
91201         * lib/base64.c (base64_decode_ctx): If a decode context structure
91202         was passed in use it to ignore newlines.  If a context structure
91203         was _not_ passed in, continue to treat newlines as garbage (this
91204         is the historical behavior).  Formerly base64_decode.
91205         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
91206         takes a decode context structure.
91207         * lib/base64.h (base64_decode): Macro for four-argument calls.
91208         (base64_decode_alloc): Likewise.
91210 2008-05-19  Jim Meyering  <meyering@redhat.com>
91212         avoid a warning from gcc
91213         * lib/trim.c (IF_LINT): Define.
91214         (trim2): Use it to avoid a "may be used uninitialized" warning.
91216         Fix doc typo.
91217         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
91219 2008-05-19  Bruno Haible  <bruno@clisp.org>
91221         * doc/glibc-functions/getpass.texi: Document limits of other
91222         implementations.
91224 2008-05-19  Simon Josefsson  <simon@josefsson.org>
91225             Bruno Haible <bruno@clisp.org>
91227         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
91229 2008-05-18  Bruno Haible  <bruno@clisp.org>
91231         * modules/propername: New file, from GNU gettext.
91232         * lib/propername.h: New file, from GNU gettext.
91233         * lib/propername.c: New file, from GNU gettext.
91234         * MODULES.html.sh (Internationalization functions): Add propername.
91236 2008-05-16  Jim Meyering  <meyering@redhat.com>
91237             Bruno Haible  <bruno@clisp.org>
91239         Avoid some warnings from "gcc -Wshadow".
91240         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
91242 2008-05-15  Eric Blake  <ebb9@byu.net>
91244         Extend previous patch to cygwin 1.7.0.
91245         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
91246         fast implementation in cygwin >= 1.7.0.
91247         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91248         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91250 2008-05-15  Bruno Haible  <bruno@clisp.org>
91252         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
91253         implementation in glibc >= 2.9.
91254         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
91255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
91257 2008-05-15  Bruno Haible  <bruno@clisp.org>
91259         * MODULES.html.sh (Internationalization functions): Remove linebreak.
91260         (Unicode string functions): Add unilbrk/*.
91261         Reported by Karl Berry.
91263 2008-05-15  Eric Blake  <ebb9@byu.net>
91265         Fix violation of <stdbool.h> replacement in regex.
91266         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
91267         * lib/regexec.c (re_search_internal): Likewise.
91268         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
91270 2008-05-15  Jim Meyering  <meyering@redhat.com>
91272         avoid distracting test output when git or cvs is not found
91273         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
91274         * tests/test-vc-list-files-git.sh: Likewise.
91276 2008-05-15  Eric Blake  <ebb9@byu.net>
91278         Glibc finally accepted the memmem speedup code, bugzilla #5514.
91279         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
91280         glibc version.
91281         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
91282         * doc/posix-functions/strstr.texi (strstr): Likewise.
91283         * lib/str-two-way.h (MAX): Sychronize with glibc.
91285 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
91287         * lib/regcomp.c (optimize_utf8): Add a note on why we test
91288         opr.ctx_type.
91289         (calc_first): Initialize constraint field.
91290         (duplicate_node_closure): Use it instead of special casing ANCHORS.
91291         Fix grammar.
91292         (duplicate_node): Merge constraint field for all node types.
91293         (calc_eclosure_iter): Look at constraint field for all node types.
91294         * lib/regex_internal.c (create_cd_newstate): Don't look at
91295         opr.ctx_type.
91297 2008-05-14  Bruno Haible  <bruno@clisp.org>
91299         Help GCC to do better code generation.
91300         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
91301         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
91302         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
91303         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
91304         Declare with attribute 'malloc' if supported.
91306 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
91308         use "echo STR|wc -c" rather than unportable "expr length STR"
91309         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
91310         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
91312 2008-05-14  Jim Meyering  <meyering@redhat.com>
91314         use dd ibs=$n count=1 ... rather than less-portable head -c$n
91315         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
91316         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
91317         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
91318         via Collin Lasse.
91320 2008-05-14  Eric Blake  <ebb9@byu.net>
91322         Avoid quadratic growth in gl_LIBSOURCES.
91323         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
91324         Suggested by Bruno Haible.
91326         Test xmemdup0.
91327         * modules/xmemdup0-tests: New file.
91328         * tests/test-xmemdup0.c: Likewise.
91330 2008-05-13  Eric Blake  <ebb9@byu.net>
91332         Split xmemdup0 into its own module.
91333         * modules/xmemdup0: New file.
91334         * lib/xmemdup0.h: Likewise.
91335         * lib/xmemdup0.c: Likewise.
91336         * MODULES.html.sh (Memory management functions): Add xmemdup0.
91337         * lib/xalloc.h (xmemdup0): Remove.
91338         * lib/xmalloc.c (xmemdup0): Likewise.
91340 2008-05-13  Eric Blake  <ebb9@byu.net>
91341             Bruno Haible  <bruno@clisp.org>
91343         Reduce number of forks required during autoconf.
91344         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
91345         and gl_LIBSOURCES_DIR.
91346         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
91347         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
91348         m4_syscmd per file.
91349         <m4_foreach_w>: Move...
91350         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
91352 2008-05-13  Eric Blake  <ebb9@byu.net>
91354         * gnulib-tool: Fix various comment typos.
91356 2008-05-12  Bruno Haible  <bruno@clisp.org>
91358         Tailor the linebreaking algorithm.
91359         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
91361 2008-05-12  Bruno Haible  <bruno@clisp.org>
91363         Update to Unicode 5.0.0.
91364         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91365         LBP_JV, LBP_JT. Redistribute values.
91366         (unilbrk_table): Change size.
91367         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
91368         Unicode TR#14 rev. 22.
91369         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
91370         LBP_JV, LBP_JT. Redistribute values.
91371         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
91372         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
91373         Update.
91374         * lib/unilbrk/lbrkprop1.h: Regenerated.
91375         * lib/unilbrk/lbrkprop2.h: Regenerated.
91376         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
91377         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
91378         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
91379         Likewise.
91380         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
91381         Likewise.
91382         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
91383         result.
91384         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
91385         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
91386         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
91387         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
91388         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
91389         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
91391 2008-05-11  Bruno Haible  <bruno@clisp.org>
91393         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
91395 2008-05-11  Bruno Haible  <bruno@clisp.org>
91397         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
91398         * modules/unilbrk/gen-lbrk: New file.
91400 2008-05-11  Bruno Haible  <bruno@clisp.org>
91402         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
91403         * m4/sha512.m4 (gl_SHA512): Likewise.
91405 2008-05-11  Jim Meyering  <meyering@redhat.com>
91407         New modules: crypto/sha256, crypto/sha512 (from coreutils)
91408         * modules/crypto/sha256: New file.
91409         * modules/crypto/sha512: Likewise.
91410         * lib/sha256.c: Likewise.
91411         * lib/sha256.h: Likewise.
91412         * lib/sha512.c: Likewise.
91413         * lib/sha512.h: Likewise.
91414         * lib/u64.h: Likewise.
91415         * m4/sha256.m4: Likewise.
91416         * m4/sha512.m4: Likewise.
91417         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
91419 2008-05-10  Bruno Haible  <bruno@clisp.org>
91421         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
91422         (Input/Output <stdio.h>): Add xprintf.
91423         (Signal handling <signal.h>): Add strsignal.
91424         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
91425         (Core language properties): Add func.
91426         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
91427         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
91428         strings.
91429         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
91430         (Input/output): New section.
91431         (File system functions): Add openat-die, stat-macros.
91432         (Networking functions): Add sockets.
91433         (Unicode string functions): Add unictype/*.
91434         (Support for building libraries and executables): Add gperf.
91435         (Support for building documentation): Add agpl-3.0.
91436         (Misc): Add nocrash.
91438 2008-05-10  Bruno Haible  <bruno@clisp.org>
91440         * modules/unictype/gen-ctype: New file.
91442 2008-05-10  Jim Meyering  <meyering@redhat.com>
91444         Make chdir-safer.c more efficient on a system with no symlinks.
91445         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
91446         also if ELOOP is zero.  Suggested by Bruno Haible.
91448         Make chdir-safer.c slightly safer.
91449         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
91450         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
91452         Avoid compile failure on systems without ELOOP (like mingw).
91453         * lib/chdir-safer.c (ELOOP): Define if not already defined.
91454         Reported by Bruno Haible.
91456 2008-05-10  Bruno Haible  <bruno@clisp.org>
91458         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
91459         (is_utf8_encoding): Use a case-insensitive comparison.
91460         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
91461         streq.
91463 2008-05-10  Bruno Haible  <bruno@clisp.org>
91465         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
91466         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
91467         * lib/unilbrk/ulc-common.h (iconv_string_length,
91468         iconv_string_keeping_offsets): Remove declarations.
91469         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
91470         Don't include <iconv.h>, streq.h, xsize.h.
91471         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
91472         conversion.
91473         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
91474         <iconv.h>, streq.h, xsize.h.
91475         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
91476         conversion.
91477         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
91478         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
91479         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
91480         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
91482 2008-05-10  Bruno Haible  <bruno@clisp.org>
91484         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
91485         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
91487         * modules/unilbrk/u32-width-linebreaks-tests: New file.
91488         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
91490         * modules/unilbrk/u16-width-linebreaks-tests: New file.
91491         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
91493         * modules/unilbrk/u8-width-linebreaks-tests: New file.
91494         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
91496         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
91497         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
91499         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
91500         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
91502         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
91503         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
91505         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
91506         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
91508 2008-05-10  Bruno Haible  <bruno@clisp.org>
91510         Split up 'linebreak' module.
91511         * lib/unilbrk.h: New file, based on lib/linebreak.h.
91512         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
91513         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
91514         modifications.
91515         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
91516         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
91517         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
91518         lib/linebreak.c.
91519         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
91520         lib/linebreak.c.
91521         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
91522         lib/linebreak.c.
91523         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
91524         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
91525         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
91526         lib/linebreak.c.
91527         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
91528         lib/linebreak.c.
91529         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
91530         lib/linebreak.c.
91531         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
91532         lib/linebreak.c.
91533         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
91534         lib/linebreak.c.
91535         * modules/unilbrk/base: New file.
91536         * modules/unilbrk/tables: New file.
91537         * modules/unilbrk/u8-possible-linebreaks: New file.
91538         * modules/unilbrk/u16-possible-linebreaks: New file.
91539         * modules/unilbrk/u32-possible-linebreaks: New file.
91540         * modules/unilbrk/ulc-common: New file.
91541         * modules/unilbrk/ulc-possible-linebreaks: New file.
91542         * modules/unilbrk/u8-width-linebreaks: New file.
91543         * modules/unilbrk/u16-width-linebreaks: New file.
91544         * modules/unilbrk/u32-width-linebreaks: New file.
91545         * modules/unilbrk/ulc-width-linebreaks: New file.
91546         * lib/linebreak.h: Remove file.
91547         * lib/linebreak.c: Remove file.
91548         * m4/linebreak.m4: Remove file.
91549         * modules/linebreak: Remove file.
91550         * NEWS: Mention the changes.
91552 2008-05-09  Eric Blake  <ebb9@byu.net>
91554         Add xmemdup0.
91555         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
91556         implementation.
91557         * lib/xmalloc.c (xmemdup0): New C implementation.
91559 2008-05-08  Bruno Haible  <bruno@clisp.org>
91561         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
91563 2008-05-07  Eric Blake  <ebb9@byu.net>
91565         Support cross-compilation of <wctype.h>.
91566         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
91567         AC_CACHE_CHECK.
91569 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
91571         * build-aux/vc-list-files: Add support for bzr.
91573 2008-05-03  Jim Meyering  <meyering@redhat.com>
91575         avoid failed assertion with tight malloc
91576         * tests/test-getndelim2.c: Correct an off-by-one assertion.
91578 2008-05-03  Simon Josefsson  <simon@josefsson.org>
91580         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
91581         are needed from arpa/inet.h.
91582         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
91583         Reported by Bruno Haible.
91585 2008-05-02  Jim Meyering  <meyering@redhat.com>
91587         avoid compilation error on FreeBSD 6
91588         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
91590 2008-05-01  Jim Meyering  <meyering@redhat.com>
91592         useless-if-before-free: correct --help's exit status description
91593         * build-aux/useless-if-before-free (usage): Like grep, exit 0
91594         for one or more matches, etc.  Reported by Bruno Haible.
91596         vc-list-files: make the stand-alone gnulib test work
91597         * modules/vc-list-files-tests (configure.ac):
91598         Define and AC_SUBST abs_aux_dir.
91599         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
91600         $(abs_top_srcdir) to each script and having each of them
91601         duplicate the work of setting PATH, set PATH here, using
91602         the new variable, abs_aux_dir instead.
91603         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
91604         * tests/test-vc-list-files-git.sh: Likewise.
91605         Reported by Bruno Haible.
91607 2008-05-01  Bruno Haible  <bruno@clisp.org>
91609         * lib/getndelim2.c (getndelim2): Fix newsize computation during
91610         reallocation. Rename 'done' to 'found_delimiter'.
91612 2008-05-01  Jim Meyering  <meyering@redhat.com>
91614         vc-list-files: accommodate /bin/sh like the one from Solaris 10
91615         * build-aux/vc-list-files: Use `...`, not $(...).
91617 2008-04-30  Jim Meyering  <meyering@redhat.com>
91619         add tests for vc-list-files
91620         * modules/vc-list-files-tests: New module.
91621         * tests/test-vc-list-files-cvs.sh: New file.
91622         * tests/test-vc-list-files-git.sh: New file.
91624         avoid a warning from gcc
91625         * lib/getndelim2.c (IF_LINT): Define.
91626         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
91628         vc-list-files: work properly with build-aux/cvsu, too
91629         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
91630         to all cvs-based clauses.
91632         vc-list-files: work properly in the CVS+awk case, too
91633         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
91635         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
91636         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
91637         take more than one file argument, so .  Add quotes, just in case $dir
91638         ever contains a shell meta-character.  Prompted by Soren Hansen in
91639         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
91641 2008-04-29  Eric Blake  <ebb9@byu.net>
91643         Optimize getndelim2 to use block operations when possible.
91644         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
91645         freadseek, and memchr2.
91646         * lib/getndelim2.c (getndelim2): Use them for block reads.
91648 2008-04-29  Bruno Haible  <bruno@clisp.org>
91650         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
91651         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91652         * modules/inet_ntop (Depends-on): Add extensions.
91653         * modules/inet_pton (Depends-on): Likewise.
91654         Reported by Simon Josefsson.
91656 2008-04-29  Jim Meyering  <meyering@redhat.com>
91658         When the is more than one match in a block, match all of them.
91659         * build-aux/useless-if-before-free: Iterate through each block
91660         until there are no more matches.
91662         Fix broken useless-if-before-free script.
91663         * build-aux/useless-if-before-free: Fix typo: missing "?" after
91664         the expression to match cast of argument to free-like function.
91666 2008-04-29  Eric Blake  <ebb9@byu.net>
91668         Use new header.
91669         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
91671 2008-04-29  Jim Meyering  <meyering@redhat.com>
91673         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
91674         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
91675         by gnulib to exist and to declare e.g., inet_ntop.
91676         Don't include "inet_ntop.h", now removed.
91678         * m4/arpa_inet_h.m4: Remove trailing blanks.
91680 2008-04-29  Eric Blake  <ebb9@byu.net>
91682         Silence valgrind on safe reads beyond potential array bounds.
91683         * lib/rawmemchr.valgrind: New file.
91684         * lib/strchrnul.valgrind: Likewise.
91685         * modules/rawmemchr (Files): Distribute new file.
91686         * modules/strchrnul (Files): Likewise.
91687         Suggested by Bruno Haible.
91689 2008-04-29  Bruno Haible  <bruno@clisp.org>
91691         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
91692         (inet_ntop, inet_pton): Change portability warning's wording.
91693         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
91694         Invoke gl_CHECK_NEXT_HEADERS.
91695         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
91696         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
91697         set ARPA_INET_H.
91698         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91699         * modules/arpa_inet (Description): No longer only for systems that
91700         lack it.
91701         (Depends-on): Add include_next.
91702         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
91703         HAVE_ARPA_INET_H.
91705 2008-04-29  Jim Meyering  <meyering@redhat.com>
91707         * modules/mkdir (License): Re-license as LGPLv2+.
91709 2008-04-29  Bruno Haible  <bruno@clisp.org>
91711         * modules/rawmemchr (Maintainer): Set to Eric.
91712         * modules/strchrnul (Maintainer): Likewise.
91714 2008-04-29  Simon Josefsson  <simon@josefsson.org>
91716         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
91717         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
91719         * modules/arpa_inet (arpa/inet.h): Use them.
91721 2008-04-28  Eric Blake  <ebb9@byu.net>
91723         Test getndelim2.
91724         * modules/getndelim2-tests: New file.
91725         * tests/test-getndelim2.c: Likewise.
91726         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
91727         stream.
91728         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
91730         * MODULES.html.sh: Document new module.
91732 2008-04-20  Bruno Haible  <bruno@clisp.org>
91734         * lib/c-stack.c (die): Use raise.
91735         * modules/c-stack (Depends-on): Add raise.
91737 2008-04-28  Bruno Haible  <bruno@clisp.org>
91739         Expect rpmatch to be declared.
91740         * lib/yesno.c (rpmatch): Remove declaration.
91742         Declare rpmatch.
91743         * lib/stdlib.in.h (rpmatch): New declaration.
91744         * lib/rpmatch.c: Include <stdlib.h> first.
91745         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
91746         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
91747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
91748         HAVE_RPMATCH.
91749         * modules/rpmatch (Depends-on): Add stdlib, extensions.
91750         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
91751         (Include): Set to <stdlib.h>.
91752         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
91753         HAVE_RPMATCH.
91754         * NEWS: Document the change.
91756 2008-04-28  Bruno Haible  <bruno@clisp.org>
91758         Change rpmatch to use nl_langinfo when appropriate.
91759         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
91760         (N_): New macro.
91761         (localized_pattern): New function/macro.
91762         (try): Remove match, nomatch arguments. Copy the pattern into safe
91763         memory before caching it.
91764         (rpmatch): Use localized_pattern. Add translator comments.
91765         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
91766         Suggested by Eric Blake.
91767         * modules/rpmatch (Depends-on): Add stdbool.
91769 2008-04-28  Eric Blake  <ebb9@byu.net>
91771         Add rawmemchr module, matching glibc.
91772         * modules/string (Makefile.am): New indicator.
91773         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
91774         * lib/string.in.h (rawmemchr): Declare when appropriate.
91775         * modules/rawmemchr: New file.
91776         * m4/rawmemchr.m4: Likewise.
91777         * lib/rawmemchr.c: Likewise.
91778         * modules/rawmemchr-tests: Likewise.
91779         * tests/test-rawmemchr.c: Likewise.
91780         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
91781         module.
91782         * modules/strchrnul (Depends-on): Add rawmemchr.
91783         * lib/strchrnul.c (strchrnul): Optimize a corner case.
91785         Whitespace cleanup.
91786         * tests/test-strchrnul.c: Reindent.
91787         * lib/strchrnul.c: Likewise.
91789         Optimize and test strchrnul.
91790         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
91791         * modules/strchrnul-tests: New file.
91792         * tests/test-strchrnul.c: Likewise.
91794         Remove intprops dependency.
91795         * modules/memchr (Depends-on): Remove intprops.
91796         * modules/memrchr (Depends-on): Likewise.
91797         * modules/memchr2 (Depends-on): Likewise.
91798         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
91799         * lib/memrchr.c (__memrchr): Likewise.
91800         * lib/memrchr2.c (memchr2): Likewise.
91801         Reported by Simon Josefsson.
91803 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91805         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
91806         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91808 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91810         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
91812         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
91814         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
91816         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
91817         declarations.
91818         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
91820         * m4/inet_pton.m4: Don't check for header files.
91822         * m4/inet_ntop.m4: Don't check for header files.
91824 2008-04-28  Simon Josefsson  <simon@josefsson.org>
91826         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
91827         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
91828         trigger for cygwin).
91829         Reported by Bruno Haible  <bruno@clisp.org>.
91831 2008-04-28  Bruno Haible  <bruno@clisp.org>
91833         * doc/posix-functions/strdup.texi: Mention mingw problem.
91835 2008-04-27  Bruno Haible  <bruno@clisp.org>
91837         * modules/stat-time-tests (Depends-on): Add sleep.
91838         * tests/test-stat-time.c (force_unlink): New function.
91839         (cleanup): Use it.
91840         (test_mtime): Remove the ctime related tests.
91841         (test_ctime): New function, containing the ctime related tests.
91842         (main): Call test_ctime, except on native Windows platforms.
91844 2008-04-27  Bruno Haible  <bruno@clisp.org>
91846         * lib/rpmatch.c (rpmatch): Add some comments.
91847         Reported by James Youngman <jay@gnu.org>.
91849 2008-04-27  Bruno Haible  <bruno@clisp.org>
91851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
91852         quiet NaNs.
91854 2008-04-27  Bruno Haible  <bruno@clisp.org>
91856         Make test-yesno.sh work on mingw.
91857         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
91858         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
91859         (main): Set stdin to binary mode.
91860         * modules/yesno-tests (Depends-on): Add binary-io.
91862 2008-04-27  Bruno Haible  <bruno@clisp.org>
91864         Fix 'isfinite' on x86, x86_64, ia64 platforms.
91865         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
91866         argument that lie outside the IEEE 854 domain.
91867         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
91868         (gl_ISFINITE): Use it.
91869         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
91871 2008-04-27  Bruno Haible  <bruno@clisp.org>
91873         Allow local renaming in config.h.
91874         * lib/memrchr.c (memrchr): Don't undefine outside libc.
91876 2008-04-27  Bruno Haible  <bruno@clisp.org>
91878         * lib/memchr.c (__memchr): Change type of 'i'.
91879         * lib/memchr2.c (memchr2): Likewise.
91881 2008-04-26  Eric Blake  <ebb9@byu.net>
91882         and Bruno Haible  <bruno@clisp.org>
91884         Optimize and test memrchr.
91885         * modules/memrchr (Depends-on): Add intprops.
91886         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
91887         * modules/memrchr-tests: New file.
91888         * tests/test-memrchr.c: New file.
91890 2008-04-26  Bruno Haible  <bruno@clisp.org>
91892         Add tentative support for DragonFly BSD.
91893         * lib/stdio-impl.h: Add macros for DragonFly BSD.
91894         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
91895         fp.
91896         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91897         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
91898         * lib/fpurge.c (fpurge): Likewise.
91899         * lib/freadable.c (freaadable): Likewise.
91900         * lib/freadahead.c (freadahead): Likewise.
91901         * lib/freading.c (freading): Likewise.
91902         * lib/freadptr.c (freadptr): Likewise.
91903         * lib/freadseek.c (freadptrinc): Likewise.
91904         * lib/fseeko.c (fseeko): Likewise.
91905         * lib/fseterr.c (fseterr): Likewise.
91906         * lib/fwritable.c (fwritable): Likewise.
91907         * lib/fwriting.c (fwriting): Likewise.
91909 2008-04-26  Bruno Haible  <bruno@clisp.org>
91911         * lib/stdio-impl.h: New file.
91912         * lib/fbufmode.c: Include stdio-impl.h.
91913         (fbufmode): Use fp_, remove redundant #defines.
91914         * lib/fflush.c: Include stdio-impl.h.
91915         (clear_ungetc_buffer): Remove redundant #defines.
91916         * lib/fpurge.c: Include stdio-impl.h.
91917         (fpurge): Remove redundant #defines.
91918         * lib/freadable.c: Include stdio-impl.h.
91919         (freadable): Remove redundant #defines.
91920         * lib/freadahead.c: Include stdio-impl.h.
91921         (freadahead): Remove redundant #defines.
91922         * lib/freading.c: Include stdio-impl.h.
91923         (freading): Remove redundant #defines.
91924         * lib/freadptr.c: Include stdio-impl.h.
91925         (freadptr): Remove redundant #defines.
91926         * lib/freadseek.c: Include stdio-impl.h.
91927         (freadptrinc): Remove redundant #defines.
91928         * lib/fseeko.c: Include stdio-impl.h.
91929         (rpl_fseeko): Remove redundant #defines.
91930         * lib/fseterr.c: Include stdio-impl.h.
91931         (fseterr): Remove redundant #defines.
91932         * lib/fwritable.c: Include stdio-impl.h.
91933         (fwritable: Remove redundant #defines.
91934         * lib/fwriting.c: Include stdio-impl.h.
91935         (fwriting): Remove redundant #defines.
91936         * modules/fbufmode (Files): Add lib/stdio-impl.h.
91937         * modules/fflush (Files): Likewise.
91938         * modules/fpurge (Files): Likewise.
91939         * modules/freadable (Files): Likewise.
91940         * modules/freadahead (Files): Likewise.
91941         * modules/freading (Files): Likewise.
91942         * modules/freadptr (Files): Likewise.
91943         * modules/freadseek (Files): Likewise.
91944         * modules/fseeko (Files): Likewise.
91945         * modules/fseterr (Files): Likewise.
91946         * modules/fwritable (Files): Likewise.
91947         * modules/fwriting (Files): Likewise.
91949 2008-04-26  Bruno Haible  <bruno@clisp.org>
91951         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
91952         restore_seek_optimization, update_fpos_cache): New functions, extracted
91953         from rpl_fflush.
91954         (rpl_fflush): Use them.
91955         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
91956         (gl_REPLACE_FFLUSH): Use it.
91958 2008-04-26  Bruno Haible  <bruno@clisp.org>
91960         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
91961         on Solaris.
91962         * tests/test-xstrtoimax.sh: Likewise.
91963         * tests/test-xstrtoumax.sh: Likewise.
91964         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
91966 2008-04-26  Bruno Haible  <bruno@clisp.org>
91968         * modules/memchr-tests: New file.
91969         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
91971 2008-04-26  Eric Blake  <ebb9@byu.net>
91972             Bruno Haible  <bruno@clisp.org>
91974         * lib/memchr.c: Include intprops.h.
91975         (__memchr): Optimize parallel detection of matching bytes. Rename local
91976         variables. Add explanatory comments.
91978 2008-04-26  Bruno Haible  <bruno@clisp.org>
91980         Fix module 'memchr', broken since 2000-10-28.
91981         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
91983 2008-04-26  Bruno Haible  <bruno@clisp.org>
91985         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
91986         comments.
91988 2008-04-25  Eric Blake  <ebb9@byu.net>
91990         Use native fstatat on cygwin 1.7.0.
91991         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
91992         first.
91994 2008-04-23  Eric Blake  <ebb9@byu.net>
91996         Improve memchr2 performance.
91997         * lib/memchr2.c (memchr2): Further optimize parallel detection of
91998         NUL bytes.
91999         * modules/memchr2 (Depends-on): Use intprops.h.
92001 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92003         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
92004         an inline function instead of a CPP macro.  Patch by Ben Pfaff
92005         <blp@cs.stanford.edu>.
92007 2008-04-23  Simon Josefsson  <simon@josefsson.org>
92009         * lib/arpa_inet.in.h: New file.
92011         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
92012         (Makefile.am): Sed in substitute header file.
92014         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
92015         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
92017         * modules/inet_ntop (configure.ac): Use
92018         gl_ARPA_INET_MODULE_INDICATOR.
92020         * modules/inet_pton (configure.ac): Use
92021         gl_ARPA_INET_MODULE_INDICATOR.
92023 2008-04-22  Jim Meyering  <meyering@redhat.com>
92025         * modules/verify (License): Re-license as LGPLv2+.
92027 2008-04-22  Simon Josefsson  <simon@josefsson.org>
92029         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
92030         parameter to void* as per POSIX standard (MinGW uses char*).
92032 2008-04-21  Bruno Haible  <bruno@clisp.org>
92034         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
92035         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
92036         Define to replacements if REPLACE_ISWCNTRL is 1.
92037         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
92038         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
92039         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
92040         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
92041         what it fixes.
92042         * doc/posix-functions/iswalpha.texi: Likewise.
92043         * doc/posix-functions/iswblank.texi: Likewise.
92044         * doc/posix-functions/iswcntrl.texi: Likewise.
92045         * doc/posix-functions/iswdigit.texi: Likewise.
92046         * doc/posix-functions/iswgraph.texi: Likewise.
92047         * doc/posix-functions/iswlower.texi: Likewise.
92048         * doc/posix-functions/iswprint.texi: Likewise.
92049         * doc/posix-functions/iswpunct.texi: Likewise.
92050         * doc/posix-functions/iswspace.texi: Likewise.
92051         * doc/posix-functions/iswupper.texi: Likewise.
92052         * doc/posix-functions/iswxdigit.texi: Likewise.
92053         Reported by Alain Guibert.
92055 2008-04-21  Bruno Haible  <bruno@clisp.org>
92057         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
92058         Patch by Alain Guibert.
92060 2008-04-21  Bruno Haible  <bruno@clisp.org>
92062         Fix test failures on mingw.
92063         * tests/test-xstrtol.c (print_no_progname): New function.
92064         (main): Install it in error_print_progname hook.
92065         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
92066         * tests/test-xstrtoimax.sh: Likewise.
92067         * tests/test-xstrtoumax.sh: Likewise.
92069 2008-04-21  Bruno Haible  <bruno@clisp.org>
92071         Fix test failure on mingw.
92072         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
92074 2008-04-21  Bruno Haible  <bruno@clisp.org>
92076         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
92077         Actually assign a value.
92079 2008-04-20  Bruno Haible  <bruno@clisp.org>
92081         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
92082         take 2.
92083         * lib/canonicalize.c (canonicalize_file_name): Elide if the
92084         'canonicalize-lgpl' module is also used.
92085         * lib/canonicalize-lgpl.c: Undo last change.
92086         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
92088 2008-04-20  Bruno Haible  <bruno@clisp.org>
92090         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
92091         config.h. Provide _mkdir based fallback for mingw.
92092         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
92093         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
92094         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
92095         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
92096         rather than defining mkdir in config.h.
92097         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
92098         (gl_SYS_STAT_H_DEFAULTS): New macro.
92099         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
92100         HAVE_IO_H any more.
92101         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
92102         HAVE_DECL_MKDIR and HAVE_IO_H.
92104 2008-04-20  Bruno Haible  <bruno@clisp.org>
92106         * lib/isapipe.c: Port to native Windows platforms.
92108 2008-04-20  Bruno Haible  <bruno@clisp.org>
92110         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
92112 2008-04-21  Eric Blake  <ebb9@byu.net>
92114         Work around preprocessors that don't handle UINTMAX_MAX.
92115         * lib/memchr2.c (memchr2): Avoid embedded #if.
92116         Reported by Alain Guibert, fix suggested by Bruno Haible.
92118 2008-04-21  Simon Josefsson  <simon@josefsson.org>
92120         * doc/posix-functions/strftime.texi (strftime): Explain better
92121         Windows incompatibility.  Suggested by Micah Cowan
92122         <micah@cowan.name>.
92124 2008-04-20  Bruno Haible  <bruno@clisp.org>
92126         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
92127         unistr/u8-mblen.
92129 2008-04-20  Bruno Haible  <bruno@clisp.org>
92131         Fix test failure on platforms with non-GNU iconv.
92132         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
92133         (U_TO_U8): Use it, rather than u16_to_u8.
92134         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
92135         units at the end of the input string.
92136         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
92138 2008-04-20  Bruno Haible  <bruno@clisp.org>
92140         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
92141         when the resulting length is 0.
92142         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
92144 2008-04-20  Bruno Haible  <bruno@clisp.org>
92146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
92147         works.
92148         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
92150 2008-04-20  Bruno Haible  <bruno@clisp.org>
92152         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
92153         * modules/tsearch-tests (configure.ac): Test for initstate function.
92155 2008-04-20  Bruno Haible  <bruno@clisp.org>
92157         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
92158         for nlink_t if missing.
92159         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
92161 2008-04-19  Bruno Haible  <bruno@clisp.org>
92163         Work around snprintf bug on Linux libc5.
92164         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
92165         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
92166         gl_SNPRINTF_SIZE1.
92167         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
92168         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
92169         that test failed.
92170         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
92171         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
92172         * modules/snprintf (Files): Add m4/printf.m4.
92173         * modules/vsnprintf (Files): Likewise.
92174         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
92175         * doc/posix-functions/vsnprintf.texi: Likewise.
92177 2008-04-19  Bruno Haible  <bruno@clisp.org>
92179         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
92180         from 0.0058 to less than 10^-7.
92182 2008-04-19  Bruno Haible  <bruno@clisp.org>
92184         Fix rounding when a precision is given.
92185         * lib/vasnprintf.c (is_borderline): New function.
92186         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
92187         9...9x.
92188         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
92189         %e, %g.
92190         * tests/test-vasprintf-posix.c (test_function): Likewise.
92191         * tests/test-snprintf-posix.h (test_function): Likewise.
92192         * tests/test-sprintf-posix.h (test_function): Likewise.
92193         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
92194         * tests/test-printf-posix.h (test_function): Likewise.
92195         * tests/test-printf-posix.output: Update.
92196         Reported by John Darrington <john@darrington.wattle.id.au> via
92197         Ben Pfaff <blp@cs.stanford.edu>.
92199 2008-04-18  Simon Josefsson  <simon@josefsson.org>
92201         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
92202         Suggested by Bruno Haible <bruno@clisp.org>.
92204 2008-04-17  Bruno Haible  <bruno@clisp.org>
92206         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
92207         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
92208         implementation.
92209         Patch by Bruce Merry <bmerry@gmail.com>.
92211 2008-04-17  Simon Josefsson  <simon@josefsson.org>
92213         * doc/posix-functions/strftime.texi (strftime): Mention that %e
92214         doesn't work under Windows.
92216 2008-04-16  Bruno Haible  <bruno@clisp.org>
92218         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
92219         New macros.
92220         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
92221         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
92222         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
92223         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
92224         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
92225         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
92226         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
92227         macros.
92228         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
92229         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
92230         Northern Sotho, Uighur.
92232 2008-04-16  Bruno Haible  <bruno@clisp.org>
92234         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
92235         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
92236         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
92237         Reported by Daniel Bergström <daniel@octocode.com>.
92239 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
92240             Bruno Haible  <bruno@clisp.org>
92242         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
92243         function.
92244         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
92245         New functions, mostly extracted from gl_locale_name_default.
92246         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
92248 2008-04-16  Eric Blake  <ebb9@byu.net>
92250         Adjust strtod detection to catch glibc 2.7 bug.
92251         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
92252         Reported by John Gatewood Ham.
92254 2008-04-16  Bruno Haible  <bruno@clisp.org>
92256         Add tentative support for Linux libc5.
92257         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
92258         * lib/fpurge.c (fpurge): Likewise.
92259         * lib/freadable.c (freadable): Likewise.
92260         * lib/freadahead.c (freadahead): Likewise.
92261         * lib/freading.c (freading): Likewise.
92262         * lib/freadptr.c (freadptr): Likewise.
92263         * lib/freadseek.c (freadptrinc): Likewise.
92264         * lib/fseeko.c (rpl_fseeko): Likewise.
92265         * lib/fseterr.c (fseterr): Likewise.
92266         * lib/fwritable.c (fwritable): Likewise.
92267         * lib/fwriting.c (fwriting): Likewise.
92268         Reported by Alain Guibert <alguibert+bts@free.fr>.
92270 2008-04-15  Bruno Haible  <bruno@clisp.org>
92272         * modules/mathl (configure.ac): Define module indicator.
92274 2008-04-15  Bruno Haible  <bruno@clisp.org>
92276         * lib/logl.c (logl): Remove unused variables.
92278 2008-04-15  Bruno Haible  <bruno@clisp.org>
92280         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
92281         fails.
92283 2008-04-15  Bruno Haible  <bruno@clisp.org>
92285         * lib/trim.c (trim2): Fix argument of isspace() macro.
92287 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
92289         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
92290         to 0.
92291         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
92293 2008-04-14  Bruno Haible  <bruno@clisp.org>
92295         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
92296         AC_LANG_PROGRAM argument.
92297         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
92298         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
92299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
92300         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
92301         * m4/math_h.m4 (gl_MATH_H): Likewise.
92302         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
92303         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92304         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
92305         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
92306         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
92307         * m4/regex.m4 (gl_REGEX): Likewise.
92308         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
92309         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
92310         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
92312         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
92313         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
92314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
92315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
92317 2008-04-14  Jim Meyering  <meyering@redhat.com>
92319         test-strtod: fix typos: s/abs/fabs/
92320         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
92322 2008-04-13  Bruno Haible  <bruno@clisp.org>
92324         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
92325         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
92326         module is also used and while not building the reloc-wrapper.
92328 2008-04-13  Bruno Haible  <bruno@clisp.org>
92330         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
92332 2008-04-13  Bruno Haible  <bruno@clisp.org>
92334         Fix AIX compilation failure introduced on 2008-04-02.
92335         * tests/test-frexp.c (exp): Undefine before redefining.
92336         * tests/test-frexpl.c (exp): Likewise.
92338 2008-04-13  Bruno Haible  <bruno@clisp.org>
92340         Work around a HP-UX stdio bug.
92341         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
92342         * tests/test-ftello.c (main): Likewise.
92343         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
92344         * doc/posix-functions/ftello.texi: Likewise.
92346 2008-04-13  Bruno Haible  <bruno@clisp.org>
92348         Make test-signbit pass on HP-UX/hppa.
92349         * tests/test-signbit.c (minus_zerol): New variable.
92350         (test_signbitl): Use it.
92352 2008-04-13  Bruno Haible  <bruno@clisp.org>
92354         Make truncl work on OSF/1 4.0.
92355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
92356         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92357         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
92358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
92359         HAVE_DECL_TRUNCL.
92360         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
92361         HAVE_DECL_TRUNCL.
92362         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
92364 2008-04-13  Bruno Haible  <bruno@clisp.org>
92366         * lib/unictype.h: Remove trailing comma from enumeration definitions.
92368 2008-04-13  Bruno Haible  <bruno@clisp.org>
92370         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
92371         expression, so as to avoid HP-UX 11 cc compiler bug.
92373 2008-04-13  Bruno Haible  <bruno@clisp.org>
92375         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
92377 2008-04-13  Bruno Haible  <bruno@clisp.org>
92379         * lib/git-merge-changelog.c: Remove empty declaration outside of
92380         functions.
92382 2008-04-13  Bruno Haible  <bruno@clisp.org>
92384         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
92386 2008-04-13  Bruno Haible  <bruno@clisp.org>
92388         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
92389         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
92390         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
92391         also if it exists but lacks definitions of the SHUT_* macros.
92392         * modules/sys_socket (Description): Update.
92393         Reported by Elbert Pol <e.pol@chello.nl>.
92395 2008-04-13  Bruno Haible  <bruno@clisp.org>
92397         * lib/localcharset.c (OS2): Don't redefine if already defined.
92398         Reported by Elbert Pol <e.pol@chello.nl>.
92400 2008-04-13  Bruno Haible  <bruno@clisp.org>
92402         * lib/binary-io.h [__EMX__]: Include <io.h>.
92403         Reported by Elbert Pol <e.pol@chello.nl>.
92405 2008-04-12  Bruno Haible  <bruno@clisp.org>
92407         * lib/fpucw.h: Enable the definitions also for x86_64.
92408         Needed for NetBSD/x86_64.
92409         Reported by Thomas Klausner <tk@giga.or.at>.
92411 2008-04-12  Bruno Haible  <bruno@clisp.org>
92413         * tests/test-strtod.c: Include isnand.h.
92414         (main): Use isnand instead of isnan.
92415         Reported by Jim Meyering.
92417 2008-04-12  Bruno Haible  <bruno@clisp.org>
92419         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
92420         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
92422 2008-04-12  Jim Meyering  <meyering@redhat.com>
92424         * m4/math_h.m4 (gl_MATH_H): Fix typos.
92426 2008-04-12  Bruno Haible  <bruno@clisp.org>
92428         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
92429         Reported by Elbert Pol <e.pol@chello.nl>.
92431 2008-04-12  Eric Blake  <ebb9@byu.net>
92433         Work around Solaris 10 math.h bug.
92434         * m4/math_h.m4 (gl_MATH_H): Check for bug.
92435         (gl_MATH_H_DEFAULTS): Set up default.
92436         * modules/math (Makefile.am): Replace new indicators.
92437         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
92438         * tests/test-math.c (main): Test this.
92439         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
92440         * doc/posix-headers/math.texi (math.h): Mention bug.
92441         Reported by Nelson H. F. Beebe and Jim Meyering.
92443 2008-04-11  Bruno Haible  <bruno@clisp.org>
92445         Adapt to future versions of Apple GCC.
92446         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
92447         Reported by Peter O'Gorman <peter@pogma.com>.
92449 2008-04-11  Bruno Haible  <bruno@clisp.org>
92451         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
92453 2008-04-11  Bruno Haible  <bruno@clisp.org>
92455         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
92457         * modules/getaddrinfo-tests (Makefile.am): Define
92458         test_getaddrinfo_LDADD.
92460 2008-04-11  Bruno Haible  <bruno@clisp.org>
92462         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
92463         (init): Fix syntax error.
92464         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
92465         is declared.
92467 2008-04-11  Bruno Haible  <bruno@clisp.org>
92469         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
92470         * modules/glob (Depends-on): Add stdbool.
92472 2008-04-11  Bruno Haible  <bruno@clisp.org>
92474         * lib/trim.c: Include <string.h>.
92476 2008-04-11  Eric Blake  <ebb9@byu.net>
92478         Avoid compile failure on OS/2.
92479         * lib/regex_internal.h (internal_function): Disable optimization
92480         on OS/2 (__EMX__), where it caused compiler error.
92481         Reported by Elbert Pol.
92483 2008-04-11  Bruno Haible  <bruno@clisp.org>
92485         Flush the standard error stream before aborting. Needed on mingw.
92486         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
92487         * tests/test-array_list.c (ASSERT): Likewise.
92488         * tests/test-array_oset.c (ASSERT): Likewise.
92489         * tests/test-avltree_list.c (ASSERT): Likewise.
92490         * tests/test-avltree_oset.c (ASSERT): Likewise.
92491         * tests/test-avltreehash_list.c (ASSERT): Likewise.
92492         * tests/test-binary-io.c (ASSERT): Likewise.
92493         * tests/test-byteswap.c (ASSERT): Likewise.
92494         * tests/test-c-ctype.c (ASSERT): Likewise.
92495         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
92496         * tests/test-c-strcasestr.c (ASSERT): Likewise.
92497         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
92498         * tests/test-c-strstr.c (ASSERT): Likewise.
92499         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
92500         * tests/test-canonicalize.c (ASSERT): Likewise.
92501         * tests/test-carray_list.c (ASSERT): Likewise.
92502         * tests/test-ceilf1.c (ASSERT): Likewise.
92503         * tests/test-ceilf2.c (ASSERT): Likewise.
92504         * tests/test-ceill.c (ASSERT): Likewise.
92505         * tests/test-count-one-bits.c (ASSERT): Likewise.
92506         * tests/test-fbufmode.c (ASSERT): Likewise.
92507         * tests/test-fflush2.c (ASSERT): Likewise.
92508         * tests/test-floorf1.c (ASSERT): Likewise.
92509         * tests/test-floorf2.c (ASSERT): Likewise.
92510         * tests/test-floorl.c (ASSERT): Likewise.
92511         * tests/test-fopen.c (ASSERT): Likewise.
92512         * tests/test-fpending.c (ASSERT): Likewise.
92513         * tests/test-fprintf-posix.c (ASSERT): Likewise.
92514         * tests/test-fpurge.c (ASSERT): Likewise.
92515         * tests/test-freadable.c (ASSERT): Likewise.
92516         * tests/test-freadahead.c (ASSERT): Likewise.
92517         * tests/test-freading.c (ASSERT): Likewise.
92518         * tests/test-freadptr.c (ASSERT): Likewise.
92519         * tests/test-freadptr2.c (ASSERT): Likewise.
92520         * tests/test-freadseek.c (ASSERT): Likewise.
92521         * tests/test-freopen.c (ASSERT): Likewise.
92522         * tests/test-frexp.c (ASSERT): Likewise.
92523         * tests/test-frexpl.c (ASSERT): Likewise.
92524         * tests/test-fseek.c (ASSERT): Likewise.
92525         * tests/test-fseeko.c (ASSERT): Likewise.
92526         * tests/test-fstrcmp.c (ASSERT): Likewise.
92527         * tests/test-ftell.c (ASSERT): Likewise.
92528         * tests/test-ftello.c (ASSERT): Likewise.
92529         * tests/test-func.c (ASSERT): Likewise.
92530         * tests/test-fwritable.c (ASSERT): Likewise.
92531         * tests/test-fwriting.c (ASSERT): Likewise.
92532         * tests/test-getdelim.c (ASSERT): Likewise.
92533         * tests/test-getline.c (ASSERT): Likewise.
92534         * tests/test-i-ring.c (ASSERT): Likewise.
92535         * tests/test-iconv-utf.c (ASSERT): Likewise.
92536         * tests/test-iconv.c (ASSERT): Likewise.
92537         * tests/test-isfinite.c (ASSERT): Likewise.
92538         * tests/test-isnand.c (ASSERT): Likewise.
92539         * tests/test-isnanf.c (ASSERT): Likewise.
92540         * tests/test-isnanl.h (ASSERT): Likewise.
92541         * tests/test-ldexpl.c (ASSERT): Likewise.
92542         * tests/test-linked_list.c (ASSERT): Likewise.
92543         * tests/test-linkedhash_list.c (ASSERT): Likewise.
92544         * tests/test-localename.c (ASSERT): Likewise.
92545         * tests/test-lseek.c (ASSERT): Likewise.
92546         * tests/test-mbscasecmp.c (ASSERT): Likewise.
92547         * tests/test-mbscasestr1.c (ASSERT): Likewise.
92548         * tests/test-mbscasestr2.c (ASSERT): Likewise.
92549         * tests/test-mbscasestr3.c (ASSERT): Likewise.
92550         * tests/test-mbscasestr4.c (ASSERT): Likewise.
92551         * tests/test-mbschr.c (ASSERT): Likewise.
92552         * tests/test-mbscspn.c (ASSERT): Likewise.
92553         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
92554         * tests/test-mbspbrk.c (ASSERT): Likewise.
92555         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
92556         * tests/test-mbsrchr.c (ASSERT): Likewise.
92557         * tests/test-mbsspn.c (ASSERT): Likewise.
92558         * tests/test-mbsstr1.c (ASSERT): Likewise.
92559         * tests/test-mbsstr2.c (ASSERT): Likewise.
92560         * tests/test-mbsstr3.c (ASSERT): Likewise.
92561         * tests/test-memchr2.c (ASSERT): Likewise.
92562         * tests/test-memmem.c (ASSERT): Likewise.
92563         * tests/test-open.c (ASSERT): Likewise.
92564         * tests/test-printf-frexp.c (ASSERT): Likewise.
92565         * tests/test-printf-frexpl.c (ASSERT): Likewise.
92566         * tests/test-printf-posix.c (ASSERT): Likewise.
92567         * tests/test-quotearg.c (ASSERT): Likewise.
92568         * tests/test-rbtree_list.c (ASSERT): Likewise.
92569         * tests/test-rbtree_oset.c (ASSERT): Likewise.
92570         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
92571         * tests/test-round1.c (ASSERT): Likewise.
92572         * tests/test-roundf1.c (ASSERT): Likewise.
92573         * tests/test-roundl.c (ASSERT): Likewise.
92574         * tests/test-signbit.c (ASSERT): Likewise.
92575         * tests/test-sleep.c (ASSERT): Likewise.
92576         * tests/test-snprintf-posix.c (ASSERT): Likewise.
92577         * tests/test-snprintf.c (ASSERT): Likewise.
92578         * tests/test-sprintf-posix.c (ASSERT): Likewise.
92579         * tests/test-stat-time.c (ASSERT): Likewise.
92580         * tests/test-strcasestr.c (ASSERT): Likewise.
92581         * tests/test-strerror.c (ASSERT): Likewise.
92582         * tests/test-striconv.c (ASSERT): Likewise.
92583         * tests/test-striconveh.c (ASSERT): Likewise.
92584         * tests/test-striconveha.c (ASSERT): Likewise.
92585         * tests/test-strsignal.c (ASSERT): Likewise.
92586         * tests/test-strstr.c (ASSERT): Likewise.
92587         * tests/test-strtod.c (ASSERT): Likewise.
92588         * tests/test-trunc1.c (ASSERT): Likewise.
92589         * tests/test-trunc2.c (ASSERT): Likewise.
92590         * tests/test-truncf1.c (ASSERT): Likewise.
92591         * tests/test-truncf2.c (ASSERT): Likewise.
92592         * tests/test-truncl.c (ASSERT): Likewise.
92593         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
92594         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
92595         * tests/test-vasnprintf.c (ASSERT): Likewise.
92596         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
92597         * tests/test-vasprintf.c (ASSERT): Likewise.
92598         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
92599         * tests/test-vprintf-posix.c (ASSERT): Likewise.
92600         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
92601         * tests/test-vsnprintf.c (ASSERT): Likewise.
92602         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
92603         * tests/test-wcwidth.c (ASSERT): Likewise.
92604         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
92605         * tests/test-xprintf-posix.c (ASSERT): Likewise.
92606         * tests/test-xvasprintf.c (ASSERT): Likewise.
92607         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
92608         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
92609         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
92610         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
92611         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
92612         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
92613         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
92614         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
92615         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
92616         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
92617         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
92618         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
92619         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
92620         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
92621         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
92622         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
92623         * tests/unictype/test-block_list.c (ASSERT): Likewise.
92624         * tests/unictype/test-block_of.c (ASSERT): Likewise.
92625         * tests/unictype/test-block_test.c (ASSERT): Likewise.
92626         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
92627         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
92628         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
92629         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
92630         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
92631         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
92632         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
92633         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
92634         * tests/unictype/test-combining.c (ASSERT): Likewise.
92635         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
92636         * tests/unictype/test-digit.c (ASSERT): Likewise.
92637         * tests/unictype/test-mirror.c (ASSERT): Likewise.
92638         * tests/unictype/test-numeric.c (ASSERT): Likewise.
92639         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
92640         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
92641         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
92642         * tests/unictype/test-scripts.c (ASSERT): Likewise.
92643         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
92644         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
92645         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
92646         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
92647         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
92648         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
92649         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
92650         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
92651         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
92652         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
92653         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
92654         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
92655         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
92656         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
92657         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
92658         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
92659         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
92660         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
92661         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
92662         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
92663         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
92664         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
92665         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
92666         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
92667         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
92668         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
92669         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
92670         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
92671         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
92672         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
92673         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
92674         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
92675         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
92676         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
92677         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
92678         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
92679         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
92680         Reported by Eric Blake.
92682 2008-04-11  Bruno Haible  <bruno@clisp.org>
92684         * lib/wchar.in.h: Tweak comment.
92686 2008-04-11  Bruno Haible  <bruno@clisp.org>
92688         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
92689         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
92690         gl_COMMON.
92691         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
92693 2008-04-11  Bruno Haible  <bruno@clisp.org>
92695         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
92697 2008-04-11  Simon Josefsson  <simon@josefsson.org>
92699         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
92700         of attempting to use non-existing /dev/*random.  Based on patch
92701         from Adam Strzelecki <ono@java.pl> in
92702         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
92704 2008-04-08  Bruno Haible  <bruno@clisp.org>
92706         Add tentative support for emx+gcc.
92707         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
92708         * lib/fpurge.c (fpurge): Likewise.
92709         * lib/freadable.c (freadable): Likewise.
92710         * lib/freadahead.c (freadahead): Likewise.
92711         * lib/freading.c (freading): Likewise.
92712         * lib/freadptr.c (freadptr): Likewise.
92713         * lib/freadseek.c (freadptrinc): Likewise.
92714         * lib/fseeko.c (rpl_fseeko): Likewise.
92715         * lib/fseterr.c (fseterr): Likewise.
92716         * lib/fwritable.c (fwritable): Likewise.
92717         * lib/fwriting.c (fwriting): Likewise.
92718         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
92720 2008-04-09  Eric Blake  <ebb9@byu.net>
92722         Avoid some autoconf warnings.
92723         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
92724         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
92725         * m4/afs.m4 (gl_AFS): Likewise.
92726         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
92727         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
92728         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
92729         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
92730         (gl_INTEGER_TYPE_SUFFIX): Likewise.
92731         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
92732         (AC_CHECK_DECLS_ONCE): Likewise.
92733         Rename file...
92734         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
92735         gnulib-tool requires autoconf 2.59 or better.
92736         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
92738 2008-04-08  Eric Blake  <ebb9@byu.net>
92740         Use 'git describe --match' if present (added in git 1.5.5).
92741         * build-aux/git-version-gen: Limit result to tags that match 'v*'
92742         if possible.
92744 2008-04-08  Bruno Haible  <bruno@clisp.org>
92746         Add tentative support for OpenServer.
92747         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
92748         _ptr, _cnt.
92749         * lib/fpurge.c (fpurge): Likewise.
92750         * lib/freadable.c (freadable): Likewise.
92751         * lib/freadahead.c (freadahead): Likewise.
92752         * lib/freading.c (freading): Likewise.
92753         * lib/freadptr.c (freadptr): Likewise.
92754         * lib/freadseek.c (freadptrinc): Likewise.
92755         * lib/fseeko.c (rpl_fseeko): Likewise.
92756         * lib/fseterr.c (fseterr): Likewise.
92757         * lib/fwritable.c (fwritable): Likewise.
92758         * lib/fwriting.c (fwriting): Likewise.
92759         Reported by Roger Cornelius <rac@tenzing.org> and
92760         Brian K. White <brian@aljex.com>.
92762 2008-04-06  Jim Meyering  <meyering@redhat.com>
92764         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
92766 2008-04-06  Bruno Haible  <bruno@clisp.org>
92768         Avoid possible error with non-ASCII bytes in UTF-8 locales.
92769         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
92770         * tests/test-printf-posix.sh: Likewise.
92771         * tests/test-vfprintf-posix.sh: Likewise.
92772         * tests/test-vprintf-posix.sh: Likewise.
92773         * tests/test-xprintf-posix.sh: Likewise.
92775 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92777         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
92778         hide error from 'ls', needed on OS/2.
92779         Report by Elbert Pol <elbert.pol@gmail.com>.
92781 2008-04-04  Eric Blake  <ebb9@byu.net>
92783         Make test-fseeko.c failures meaningful.
92784         * tests/test-fseeko.c: Print line number on failure.
92785         * tests/test-fseek.c: Likewise.
92786         Reported by Nelson H. F. Beebe.
92788         Improve strtod bug detection check.
92789         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
92790         required for Solaris 10.
92791         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
92793 2008-04-04  Bruno Haible  <bruno@clisp.org>
92795         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
92796         by m4/setenv.m4.
92798 2008-04-03  Eric Blake  <ebb9@byu.net>
92800         Ensure sane .version contents.
92801         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
92802         version string.
92803         * build-aux/git-version-gen: Improve documentation.
92805         Make GNU make output nicer.
92806         * top/GNUmakefile [!_have-Makefile]: Add dependency on
92807         MAKECMDGOALS to enforce message for all command line targets.  Set
92808         srcdir for use in maint.mk.
92810         Another maintainer tweak.
92811         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
92812         a target that regenerates version.
92814 2008-04-03  Jim Meyering  <meyering@redhat.com>
92816         vc-list-files: don't cause coreutils "make po-check" failure
92817         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
92819 2008-04-03  Eric Blake  <ebb9@byu.net>
92821         Allow VPATH usage of vc-list-files.
92822         * build-aux/vc-list-files (scriptversion): Add timestamp.
92823         (options): Add --help, --version, -C.
92824         (CVS): Support installed cvsu.
92826 2008-04-02  Bruno Haible  <bruno@clisp.org>
92828         Avoid some "statement with no effect" warnings from gcc.
92829         * tests/test-wctype.c (main): Explicitly ignore unused values.
92830         Reported by Jim Meyering.
92832 2008-04-02  Jim Meyering  <meyering@redhat.com>
92834         Avoid some warnings from "gcc -Wshadow".
92835         * tests/test-frexp.c (exp): Define to a different identifier.
92836         * tests/test-frexpl.c (exp): Likewise.
92838 2008-04-03  Jim Meyering  <meyering@redhat.com>
92840         bootstrap: remove dangling *.[ch] symlinks from lib
92841         * build-aux/bootstrap [dangling symlink removal]: Move find's
92842         -depth option to precede all others, to avoid a warning.
92843         Remove *.[ch] files too, and from "$source_base" (usually lib/).
92845 2008-04-02  Bruno Haible  <bruno@clisp.org>
92847         Avoid some warnings from "gcc -Wshadow".
92848         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
92849         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
92850         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
92851         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
92852         Reported by Jim Meyering.
92854 2008-04-01  Bruno Haible  <bruno@clisp.org>
92856         Fix test to work on IRIX 6.5 with cc.
92857         * tests/test-math.c (numeric_equal): New function.
92858         (main): Use it.
92860 2008-04-01  Bruno Haible  <bruno@clisp.org>
92862         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
92864 2008-04-01  Bruno Haible  <bruno@clisp.org>
92866         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
92867         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92868         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
92869         (Depends-on): Remove math.
92871         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
92872         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92873         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
92874         (Depends-on): Remove math.
92876         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
92877         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92878         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
92879         (Depends-on): Remove math.
92880         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
92881         (Depends-on): Remove math.
92883         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
92884         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
92885         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
92886         (Depends-on): Remove math.
92887         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
92888         (Depends-on): Remove math.
92890         * tests/test-round1.c: Include nan.h.
92891         (main): Use NaNd instead of NAN.
92892         * modules/round-tests (Files): Add tests/nan.h.
92894         * tests/test-trunc1.c: Include nan.h.
92895         (main): Use NaNd instead of NAN.
92896         * modules/trunc-tests (Files): Add tests/nan.h.
92898         * tests/test-roundf1.c: Include nan.h.
92899         (main): Use NaNf instead of NAN.
92900         * modules/roundf-tests (Files): Add tests/nan.h.
92902         * tests/test-truncf1.c: Include nan.h.
92903         (main): Use NaNf instead of NAN.
92904         * modules/truncf-tests (Files): Add tests/nan.h.
92906         * tests/test-ceilf1.c: Include nan.h.
92907         (main): Use NaNf instead of NAN.
92908         * modules/ceilf-tests (Files): Add tests/nan.h.
92910         * tests/test-floorf1.c: Include nan.h.
92911         (main): Use NaNf instead of NAN.
92912         * modules/floorf-tests (Files): Add tests/nan.h.
92914         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
92915         (main): Use NaNf instead of NAN.
92916         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
92918         * tests/test-isnand.c: Include nan.h instead of <math.h>.
92919         (main): Use NaNd instead of NAN.
92920         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
92922         * tests/test-frexp.c: Include nan.h.
92923         (main): Use NaNd instead of NAN.
92924         * modules/frexp-tests (Files): Add tests/nan.h.
92926         * lib/isnan.c: Don't include <math.h>.
92927         (FUNC): Don't use NAN macro.
92928         * modules/isnand-nolibm (Depends-on): Remove math.
92929         * modules/isnanf-nolibm (Depends-on): Remove math.
92930         * modules/isnanl (Depends-on): Remove math.
92931         * modules/isnanl-nolibm (Depends-on): Remove math.
92933         * tests/nan.h: New file.
92935 2008-04-01  Eric Blake  <ebb9@byu.net>
92937         Fix typos.
92938         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
92939         values to be the right type.
92941         For now, cater to gnulib strtod inaccuracies.
92942         * tests/test-strtod.c (main): Allow 1-ulp error on expected
92943         fractional results.  While not as nice from a QoI perspective, it
92944         is a quicker patch than correctly implementing decimal to binary
92945         rounding.
92947 2008-03-31  Eric Blake  <ebb9@byu.net>
92949         Guarantee a definition of NAN.
92950         * lib/math.in.h (NAN): Define if missing.
92951         * tests/test-math.c (main): Test it.
92952         * doc/posix-headers/math.texi (math.h): Document this.
92953         * lib/isnan.c (rpl_isnand): Use it.
92954         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
92955         * tests/test-floorf1.c (NaN): Likewise.
92956         * tests/test-frexp.c (NaN): Likewise.
92957         * tests/test-isnand.c (NaN): Likewise.
92958         * tests/test-isnanf.c (NaN): Likewise.
92959         * tests/test-round1.c (NaN): Likewise.
92960         * tests/test-roundf1.c (NaN): Likewise.
92961         * tests/test-snprintf-posix.h (NaN): Likewise.
92962         * tests/test-sprintf-posix.h (NaN): Likewise.
92963         * tests/test-trunc1.c (NaN): Likewise.
92964         * tests/test-truncf1.c (NaN): Likewise.
92965         * tests/test-vasnprintf-posix.c (NaN): Likewise.
92966         * tests/test-vasprintf-posix.c (NaN): Likewise.
92967         * modules/isnand-nolibm (Depends-on): Add math.
92968         * modules/isnanf-nolibm (Depends-on): Likewise.
92969         * modules/isnanl (Depends-on): Likewise.
92970         * modules/isnanl-nolibm (Depends-on): Likewise.
92971         * modules/snprintf-posix-tests (Depends-on): Likewise.
92972         * modules/sprintf-posix-tests (Depends-on): Likewise.
92973         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
92974         * modules/vsprintf-posix-tests (Depends-on): Likewise.
92975         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
92976         * modules/vasprintf-posix-tests (Depends-on): Likewise.
92978 2008-03-31  Bruno Haible  <bruno@clisp.org>
92980         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
92981         * doc/posix-functions/strtod.texi: Likewise.
92983 2008-03-31  Bruno Haible  <bruno@clisp.org>
92985         * tests/test-strtod.c (main): Don't use C99 syntax.
92987 2008-03-31  Bruno Haible  <bruno@clisp.org>
92989         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
92990         Reported by Eric Blake.
92992 2008-03-31  Jim Meyering  <meyering@redhat.com>
92994         Don't compare actual signbit return values.
92995         * tests/test-strtod.c (main): Rather, compare only their
92996         zero/non-zero nature.
92998 2008-03-31  Eric Blake  <ebb9@byu.net>
93000         More strtod documentation.
93001         * doc/posix-functions/strtod.texi (strtod): Interpret more test
93002         failures as distinct bugs.
93004 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
93006         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
93007         Problem reported by Erik Benada in
93008         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
93010 2008-03-30  Bruno Haible  <bruno@clisp.org>
93012         * tests/test-strtod.c: Add comments about which assertion fails on which
93013         platform.
93014         * doc/posix-functions/strtod.texi: Add info about many more platforms.
93016 2008-03-30  Eric Blake  <ebb9@byu.net>
93018         Test signbit behavior on zeros.
93019         * tests/test-signbit.c (test_signbitf): Add tests for zero.
93020         (test_signbitd, test_signbitl): Likewise.
93022         More strtod touchups.
93023         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
93024         sign of negative underflow, for now.  Use .5, not .1.
93025         * doc/posix-functions/strtod.texi (strtod): Mention these
93026         limitations.
93027         Reported by Jim Meyering.
93029 2008-03-30  Bruno Haible  <bruno@clisp.org>
93031         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
93032         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
93034 2008-03-30  Bruno Haible  <bruno@clisp.org>
93036         Avoid failure when attempting to return empty iconv results on some
93037         platforms.
93038         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
93039         allocation, don't report ENOMEM when the resulting string is empty.
93041 2008-03-30  Bruno Haible  <bruno@clisp.org>
93043         Fix buffer overrun.
93044         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
93045         Don't consider the width for tmp_length. Check count against tmp_length
93046         before doing the padding. Ensure enough allocation during padding.
93048 2008-03-30  Eric Blake  <ebb9@byu.net>
93050         strtod touchups.
93051         * lib/strtod.c (strtod): Avoid compiler warnings.
93052         Reported by Jim Meyering.
93054 2008-03-30  Bruno Haible  <bruno@clisp.org>
93056         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
93057         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
93058         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
93059         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
93060         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
93061         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
93062         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
93063         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
93065         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
93066         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
93067         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
93068         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
93069         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
93070         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
93071         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
93072         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
93074         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
93075         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
93076         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
93077         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
93078         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
93079         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
93080         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
93081         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
93083         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
93084         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
93086         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
93087         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
93089         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
93090         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
93092         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
93093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
93094         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
93096         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
93097         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
93098         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
93100         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
93101         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
93102         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
93104         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
93105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
93106         * modules/vasprintf (Depends-on): Add EOVERFLOW.
93108         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
93109         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
93110         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
93111         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
93112         (Depends-on): Add EOVERFLOW.
93113         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
93114         (Depends-on): Add EOVERFLOW.
93115         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93116         (Depends-on): Add EOVERFLOW.
93117         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
93118         (Depends-on): Add EOVERFLOW.
93119         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93120         (Depends-on): Add EOVERFLOW.
93121         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
93122         (Depends-on): Add EOVERFLOW.
93123         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93124         (Depends-on): Add EOVERFLOW.
93125         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
93126         (Depends-on): Add EOVERFLOW.
93128         * lib/sprintf.c (EOVERFLOW): Remove fallback.
93129         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
93130         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
93132         * lib/snprintf.c (EOVERFLOW): Remove fallback.
93133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
93134         * modules/snprintf (Depends-on): Add EOVERFLOW.
93136         * lib/poll.c (EOVERFLOW): Remove fallback.
93137         * modules/poll (Depends-on): Add EOVERFLOW.
93139         * lib/getugroups.c (EOVERFLOW): Remove fallback.
93140         * modules/getugroups (Depends-on): Add EOVERFLOW.
93142         * lib/getdelim.c (EOVERFLOW): Remove fallback.
93143         * modules/getdelim (Depends-on): Add EOVERFLOW.
93145         * lib/ftell.c (EOVERFLOW): Remove fallback.
93146         * modules/ftell (Depends-on): Add EOVERFLOW.
93148         * lib/fprintf.c (EOVERFLOW): Remove fallback.
93149         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
93150         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
93152         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
93154         * modules/EOVERFLOW-tests: New file.
93155         * tests/test-EOVERFLOW.c: New file.
93157         * modules/EOVERFLOW: New file.
93158         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
93160 2008-03-30  Bruno Haible  <bruno@clisp.org>
93162         Fix bug introduced on 2007-06-10.
93163         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
93164         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
93166 2008-03-30  Bruno Haible  <bruno@clisp.org>
93168         Improve freadseek's efficiency after ungetc.
93169         * lib/freadseek.c: Include freadahead.h.
93170         (freadptrinc): New function, extracted from freadseek.
93171         (freadseek): Use it in a loop. Use freadahead to determine the number
93172         of loop iterations.
93173         * modules/freadseek (Depends-on): Add freadahead.
93174         (configure.ac): Require AC_C_INLINE.
93176 2008-03-30  Bruno Haible  <bruno@clisp.org>
93178         * lib/freadseek.c (freadseek): Don't ignore the return value of
93179         freadptr.
93181 2008-03-29  Eric Blake  <ebb9@byu.net>
93183         Add hex float support.
93184         * modules/strtod (Depends-on): Add c-ctype.
93185         (Link): Mention POW_LIB.
93186         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
93187         whitespace between 'e' and exponent.
93188         * tests/test-strtod.c (main): Enable hex float tests.
93189         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
93190         now provides.
93192         Document various strtod bugs, with some fixes.
93193         * doc/posix-functions/strtod.texi (strtod): Document bugs with
93194         "-0x", "inf", "nan", and hex constants.
93195         * doc/posix-functions/atof.texi (atof): Likewise.
93196         * modules/stdlib (Makefile.am): Support strtod.
93197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
93198         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
93199         detect additional strtod bugs.
93200         * lib/stdlib.in.h (rpl_strtod): Add declarations.
93201         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
93202         bool where appropriate.  Parse 'inf' and 'nan'.
93203         * tests/test-strtod.c: New file.
93204         * modules/strtod (Depends-on): Add stdbool, stdlib.
93205         (configure.ac): Turn on module indicator.
93206         * modules/strtod-tests: New module.
93208 2008-03-29  Eric Blake  <ebb9@byu.net>
93210         Fix ftell on mingw.
93211         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
93212         * modules/ftell-tests (Depends-on): Add binary-io.
93213         * modules/ftello-tests (Depends-on): Likewise.
93214         * tests/test-ftell.c (main): Enhance test to cover behavior after
93215         ungetc.  Enforce binary mode.
93216         * tests/test-ftello.c (main): Likewise.
93218         Pass test-freadseek on cygwin.
93219         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
93220         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
93221         ungetc buffer.
93223         * tests/test-fflush2.c (main): Fix typo.
93225 2008-03-29  Bruno Haible  <bruno@clisp.org>
93227         * tests/test-fflush2.c (main): Temporarily disable the contents of
93228         this test.
93229         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
93230         Reported by Eric Blake.
93232 2008-03-28  Simon Josefsson  <simon@josefsson.org>
93234         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
93235         (GC_SHA224_DIGEST_SIZE): Add.
93237         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
93238         (gc_hash_digest_length): Likewise.
93239         (gc_hash_buffer): Likewise.
93241 2008-03-25  Bruno Haible  <bruno@clisp.org>
93243         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
93244         detail which gettext release to use.
93245         Reported by Simon Josefsson.
93247 2008-03-26  Jim Meyering  <meyering@redhat.com>
93249         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
93250         * modules/gnumakefile (clean-GNUmakefile): Also, use
93251         test ... && ... || : syntax rather than if-then ... fi.
93253         gnumakefile: Don't double-quote-expand $(VPATH) value.
93254         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
93256 2008-03-24  Eric Blake  <ebb9@byu.net>
93258         Alter GNUmakefile to install into top directory.
93259         * modules/maintainer-makefile: Split, and add dependency...
93260         * modules/gnumakefile: to this new module.
93261         * build-aux/GNUmakefile: Move...
93262         * top/GNUmakefile: ...here.
93263         * build-aux/maint.mk: Move...
93264         * top/maint.mk: ...here.
93265         * MODULES.html.sh (Support for maintaining...): Document new
93266         module.
93268 2008-03-23  Bruno Haible  <bruno@clisp.org>
93270         * gnulib-tool: New options --vc-files, --no-vc-files.
93271         (func_usage): Document them.
93272         (vc_files): New variable.
93273         (func_import): Consider vc_files.
93274         (func_create_testdir): Set vc_files to empty.
93275         Suggested by Jim Meyering and Karl Berry.
93277 2008-03-23  Bruno Haible  <bruno@clisp.org>
93279         Fix regex compilation error on HP-UX 11.
93280         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
93281         * modules/regex (Files): Add m4/mbstate_t.m4.
93282         Reported by Ton Voon <ton.voon@altinity.com>.
93284 2008-03-23  Bruno Haible  <bruno@clisp.org>
93286         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
93288 2008-03-23  Eric Blake  <ebb9@byu.net>
93289             Bruno Haible  <bruno@clisp.org>
93291         Install files from top/ in the destination directory.
93292         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
93293         augmentation also for the files from top/.
93294         (func_import, func_create_testdir): Rewrite file names:
93295         top/filename -> filename.
93297 2008-03-23  Bruno Haible  <bruno@clisp.org>
93299         Tweak "gnulib --version" output.
93300         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
93302 2008-03-23  Bruno Haible  <bruno@clisp.org>
93304         Tweak "gnulib --version" output.
93305         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
93306         rather than contents of ChangeLog, when possible.
93308 2008-03-21  Eric Blake  <ebb9@byu.net>
93310         More --version tweaks.
93311         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
93312         date of last ChangeLog entry.
93314 2008-03-21  Jim Meyering  <meyering@redhat.com>
93316         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
93318 2008-03-20  Eric Blake  <ebb9@byu.net>
93320         VPATH fix.
93321         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
93323 2008-03-20  Simon Josefsson  <simon@josefsson.org>
93325         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
93326         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
93328 2008-03-20  Eric Blake  <ebb9@byu.net>
93330         Sync GNUmakefile with coreutils.
93331         * build-aux/GNUmakefile (have-Makefile): Rename...
93332         (_have-Makefile): ...to this, for namespace consideration.
93333         (GNUmakefile.cfg): Include, if present.
93334         (_autoreconf): Define a default.
93335         (_is-dist-target): New rule for rebuilds to pick up intra-release
93336         version.
93337         (maint-cfg.mk): Rename...
93338         (cfg.mk): ...to this.
93340 2008-03-18  Jim Meyering  <meyering@redhat.com>
93342         New script and module: mktempd
93343         * MODULES.html.sh (maint+release support): Add mktempd.
93344         * build-aux/mktempd: New file.
93345         * modules/mktempd: New file.
93347 2008-03-15  Jim Meyering  <meyering@redhat.com>
93349         Undo last change.
93350         * lib/sha1.c, lib/md5.c: 63 != ~63.
93351         Reported by Andreas Schwab.
93353         sha1.c, md5.c: Hoist a redundant expression.
93354         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
93355         "ctx->buflen" only once, before calling *_process_block.
93356         * lib/md5.c (md5_process_bytes): Likewise.
93358 2008-03-14  Eric Blake  <ebb9@byu.net>
93360         Bump copyright year in files generated by gnulib-tool.
93361         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
93362         gnulib-tool, rather than hard-coding it.
93364         Fix 'gnulib-tool --version' output to work with git.
93365         * gnulib-tool (func_gnulib_dir): New function, extracted from...
93366         (startup): ...here.
93367         (func_version): Use it to invoke git-version-gen, rather than
93368         relying on CVS keyword expansion.  Modernize wording.
93369         (cvsdatestamp, last_checkin_date, version): Kill unused
93370         variables.
93372 2008-03-12  Jim Meyering  <meyering@redhat.com>
93374         Recognize optional cast of the argument to free.
93375         * build-aux/useless-if-before-free: Update regexps.
93377         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
93379 2008-03-11  Bruno Haible  <bruno@clisp.org>
93381         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
93382         by a single package.
93383         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
93384         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
93385         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
93386         Reported by Sam Steingold <sds@gnu.org>.
93388 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
93390         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
93391         repositories.
93393 2008-03-11  Bruno Haible  <bruno@clisp.org>
93395         Avoid conflicts between local macro definitions.
93396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
93397         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
93399 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
93400             Bruno Haible  <bruno@clisp.org>
93402         Make va_copy work with some version of xlc on AIX 5.1.
93403         * lib/stdarg.in.h: New file.
93404         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
93405         On AIX, use a <stdarg.h> file substitute.
93406         * modules/stdarg (Files): Add lib/stdarg.in.h.
93407         (Depends-on): Add include_next.
93408         (Makefile.am): Build a stdarg.h substitute if requested.
93409         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
93411 2008-03-10  Bruno Haible  <bruno@clisp.org>
93413         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
93414         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
93415         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93417 2008-03-10  Bruno Haible  <bruno@clisp.org>
93419         * modules/stdlib (Depends-on): Add include_next, remove
93420         absolute-header.
93422 2008-03-09  Bruno Haible  <bruno@clisp.org>
93424         * lib/freadahead.h (freadahead): Document more precisely.
93425         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
93426         the sum of both buffer sizes.
93427         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
93428         * NEWS: Document the change.
93430 2008-03-09  Bruno Haible  <bruno@clisp.org>
93432         Extend freadptr to return also the buffer size.
93433         * lib/freadptr.h (freadptr): Add sizep argument.
93434         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
93435         (freadptr): Add sizep argument. Determine buffer size like freadahead
93436         does.
93437         * tests/test-freadptr.c: Don't include freadahead.h.
93438         (main): Adapt for new calling convention of freadptr.
93439         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
93440         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
93441         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
93442         tests/test-freadptr2.sh.
93443         (Depends): Remove freadahead.
93444         (TESTS): Add test-freadptr2.sh.
93445         (check_PROGRAMS): Add test-freadptr2.
93447 2008-03-09  Bruno Haible  <bruno@clisp.org>
93449         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
93450         Report and solution by Simon Josefsson.
93452 2008-03-06  Bruno Haible  <bruno@clisp.org>
93454         Make fflush after ungetc work on BSD platforms.
93455         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
93456         * tests/test-fflush2.c: New file.
93457         * tests/test-fflush2.sh: New file.
93458         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
93459         tests/test-fflush2.c.
93460         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
93461         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
93463 2008-03-06  Eric Blake  <ebb9@byu.net>
93465         Likewise for ftello.
93466         * modules/ftello (Dependencies): Add extensions.
93467         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
93469 2008-03-06  Bruno Haible  <bruno@clisp.org>
93471         * modules/fseeko (Dependencies): Add extensions.
93472         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
93473         Needed on glibc systems.
93475 2008-03-06  Bruno Haible  <bruno@clisp.org>
93477         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
93478         email address.
93479         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93481 2008-03-06  Bruno Haible  <bruno@clisp.org>
93483         * users.txt: Add libgnupdf.
93485 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
93487         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
93488         (Header File Substitutes, Function Substitutes,
93489         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
93490         (Build robot for gnulib): Fix typo.
93492 2008-03-06  Bruno Haible  <bruno@clisp.org>
93494         * doc/gnulib-tool.texi (VCS Issues): Small updates.
93495         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93497 2008-03-06  Bruno Haible  <bruno@clisp.org>
93499         * doc/func.texi: New file, extracted from doc/gnulib.texi.
93500         * doc/gnulib.texi: Include it.
93502 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93504         * modules/func (License): Change license to unlimited; there was
93505         no LGPL parts in the module anyway.
93507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93509         * modules/__func__: Renamed to modules/func.
93510         * modules/__func__-tests: Renamed to modules/func-tests.
93511         * tests/test-__func__.c: Renamed to tests/test-func.c.
93512         * m4/__func__.m4: Renamed to m4/func.m4.
93513         * doc/gnulib.texi (__func__): Section renamed to func.
93514         Suggested by Eric Blake <ebb9@byu.net>.
93516 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93518         * doc/gnulib.texi (__func__): Use C99 terminology when talking
93519         about __func__.  Make example self-contained.  Suggested by Eric
93520         Blake <ebb9@byu.net>.
93522         * tests/test-__func__.c (main): Avoid extraneous () around __func.
93523         Suggested by Eric Blake <ebb9@byu.net>.
93525 2008-03-06  Simon Josefsson  <simon@josefsson.org>
93527         * modules/__func__: New file.
93528         * modules/__func__-tests: New file.
93529         * tests/test-__func__.c: New file.
93530         * m4/__func__.m4: New file.
93531         * doc/gnulib.texi (__func__): Document __func__ module.
93533 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93535         * modules/byteswap (License): Re-license as LGPLv2+.
93537 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93539         * doc/Makefile: Add pdf target.
93541 2008-03-05  Simon Josefsson  <simon@josefsson.org>
93543         * modules/inline (License): Use 'unlimited', since there are only
93544         *.m4 files in this module.
93546 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93547             Bruno Haible  <bruno@clisp.org>
93549         Add support for HP C 7.1 on OpenVMS 8.3.
93550         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
93552 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
93554         Update VMS specifics.
93555         * lib/getopt.c [VMS]: Remove include of unixlib.h.
93557 2008-03-02  Jim Meyering  <meyering@redhat.com>
93559         Remove the last dependency on the "free" module.
93560         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
93561         Reported by Bob Proulx.
93563         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
93565         Remove useless "if" tests before free.  Deprecate "free" module.
93566         * doc/posix-functions/free.texi: Mention that this
93567         module is no longer useful.
93568         * modules/free (Notice): Say this module is obsolete.
93569         * modules/readutmp (Depends-on): Remove free.
93570         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
93571         * lib/putenv.c (putenv): Likewise.
93572         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
93573         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
93574         * tests/test-c-strcasestr.c (main): Likewise.
93575         * tests/test-c-strstr.c (main): Likewise.
93576         * tests/test-mbscasestr1.c (main): Likewise.
93577         * tests/test-mbscasestr2.c (main): Likewise.
93578         * tests/test-mbsstr1.c (main): Likewise.
93579         * tests/test-mbsstr2.c (main): Likewise.
93580         * tests/test-memmem.c (main): Likewise.
93581         * tests/test-strcasestr.c (main): Likewise.
93582         * tests/test-striconv.c (main): Likewise.
93583         * tests/test-striconveh.c (main): Likewise.
93584         * tests/test-striconveha.c (main): Likewise.
93585         * tests/test-strstr.c (main): Likewise.
93587         * build-aux/git-version-gen: Adjust a comment and the Usage string.
93589         bootstrap: sync from coreutils again
93590         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
93592 2008-03-01  Jim Meyering  <meyering@redhat.com>
93594         bootstrap: sync from coreutils
93595         * build-aux/bootstrap (update_po_files): Copy a .po file into place
93596         also when the target doesn't exist.
93598 2008-03-01  Eric Blake  <ebb9@byu.net>
93600         Fix bugs in last patch.
93601         * lib/memchr2.c (memchr2): Fix typo.
93602         * tests/test-memchr2.c: Test previous bug, and don't use GNU
93603         extension.
93604         Reported by Bruce Korb.
93606         New module 'memchr2'.
93607         * modules/memchr2: New file.
93608         * modules/memchr2-tests: Likewise.
93609         * lib/memchr2.h: Likewise.
93610         * lib/memchr2.c: Likewise, based on memchr.c.
93611         * tests/test-memchr2.c: New test.
93612         * MODULES.html.sh (String handling): Add memchr2.
93614 2008-02-29  Bruno Haible  <bruno@clisp.org>
93616         * modules/freadseek-tests: New file.
93617         * tests/test-freadseek.sh: New file.
93618         * tests/test-freadseek.c: New file.
93620         New module 'freadseek'.
93621         * modules/freadseek: New file.
93622         * lib/freadseek.h: New file.
93623         * lib/freadseek.c: New file.
93624         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
93626 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
93628         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
93629         wydawca.
93631         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
93632         program_invocation_name and program_invocation_short_name are
93633         present.
93635 2008-02-28  Bruno Haible  <bruno@clisp.org>
93637         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
93638         * tests/test-freadptr.sh: Also test non-seekable stdin.
93640 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
93642         * build-aux/bootstrap (source_base, m4_base)
93643         (doc_base, tests_base): New variables.
93644         (gnulib_tool_options): Do not hardcode base directories, use
93645         the above variables instead.
93647 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
93649         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
93651 2008-02-28  Bruno Haible  <bruno@clisp.org>
93653         * modules/freadptr-tests: New file.
93654         * tests/test-freadptr.sh: New file.
93655         * tests/test-freadptr.c: New file.
93657         New module 'freadptr'.
93658         * modules/freadptr: New file.
93659         * lib/freadptr.h: New file.
93660         * lib/freadptr.c: New file.
93661         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
93663 2008-02-26  Karl Berry  <karl@freefriends.org>
93665         Sync from Libtool:
93666         * libltdl/argz.c (argz_add, argz_count): New functions.
93667         * libltdl/argz.in.h: Declare them.
93668         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
93670 2008-02-22  Bruno Haible  <bruno@clisp.org>
93672         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
93673         is a pointer type.  Needed for HP-UX 10.
93674         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
93675         * doc/posix-functions/gmtime_r.texi: Likewise.
93676         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
93678 2008-02-24  Bruno Haible  <bruno@clisp.org>
93680         * modules/environ-tests: New file.
93681         * tests/test-environ.c: New file.
93683         New module 'environ'.
93684         * modules/environ: New file.
93685         * lib/unistd.in.h (environ): New declaration.
93686         * m4/environ.m4: New file.
93687         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
93688         after use.
93689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
93690         HAVE_DECL_ENVIRON.
93691         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
93692         HAVE_DECL_ENVIRON.
93693         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
93694         wrong claim that 'environ' is missing on some systems.
93695         * modules/execute (Depends-on): Add environ.
93696         * lib/execute.c (environ): Remove fallback declaration.
93697         * modules/pipe (Depends-on): Add environ.
93698         * lib/pipe.c (environ): Remove fallback declaration.
93699         * modules/setenv (Depends-on): Add environ.
93700         * lib/setenv.c (environ): Remove fallback declaration.
93701         * modules/unsetenv (Depends-on): Add environ.
93702         * lib/unsetenv.c (environ): Remove fallback declaration.
93703         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
93704         m4/environ.m4.
93705         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
93706         (gl_PREREQ_UNSETENV): Likewise.
93708 2008-02-24  Bruno Haible  <bruno@clisp.org>
93710         * doc/posix-functions/environ.texi: Document the MacOS X problem.
93712 2008-02-20  Bob Proulx  <bob@proulx.com>
93714         Enable use of older two part flavor 'git describe'.
93715         * build-aux/git-version-gen: If using the older two part flavor of
93716         git version then recreate the third part now present in the
93717         newer three part flavor of git describe.
93719 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
93721         * lib/fts.c (fts_build): Typo correction to comment.
93723 2008-02-17  Bruno Haible  <bruno@clisp.org>
93725         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
93726         generating no-op conflicts.
93728 2008-02-17  Bruno Haible  <bruno@clisp.org>
93730         Speed up by 10%.
93731         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
93732         result_entries, rather than an index-based loop.
93734 2008-02-17  Bruno Haible  <bruno@clisp.org>
93736         Speed up by 25%.
93737         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
93738         'hashcode_cached'.
93739         (entry_create): New function.
93740         (entry_hashcode): Use the cached hashcode if possible.
93741         (read_changelog_file, try_split_merged_entry): Use entry_create.
93743 2008-02-17  Bruno Haible  <bruno@clisp.org>
93745         Speed up from O(n^2) to O(n) for long ChangeLog files.
93746         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
93747         (read_changelog_file): Change implementation of entries_reversed list
93748         to rbtreehash.
93749         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
93751 2008-02-17  Bruno Haible  <bruno@clisp.org>
93753         New option --split-merged-entry.
93754         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
93755         (find_paragraph_end, try_split_merged_entry): New functions.
93756         (long_options): Add option --split-merged-entry.
93757         (usage): Document option --split-merged-entry.
93758         (main): Implement option --split-merged-entry.
93759         Reported by Eric Blake.
93761 2008-02-17  Bruno Haible  <bruno@clisp.org>
93763         * lib/git-merge-changelog.c: Include c-strstr.h.
93764         (main): Support the "git pull --rebase" situation.
93765         * modules/git-merge-changelog (Depends-on): Add c-strstr.
93766         Reported by Eric Blake.
93768 2008-02-16  Eric Blake  <ebb9@byu.net>
93770         Avoid doubling \ in common case of "c-maybe" quoting style.
93771         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
93772         eliding outer quotes.
93773         * lib/quotearg.h: Document this.
93774         * tests/test-quotearg.c (result_strings, inputs, results_g)
93775         (flag_results, locale_results): Test it by adding a new string to
93776         each test group.
93777         (compare_strings): Test new string.
93779 2008-02-13  Eric Blake  <ebb9@byu.net>
93781         Avoid trigraph quoting in default output.
93782         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
93783         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
93784         unless explicitly requested.
93785         * tests/test-quotearg.c (flag_results, main): Add additional tests.
93787 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
93789         Don't rely on signed integer overflowing to negative value.
93790         * lib/getugroups.c (getugroups): Include <limits.h>.
93791         Instead, compare against INT_MAX, and increment only if the test passes.
93793 2008-02-13  Jim Meyering  <meyering@redhat.com>
93794         and Eric Blake  <ebb9@byu.net>
93796         Avoid shadowing warning and compile errors on Linux.
93797         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
93798         forwarding macros on Linux.
93799         (dcgettext): Define a stub, for Linux.
93800         (results_g, main): Avoid warnings.
93802 2008-02-12  Eric Blake  <ebb9@byu.net>
93804         Silence warning in last patch.
93805         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
93807         Quotearg part 4: add tests, fix c-maybe colon quoting.
93808         * lib/quotearg.h: Improve documentation.
93809         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
93810         escapes when adding outer quotes.  When quoting trigraphs, use
93811         valid C notation.  When quoting NUL, omit extra characters if next
93812         character is not digit.  Alter prototype.
93813         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
93814         callers.
93815         * modules/quotearg-tests: New module.
93816         * tests/test-quotearg.c: New test.
93818 2008-02-07  Eric Blake  <ebb9@byu.net>
93820         Quotearg part 3: add flag to control outer quote elision.
93821         * lib/quotearg.h (c_maybe_quoting_style): New style.
93822         (enum quoting_flags): Better documentation of flags.
93823         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
93824         c-maybe style.
93825         (quotearg_buffer_restyled): Handle new flag to elide outer
93826         quotes.
93828         Quotearg part 2: add flag that can control NUL elision.
93829         * lib/quotearg.h (set_quoting_flags): New prototype.
93830         * lib/quotearg.c (struct quoting_options): Add flag field.
93831         (set_quoting_flags): New function.
93832         (quotearg_buffer_restyled): Add flags parameter.
93833         (quotearg_alloc_mem): Set the flag if length cannot be returned.
93834         (quotearg_n_options): Set the flag, since length cannot be
93835         returned.
93836         (quoting_options_from_style): Default flags correctly.
93838         Quotearg part 1: more wrappers, restore quotearg_char state.
93839         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
93840         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
93841         (quotearg_colon_mem): New wrappers.
93842         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
93843         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
93844         functions.
93845         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
93846         (quotearg_colon_mem): New functions.
93848 2008-02-11  Bruno Haible  <bruno@clisp.org>
93850         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
93851         library in the current directory: it does not work with parallel make.
93852         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93854 2008-02-11  Bruno Haible  <bruno@clisp.org>
93856         * .gitattributes: New file.
93858 2008-02-11  Jim Meyering  <meyering@redhat.com>
93860         useless-if-before-free: Fix reversed exit values.
93861         * build-aux/useless-if-before-free: Use correct values
93862         for EXIT_MATCH and EXIT_NO_MATCH.
93864         * build-aux/useless-if-before-free: Close stdout carefully.
93866 2008-02-10  Bruno Haible  <bruno@clisp.org>
93868         New module 'git-merge-changelog'.
93869         * modules/git-merge-changelog: New file.
93870         * lib/git-merge-changelog.c: New file.
93872 2008-02-10  Jim Meyering  <meyering@redhat.com>
93874         useless-if-before-free: New option: --list (-l).
93876         useless-if-before-free: Don't exit immediately upon open failure.
93877         * build-aux/useless-if-before-free: Exit 2 for errors.
93878         Upon failure to open a file, don't exit immediately.
93879         Rather, just warn and continue with any remaining files.
93881 2008-02-10  Bruno Haible  <bruno@clisp.org>
93883         New abstract list operation 'node_set_value'.
93884         * lib/gl_list.h (gl_list_node_set_value): New function.
93885         (struct gl_list_implementation): New field node_set_value.
93886         * lib/gl_list.c (gl_list_node_set_value): New function.
93887         * lib/gl_array_list.c (gl_array_node_set_value): New function.
93888         (gl_array_list_implementation): Update.
93889         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
93890         (gl_carray_list_implementation): Update.
93891         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
93892         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
93893         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
93894         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
93895         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
93896         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
93897         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
93898         Update.
93899         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
93900         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
93901         (gl_sublist_list_implementation): Update.
93903 2008-02-10  Bruno Haible  <bruno@clisp.org>
93905         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
93906         Needed when ELEMENT is #defined to 'some_type *'.
93908 2008-02-10  Jim Meyering  <meyering@redhat.com>
93910         New script and module: useless-if-before-free
93911         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
93912         * build-aux/useless-if-before-free: New file.
93913         * modules/useless-if-before-free: New file.
93915         * build-aux/gitlog-to-changelog: Use committer date, not author date.
93917         xstrtol_error: Fix typo.
93918         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
93919         s/exit_failure/exit_status/.
93921 2008-02-09  Jim Meyering  <meyering@redhat.com>
93923         New script and module: gitlog-to-changelog
93924         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
93925         * modules/gitlog-to-changelog: New file.
93926         * build-aux/gitlog-to-changelog: New file.
93928 2008-02-08  Jim Meyering  <meyering@redhat.com>
93930         Avoid two "parameter unused" warnings.
93931         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
93932         Mark "st" as used.
93934         Use "git COMMAND", not "git-COMMAND".
93935         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
93936         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
93937         * build-aux/git-version-gen: Use "git status", not "git-status".
93939 2008-02-07  Bruno Haible  <bruno@clisp.org>
93941         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
93942         Avoids a crash on Windows Vista.
93943         Reported by Adam Strzelecki <ono@java.pl> via
93944         Simon Josefsson <simon@josefsson.org>.
93946 2008-02-06  Bruno Haible  <bruno@clisp.org>
93948         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
93949         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
93950         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
93951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
93952         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
93953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
93954         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
93955         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
93956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
93957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
93958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
93959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
93960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
93961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
93962         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
93963         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
93964         left-adjust flag.
93965         * tests/test-snprintf-posix.h (test_function): Likewise.
93966         * tests/test-sprintf-posix.h (test_function): Likewise.
93967         * tests/test-vasprintf-posix.c (test_function): Likewise.
93968         * doc/posix-functions/fprintf.texi: Update.
93969         * doc/posix-functions/printf.texi: Update.
93970         * doc/posix-functions/snprintf.texi: Update.
93971         * doc/posix-functions/sprintf.texi: Update.
93972         * doc/posix-functions/vfprintf.texi: Update.
93973         * doc/posix-functions/vprintf.texi: Update.
93974         * doc/posix-functions/vsnprintf.texi: Update.
93975         * doc/posix-functions/vsprintf.texi: Update.
93976         Reported by Peter Fales <psfales@alcatel-lucent.com>.
93978 2008-02-06  Bruno Haible  <bruno@clisp.org>
93980         Fix bug introduced on 2008-01-26.
93981         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
93983 2008-02-06  Bruno Haible  <bruno@clisp.org>
93985         Fix bug introduced on 2007-06-10.
93986         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
93987         !NEED_PRINTF_FLAG_ZERO.
93989 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
93991         getloadavg: use libperfstat on AIX5
93992         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
93994 2008-02-03  Bruno Haible  <bruno@clisp.org>
93996         * lib/diffseq.h: Add comments about required #includes.
93997         Reported by Michael Biggs <gnulib@doubleplum.net>.
93999 2008-02-01  Bruno Haible  <bruno@clisp.org>
94001         * users.txt: Add gnuit.
94003 2008-01-31  Bruno Haible  <bruno@clisp.org>
94005         * lib/md4.c (set_uint32): Mark as inline.
94006         * lib/md5.c (set_uint32): Likewise.
94007         * lib/sha1.c (set_uint32): Likewise.
94008         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
94009         * m4/md5.m4 (gl_MD5): Likewise.
94010         * m4/sha1.m4 (gl_SHA1): Likewise.
94012 2008-01-31  Jim Meyering  <meyering@redhat.com>
94014         Use "sizeof VAR", rather than a literal "4".
94015         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
94016         * lib/md4.c (md4_read_ctx): Likewise.
94017         * lib/sha1.c (sha1_read_ctx): Likewise.
94019 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94021         * tests/test-sha1.c: New file, based on test-md5.c.
94023         * modules/crypto/sha1-tests: New file.
94025 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94027         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
94029 2008-01-31  Jim Meyering  <meyering@redhat.com>
94031         Prefer "sizeof v" over the equivalent "4".
94032         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
94033         * lib/md5.c (set_uint32): Likewise.
94034         * lib/sha1.c (set_uint32): Likewise.
94036 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94038         * lib/sha1.c (set_uint32): Mark function as static.
94040 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94042         md2: clarify comments to say that alignment is not required.
94043         * lib/md2.h: Remove warning about alignment in comment.
94044         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
94045         never been required.
94047 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94049         md4: adapt alignment constraint fix from sha1.
94050         * lib/md4.c (set_uint32): New function, from sha1.c
94051         (md4_read_ctx): Use it.
94052         (md4_finish_ctx): Doc fix.
94053         * lib/md4.h: Doc fix.
94055 2008-01-31  Simon Josefsson  <simon@josefsson.org>
94057         md5: adapt alignment constraint fix from sha1.
94058         * lib/md5.c (set_uint32): New function, from sha1.c
94059         (md5_read_ctx): Use it.
94060         (md5_finish_ctx): Doc fix.
94061         * lib/md5.h: Doc fix.
94063 2008-01-30  Peter Palfrader  <weasel@debian.org>
94065         sha1: remove the result buffer alignment constraint
94066         * lib/sha1.c (set_uint32): New function.
94067         (sha1_read_ctx): Rewrite to remove the result buffer alignment
94068         constraint.
94069         (sha1_finish_ctx): Remove comment warning about alignment constraint.
94070         * lib/sha1.h: Likewise.
94072 2008-01-30  Andreas Schwab  <schwab@suse.de>
94073             Bruno Haible  <bruno@clisp.org>
94075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
94076         correct definition of LDBL_MIN_EXP.
94078 2008-01-30  Karl Berry  <karl@gnu.org>
94080         * config/srclist-update: try to preserve x bit on updates.
94081         * config/srclistvars.sh: update for karl.
94083 2008-01-29  Jim Meyering  <meyering@redhat.com>
94085         vasnprintf.c: Avoid warning about unused label
94086         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
94087         "overflow" label definition and associated code with the
94088         same cpp condition that guards the sole use of that label.
94090 2008-01-26  Bruno Haible  <bruno@clisp.org>
94092         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
94093         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
94094         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
94095         * lib/isnanl-nolibm.h (isnanl): Likewise.
94096         Reported by Paul Eggert <eggert@cs.ucla.edu>.
94098 2008-01-26  Bruno Haible  <bruno@clisp.org>
94100         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
94101         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
94103 2008-01-26  Bruno Haible  <bruno@clisp.org>
94105         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
94106         GCC >= 4.0 built-in.
94107         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
94109 2008-01-26  Bruno Haible  <bruno@clisp.org>
94111         Rename isnan, applicable to 'double' only, to isnand.
94112         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
94113         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
94114         (configure.ac): Update.
94115         (Include): Replace "isnan.h" with "isnand.h".
94116         * m4/isnand.m4: Renamed from m4/isnan.m4.
94117         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
94118         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
94119         instead of isnan.c.
94120         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
94121         instead of HAVE_ISNAN_IN_LIBC.
94122         (isnand): Renamed from isnan.
94123         * lib/isnand.c: New file.
94124         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
94125         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
94126         (Makefile.am): Update.
94127         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
94128         Include isnand.h instead of isnan.h.
94129         (main): Test isnand instead of isnan.
94130         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
94131         isnan-nolibm.
94132         * modules/frexp (Depends-on): Likewise.
94133         * modules/frexp-tests (Depends-on): Likewise.
94134         * modules/frexp-nolibm (Depends-on): Likewise.
94135         * modules/frexp-nolibm-tests (Depends-on): Likewise.
94136         * modules/isfinite (Depends-on): Likewise.
94137         * modules/round-tests (Depends-on): Likewise.
94138         * modules/signbit (Depends-on): Likewise.
94139         * modules/signbit-tests (Depends-on): Likewise.
94140         * modules/snprintf-posix (Depends-on): Likewise.
94141         * modules/sprintf-posix (Depends-on): Likewise.
94142         * modules/trunc-tests (Depends-on): Likewise.
94143         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
94144         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
94145         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
94146         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
94147         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
94148         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
94149         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
94150         * modules/vasnprintf-posix (Depends-on): Likewise.
94151         * modules/vasprintf-posix (Depends-on): Likewise.
94152         * modules/vfprintf-posix (Depends-on): Likewise.
94153         * modules/vsnprintf-posix (Depends-on): Likewise.
94154         * modules/vsprintf-posix (Depends-on): Likewise.
94155         * lib/frexp.c: Include isnand.h instead of isnan.h.
94156         (ISNAN): Set to isnand instead of isnan.
94157         * lib/isfinite.c: Include isnand.h instead of isnan.h.
94158         (gl_isfinited): Use isnand instead of isnan.
94159         * lib/signbitd.c: Include isnand.h instead of isnan.h.
94160         (gl_signbitd): Use isnand instead of isnan.
94161         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
94162         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
94163         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
94164         (main): Use isnand instead of isnan.
94165         * tests/test-round1.c: Include isnand.h.
94166         (main): Use isnand instead of isnan.
94167         * tests/test-round2.c: Include isnand.h instead of isnan.h.
94168         (ISNAN): Set to isnand instead of isnan.
94169         * tests/test-trunc1.c: Include isnand.h.
94170         (main): Use isnand instead of isnan.
94171         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
94172         (equal): Use isnand instead of isnan.
94173         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
94174         isnand-nolibm.
94175         * NEWS: Mention the change.
94177 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
94178             Bruno Haible  <bruno@clisp.org>
94180         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
94181         the GCC builtins for signbits are present and set
94182         REPLACE_SIGNBIT_USING_GCC if so.
94183         * lib/math.in.h (signbit): Define using GCC builtins if
94184         REPLACE_SIGNBIT_USING_GCC is set.
94185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
94186         REPLACE_SIGNBIT_USING_GCC.
94187         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
94189 2008-01-25  Jim Meyering  <meyering@redhat.com>
94191         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
94192         * lib/poll.c: Include <config.h>, not "config.h".
94193         * tests/test-getaddrinfo.c: Likewise.
94195 2008-01-25  Simon Josefsson  <simon@josefsson.org>
94197         * modules/sockets-tests: New file.
94199 2008-01-24  Simon Josefsson  <simon@josefsson.org>
94201         * modules/sockets: New module, can be used to call WSA_Startup and
94202         WSA_Cleanup when needed.
94204         * lib/sockets.h, lib/sockets.c: New files.
94206         * m4/sockets.m4: New file.
94208         * tests/test-sockets.c: New file.
94210 2008-01-19  Bruno Haible  <bruno@clisp.org>
94212         * doc/posix-headers: Renamed from doc/headers.
94213         * doc/posix-functions: Renamed from doc/functions.
94214         * doc/gnulib.texi: Update.
94216 2008-01-19  Bruno Haible  <bruno@clisp.org>
94218         * doc/glibc-functions/strcasestr.texi: Include contents of
94219         doc/functions/strcasestr.texi, fixing the list of platforms.
94220         * doc/functions/strcasestr.texi: Remove file.
94222 2008-01-19  Bruno Haible  <bruno@clisp.org>
94224         * doc/glibc-functions/memmem.texi: Include contents of
94225         doc/functions/memmem.texi.
94226         * doc/functions/memmem.texi: Remove file.
94228 2008-01-18  Bruno Haible  <bruno@clisp.org>
94230         * doc/glibc-functions/*.texi: New files.
94231         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
94232         to use the new files.
94234 2008-01-17  Bruno Haible  <bruno@clisp.org>
94236         * tests/test-gethostname.c (main): Fix printf statement.
94238 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94240         * modules/gethostname-tests: New file.
94242         * tests/test-gethostname.c: New file.
94244 2008-01-17  Simon Josefsson  <simon@josefsson.org>
94246         * lib/gethostname.c: Include string.h unconditionally, strncpy is
94247         used by the UNAME case.  Reported by Bruno Haible
94248         <bruno@clisp.org>.
94250 2008-01-17  Eric Blake  <ebb9@byu.net>
94252         Convert c-strcasestr to be more efficient.
94253         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
94254         (Depends-on): Add c-strcase, remove malloca, strnlen.
94255         * tests/test-c-strcasestr.c (main): Enhance test.
94256         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
94258 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
94260         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
94261         Use it in creating po/Makevars.
94263 2008-01-15  Simon Josefsson  <simon@josefsson.org>
94265         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
94266         Applications that requires it should initialize libgcrypt
94267         manually.
94269 2008-01-16  Simon Josefsson  <simon@josefsson.org>
94271         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
94273 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
94275         Fix problem with getdate on mingw32 reported by Simon Josefsson
94276         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
94277         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
94278         tzname", when deciding whether to declare tzname.
94279         * lib/strftime.c (tzname): Likewise.
94281 2008-01-15  Bruno Haible  <bruno@clisp.org>
94283         Work around a MacOS X 10.5 bug in frexpl().
94284         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
94285         * doc/functions/frexpl.texi: Document the bug.
94286         Reported by Elias Pipping <pipping@gentoo.org>.
94288 2008-01-14  Eric Blake  <ebb9@byu.net>
94290         Touch up previous patch.
94291         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
94292         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
94294         Convert strcasestr module to use Two-Way algorithm.
94295         * modules/strcasestr-simple: New module, based on the old
94296         strcasestr, but with Two-Way rather than KMP.
94297         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
94298         * lib/string.in.h (rpl_strcasestr): Declare.
94299         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
94300         performance.
94301         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
94302         * modules/string (Makefile.am): Support strcasestr.
94303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
94304         * modules/strcasestr-tests (Depends-on): Check for alarm.
94305         * tests/test-strcasestr.c: Augment test.
94306         * lib/str-two-way.h: Clean up stray macro.
94307         * NEWS: Document new module.
94308         * MODULES.html.sh (string handling): Likewise.
94309         * doc/functions/strcasestr.texi: New file.
94310         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
94311         here, since it is not a POSIX function.
94313 2008-01-14  Colin Watson  <cjwatson@debian.org>
94314             Bruno Haible  <bruno@clisp.org>
94316         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
94317         works fine; if not, set REPLACE_STRSIGNAL.
94318         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
94319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94320         REPLACE_STRSIGNAL.
94321         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
94322         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
94323         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
94325 2008-01-14  Bruno Haible  <bruno@clisp.org>
94327         * modules/strsignal (Include): Change to <string.h>.
94329 2008-01-14  Colin Watson  <cjwatson@debian.org>
94331         * modules/argp (Notice): Add a notice recommending to change
94332         XGETTEXT_OPTIONS.
94333         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
94335 2008-01-13  Colin Watson  <cjwatson@debian.org>
94337         * modules/strsignal-tests: New file.
94338         * tests/test-strsignal.c: New file.
94340         * lib/strsignal.c: New file, from glibc with modifications.
94341         * lib/siglist.h: New file, from glibc with modifications.
94342         * lib/string.in.h (strsignal): New declaration.
94343         * m4/strsignal.m4: New file.
94344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
94345         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
94346         * modules/strsignal: New file.
94347         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
94348         HAVE_DECL_STRSIGNAL.
94350 2008-01-13  Bruno Haible  <bruno@clisp.org>
94352         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
94353         locale encoding is not ASCII. Needed for OpenBSD 4.0.
94354         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
94355         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
94357 2008-01-13  Bruno Haible  <bruno@clisp.org>
94359         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
94360         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
94361         * lib/argp.h (__attribute__): Likewise.
94362         * lib/c-stack.c (__attribute__): Likewise.
94363         * lib/error.h (__attribute__): Likewise.
94364         * lib/fts.c (__attribute__): Likewise.
94365         * lib/openat.h (__attribute__): Likewise.
94366         * lib/stdio.in.h (__attribute__): Likewise.
94367         * lib/string.in.h (__attribute__): Likewise.
94368         * lib/utimens.c (__attribute__): Likewise.
94369         * lib/vasnprintf.h (__attribute__): Likewise.
94370         * lib/xalloc.h (__attribute__): Likewise.
94371         * lib/xprintf.h (__attribute__): Likewise.
94372         * lib/xstrtol.h (__attribute__): Likewise.
94373         * lib/xvasprintf.h (__attribute__): Likewise.
94375 2008-01-12  Bruno Haible  <bruno@clisp.org>
94377         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
94378         * doc/glibc-headers/a.out.texi: New file.
94379         * doc/glibc-headers/aliases.texi: New file.
94380         * doc/glibc-headers/alloca.texi: New file.
94381         * doc/glibc-headers/ar.texi: New file.
94382         * doc/glibc-headers/argp.texi: New file.
94383         * doc/glibc-headers/argz.texi: New file.
94384         * doc/glibc-headers/byteswap.texi: New file.
94385         * doc/glibc-headers/crypt.texi: New file.
94386         * doc/glibc-headers/endian.texi: New file.
94387         * doc/glibc-headers/envz.texi: New file.
94388         * doc/glibc-headers/err.texi: New file.
94389         * doc/glibc-headers/error.texi: New file.
94390         * doc/glibc-headers/execinfo.texi: New file.
94391         * doc/glibc-headers/fpu_control.texi: New file.
94392         * doc/glibc-headers/fstab.texi: New file.
94393         * doc/glibc-headers/fts.texi: New file.
94394         * doc/glibc-headers/getopt.texi: New file.
94395         * doc/glibc-headers/ieee754.texi: New file.
94396         * doc/glibc-headers/ifaddrs.texi: New file.
94397         * doc/glibc-headers/libintl.texi: New file.
94398         * doc/glibc-headers/mcheck.texi: New file.
94399         * doc/glibc-headers/mntent.texi: New file.
94400         * doc/glibc-headers/obstack.texi: New file.
94401         * doc/glibc-headers/paths.texi: New file.
94402         * doc/glibc-headers/printf.texi: New file.
94403         * doc/glibc-headers/pty.texi: New file.
94404         * doc/glibc-headers/resolv.texi: New file.
94405         * doc/glibc-headers/shadow.texi: New file.
94406         * doc/glibc-headers/sysexits.texi: New file.
94407         * doc/glibc-headers/ttyent.texi: New file.
94409 2008-01-12  Jim Meyering  <meyering@redhat.com>
94411         announce-gen: emit Gnulib's git-based version string.
94412         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
94413         New option --gnulib-version=V, where V is expected to be
94414         the output of running git describe in the gnulib directory.
94415         (get_tool_versions): Request feedback on xdelta.  I suspect it's
94416         not useful, and plan to stop publishing an xdelta file with each
94417         coreutils release.
94419         * build-aux/announce-gen: Also check for lzma-compressed files.
94421 2008-01-11  Bruno Haible  <bruno@clisp.org>
94423         * tests/test-memmem.c (main): Increase maximum allowed time.
94424         * tests/test-strstr.c (main): Likewise.
94426 2008-01-11  Bruno Haible  <bruno@clisp.org>
94428         * doc/functions/memmem.texi: Add more precisions about platforms.
94429         * doc/functions/strstr.texi: Likewise.
94431 2008-01-10  Eric Blake  <ebb9@byu.net>
94433         * m4/strstr.m4: Delete cruft from copy-n-paste.
94434         Reported by Bruno Haible.
94436 2008-01-10  Bruno Haible  <bruno@clisp.org>
94438         Make c-strstr rely on strstr.
94439         * lib/c-strstr.c: Don't include str-kmp.h.
94440         (c_strstr): Define in terms of strstr.
94441         * modules/c-strstr (Files): Remove lib/str-kmp.h.
94442         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
94444 2008-01-10  Bruno Haible  <bruno@clisp.org>
94446         * doc/gnulib.texi (String Functions in C Locale): New section.
94447         * doc/c-ctype.texi: New file.
94448         * doc/c-strcase.texi: New file.
94449         * doc/c-strcaseeq.texi: New file.
94450         * doc/c-strcasestr.texi: New file.
94451         * doc/c-strstr.texi: New file.
94452         * doc/c-strtod.texi: New file.
94453         * doc/c-strtold.texi: New file.
94455 2008-01-10  Eric Blake  <ebb9@byu.net>
94457         * lib/relocatable.h: Fix a comment.
94459 2008-01-10  Eric Blake  <ebb9@byu.net>
94461         Share two-way algorithm.
94462         * lib/str-two-way.h: New file, merged from...
94463         * lib/memmem.c: ...here...
94464         * lib/strstr.c: ...and here.
94465         * modules/memmem (Files): Use it.
94466         * modules/strstr (Files): Likewise.
94468         Avoid quadratic strstr implementations.
94469         * lib/strstr.c: New file.
94470         * m4/strstr.m4: Likewise.
94471         * modules/strstr: Likewise.
94472         * modules/strstr-tests: Likewise.
94473         * tests/test-strstr.c: Likewise.
94474         * lib/string.in.h (rpl_strstr): Declare.
94475         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
94476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
94477         * modules/string (Makefile.am): Likewise.
94478         * MODULES.html.sh (string handling): Mention new module.
94479         * doc/functions/strstr.texi (strstr): Document the bug.
94481 2008-01-10  Bruno Haible  <bruno@clisp.org>
94483         * lib/relocatable.h (relocate): State whether result is freshly
94484         allocated or not.
94485         * lib/relocatable.c (relocate): Return a freshly allocated string
94486         instead of a pointer to a privately held string.
94487         Reported by Sylvain Beucler <beuc@gnu.org>.
94489 2008-01-10  Colin Watson  <cjwatson@debian.org>
94491         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
94492         s/S_ISNLK/S_ISLNK/.
94494 2008-01-09  Bruno Haible  <bruno@clisp.org>
94496         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
94497         and other files.
94498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
94499         if it's only a guess.
94500         * modules/memmem: Simplify by depending on memmem-simple.
94502 2008-01-09  Bruno Haible  <bruno@clisp.org>
94504         Work around OpenBSD 4.0 tdelete() bug.
94505         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
94506         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
94507         macros and don't redefine the enum values.
94508         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
94509         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
94510         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
94512 2008-01-09  Bruno Haible  <bruno@clisp.org>
94514         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
94515         (main): Don't perform the tests if setlocale did not install a UTF-8
94516         locale. Needed on OpenBSD 4.0.
94517         * modules/wcwidth-tests (Depends-on): Add localcharset.
94519 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
94521         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
94522         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
94523         * NEWS: announce this.
94524         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
94526 2008-01-09  Simon Josefsson  <simon@josefsson.org>
94527         and Eric Blake  <ebb9@byu.net>
94529         Add memmem-simple module.
94530         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
94531         (gl_FUNC_MEMMEM): Separate performance from presence checks.
94532         * modules/memmem-simple: New file.
94533         * modules/memmem (Description): Tweak.
94534         * MODULES.html.sh (string handling): Mention new module.
94535         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
94536         addressed by memmem-simple.
94537         * NEWS: Document the difference.
94539 2008-01-09  Eric Blake  <ebb9@byu.net>
94541         Give gcc some memmem optimization hints.
94542         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
94543         (strcasestr): Declare as pure.
94544         * modules/memmem (Maintainer): Claim my implementation.
94546 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94548         Support AIX 6.1 and higher.
94549         * build-aux/config.libpath: Likewise.
94550         * build-aux/config.rpath: Likewise.
94552 2008-01-08  Jim Meyering  <meyering@redhat.com>
94553             Bruno Haible  <bruno@clisp.org>
94555         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
94556         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
94557         Reported by Peter Fales in
94558         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
94560 2008-01-08  Bruno Haible  <bruno@clisp.org>
94562         * modules/unictype/category-of (Depends-on): Add
94563         unictype/category-none.
94564         * modules/unictype/category-and-tests (Depends-on): Add
94565         unictype/category-{L,N,Lu,Nd}.
94566         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
94567         * modules/unictype/category-or-tests (Depends-on): Add
94568         unictype/category-{L,N}.
94569         * modules/unictype/category-name-tests (Depends-on): Add
94570         unictype/category-{Z,Nl}.
94571         Reported by Simon Josefsson.
94573 2008-01-08  Bruno Haible  <bruno@clisp.org>
94575         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
94576         convention better.
94577         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
94578         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
94579         Reported by Peter Miller <millerp@canb.auug.org.au>.
94581 2008-01-08  Eric Blake  <ebb9@byu.net>
94583         Rewrite memmem to guarantee linear complexity without malloc.
94584         * lib/memmem.c (memmem): Use Two-Way rather than
94585         Knuth-Morris-Pratt, to allow O(1) space usage.
94586         (critical_factorization, two_way_short_needle)
94587         (two_way_long_needle): New functions.
94588         (knuth_morris_pratt): Delete.
94589         * modules/memmem (Depends-on): No longer need malloca or stdbool.
94590         Add stdint.
94591         * tests/test-memmem.c (main): Add tests for periodic needle and
94592         sublinear performance.
94593         * doc/functions/memmem.texi (memmem): Document other deficiencies
94594         in cygwin and older glibc.
94596 2008-01-08  Bruno Haible  <bruno@clisp.org>
94598         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
94599         augmentation.
94601 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
94603         Add a configure time option: --disable-acl.
94604         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
94605         AC_ARG_ENABLE(acl).
94607 2008-01-06  Simon Josefsson  <simon@josefsson.org>
94609         * tests/test-localename.c: Don't include obsolete "setenv.h".
94611         * modules/localename-tests (Depends-on): Need unsetenv.
94613 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94615         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
94617 2008-01-06  Colin Watson  <cjwatson@debian.org>
94619         * users.txt: Add man-db.
94621 2008-01-07  Bruno Haible  <bruno@clisp.org>
94623         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
94624         previous section name.
94626 2008-01-07  Bruno Haible  <bruno@clisp.org>
94628         * lib/progname.c (set_program_name): Don't strip off a leading
94629         "lt-" prefix outside a .libs directory.
94630         Suggested by Paul Eggert.
94632 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
94633             Bruno Haible  <bruno@clisp.org>
94635         Improve memory cleanup in 'relocatable' module.
94636         * lib/relocatable.h (compute_curr_prefix): Change return type to
94637         'char *'.
94638         * lib/relocatable.c (compute_curr_prefix): Change return type to
94639         'char *'. Free curr_installdir after use.
94640         (relocate): Free curr_prefix_better after use.
94641         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
94643 2008-01-01  Bruno Haible  <bruno@clisp.org>
94645         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
94646         failure on older glibc systems.
94647         Reported by Peter Fales <psfales@alcatel-lucent.com>.
94649 2008-01-05  Eric Blake  <ebb9@byu.net>
94651         Avoid quadratic system memmem.
94652         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
94653         Reported by Ralf Wildenhues.
94655         Fix memmem test for mingw.
94656         * modules/memmem-tests (configure.ac): Check for alarm.
94657         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
94658         it.
94659         * doc/functions/memmem.texi: New file.
94660         * doc/gnulib.texi (Function Substitutes): Add memmem.
94661         Reported by Bruno Haible.
94663 2008-01-04  Bruno Haible  <bruno@clisp.org>
94665         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
94666         Require gl_HEADER_STRINGS_H_DEFAULTS, not
94667         gl_HEADER_STRING_H_DEFAULTS.
94669 2008-01-04  Eric Blake  <ebb9@byu.net>
94671         Shorten duration of memmem test.
94672         * tests/test-memmem.c (main): Use alarm to declare failure if test
94673         is taking too long.
94674         Reported by Ralf Wildenhues.
94676 2007-12-21  Simon Josefsson  <simon@josefsson.org>
94678         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
94679         string, needed by strerror.
94681 2008-01-03  Colin Watson  <cjwatson@debian.org>
94682             Bruno Haible  <bruno@clisp.org>
94684         * doc/gnulib-tool.texi (Localization): New section.
94686 2008-01-02  Bruno Haible  <bruno@clisp.org>
94688         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
94689         variables to 'unsigned char *' type.
94690         Reported by Paul Eggert.
94692 2008-01-02  Jim Meyering  <jim@meyering.net>
94694         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
94696 2007-12-31  Jim Meyering  <jim@meyering.net>
94698         Avoid use of private FTS type name.
94699         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
94701 2007-12-30  Karl Berry  <karl@gnu.org>
94703         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
94704         work around defect in Texinfo and/or the standalone Info browser.
94706 2007-12-30  Bruno Haible  <bruno@clisp.org>
94708         Unify 5 copies of the KMP code.
94709         * lib/str-kmp.h: New file.
94710         * lib/c-strcasestr.c: Include str-kmp.h.
94711         (knuth_morris_pratt): Remove function.
94712         (c_strcasestr): Update.
94713         * lib/c-strstr.c: Include str-kmp.h.
94714         (knuth_morris_pratt): Remove function.
94715         (c_strcasestr): Update.
94716         * lib/mbscasestr.c: Include str-kmp.h.
94717         (knuth_morris_pratt_unibyte): Remove function.
94718         * lib/mbsstr.c: Include str-kmp.h.
94719         (knuth_morris_pratt_unibyte): Remove function.
94720         * lib/strcasestr.c: Include str-kmp.h.
94721         (knuth_morris_pratt): Remove function.
94722         (strcasestr): Update.
94723         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
94724         * modules/c-strstr (Files): Likewise.
94725         * modules/mbscasestr (Files): Likewise.
94726         * modules/mbsstr (Files): Likewise.
94727         * modules/strcasestr (Files): Likewise.
94728         Suggested by Paul Eggert.
94730 2007-12-30  Bruno Haible  <bruno@clisp.org>
94732         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
94733         defined.
94735 2007-12-30  Bruno Haible  <bruno@clisp.org>
94737         * lib/xmalloca.h: Include xalloc.h.
94738         (xnmalloca): New macro.
94740 2007-12-30  Bruno Haible  <bruno@clisp.org>
94742         * lib/malloca.h (nmalloca): New macro.
94743         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
94744         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
94745         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
94746         knuth_morris_pratt_multibyte): Likewise.
94747         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
94748         knuth_morris_pratt_multibyte): Likewise.
94749         * lib/memmem.c (knuth_morris_pratt): Likewise.
94750         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
94752 2007-12-25  Bruno Haible  <bruno@clisp.org>
94754         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
94755         * lib/glob.c: Don't include openat.h.
94756         (link_exists2_p): Add back the code that deals with the
94757         !GLOB_ALTDIRFUNC case.
94758         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
94759         let it do the filename concatenation.
94760         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
94761         * modules/glob (Depends-on): Remove openat.
94763 2007-12-31  Bruno Haible  <bruno@clisp.org>
94765         * modules/dirfd (License): Change to LGPLv2+.
94766         Approved by Jim Meyering.
94768 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94770         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
94771         when multiplying M by sizeof (size_t).
94773 2007-12-10  Martin Lambers  <marlam@marlam.de>
94775         Override getpagesize on mingw.
94776         * lib/getpagesize.c: New file.
94777         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
94778         * modules/getpagesize (Files): Add lib/getpagesize.c.
94779         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
94780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
94781         REPLACE_GETPAGESIZE.
94782         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
94784 2007-12-25  Bruno Haible  <bruno@clisp.org>
94786         * modules/localcharset (Notice): New field.
94787         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
94788         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
94790 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94791             Bruno Haible  <bruno@clisp.org>
94793         Avoid using the syntax symbol() in formatted documentation.
94794         * MODULES.html.sh (func_module): When replacing symbol() with a
94795         hyperlink, remove the parentheses. Show an error if some remain.
94796         Recognize and render the '...' syntax.
94797         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
94798         Rework. Add paragraph about GCC's inlining.
94799         * doc/alloca.texi: Likewise.
94800         * doc/error.texi: Remove parentheses from symbol reference.
94801         * doc/gnulib-intro.texi: Likewise.
94802         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
94803         * modules/fnmatch (Description): Reword to say "the ... function".
94804         * modules/full-read (Description): Likewise.
94805         * modules/full-write (Description): Likewise.
94806         * modules/safe-read (Description): Likewise.
94807         * modules/safe-write (Description): Likewise.
94808         * modules/strchrnul (Description): Likewise.
94809         * modules/trim (Description): Likewise.
94810         * modules/error (Description): Remove parentheses from symbol
94811         references.
94812         * modules/verror (Description): Likewise.
94813         Reported by Karl Berry.
94815 2007-12-25  Bruno Haible  <bruno@clisp.org>
94817         Fixup after 2007-10-16 commit.
94818         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
94820 2007-12-24  Bruno Haible  <bruno@clisp.org>
94822         Make --enable-relocatable work with DESTDIR.
94823         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
94824         to compute installdir from destprog.
94825         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
94826         also set the RELOC_DESTDIR variable.
94827         Reported by Левашев Иван <octagram@bluebottle.com>.
94829 2007-12-24  Bruno Haible  <bruno@clisp.org>
94831         Fix link error due to xalloc_die().
94832         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
94833         of xreadlink.
94834         * lib/relocwrapper.c: Update comments.
94835         * build-aux/install-reloc: Remove xreadlink.c from file list.
94836         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
94837         xreadlink.c.
94838         Reported by Левашев Иван <octagram@bluebottle.com>.
94840 2007-12-24  Bruno Haible  <bruno@clisp.org>
94842         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
94843         * lib/setenv.h: Remove file.
94844         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
94845         lib/setenv.h.
94846         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
94847         (Depends-on): Add stdlib.
94848         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
94849         gl_FUNC_UNSETENV.
94850         (Include): Replace setenv.h with <stdlib.h>.
94851         * modules/unsetenv: New file.
94852         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
94853         * lib/unsetenv.c: Include <stdlib.h> first.
94854         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
94855         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
94856         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
94857         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
94858         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
94859         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
94861         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
94862         * doc/functions/unsetenv.texi: Update.
94863         * modules/xsetenv (Depends-on): Add unsetenv.
94864         * modules/getdate (Depends-on): Likewise.
94865         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
94866         * lib/xsetenv.c: Don't include setenv.h.
94867         * lib/getdate.y: Likewise.
94868         * lib/relocwrapper.c: Likewise.
94869         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
94870         (Depends-on): Add stdlib.
94871         * NEWS: Mention the changes.
94872         Reported by Левашев Иван <octagram@bluebottle.com>.
94874 2007-12-23  Bruno Haible  <bruno@clisp.org>
94876         * lib/memmem.c (memmem): Use lowercase variable names. Tab
94877         indentation.
94879 2007-12-23  Bruno Haible  <bruno@clisp.org>
94881         * lib/c-strcasestr.c: Add more comments.
94882         * lib/c-strstr.c: Likewise.
94883         * lib/mbscasestr.c: Likewise.
94884         * lib/mbsstr.c: Likewise.
94885         * lib/strcasestr.c: Likewise.
94886         * lib/memmem.c: Likewise.
94888 2007-12-23  Bruno Haible  <bruno@clisp.org>
94890         * tests/test-memmem.c: Include <string.h> first.
94892 2007-12-22  Bruno Haible  <bruno@clisp.org>
94894         * gnulib-tool (func_create_testdir): Change $auxdir while generating
94895         the contents of $testsbase.
94896         Reported by Ralf Wildenhues.
94898 2007-12-22  Bruno Haible  <bruno@clisp.org>
94900         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
94901         two variables local_ldadd_before, local_ldadd_last.
94903 2007-12-20  Eric Blake  <ebb9@byu.net>
94905         Work around circular library issue when cross-compiling.
94906         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
94907         that progname.o does not need to pull in rpl_memcmp.
94909 2007-12-19  Eric Blake  <ebb9@byu.net>
94911         Fix memmem to avoid O(n^2) worst-case complexity.
94912         * lib/memmem.c (knuth_morris_pratt): New function.
94913         (memmem): Use it if first few naive iterations fail.
94914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
94915         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
94916         * modules/memchr (License): Likewise.
94917         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
94918         malloca.
94919         * tests/test-memmem.c: Rewrite, borrowing ideas from
94920         test-mbsstr1.c; the old version wouldn't even compile!
94921         * modules/memmem-tests: New file.
94922         * lib/string.in.h (rpl_memmem): Add declaration.
94923         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
94924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
94925         REPLACE_MEMMEM.
94927 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94929         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
94930         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
94931         before any system include files, and undef after them all.  This
94932         should fix a problem on VMS reported by John E. Malmberg in
94933         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
94935 2007-12-17  Eric Blake  <ebb9@byu.net>
94937         Revert addition of verify, for BSD/OS.
94938         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
94939         can't handle large files, for the sake of obsolete platforms.
94940         * modules/fseeko (Depends-on): Remove verify.
94941         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
94942         * doc/functions/ftello.texi (ftello): Likewise.
94943         * doc/functions/fgetpos.texi (fgetpos): Likewise.
94944         Reported by Larry Jones.
94946 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
94948         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
94949         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
94951 2007-12-17  Jim Meyering  <meyering@redhat.com>
94953         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
94954         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
94955         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
94956         * modules/getcwd (Depends-on): Add openat.
94957         Reported by Petr Salinger.
94959 2007-12-17  Bruno Haible  <bruno@clisp.org>
94961         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
94962         avoid a segmentation fault of the configure test on x86_64 systems.
94964 2007-12-15  Jim Meyering  <meyering@redhat.com>
94966         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
94968 2007-12-13  Eric Blake  <ebb9@byu.net>
94970         Another fseek test.
94971         * tests/test-fseek.c (main): Also test ungetc handling.
94972         * tests/test-fseeko.c (main): Likewise.
94973         * modules/fseeko (Depends-on): Add verify.
94974         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
94975         large.
94976         Reported by Larry Jones.
94978         Fix fseeko on mingw.
94979         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
94980         seek.
94982         Beef up fseek tests.
94983         * tests/test-fseek.c (main): Also test eof handling.
94984         * tests/test-fseeko.c (main): Likewise.
94985         Reported by Larry Jones.
94987 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
94989         Fix fseeko on BSD-based platforms.
94990         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
94991         successful seek.
94993 2007-12-12  Eric Blake  <ebb9@byu.net>
94995         Allow circular dependency of separate libtests.a
94996         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
94997         when use_libtests.
94999 2007-12-11  Eric Blake  <ebb9@byu.net>
95001         Fix bug with -0.0L in previous patch.
95002         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
95003         * tests/test-isnan.c (main): Also test on zeroes.
95004         * tests/test-isnanf.c (main): Likewise.
95005         * tests/test-isnanl.h (main): Likewise.
95007         Detect pseudo-denormals on x86 even when cross-compiling.
95008         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
95009         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
95010         invalid bit patterns that happen to satisfy ==.
95012         Avoid link failures with separate libtests.a.
95013         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
95014         last, to satisfy circular dependencies.
95016 2007-12-11  Eric Blake  <ebb9@byu.net>
95017         and Bruno Haible  <bruno@clisp.org>
95019         Fix OpenBSD 4.0 <float.h> handling of long double.
95020         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
95021         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
95022         * doc/headers/float.texi (float.h): Document OpenBSD bug.
95024 2007-12-11  Jim Meyering  <meyering@redhat.com>
95026         * users.txt: Add libvirt.
95028         Support versions of autoconf prior to 2.59c.
95029         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
95030         if it is not already defined.
95032 2007-12-09  Bruno Haible  <bruno@clisp.org>
95034         Let 'gnulib-tool --import' collect sources needed for the tests in
95035         tests/ rather than in lib/.
95036         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
95037         argument. If true, add rules to generate libtests.a, and put libtests.a
95038         into $(LDADD). Consider source files in subdirectories and set
95039         uses_subdirs.
95040         (func_emit_initmacro_start, func_emit_initmacro_end,
95041         func_emit_initmacro_done): Pass all arguments explicitly.
95042         (func_import): Determine two module lists main_modules,
95043         testsrelated_modules. Determine use_libtests. Determine two variables
95044         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
95045         instead of just sed_transform_lib_file. Determine two variables
95046         main_files and testsrelated_files. Compute 'files' as the union of
95047         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
95048         func_add_or_update. In the generated gnulib-comp.m4, collect the
95049         object files for tests/ in different variables than those for lib/.
95050         Substitute LIBTESTS_LIBDEPS.
95051         (func_create_testdir): Combine the uses_subdirs results from
95052         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
95054 2007-12-09  Bruno Haible  <bruno@clisp.org>
95056         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
95057         the build-aux directory.
95059 2007-12-09  Bruno Haible  <bruno@clisp.org>
95061         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
95062         introduced on 2006-09-09.
95064 2007-12-07  Jim Meyering  <meyering@redhat.com>
95066         Let these macros work also with autoconf-2.59.
95067         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
95068         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
95069         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
95071 2007-12-06  Jim Meyering  <meyering@redhat.com>
95073         Avoid a configure-time syntax error in gl_FUNC_ACL.
95074         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
95075         function in each branch, before testing the cache variable.
95077 2007-12-04  Eric Blake  <ebb9@byu.net>
95079         Make scripts executable.
95080         * build-aux/config.guess: Add execute permissions.
95081         * build-aux/config.sub: Likewise.
95082         * build-aux/gendocs.sh: Likewise.
95084         Fix frexp on mingw.
95085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
95086         cross-compiling.
95087         * doc/functions/frexp.texi (frexp): Document the bug.
95089         Make cygwin fseeko check more reliable.
95090         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
95091         version numbers, rather than unrelated feature check.
95092         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
95093         * doc/functions/ftello.texi (ftello): Likewise.
95094         Reported by Bruno Haible.
95096         * m4/strerror.m4: Bump version number.
95098 2007-12-03  Bruno Haible  <bruno@clisp.org>
95100         * doc/functions/mprotect.texi: Mention the mingw problem.
95102 2007-12-03  Eric Blake  <ebb9@byu.net>
95104         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
95105         REPLACE_STRERROR is initialized before this macro.
95107 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
95109         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
95110         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
95111         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
95112         put -lsec in even for programs other than 'ls'.  This fixes a problem
95113         for gettext reported by Bruno Haible in
95114         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
95115         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
95116         Add support for Solaris 10.  This isn't efficient, but should get the
95117         job done for now.
95119 2007-12-03  James Youngman  <jay@gnu.org>
95121         * doc/regexprops-generic.texi: change "an close-group" to "a
95122         close-group" and "illegal" to "not allowed".
95124 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95126         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
95127         pr_byname.h. Needed for the rare case when the maintainer has done
95128         "make maintainer-clean" in the source directory and then attempts a
95129         build outside the source directory.
95130         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
95131         scripts_byname.h.
95133 2007-12-02  Martin Lambers  <marlam@marlam.de>
95134             Bruno Haible  <bruno@clisp.org>
95136         * lib/getpagesize.h: Remove file.
95137         * lib/unistd.in.h: Include declaration of getpagesize here.
95138         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
95139         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
95140         HAVE_SYS_PARAM_H.
95141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
95142         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95143         * modules/getpagesize (Files): Remove lib/getpagesize.h.
95144         (Depends-on): Add unistd.
95145         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
95146         (Include): Use <unistd.h> instead of getpagesize.h.
95147         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
95148         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
95149         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
95150         gl_GETPAGESIZE invocation, already handled by module dependency.
95151         * lib/pagealign_alloc.c: Don't include getpagesize.h.
95153 2007-12-02  Bruno Haible  <bruno@clisp.org>
95155         * modules/strings-tests: New file.
95156         * tests/test-strings.c: New file.
95158         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
95159         * lib/strings.in.h: New file.
95160         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
95161         * m4/strings_h.m4: New file.
95162         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
95163         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
95164         * modules/strings: New file.
95165         * modules/string (Makefile.am): Update.
95166         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
95167         Reported by Karl Berry.
95169 2007-12-01  Eric Blake  <ebb9@byu.net>
95171         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
95172         accommodate fix in cygwin 1.5.25.
95174 2007-12-01  Jim Meyering  <meyering@redhat.com>
95176         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
95177         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
95178         that would inhibit utf8-optimization of a regexp containing line-
95179         or buffer-anchors, e.g., `^', `$'.
95181 2007-11-30  Bruno Haible  <bruno@clisp.org>
95183         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
95184         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
95185         glthread_recursive_lock_init.
95186         * lib/lock.c (glthread_recursive_lock_init)
95187         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
95188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
95190 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
95192         New function qset_acl, like set_acl but with syscall semantics.
95193         * lib/acl.h (qset_acl): New decl.
95194         * lib/acl.c (qset_acl): New function.
95195         (set_acl): Use new function.  Use more-consistent diagnostics.
95197 2007-11-28  Jim Meyering  <meyering@redhat.com>
95199         * modules/physmem (License): Change from GPL to LGPLv2+.
95201 2007-11-26  Bruno Haible  <bruno@clisp.org>
95203         * lib/vasnprintf.c (decode_long_double): Don't abort if the
95204         'long double' type has excess precision.
95205         Reported by Jim Meyering in
95206         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
95208 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95210         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
95211         Sync from <http://gnu.org/licenses>.
95212         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
95213         with license text from same location.
95214         * doc/maintain.texi, doc/standards.texi:  Sync from
95215         <http://savannah.gnu.org/projects/gnustandards>.
95217 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
95218         and Jim Meyering  <meyering@redhat.com>
95220         Adjust getdate' grammar to accept a slightly more regular language.
95221         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
95222         Before, the former was rejected.
95223         * lib/getdate.y (digits_to_date_time): New function, factored
95224         out of ...
95225         (number): ...here.  Just call digits_to_date_time.
95226         (hybrid): New non-terminal to handle an <unsigned number,
95227         signed relative offset> sequence consistently.
95229 2007-11-18  Jim Meyering  <meyering@redhat.com>
95231         Pull my changes from coreutils:
95232         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
95233         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
95234         use of $gnulib_tool_option_extras, so that it's separated from the
95235         preceding argument.
95237         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
95238         * build-aux/bootstrap (cp_mark_as_generated): Create any required
95239         parent destination directories before copying a file into place.
95241 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
95243         bootstrap: work also with 4-argument variant of AC_INIT
95244         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
95246 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95248         Port test-getaddrinfo to Solaris.
95249         Problem reported by Bruno Haible in
95250         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
95251         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
95252         explanation of setting 'hints'.
95253         Don't reject an implementation merely because it returns EAI_SERVICE.
95254         (EAI_SERVICE): Define to 0 if not defined.
95256 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
95258         The license of gnu-make and posix-shell is now "GPLed build tool".
95259         * modules/gnu-make (License): Likewise.
95260         * modules/posix-shell (License): Likewise.
95262         New module posix-shell, for determining a POSIX shell
95263         or perhaps something that is close enough to a POSIX shell.
95264         * m4/posix-shell.m4: New file.
95265         * modules/posix-shell: New file.
95267         * MODULES.html.sh: Mention new module.
95269         New module gnu-make, for determining whether we're using GNU Make.
95270         * m4/gnu-make.m4: New file.
95271         * modules/gnu-make: New file.
95272         * MODULES.html.sh: Mention new module.
95274 2007-11-14  Jim Meyering  <meyering@redhat.com>
95276         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
95277         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
95278         use this macro to create a function _definition_.
95279         Remove useless "#undef ARGMATCH_DIE".
95281 2007-11-14  Bruno Haible  <bruno@clisp.org>
95283         * lib/config.charset: Update for OpenBSD 4.1.
95284         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
95286 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
95288         Document 64-bit #if problems in stdint.texi.
95289         * doc/headers/stdint.texi (stdint.h): Mention problems with
95290         64-bit-#if, and how to work around them.
95292         Don't insist on 'long long int' support in the preprocessor.  It
95293         breaks too many things.  For example, PRIdMAX still uses a 'long
95294         long int' format with the latest Sun compiler, even though
95295         HAVE_LONG_LONG_INT isn't defined due to that compiler's
95296         preprocessor problem.  This causes the latest coreutils to dump
95297         core on Solaris 10 sparc with the Sun C compiler.
95298         Instead, fix the 2007-10-16 problem in a different way, by evaluating
95299         the troublesome expressions at configure-time, not at #if-time.
95300         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
95301         preprocessor.
95302         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
95303         compile-time C checks, done at 'configure'-time.
95304         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
95305         * modules/inttypes (Makefile): Substitute the new symbols that
95306         gl_INTTYPES_H now generates.
95307         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
95309 2007-11-12  Bruno Haible  <bruno@clisp.org>
95311         Tests for Unicode character classification functions.
95313         * modules/unictype/bidicategory-byname-tests: New file.
95314         * modules/unictype/bidicategory-name-tests: New file.
95315         * modules/unictype/bidicategory-of-tests: New file.
95316         * modules/unictype/bidicategory-test-tests: New file.
95317         * modules/unictype/block-list-tests: New file.
95318         * modules/unictype/block-of-tests: New file.
95319         * modules/unictype/block-test-tests: New file.
95320         * modules/unictype/category-C-tests: New file.
95321         * modules/unictype/category-Cc-tests: New file.
95322         * modules/unictype/category-Cf-tests: New file.
95323         * modules/unictype/category-Cn-tests: New file.
95324         * modules/unictype/category-Co-tests: New file.
95325         * modules/unictype/category-Cs-tests: New file.
95326         * modules/unictype/category-L-tests: New file.
95327         * modules/unictype/category-Ll-tests: New file.
95328         * modules/unictype/category-Lm-tests: New file.
95329         * modules/unictype/category-Lo-tests: New file.
95330         * modules/unictype/category-Lt-tests: New file.
95331         * modules/unictype/category-Lu-tests: New file.
95332         * modules/unictype/category-M-tests: New file.
95333         * modules/unictype/category-Mc-tests: New file.
95334         * modules/unictype/category-Me-tests: New file.
95335         * modules/unictype/category-Mn-tests: New file.
95336         * modules/unictype/category-N-tests: New file.
95337         * modules/unictype/category-Nd-tests: New file.
95338         * modules/unictype/category-Nl-tests: New file.
95339         * modules/unictype/category-No-tests: New file.
95340         * modules/unictype/category-P-tests: New file.
95341         * modules/unictype/category-Pc-tests: New file.
95342         * modules/unictype/category-Pd-tests: New file.
95343         * modules/unictype/category-Pe-tests: New file.
95344         * modules/unictype/category-Pf-tests: New file.
95345         * modules/unictype/category-Pi-tests: New file.
95346         * modules/unictype/category-Po-tests: New file.
95347         * modules/unictype/category-Ps-tests: New file.
95348         * modules/unictype/category-S-tests: New file.
95349         * modules/unictype/category-Sc-tests: New file.
95350         * modules/unictype/category-Sk-tests: New file.
95351         * modules/unictype/category-Sm-tests: New file.
95352         * modules/unictype/category-So-tests: New file.
95353         * modules/unictype/category-Z-tests: New file.
95354         * modules/unictype/category-Zl-tests: New file.
95355         * modules/unictype/category-Zp-tests: New file.
95356         * modules/unictype/category-Zs-tests: New file.
95357         * modules/unictype/category-and-not-tests: New file.
95358         * modules/unictype/category-and-tests: New file.
95359         * modules/unictype/category-byname-tests: New file.
95360         * modules/unictype/category-name-tests: New file.
95361         * modules/unictype/category-none-tests: New file.
95362         * modules/unictype/category-of-tests: New file.
95363         * modules/unictype/category-or-tests: New file.
95364         * modules/unictype/category-test-withtable-tests: New file.
95365         * modules/unictype/combining-class-tests: New file.
95366         * modules/unictype/ctype-alnum-tests: New file.
95367         * modules/unictype/ctype-alpha-tests: New file.
95368         * modules/unictype/ctype-blank-tests: New file.
95369         * modules/unictype/ctype-cntrl-tests: New file.
95370         * modules/unictype/ctype-digit-tests: New file.
95371         * modules/unictype/ctype-graph-tests: New file.
95372         * modules/unictype/ctype-lower-tests: New file.
95373         * modules/unictype/ctype-print-tests: New file.
95374         * modules/unictype/ctype-punct-tests: New file.
95375         * modules/unictype/ctype-space-tests: New file.
95376         * modules/unictype/ctype-upper-tests: New file.
95377         * modules/unictype/ctype-xdigit-tests: New file.
95378         * modules/unictype/decimal-digit-tests: New file.
95379         * modules/unictype/digit-tests: New file.
95380         * modules/unictype/mirror-tests: New file.
95381         * modules/unictype/numeric-tests: New file.
95382         * modules/unictype/property-alphabetic-tests: New file.
95383         * modules/unictype/property-ascii-hex-digit-tests: New file.
95384         * modules/unictype/property-bidi-arabic-digit-tests: New file.
95385         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
95386         * modules/unictype/property-bidi-block-separator-tests: New file.
95387         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
95388         * modules/unictype/property-bidi-common-separator-tests: New file.
95389         * modules/unictype/property-bidi-control-tests: New file.
95390         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
95391         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
95392         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
95393         * modules/unictype/property-bidi-european-digit-tests: New file.
95394         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
95395         * modules/unictype/property-bidi-left-to-right-tests: New file.
95396         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
95397         * modules/unictype/property-bidi-other-neutral-tests: New file.
95398         * modules/unictype/property-bidi-pdf-tests: New file.
95399         * modules/unictype/property-bidi-segment-separator-tests: New file.
95400         * modules/unictype/property-bidi-whitespace-tests: New file.
95401         * modules/unictype/property-byname-tests: New file.
95402         * modules/unictype/property-combining-tests: New file.
95403         * modules/unictype/property-composite-tests: New file.
95404         * modules/unictype/property-currency-symbol-tests: New file.
95405         * modules/unictype/property-dash-tests: New file.
95406         * modules/unictype/property-decimal-digit-tests: New file.
95407         * modules/unictype/property-default-ignorable-code-point-tests: New file.
95408         * modules/unictype/property-deprecated-tests: New file.
95409         * modules/unictype/property-diacritic-tests: New file.
95410         * modules/unictype/property-extender-tests: New file.
95411         * modules/unictype/property-format-control-tests: New file.
95412         * modules/unictype/property-grapheme-base-tests: New file.
95413         * modules/unictype/property-grapheme-extend-tests: New file.
95414         * modules/unictype/property-grapheme-link-tests: New file.
95415         * modules/unictype/property-hex-digit-tests: New file.
95416         * modules/unictype/property-hyphen-tests: New file.
95417         * modules/unictype/property-id-continue-tests: New file.
95418         * modules/unictype/property-id-start-tests: New file.
95419         * modules/unictype/property-ideographic-tests: New file.
95420         * modules/unictype/property-ids-binary-operator-tests: New file.
95421         * modules/unictype/property-ids-trinary-operator-tests: New file.
95422         * modules/unictype/property-ignorable-control-tests: New file.
95423         * modules/unictype/property-iso-control-tests: New file.
95424         * modules/unictype/property-join-control-tests: New file.
95425         * modules/unictype/property-left-of-pair-tests: New file.
95426         * modules/unictype/property-line-separator-tests: New file.
95427         * modules/unictype/property-logical-order-exception-tests: New file.
95428         * modules/unictype/property-lowercase-tests: New file.
95429         * modules/unictype/property-math-tests: New file.
95430         * modules/unictype/property-non-break-tests: New file.
95431         * modules/unictype/property-not-a-character-tests: New file.
95432         * modules/unictype/property-numeric-tests: New file.
95433         * modules/unictype/property-other-alphabetic-tests: New file.
95434         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
95435         * modules/unictype/property-other-grapheme-extend-tests: New file.
95436         * modules/unictype/property-other-id-continue-tests: New file.
95437         * modules/unictype/property-other-id-start-tests: New file.
95438         * modules/unictype/property-other-lowercase-tests: New file.
95439         * modules/unictype/property-other-math-tests: New file.
95440         * modules/unictype/property-other-uppercase-tests: New file.
95441         * modules/unictype/property-paired-punctuation-tests: New file.
95442         * modules/unictype/property-paragraph-separator-tests: New file.
95443         * modules/unictype/property-pattern-syntax-tests: New file.
95444         * modules/unictype/property-pattern-white-space-tests: New file.
95445         * modules/unictype/property-private-use-tests: New file.
95446         * modules/unictype/property-punctuation-tests: New file.
95447         * modules/unictype/property-quotation-mark-tests: New file.
95448         * modules/unictype/property-radical-tests: New file.
95449         * modules/unictype/property-sentence-terminal-tests: New file.
95450         * modules/unictype/property-soft-dotted-tests: New file.
95451         * modules/unictype/property-space-tests: New file.
95452         * modules/unictype/property-terminal-punctuation-tests: New file.
95453         * modules/unictype/property-test-tests: New file.
95454         * modules/unictype/property-titlecase-tests: New file.
95455         * modules/unictype/property-unassigned-code-value-tests: New file.
95456         * modules/unictype/property-unified-ideograph-tests: New file.
95457         * modules/unictype/property-uppercase-tests: New file.
95458         * modules/unictype/property-variation-selector-tests: New file.
95459         * modules/unictype/property-white-space-tests: New file.
95460         * modules/unictype/property-xid-continue-tests: New file.
95461         * modules/unictype/property-xid-start-tests: New file.
95462         * modules/unictype/property-zero-width-tests: New file.
95463         * modules/unictype/scripts-tests: New file.
95464         * modules/unictype/syntax-c-ident-tests: New file.
95465         * modules/unictype/syntax-c-whitespace-tests: New file.
95466         * modules/unictype/syntax-java-ident-tests: New file.
95467         * modules/unictype/syntax-java-whitespace-tests: New file.
95468         * tests/unictype/test-bidi_byname.c: New file.
95469         * tests/unictype/test-bidi_name.c: New file.
95470         * tests/unictype/test-bidi_of.c: New file.
95471         * tests/unictype/test-bidi_test.c: New file.
95472         * tests/unictype/test-block_list.c: New file.
95473         * tests/unictype/test-block_of.c: New file.
95474         * tests/unictype/test-block_test.c: New file.
95475         * tests/unictype/test-categ_and.c: New file.
95476         * tests/unictype/test-categ_and_not.c: New file.
95477         * tests/unictype/test-categ_byname.c: New file.
95478         * tests/unictype/test-categ_name.c: New file.
95479         * tests/unictype/test-categ_none.c: New file.
95480         * tests/unictype/test-categ_of.c: New file.
95481         * tests/unictype/test-categ_or.c: New file.
95482         * tests/unictype/test-categ_test_withtable.c: New file.
95483         * tests/unictype/test-combining.c: New file.
95484         * tests/unictype/test-decdigit.c: New file.
95485         * tests/unictype/test-digit.c: New file.
95486         * tests/unictype/test-mirror.c: New file.
95487         * tests/unictype/test-numeric.c: New file.
95488         * tests/unictype/test-pr_byname.c: New file.
95489         * tests/unictype/test-pr_test.c: New file.
95490         * tests/unictype/test-predicate-part1.h: New file.
95491         * tests/unictype/test-predicate-part2.h: New file.
95492         * tests/unictype/test-scripts.c: New file.
95493         * tests/unictype/test-sy_c_ident.c: New file.
95494         * tests/unictype/test-sy_java_ident.c: New file.
95496         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
95497         for Unicode 5.0.0.
95498         * tests/unictype/test-categ_Cc.c: Likewise.
95499         * tests/unictype/test-categ_Cf.c: Likewise.
95500         * tests/unictype/test-categ_Cn.c: Likewise.
95501         * tests/unictype/test-categ_Co.c: Likewise.
95502         * tests/unictype/test-categ_Cs.c: Likewise.
95503         * tests/unictype/test-categ_L.c: Likewise.
95504         * tests/unictype/test-categ_Ll.c: Likewise.
95505         * tests/unictype/test-categ_Lm.c: Likewise.
95506         * tests/unictype/test-categ_Lo.c: Likewise.
95507         * tests/unictype/test-categ_Lt.c: Likewise.
95508         * tests/unictype/test-categ_Lu.c: Likewise.
95509         * tests/unictype/test-categ_M.c: Likewise.
95510         * tests/unictype/test-categ_Mc.c: Likewise.
95511         * tests/unictype/test-categ_Me.c: Likewise.
95512         * tests/unictype/test-categ_Mn.c: Likewise.
95513         * tests/unictype/test-categ_N.c: Likewise.
95514         * tests/unictype/test-categ_Nd.c: Likewise.
95515         * tests/unictype/test-categ_Nl.c: Likewise.
95516         * tests/unictype/test-categ_No.c: Likewise.
95517         * tests/unictype/test-categ_P.c: Likewise.
95518         * tests/unictype/test-categ_Pc.c: Likewise.
95519         * tests/unictype/test-categ_Pd.c: Likewise.
95520         * tests/unictype/test-categ_Pe.c: Likewise.
95521         * tests/unictype/test-categ_Pf.c: Likewise.
95522         * tests/unictype/test-categ_Pi.c: Likewise.
95523         * tests/unictype/test-categ_Po.c: Likewise.
95524         * tests/unictype/test-categ_Ps.c: Likewise.
95525         * tests/unictype/test-categ_S.c: Likewise.
95526         * tests/unictype/test-categ_Sc.c: Likewise.
95527         * tests/unictype/test-categ_Sk.c: Likewise.
95528         * tests/unictype/test-categ_Sm.c: Likewise.
95529         * tests/unictype/test-categ_So.c: Likewise.
95530         * tests/unictype/test-categ_Z.c: Likewise.
95531         * tests/unictype/test-categ_Zl.c: Likewise.
95532         * tests/unictype/test-categ_Zp.c: Likewise.
95533         * tests/unictype/test-categ_Zs.c: Likewise.
95534         * tests/unictype/test-ctype_alnum.c: Likewise.
95535         * tests/unictype/test-ctype_alpha.c: Likewise.
95536         * tests/unictype/test-ctype_blank.c: Likewise.
95537         * tests/unictype/test-ctype_cntrl.c: Likewise.
95538         * tests/unictype/test-ctype_digit.c: Likewise.
95539         * tests/unictype/test-ctype_graph.c: Likewise.
95540         * tests/unictype/test-ctype_lower.c: Likewise.
95541         * tests/unictype/test-ctype_print.c: Likewise.
95542         * tests/unictype/test-ctype_punct.c: Likewise.
95543         * tests/unictype/test-ctype_space.c: Likewise.
95544         * tests/unictype/test-ctype_upper.c: Likewise.
95545         * tests/unictype/test-ctype_xdigit.c: Likewise.
95546         * tests/unictype/test-decdigit.h: Likewise.
95547         * tests/unictype/test-digit.h: Likewise.
95548         * tests/unictype/test-numeric.h: Likewise.
95549         * tests/unictype/test-pr_alphabetic.c: Likewise.
95550         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
95551         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
95552         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
95553         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
95554         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
95555         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
95556         * tests/unictype/test-pr_bidi_control.c: Likewise.
95557         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
95558         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
95559         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
95560         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
95561         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
95562         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
95563         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
95564         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
95565         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
95566         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
95567         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
95568         * tests/unictype/test-pr_combining.c: Likewise.
95569         * tests/unictype/test-pr_composite.c: Likewise.
95570         * tests/unictype/test-pr_currency_symbol.c: Likewise.
95571         * tests/unictype/test-pr_dash.c: Likewise.
95572         * tests/unictype/test-pr_decimal_digit.c: Likewise.
95573         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
95574         * tests/unictype/test-pr_deprecated.c: Likewise.
95575         * tests/unictype/test-pr_diacritic.c: Likewise.
95576         * tests/unictype/test-pr_extender.c: Likewise.
95577         * tests/unictype/test-pr_format_control.c: Likewise.
95578         * tests/unictype/test-pr_grapheme_base.c: Likewise.
95579         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
95580         * tests/unictype/test-pr_grapheme_link.c: Likewise.
95581         * tests/unictype/test-pr_hex_digit.c: Likewise.
95582         * tests/unictype/test-pr_hyphen.c: Likewise.
95583         * tests/unictype/test-pr_id_continue.c: Likewise.
95584         * tests/unictype/test-pr_id_start.c: Likewise.
95585         * tests/unictype/test-pr_ideographic.c: Likewise.
95586         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
95587         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
95588         * tests/unictype/test-pr_ignorable_control.c: Likewise.
95589         * tests/unictype/test-pr_iso_control.c: Likewise.
95590         * tests/unictype/test-pr_join_control.c: Likewise.
95591         * tests/unictype/test-pr_left_of_pair.c: Likewise.
95592         * tests/unictype/test-pr_line_separator.c: Likewise.
95593         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
95594         * tests/unictype/test-pr_lowercase.c: Likewise.
95595         * tests/unictype/test-pr_math.c: Likewise.
95596         * tests/unictype/test-pr_non_break.c: Likewise.
95597         * tests/unictype/test-pr_not_a_character.c: Likewise.
95598         * tests/unictype/test-pr_numeric.c: Likewise.
95599         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
95600         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
95601         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
95602         * tests/unictype/test-pr_other_id_continue.c: Likewise.
95603         * tests/unictype/test-pr_other_id_start.c: Likewise.
95604         * tests/unictype/test-pr_other_lowercase.c: Likewise.
95605         * tests/unictype/test-pr_other_math.c: Likewise.
95606         * tests/unictype/test-pr_other_uppercase.c: Likewise.
95607         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
95608         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
95609         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
95610         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
95611         * tests/unictype/test-pr_private_use.c: Likewise.
95612         * tests/unictype/test-pr_punctuation.c: Likewise.
95613         * tests/unictype/test-pr_quotation_mark.c: Likewise.
95614         * tests/unictype/test-pr_radical.c: Likewise.
95615         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
95616         * tests/unictype/test-pr_soft_dotted.c: Likewise.
95617         * tests/unictype/test-pr_space.c: Likewise.
95618         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
95619         * tests/unictype/test-pr_titlecase.c: Likewise.
95620         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
95621         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
95622         * tests/unictype/test-pr_uppercase.c: Likewise.
95623         * tests/unictype/test-pr_variation_selector.c: Likewise.
95624         * tests/unictype/test-pr_white_space.c: Likewise.
95625         * tests/unictype/test-pr_xid_continue.c: Likewise.
95626         * tests/unictype/test-pr_xid_start.c: Likewise.
95627         * tests/unictype/test-pr_zero_width.c: Likewise.
95628         * tests/unictype/test-sy_c_whitespace.c: Likewise.
95629         * tests/unictype/test-sy_java_whitespace.c: Likewise.
95631 2007-11-12  Bruno Haible  <bruno@clisp.org>
95633         Unicode character classification functions.
95634         * lib/unictype.h: New file.
95635         * modules/unictype/base: New file.
95636         * modules/unictype/category-L: New file.
95637         * modules/unictype/category-Lu: New file.
95638         * modules/unictype/category-Ll: New file.
95639         * modules/unictype/category-Lt: New file.
95640         * modules/unictype/category-Lm: New file.
95641         * modules/unictype/category-Lo: New file.
95642         * modules/unictype/category-M: New file.
95643         * modules/unictype/category-Mn: New file.
95644         * modules/unictype/category-Mc: New file.
95645         * modules/unictype/category-Me: New file.
95646         * modules/unictype/category-N: New file.
95647         * modules/unictype/category-Nd: New file.
95648         * modules/unictype/category-Nl: New file.
95649         * modules/unictype/category-No: New file.
95650         * modules/unictype/category-P: New file.
95651         * modules/unictype/category-Pc: New file.
95652         * modules/unictype/category-Pd: New file.
95653         * modules/unictype/category-Ps: New file.
95654         * modules/unictype/category-Pe: New file.
95655         * modules/unictype/category-Pi: New file.
95656         * modules/unictype/category-Pf: New file.
95657         * modules/unictype/category-Po: New file.
95658         * modules/unictype/category-S: New file.
95659         * modules/unictype/category-Sm: New file.
95660         * modules/unictype/category-Sc: New file.
95661         * modules/unictype/category-Sk: New file.
95662         * modules/unictype/category-So: New file.
95663         * modules/unictype/category-Z: New file.
95664         * modules/unictype/category-Zs: New file.
95665         * modules/unictype/category-Zl: New file.
95666         * modules/unictype/category-Zp: New file.
95667         * modules/unictype/category-C: New file.
95668         * modules/unictype/category-Cc: New file.
95669         * modules/unictype/category-Cf: New file.
95670         * modules/unictype/category-Cs: New file.
95671         * modules/unictype/category-Co: New file.
95672         * modules/unictype/category-Cn: New file.
95673         * modules/unictype/category-or: New file.
95674         * modules/unictype/category-of: New file.
95675         * modules/unictype/category-test: New file.
95676         * modules/unictype/category-test-withtable: New file.
95677         * modules/unictype/category-byname: New file.
95678         * modules/unictype/category-none: New file.
95679         * modules/unictype/category-and: New file.
95680         * modules/unictype/category-and-not: New file.
95681         * modules/unictype/category-name: New file.
95682         * modules/unictype/combining-class: New file.
95683         * modules/unictype/category-all: New file.
95684         * modules/unictype/bidicategory-all: New file.
95685         * modules/unictype/bidicategory-byname: New file.
95686         * modules/unictype/bidicategory-name: New file.
95687         * modules/unictype/bidicategory-of: New file.
95688         * modules/unictype/bidicategory-test: New file.
95689         * modules/unictype/decimal-digit: New file.
95690         * modules/unictype/digit: New file.
95691         * modules/unictype/numeric: New file.
95692         * modules/unictype/mirror: New file.
95693         * modules/unictype/property-white-space: New file.
95694         * modules/unictype/property-alphabetic: New file.
95695         * modules/unictype/property-other-alphabetic: New file.
95696         * modules/unictype/property-not-a-character: New file.
95697         * modules/unictype/property-default-ignorable-code-point: New file.
95698         * modules/unictype/property-other-default-ignorable-code-point: New
95699         file.
95700         * modules/unictype/property-deprecated: New file.
95701         * modules/unictype/property-logical-order-exception: New file.
95702         * modules/unictype/property-variation-selector: New file.
95703         * modules/unictype/property-private-use: New file.
95704         * modules/unictype/property-unassigned-code-value: New file.
95705         * modules/unictype/property-uppercase: New file.
95706         * modules/unictype/property-other-uppercase: New file.
95707         * modules/unictype/property-lowercase: New file.
95708         * modules/unictype/property-other-lowercase: New file.
95709         * modules/unictype/property-titlecase: New file.
95710         * modules/unictype/property-soft-dotted: New file.
95711         * modules/unictype/property-id-start: New file.
95712         * modules/unictype/property-other-id-start: New file.
95713         * modules/unictype/property-id-continue: New file.
95714         * modules/unictype/property-other-id-continue: New file.
95715         * modules/unictype/property-xid-start: New file.
95716         * modules/unictype/property-xid-continue: New file.
95717         * modules/unictype/property-pattern-white-space: New file.
95718         * modules/unictype/property-pattern-syntax: New file.
95719         * modules/unictype/property-join-control: New file.
95720         * modules/unictype/property-grapheme-base: New file.
95721         * modules/unictype/property-grapheme-extend: New file.
95722         * modules/unictype/property-other-grapheme-extend: New file.
95723         * modules/unictype/property-grapheme-link: New file.
95724         * modules/unictype/property-bidi-control: New file.
95725         * modules/unictype/property-bidi-left-to-right: New file.
95726         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
95727         * modules/unictype/property-bidi-arabic-right-to-left: New file.
95728         * modules/unictype/property-bidi-european-digit: New file.
95729         * modules/unictype/property-bidi-eur-num-separator: New file.
95730         * modules/unictype/property-bidi-eur-num-terminator: New file.
95731         * modules/unictype/property-bidi-arabic-digit: New file.
95732         * modules/unictype/property-bidi-common-separator: New file.
95733         * modules/unictype/property-bidi-block-separator: New file.
95734         * modules/unictype/property-bidi-segment-separator: New file.
95735         * modules/unictype/property-bidi-whitespace: New file.
95736         * modules/unictype/property-bidi-non-spacing-mark: New file.
95737         * modules/unictype/property-bidi-boundary-neutral: New file.
95738         * modules/unictype/property-bidi-pdf: New file.
95739         * modules/unictype/property-bidi-embedding-or-override: New file.
95740         * modules/unictype/property-bidi-other-neutral: New file.
95741         * modules/unictype/property-hex-digit: New file.
95742         * modules/unictype/property-ascii-hex-digit: New file.
95743         * modules/unictype/property-ideographic: New file.
95744         * modules/unictype/property-unified-ideograph: New file.
95745         * modules/unictype/property-radical: New file.
95746         * modules/unictype/property-ids-binary-operator: New file.
95747         * modules/unictype/property-ids-trinary-operator: New file.
95748         * modules/unictype/property-zero-width: New file.
95749         * modules/unictype/property-space: New file.
95750         * modules/unictype/property-non-break: New file.
95751         * modules/unictype/property-iso-control: New file.
95752         * modules/unictype/property-format-control: New file.
95753         * modules/unictype/property-dash: New file.
95754         * modules/unictype/property-hyphen: New file.
95755         * modules/unictype/property-punctuation: New file.
95756         * modules/unictype/property-line-separator: New file.
95757         * modules/unictype/property-paragraph-separator: New file.
95758         * modules/unictype/property-quotation-mark: New file.
95759         * modules/unictype/property-sentence-terminal: New file.
95760         * modules/unictype/property-terminal-punctuation: New file.
95761         * modules/unictype/property-currency-symbol: New file.
95762         * modules/unictype/property-math: New file.
95763         * modules/unictype/property-other-math: New file.
95764         * modules/unictype/property-paired-punctuation: New file.
95765         * modules/unictype/property-left-of-pair: New file.
95766         * modules/unictype/property-combining: New file.
95767         * modules/unictype/property-composite: New file.
95768         * modules/unictype/property-decimal-digit: New file.
95769         * modules/unictype/property-numeric: New file.
95770         * modules/unictype/property-diacritic: New file.
95771         * modules/unictype/property-extender: New file.
95772         * modules/unictype/property-ignorable-control: New file.
95773         * modules/unictype/property-test: New file.
95774         * modules/unictype/property-byname: New file.
95775         * modules/unictype/property-all: New file.
95776         * modules/unictype/scripts: New file.
95777         * modules/unictype/scripts-all: New file.
95778         * modules/unictype/block-of: New file.
95779         * modules/unictype/block-test: New file.
95780         * modules/unictype/block-list: New file.
95781         * modules/unictype/block-all: New file.
95782         * modules/unictype/syntax-c-whitespace: New file.
95783         * modules/unictype/syntax-java-whitespace: New file.
95784         * modules/unictype/syntax-c-ident: New file.
95785         * modules/unictype/syntax-java-ident: New file.
95786         * modules/unictype/ctype-alnum: New file.
95787         * modules/unictype/ctype-alpha: New file.
95788         * modules/unictype/ctype-cntrl: New file.
95789         * modules/unictype/ctype-digit: New file.
95790         * modules/unictype/ctype-graph: New file.
95791         * modules/unictype/ctype-lower: New file.
95792         * modules/unictype/ctype-print: New file.
95793         * modules/unictype/ctype-punct: New file.
95794         * modules/unictype/ctype-space: New file.
95795         * modules/unictype/ctype-upper: New file.
95796         * modules/unictype/ctype-xdigit: New file.
95797         * modules/unictype/ctype-blank: New file.
95798         * lib/unictype/bidi_byname.c: New file.
95799         * lib/unictype/bidi_name.c: New file.
95800         * lib/unictype/bidi_of.c: New file.
95801         * lib/unictype/bidi_test.c: New file.
95802         * lib/unictype/bitmap.h: New file.
95803         * lib/unictype/block_test.c: New file.
95804         * lib/unictype/blocks.c: New file.
95805         * lib/unictype/categ_C.c: New file.
95806         * lib/unictype/categ_Cc.c: New file.
95807         * lib/unictype/categ_Cf.c: New file.
95808         * lib/unictype/categ_Cn.c: New file.
95809         * lib/unictype/categ_Co.c: New file.
95810         * lib/unictype/categ_Cs.c: New file.
95811         * lib/unictype/categ_L.c: New file.
95812         * lib/unictype/categ_Ll.c: New file.
95813         * lib/unictype/categ_Lm.c: New file.
95814         * lib/unictype/categ_Lo.c: New file.
95815         * lib/unictype/categ_Lt.c: New file.
95816         * lib/unictype/categ_Lu.c: New file.
95817         * lib/unictype/categ_M.c: New file.
95818         * lib/unictype/categ_Mc.c: New file.
95819         * lib/unictype/categ_Me.c: New file.
95820         * lib/unictype/categ_Mn.c: New file.
95821         * lib/unictype/categ_N.c: New file.
95822         * lib/unictype/categ_Nd.c: New file.
95823         * lib/unictype/categ_Nl.c: New file.
95824         * lib/unictype/categ_No.c: New file.
95825         * lib/unictype/categ_P.c: New file.
95826         * lib/unictype/categ_Pc.c: New file.
95827         * lib/unictype/categ_Pd.c: New file.
95828         * lib/unictype/categ_Pe.c: New file.
95829         * lib/unictype/categ_Pf.c: New file.
95830         * lib/unictype/categ_Pi.c: New file.
95831         * lib/unictype/categ_Po.c: New file.
95832         * lib/unictype/categ_Ps.c: New file.
95833         * lib/unictype/categ_S.c: New file.
95834         * lib/unictype/categ_Sc.c: New file.
95835         * lib/unictype/categ_Sk.c: New file.
95836         * lib/unictype/categ_Sm.c: New file.
95837         * lib/unictype/categ_So.c: New file.
95838         * lib/unictype/categ_Z.c: New file.
95839         * lib/unictype/categ_Zl.c: New file.
95840         * lib/unictype/categ_Zp.c: New file.
95841         * lib/unictype/categ_Zs.c: New file.
95842         * lib/unictype/categ_and.c: New file.
95843         * lib/unictype/categ_and_not.c: New file.
95844         * lib/unictype/categ_byname.c: New file.
95845         * lib/unictype/categ_name.c: New file.
95846         * lib/unictype/categ_none.c: New file.
95847         * lib/unictype/categ_of.c: New file.
95848         * lib/unictype/categ_or.c: New file.
95849         * lib/unictype/categ_test.c: New file.
95850         * lib/unictype/combining.c: New file.
95851         * lib/unictype/ctype_alnum.c: New file.
95852         * lib/unictype/ctype_alpha.c: New file.
95853         * lib/unictype/ctype_blank.c: New file.
95854         * lib/unictype/ctype_cntrl.c: New file.
95855         * lib/unictype/ctype_digit.c: New file.
95856         * lib/unictype/ctype_graph.c: New file.
95857         * lib/unictype/ctype_lower.c: New file.
95858         * lib/unictype/ctype_print.c: New file.
95859         * lib/unictype/ctype_punct.c: New file.
95860         * lib/unictype/ctype_space.c: New file.
95861         * lib/unictype/ctype_upper.c: New file.
95862         * lib/unictype/ctype_xdigit.c: New file.
95863         * lib/unictype/decdigit.c: New file.
95864         * lib/unictype/digit.c: New file.
95865         * lib/unictype/identsyntaxmap.h: New file.
95866         * lib/unictype/mirror.c: New file.
95867         * lib/unictype/numeric.c: New file.
95868         * lib/unictype/pr_alphabetic.c: New file.
95869         * lib/unictype/pr_ascii_hex_digit.c: New file.
95870         * lib/unictype/pr_bidi_arabic_digit.c: New file.
95871         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
95872         * lib/unictype/pr_bidi_block_separator.c: New file.
95873         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
95874         * lib/unictype/pr_bidi_common_separator.c: New file.
95875         * lib/unictype/pr_bidi_control.c: New file.
95876         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
95877         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
95878         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
95879         * lib/unictype/pr_bidi_european_digit.c: New file.
95880         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
95881         * lib/unictype/pr_bidi_left_to_right.c: New file.
95882         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
95883         * lib/unictype/pr_bidi_other_neutral.c: New file.
95884         * lib/unictype/pr_bidi_pdf.c: New file.
95885         * lib/unictype/pr_bidi_segment_separator.c: New file.
95886         * lib/unictype/pr_bidi_whitespace.c: New file.
95887         * lib/unictype/pr_byname.c: New file.
95888         * lib/unictype/pr_byname.gperf: New file.
95889         * lib/unictype/pr_combining.c: New file.
95890         * lib/unictype/pr_composite.c: New file.
95891         * lib/unictype/pr_currency_symbol.c: New file.
95892         * lib/unictype/pr_dash.c: New file.
95893         * lib/unictype/pr_decimal_digit.c: New file.
95894         * lib/unictype/pr_default_ignorable_code_point.c: New file.
95895         * lib/unictype/pr_deprecated.c: New file.
95896         * lib/unictype/pr_diacritic.c: New file.
95897         * lib/unictype/pr_extender.c: New file.
95898         * lib/unictype/pr_format_control.c: New file.
95899         * lib/unictype/pr_grapheme_base.c: New file.
95900         * lib/unictype/pr_grapheme_extend.c: New file.
95901         * lib/unictype/pr_grapheme_link.c: New file.
95902         * lib/unictype/pr_hex_digit.c: New file.
95903         * lib/unictype/pr_hyphen.c: New file.
95904         * lib/unictype/pr_id_continue.c: New file.
95905         * lib/unictype/pr_id_start.c: New file.
95906         * lib/unictype/pr_ideographic.c: New file.
95907         * lib/unictype/pr_ids_binary_operator.c: New file.
95908         * lib/unictype/pr_ids_trinary_operator.c: New file.
95909         * lib/unictype/pr_ignorable_control.c: New file.
95910         * lib/unictype/pr_iso_control.c: New file.
95911         * lib/unictype/pr_join_control.c: New file.
95912         * lib/unictype/pr_left_of_pair.c: New file.
95913         * lib/unictype/pr_line_separator.c: New file.
95914         * lib/unictype/pr_logical_order_exception.c: New file.
95915         * lib/unictype/pr_lowercase.c: New file.
95916         * lib/unictype/pr_math.c: New file.
95917         * lib/unictype/pr_non_break.c: New file.
95918         * lib/unictype/pr_not_a_character.c: New file.
95919         * lib/unictype/pr_numeric.c: New file.
95920         * lib/unictype/pr_other_alphabetic.c: New file.
95921         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
95922         * lib/unictype/pr_other_grapheme_extend.c: New file.
95923         * lib/unictype/pr_other_id_continue.c: New file.
95924         * lib/unictype/pr_other_id_start.c: New file.
95925         * lib/unictype/pr_other_lowercase.c: New file.
95926         * lib/unictype/pr_other_math.c: New file.
95927         * lib/unictype/pr_other_uppercase.c: New file.
95928         * lib/unictype/pr_paired_punctuation.c: New file.
95929         * lib/unictype/pr_paragraph_separator.c: New file.
95930         * lib/unictype/pr_pattern_syntax.c: New file.
95931         * lib/unictype/pr_pattern_white_space.c: New file.
95932         * lib/unictype/pr_private_use.c: New file.
95933         * lib/unictype/pr_punctuation.c: New file.
95934         * lib/unictype/pr_quotation_mark.c: New file.
95935         * lib/unictype/pr_radical.c: New file.
95936         * lib/unictype/pr_sentence_terminal.c: New file.
95937         * lib/unictype/pr_soft_dotted.c: New file.
95938         * lib/unictype/pr_space.c: New file.
95939         * lib/unictype/pr_terminal_punctuation.c: New file.
95940         * lib/unictype/pr_test.c: New file.
95941         * lib/unictype/pr_titlecase.c: New file.
95942         * lib/unictype/pr_unassigned_code_value.c: New file.
95943         * lib/unictype/pr_unified_ideograph.c: New file.
95944         * lib/unictype/pr_uppercase.c: New file.
95945         * lib/unictype/pr_variation_selector.c: New file.
95946         * lib/unictype/pr_white_space.c: New file.
95947         * lib/unictype/pr_xid_continue.c: New file.
95948         * lib/unictype/pr_xid_start.c: New file.
95949         * lib/unictype/pr_zero_width.c: New file.
95950         * lib/unictype/scripts.c: New file.
95951         * lib/unictype/sy_c_ident.c: New file.
95952         * lib/unictype/sy_c_whitespace.c: New file.
95953         * lib/unictype/sy_java_ident.c: New file.
95954         * lib/unictype/sy_java_whitespace.c: New file.
95956         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
95957         Unicode 5.0.0.
95958         * lib/unictype/blocks.h: Likewise.
95959         * lib/unictype/categ_C.h: Likewise.
95960         * lib/unictype/categ_Cc.h: Likewise.
95961         * lib/unictype/categ_Cf.h: Likewise.
95962         * lib/unictype/categ_Cn.h: Likewise.
95963         * lib/unictype/categ_Co.h: Likewise.
95964         * lib/unictype/categ_Cs.h: Likewise.
95965         * lib/unictype/categ_L.h: Likewise.
95966         * lib/unictype/categ_Ll.h: Likewise.
95967         * lib/unictype/categ_Lm.h: Likewise.
95968         * lib/unictype/categ_Lo.h: Likewise.
95969         * lib/unictype/categ_Lt.h: Likewise.
95970         * lib/unictype/categ_Lu.h: Likewise.
95971         * lib/unictype/categ_M.h: Likewise.
95972         * lib/unictype/categ_Mc.h: Likewise.
95973         * lib/unictype/categ_Me.h: Likewise.
95974         * lib/unictype/categ_Mn.h: Likewise.
95975         * lib/unictype/categ_N.h: Likewise.
95976         * lib/unictype/categ_Nd.h: Likewise.
95977         * lib/unictype/categ_Nl.h: Likewise.
95978         * lib/unictype/categ_No.h: Likewise.
95979         * lib/unictype/categ_P.h: Likewise.
95980         * lib/unictype/categ_Pc.h: Likewise.
95981         * lib/unictype/categ_Pd.h: Likewise.
95982         * lib/unictype/categ_Pe.h: Likewise.
95983         * lib/unictype/categ_Pf.h: Likewise.
95984         * lib/unictype/categ_Pi.h: Likewise.
95985         * lib/unictype/categ_Po.h: Likewise.
95986         * lib/unictype/categ_Ps.h: Likewise.
95987         * lib/unictype/categ_S.h: Likewise.
95988         * lib/unictype/categ_Sc.h: Likewise.
95989         * lib/unictype/categ_Sk.h: Likewise.
95990         * lib/unictype/categ_Sm.h: Likewise.
95991         * lib/unictype/categ_So.h: Likewise.
95992         * lib/unictype/categ_Z.h: Likewise.
95993         * lib/unictype/categ_Zl.h: Likewise.
95994         * lib/unictype/categ_Zp.h: Likewise.
95995         * lib/unictype/categ_Zs.h: Likewise.
95996         * lib/unictype/categ_of.h: Likewise.
95997         * lib/unictype/combining.h: Likewise.
95998         * lib/unictype/ctype_alnum.h: Likewise.
95999         * lib/unictype/ctype_alpha.h: Likewise.
96000         * lib/unictype/ctype_blank.h: Likewise.
96001         * lib/unictype/ctype_cntrl.h: Likewise.
96002         * lib/unictype/ctype_digit.h: Likewise.
96003         * lib/unictype/ctype_graph.h: Likewise.
96004         * lib/unictype/ctype_lower.h: Likewise.
96005         * lib/unictype/ctype_print.h: Likewise.
96006         * lib/unictype/ctype_punct.h: Likewise.
96007         * lib/unictype/ctype_space.h: Likewise.
96008         * lib/unictype/ctype_upper.h: Likewise.
96009         * lib/unictype/ctype_xdigit.h: Likewise.
96010         * lib/unictype/decdigit.h: Likewise.
96011         * lib/unictype/digit.h: Likewise.
96012         * lib/unictype/mirror.h: Likewise.
96013         * lib/unictype/numeric.h: Likewise.
96014         * lib/unictype/pr_alphabetic.h: Likewise.
96015         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
96016         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
96017         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
96018         * lib/unictype/pr_bidi_block_separator.h: Likewise.
96019         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
96020         * lib/unictype/pr_bidi_common_separator.h: Likewise.
96021         * lib/unictype/pr_bidi_control.h: Likewise.
96022         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
96023         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
96024         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
96025         * lib/unictype/pr_bidi_european_digit.h: Likewise.
96026         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
96027         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
96028         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
96029         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
96030         * lib/unictype/pr_bidi_pdf.h: Likewise.
96031         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
96032         * lib/unictype/pr_bidi_whitespace.h: Likewise.
96033         * lib/unictype/pr_combining.h: Likewise.
96034         * lib/unictype/pr_composite.h: Likewise.
96035         * lib/unictype/pr_currency_symbol.h: Likewise.
96036         * lib/unictype/pr_dash.h: Likewise.
96037         * lib/unictype/pr_decimal_digit.h: Likewise.
96038         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
96039         * lib/unictype/pr_deprecated.h: Likewise.
96040         * lib/unictype/pr_diacritic.h: Likewise.
96041         * lib/unictype/pr_extender.h: Likewise.
96042         * lib/unictype/pr_format_control.h: Likewise.
96043         * lib/unictype/pr_grapheme_base.h: Likewise.
96044         * lib/unictype/pr_grapheme_extend.h: Likewise.
96045         * lib/unictype/pr_grapheme_link.h: Likewise.
96046         * lib/unictype/pr_hex_digit.h: Likewise.
96047         * lib/unictype/pr_hyphen.h: Likewise.
96048         * lib/unictype/pr_id_continue.h: Likewise.
96049         * lib/unictype/pr_id_start.h: Likewise.
96050         * lib/unictype/pr_ideographic.h: Likewise.
96051         * lib/unictype/pr_ids_binary_operator.h: Likewise.
96052         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
96053         * lib/unictype/pr_ignorable_control.h: Likewise.
96054         * lib/unictype/pr_iso_control.h: Likewise.
96055         * lib/unictype/pr_join_control.h: Likewise.
96056         * lib/unictype/pr_left_of_pair.h: Likewise.
96057         * lib/unictype/pr_line_separator.h: Likewise.
96058         * lib/unictype/pr_logical_order_exception.h: Likewise.
96059         * lib/unictype/pr_lowercase.h: Likewise.
96060         * lib/unictype/pr_math.h: Likewise.
96061         * lib/unictype/pr_non_break.h: Likewise.
96062         * lib/unictype/pr_not_a_character.h: Likewise.
96063         * lib/unictype/pr_numeric.h: Likewise.
96064         * lib/unictype/pr_other_alphabetic.h: Likewise.
96065         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
96066         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
96067         * lib/unictype/pr_other_id_continue.h: Likewise.
96068         * lib/unictype/pr_other_id_start.h: Likewise.
96069         * lib/unictype/pr_other_lowercase.h: Likewise.
96070         * lib/unictype/pr_other_math.h: Likewise.
96071         * lib/unictype/pr_other_uppercase.h: Likewise.
96072         * lib/unictype/pr_paired_punctuation.h: Likewise.
96073         * lib/unictype/pr_paragraph_separator.h: Likewise.
96074         * lib/unictype/pr_pattern_syntax.h: Likewise.
96075         * lib/unictype/pr_pattern_white_space.h: Likewise.
96076         * lib/unictype/pr_private_use.h: Likewise.
96077         * lib/unictype/pr_punctuation.h: Likewise.
96078         * lib/unictype/pr_quotation_mark.h: Likewise.
96079         * lib/unictype/pr_radical.h: Likewise.
96080         * lib/unictype/pr_sentence_terminal.h: Likewise.
96081         * lib/unictype/pr_soft_dotted.h: Likewise.
96082         * lib/unictype/pr_space.h: Likewise.
96083         * lib/unictype/pr_terminal_punctuation.h: Likewise.
96084         * lib/unictype/pr_titlecase.h: Likewise.
96085         * lib/unictype/pr_unassigned_code_value.h: Likewise.
96086         * lib/unictype/pr_unified_ideograph.h: Likewise.
96087         * lib/unictype/pr_uppercase.h: Likewise.
96088         * lib/unictype/pr_variation_selector.h: Likewise.
96089         * lib/unictype/pr_white_space.h: Likewise.
96090         * lib/unictype/pr_xid_continue.h: Likewise.
96091         * lib/unictype/pr_xid_start.h: Likewise.
96092         * lib/unictype/pr_zero_width.h: Likewise.
96093         * lib/unictype/scripts.h: Likewise.
96094         * lib/unictype/scripts_byname.gperf: Likewise.
96095         * lib/unictype/sy_c_ident.h: Likewise.
96096         * lib/unictype/sy_c_whitespace.h: Likewise.
96097         * lib/unictype/sy_java_ident.h: Likewise.
96098         * lib/unictype/sy_java_whitespace.h: Likewise.
96100         * lib/unictype/Makefile: New file.
96101         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
96102         glibc.
96103         * lib/unictype/3level.h: New file, copied from glibc.
96104         * lib/unictype/3levelbit.h: New file.
96106 2007-11-11  Bruno Haible  <bruno@clisp.org>
96108         * modules/gperf: New file.
96109         * modules/iconv_open (Depends-on): Add it.
96110         (Makefile.am): Remove the GPERF definition.
96112 2007-11-11  Bruno Haible  <bruno@clisp.org>
96114         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
96115         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
96117 2007-11-11  Bruno Haible  <bruno@clisp.org>
96119         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
96120         (usage): Remove function.
96122 2007-11-11  Bruno Haible  <bruno@clisp.org>
96124         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
96125         gl_FUNC_CEILF_LIBS.
96126         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
96127         gl_FUNC_CEIL_LIBS.
96128         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
96129         gl_FUNC_CEILL_LIBS.
96130         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
96131         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
96132         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
96134 2007-11-11  Bruno Haible  <bruno@clisp.org>
96136         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
96137         roundf were declared but do not exist on functions.
96138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
96139         roundl were declared but do not exist on functions.
96140         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
96141         HAVE_FLOORL_AND_CEILL, respectively.
96142         Needed for Sun C on Solaris 10.
96144 2007-11-11  Bruno Haible  <bruno@clisp.org>
96146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
96147         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
96148         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
96149         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
96150         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
96151         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
96152         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
96153         HAVE_DECL_ROUNDF.
96154         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
96155         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
96156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
96157         of HAVE_DECL_ROUND*.
96158         * modules/math (Makefile.am): Update.
96160 2007-11-10  Bruno Haible  <bruno@clisp.org>
96162         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
96163         ptrdiff_t as m4/intl.m4.
96165 2007-11-10  Jim Meyering  <meyering@redhat.com>
96167         Avoid link failure for the argmatch test.
96168         * tests/test-argmatch.c (usage): Define function to avoid a link
96169         failure: argmatch_die requires a usage function.
96171 2007-11-09  Bruno Haible  <bruno@clisp.org>
96173         * doc/functions/snprintf.texi: Mention BeOS deficiency.
96174         * doc/functions/vsnprintf.texi: Likewise.
96175         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
96176         with a size argument < 2.
96178 2007-11-09  Bruno Haible  <bruno@clisp.org>
96180         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
96181         buffer. Fixes an inefficiency introduced on 2007-11-03.
96183 2007-11-09  Bruno Haible  <bruno@clisp.org>
96185         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
96186         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
96188 2007-11-08  Jim Meyering  <meyering@redhat.com>
96190         Change cache variable name prefix "jm_" to "gl_" everywhere.
96191         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
96192         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
96193         * m4/uptime.m4: s/gl_/jm_/
96195 2007-11-07  Bruno Haible  <bruno@clisp.org>
96197         Update to GNU gettext 0.17.
96198         * m4/intl.m4: Update to GNU gettext 0.17.
96199         * m4/po.m4: Likewise.
96200         * modules/gettext (Files): Remove m4/ulonglong.m4.
96201         (configure.ac): Require gettext infrastructure from version 0.17.
96203 2007-11-06  Bruno Haible  <bruno@clisp.org>
96205         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
96206         symbolic values are not defined in a public header.
96207         * lib/freadable.c (freadable) [QNX]: Likewise.
96208         * lib/freadahead.c (freadahead) [QNX]: Likewise.
96209         * lib/freading.c (freading) [QNX]: Likewise.
96210         * lib/fseterr.c (fseterr) [QNX]: Likewise.
96211         * lib/fwritable.c (fwritable) [QNX]: Likewise.
96212         * lib/fwriting.c (fwriting) [QNX]: Likewise.
96213         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
96214         Reported by Alain Magloire.
96216         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
96218 2007-11-05  Bruno Haible  <bruno@clisp.org>
96220         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
96221         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
96222         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
96223         Reported by Eric Blake.
96225 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96226             Bruno Haible  <bruno@clisp.org>
96228         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
96229         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
96230         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
96231         (malloc): Undefine also before including <stdlib.h>.
96232         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
96233         Needed on OSF/1 4.0.
96235 2007-11-05  Jim Meyering  <meyering@redhat.com>
96237         git-version-gen: sync from coreutils.
96238         * build-aux/git-version-gen: Add comments.
96239         Change the first '-' to '.' in the snapshot version string,
96240         e.g., 6.9-377-08144 -> 6.9.377-08144
96241         Remove first parameter.
96242         Don't declare a version "-dirty" merely because a time
96243         stamp has changed.
96245 2007-11-04  Bruno Haible  <bruno@clisp.org>
96247         * lib/lock.h: Protect all macro definitions containing an 'if'
96248         statement through a "do { ... } while (0)".
96249         * lib/tls.h: Likewise.
96251 2007-11-04  Bruno Haible  <bruno@clisp.org>
96253         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
96255 2007-11-04  Bruno Haible  <bruno@clisp.org>
96257         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
96258         * modules/fprintf-posix (Depends-on): Add nocrash.
96259         * modules/snprintf-posix (Depends-on): Likewise.
96260         * modules/sprintf-posix (Depends-on): Likewise.
96261         * modules/vasnprintf-posix (Depends-on): Likewise.
96262         * modules/vasprintf-posix (Depends-on): Likewise.
96263         * modules/vfprintf-posix (Depends-on): Likewise.
96264         * modules/vsnprintf-posix (Depends-on): Likewise.
96265         * modules/vsprintf-posix (Depends-on): Likewise.
96266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96268         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96269         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96274 2007-11-04  Bruno Haible  <bruno@clisp.org>
96276         * modules/nocrash: New file.
96277         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
96278         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
96280 2007-11-04  Bruno Haible  <bruno@clisp.org>
96282         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
96283         precision handling.
96284         * tests/test-vasprintf-posix.c (test_function): Likewise.
96285         * tests/test-snprintf-posix.h (test_function): Likewise.
96286         * tests/test-sprintf-posix.h (test_function): Likewise.
96288         Fix *printf behaviour for large precisions on mingw and BeOS.
96289         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
96290         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
96291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
96292         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96293         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96294         gl_PRINTF_PRECISION and test its result. Invoke
96295         gl_PREREQ_VASNPRINTF_PRECISION.
96296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96297         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96298         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96303         * doc/functions/fprintf.texi: Update.
96304         * doc/functions/printf.texi: Update.
96305         * doc/functions/snprintf.texi: Update.
96306         * doc/functions/sprintf.texi: Update.
96307         * doc/functions/vfprintf.texi: Update.
96308         * doc/functions/vprintf.texi: Update.
96309         * doc/functions/vsnprintf.texi: Update.
96310         * doc/functions/vsprintf.texi: Update.
96312 2007-11-04  Bruno Haible  <bruno@clisp.org>
96314         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
96316 2007-11-04  Bruno Haible  <bruno@clisp.org>
96318         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
96319         Reported by Sylvain Beucler <beuc@gnu.org>.
96321 2007-11-03  Bruno Haible  <bruno@clisp.org>
96323         * tests/test-fprintf-posix2.sh: New file.
96324         * tests/test-fprintf-posix2.c: New file.
96325         * modules/fprintf-posix-tests (Files): Add them.
96326         (TESTS): Add test-fprintf-posix2.sh.
96327         (configure.ac): Check for getrlimit and setrlimit.
96328         (check_PROGRAMS): Add test-fprintf-posix2.
96330         * tests/test-printf-posix2.sh: New file.
96331         * tests/test-printf-posix2.c: New file.
96332         * modules/printf-posix-tests (Files): Add them.
96333         (TESTS): Add test-printf-posix2.sh.
96334         (configure.ac): Check for getrlimit and setrlimit.
96335         (check_PROGRAMS): Add test-printf-posix2.
96337         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
96338         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
96339         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
96340         (decode_double): New function, copied from decode_long_double.
96341         (scale10_round_decimal_decoded): New function, extracted from
96342         scale10_round_decimal_long_double.
96343         (scale10_round_decimal_long_double): Use it.
96344         (scale10_round_decimal_double): New function.
96345         (floorlog10): New function.
96346         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
96347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
96348         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96349         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96350         gl_PRINTF_ENOMEM and test its result. Invoke
96351         gl_PREREQ_VASNPRINTF_ENOMEM.
96352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96359         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
96360         * modules/snprintf-posix (Depends-on): Likewise.
96361         * modules/sprintf-posix (Depends-on): Likewise.
96362         * modules/vasnprintf-posix (Depends-on): Likewise.
96363         * modules/vasprintf-posix (Depends-on): Likewise.
96364         * modules/vfprintf-posix (Depends-on): Likewise.
96365         * modules/vsnprintf-posix (Depends-on): Likewise.
96366         * modules/vsprintf-posix (Depends-on): Likewise.
96367         * doc/functions/fprintf.texi: Update.
96368         * doc/functions/printf.texi: Update.
96369         * doc/functions/snprintf.texi: Update.
96370         * doc/functions/sprintf.texi: Update.
96371         * doc/functions/vfprintf.texi: Update.
96372         * doc/functions/vprintf.texi: Update.
96373         * doc/functions/vsnprintf.texi: Update.
96374         * doc/functions/vsprintf.texi: Update.
96376 2007-11-03  Bruno Haible  <bruno@clisp.org>
96378         * modules/frexp-nolibm-tests: New file.
96380         * modules/frexp-nolibm: New file.
96381         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
96383 2007-11-03  Bruno Haible  <bruno@clisp.org>
96385         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
96386         value is C99 compliant.
96387         Needed for OSF/1 5.1.
96389 2007-11-03  Bruno Haible  <bruno@clisp.org>
96391         Fix out-of-memory handling of vasnprintf.
96392         * lib/printf-parse.c: Include <errno.h>.
96393         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
96394         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
96395         is already set.
96397 2007-11-02  Eric Blake  <ebb9@byu.net>
96399         Fix tests on cygwin.
96400         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
96402 2007-11-01  Bruno Haible  <bruno@clisp.org>
96404         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
96405         warning.
96406         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
96407         needed for POSIX compatibility.
96409 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
96411         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
96412         for compatibility with GNU.
96414 2007-11-01  Bruno Haible  <bruno@clisp.org>
96416         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
96417         (putenv): Renamed from rpl_putenv. Change argument type from
96418         'const char *' to 'char *'.
96419         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
96420         of defining putenv in config.h, just set REPLACE_PUTENV.
96421         * modules/putenv (Depends-on): Add stdlib.
96422         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
96423         (Include): Use <stdlib.h>.
96424         * lib/stdlib.in.h (putenv): New declaration.
96425         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
96426         REPLACE_PUTENV.
96427         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
96428         REPLACE_PUTENV.
96429         Needed for MacOS X 10.5.0.
96430         Reported by Peter O'Gorman <peter@pogma.com>.
96432 2007-11-01  Jim Meyering  <meyering@redhat.com>
96434         Treat an empty date string exactly like "0".
96435         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
96436         if the remaining date string (to be parsed) is empty, use "0".
96437         Reported by Mischa Molhoek and discussed in this thread:
96438         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
96440 2007-10-31  Bruno Haible  <bruno@clisp.org>
96442         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
96443         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
96444         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
96445         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
96446         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
96447         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
96449 2007-10-31  Bruno Haible  <bruno@clisp.org>
96451         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
96452         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
96453         (AC_TYPE_LONG_LONG_INT): Use it.
96454         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
96455         it as well.
96456         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
96457         to m4/longlong.m4.
96458         * modules/stdint (Files): Remove m4/ulonglong.m4.
96459         * modules/strtoull (Files): Use m4/longlong.m4 instead of
96460         m4/ulonglong.m4.
96461         * modules/strtoumax (Files): Likewise.
96463 2007-10-30  Bruno Haible  <bruno@clisp.org>
96465         * modules/xvasprintf-posix: New file.
96466         Suggested by Eric Blake.
96468 2007-10-30  Bruno Haible  <bruno@clisp.org>
96470         * modules/xprintf-posix-tests: New file.
96471         * tests/test-xprintf-posix.sh: New file.
96472         * tests/test-xprintf-posix.c: New file.
96473         * tests/test-xfprintf-posix.c: New file.
96475         * modules/xprintf-posix: New file.
96477 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96479         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
96480         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
96481         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
96483 2007-10-29  Bruno Haible  <bruno@clisp.org>
96485         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
96486         contain the special marker '_cv_'.
96487         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
96488         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
96489         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
96490         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
96491         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
96492         Reported by Ralf Wildenhues.
96494 2007-10-29  Bruno Haible  <bruno@clisp.org>
96496         * gnulib-tool (func_import): When --lgpl is not specified, set
96497         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
96498         GPLv3.
96499         Reported by Simon Josefsson.
96501 2007-10-28  Bruno Haible  <bruno@clisp.org>
96503         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
96504         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
96505         HAVE_DECL_ISFINITE.
96506         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96507         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
96508         HAVE_DECL_ISFINITE.
96510 2007-10-28  Bruno Haible  <bruno@clisp.org>
96512         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
96513         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
96515 2007-10-28  Bruno Haible  <bruno@clisp.org>
96517         Fix link errors with Sun C 5.0 on Solaris 10.
96518         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
96519         function is declared but not present in the compiler's libm.
96520         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
96521         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
96522         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
96523         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
96524         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
96525         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
96526         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
96527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
96528         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
96529         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
96530         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
96531         HAVE_DECL_FLOORL.
96533 2007-10-28  Bruno Haible  <bruno@clisp.org>
96535         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
96536         gl_FUNC_FLOORL. Cache the result.
96537         (gl_FUNC_FLOORL): Use it.
96538         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
96539         gl_FUNC_CEILL. Cache the result.
96540         (gl_FUNC_CEILL): Use it.
96542         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
96543         gl_FUNC_FLOOR. Cache the result.
96544         (gl_FUNC_FLOOR): Use it.
96545         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
96546         gl_FUNC_CEIL. Cache the result.
96547         (gl_FUNC_CEIL): Use it.
96549         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
96550         gl_FUNC_FLOORF. Cache the result.
96551         (gl_FUNC_FLOORF): Use it.
96552         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
96553         gl_FUNC_CEILF. Cache the result.
96554         (gl_FUNC_CEILF): Use it.
96556 2007-10-28  Bruno Haible  <bruno@clisp.org>
96558         * gnulib-tool: Allow specifying the LGPL version number through
96559         --lgpl=2 or --lgpl=3.
96560         (func_usage): Document --lgpl with argument.
96561         Handle --lgpl=... arguments.
96562         (func_import): Recognize also gl_LGPL calls with an argument. When
96563         --lgpl=2 is used and the module's license is just LGPL, report an
96564         error. Set sed_transform_lib_file according to the lgpl variable. In
96565         the generated files, use --lgpl or gl_LGPL invocations with argument,
96566         if necessary.
96567         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
96568         an LGPv2+ license.
96569         * doc/gnulib-tool.texi (Modified imports): Update explanation of
96570         gl_LGPL macro.
96572 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96573             Bruno Haible  <bruno@clisp.org>
96575         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
96576         (u16_uctomb_aux): Likewise.
96577         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
96578         !HAVE_INLINE.
96579         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
96581 2007-10-28  Bruno Haible  <bruno@clisp.org>
96583         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
96584         Invoke AM_GETTEXT_OPTION if it exists.
96585         * modules/vasprintf: Likewise.
96586         * modules/verror: Likewise.
96587         * modules/xprintf: Likewise.
96588         * modules/xvasprintf: Likewise.
96590 2007-10-27  Ben Pfaff  <blp@gnu.org>
96592         * lib/math.in.h: Define isfinite macro and prototypes for
96593         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
96594         implementations.
96595         * m4/math_h.m4: New substitutions for isfinite module.
96596         * lib/isfinite.c: New file.
96597         * m4/isfinite.m4: New file.
96598         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
96599         * modules/isfinite: New file.
96600         * modules/isfinite-tests: New file.
96601         * tests/tests-isfinite.c: New file.
96602         * doc/functions/isfinite.texi: Mention isfinite module.
96603         * MODULES.html.sh: Mention new module.
96605 2007-10-27  Ben Pfaff  <blp@gnu.org>
96607         Ralf Wildenhues reported that Tru64 4.0D declares the round
96608         functions but does not have definitions.
96609         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
96610         cannot be found in any library, set the output variable to
96611         "missing" instead of "".
96612         * m4/round.m4: Also use our substitute if we cannot find round in
96613         any library, even if it is declared.
96614         * m4/roundf.m4: Likewise for roundf.
96615         * m4/roundl.m4: Likewise for roundl.
96616         * lib/math.in.h: Undefine roundf, round, roundl before defining
96617         their replacements, to allow for hypothetical systems where these
96618         may be defined as macros but not available in libraries.
96620 2007-10-27  Bruno Haible  <bruno@clisp.org>
96622         * doc/gnulib.texi: Invoke @firstparagraphindent.
96623         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
96624         changes in gnulib.
96625         (Source changes): New section.
96627 2007-10-26  Bruno Haible  <bruno@clisp.org>
96629         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
96630         borrowed from autoconf.
96632 2007-10-26  Bruno Haible  <bruno@clisp.org>
96634         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
96635         strerror returned the empty string. Needed on HP-UX 11.00.
96637 2007-10-24  Micah Cowan  <micah@cowan.name>
96639         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
96640         * build-aux/bootstrap: Remove support for now-unnecessary option,
96641         --cvs-user, and envvars CVS_USER, CVS_RSH.
96643 2007-10-24  Jim Meyering  <meyering@redhat.com>
96645         Avoid diagnostics from sha1sum when there is no cached checksum.
96646         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
96647         if the po.s1 file hasn't been created yet.
96649         * build-aux/bootstrap: Sync from coreutils:
96650         2007-10-24  Jim Meyering  <meyering@redhat.com>
96651         Get gnulib from the git repository, not from an obsolete cvs one.
96652         * build-aux/bootstrap: Suggestion from Micah Cowan.
96653         2007-10-04  Jim Meyering  <jim@meyering.net>
96654         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
96655         (update_po_files): Work also when there are no .po files in po/.
96657 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
96659         * README: Append ".git" to git and cg examples.
96660         Problem reported by Benoit Sigoure.
96662 2007-10-23  Micah Cowan  <micah@cowan.name>
96664         * users.txt: Add wget.
96666 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96668         Fix linking of some unistdio tests on FreeBSD.
96669         * modules/unistdio/u16-vsnprintf-tests
96670         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
96671         * modules/unistdio/u16-vsprintf-tests
96672         (test_u16_vsnprintf1_LDADD): Likewise.
96673         * modules/unistdio/u32-vsnprintf-tests
96674         (test_u32_vsnprintf1_LDADD): Likewise.
96675         * modules/unistdio/u32-vsprintf-tests
96676         (test_u32_vsprintf1_LDADD): Likewise.
96677         * modules/unistdio/u8-vsnprintf-tests
96678         (test_u8_vsnprintf1_LDADD): Likewise.
96679         * modules/unistdio/u8-vsprintf-tests
96680         (test_u8_vsprintf1_LDADD): Likewise.
96681         * modules/unistdio/ulc-vsnprintf-tests
96682         (test_ulc_vsnprintf1_LDADD): Likewise.
96683         * modules/unistdio/ulc-vsprintf-tests
96684         (test_ulc_vsprintf1_LDADD): Likewise.
96686         Fix linking of some uniconv tests on FreeBSD.
96687         * modules/uniconv/u16-conv-from-enc-tests
96688         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
96689         * modules/uniconv/u16-conv-to-enc-tests
96690         (test_u16_conv_to_enc_LDADD): Likewise.
96691         * modules/uniconv/u16-strconv-from-enc-tests
96692         (test_u16_strconv_from_enc_LDADD): Likewise.
96693         * modules/uniconv/u16-strconv-to-enc-tests
96694         (test_u16_strconv_to_enc_LDADD): Likewise.
96695         * modules/uniconv/u32-conv-from-enc-tests
96696         (test_u32_conv_from_enc_LDADD): Likewise.
96697         * modules/uniconv/u32-conv-to-enc-tests
96698         (test_u32_conv_to_enc_LDADD): Likewise.
96699         * modules/uniconv/u32-strconv-from-enc-tests
96700         (test_u32_strconv_from_enc_LDADD): Likewise.
96701         * modules/uniconv/u32-strconv-to-enc-tests
96702         (test_u32_strconv_to_enc_LDADD): Likewise.
96703         * modules/uniconv/u8-conv-from-enc-tests
96704         (test_u8_conv_from_enc_LDADD): Likewise.
96705         * modules/uniconv/u8-conv-to-enc-tests
96706         (test_u8_conv_to_enc_LDADD): Likewise.
96707         * modules/uniconv/u8-strconv-from-enc-tests
96708         (test_u8_strconv_from_enc_LDADD): Likewise.
96709         * modules/uniconv/u8-strconv-to-enc-tests
96710         (test_u8_strconv_to_enc_LDADD): Likewise.
96712 2007-10-22  Bruno Haible  <bruno@clisp.org>
96714         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
96715         size.
96717 2007-10-22  Eric Blake  <ebb9@byu.net>
96719         Tweak x*printf documentation.
96720         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
96721         variable name and comments.
96722         Suggested by Bruno Haible.
96724 2007-10-22  Bruno Haible  <bruno@clisp.org>
96726         * lib/acl.c (copy_acl): Fix file name in comment.
96728 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96730         Fix Tru64 problem with stdbool.h.
96731         * lib/stdbool.in.h (false, true):
96732         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
96733         Don't declare as an enum in this situation; it runs afoul of Tru64.
96734         Problem reported by Steven M. Schweda in
96735         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
96737 2007-10-22  Eric Blake  <ebb9@byu.net>
96739         Also wrap vf?printf.
96740         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
96741         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
96742         (xvprintf, xvfprintf): New functions.
96744 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96746         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
96747         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
96749         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
96750         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
96752 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
96754         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
96755         by Bruno Haible.
96757 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96759         * lib/getloadavg.c
96760         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
96761         Undef `sys' after including sys/table.h, for Tru64 4.0D.
96763         * tests/test-i-ring.c: Work for C89.
96765 2007-10-22  Bruno Haible  <bruno@clisp.org>
96767         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
96768         -1u, in preprocessor expression, so that we don't test for the bug
96769         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
96770         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
96772 2007-10-22  Eric Blake  <ebb9@byu.net>
96774         * tests/test-yesno.sh: Silence stderr during test.
96776 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96778         * modules/crypto/gc-camellia: New file.
96780         * m4/gc-camellia.m4: New file.
96782         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
96784         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
96786 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96788         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
96789         --help to stdout.  Reported by sms@antinode.org (Steven
96790         M. Schweda).
96792 2007-10-22  Simon Josefsson  <simon@josefsson.org>
96794         * users.txt: Fix link to libksba.
96796 2007-10-21  Ben Pfaff  <blp@gnu.org>
96798         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
96799         round.c roundf implementation that depends on floorf and ceilf to
96800         be tested unconditionally.
96802 2007-10-21  Ben Pfaff  <blp@gnu.org>
96804         * m4/check-libm-func.m4: Removed.
96805         * m4/check-math-lib.m4: New file.
96806         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
96807         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
96808         definition and lack of AC_LIBOBJ([roundf]).
96809         * m4/roundl.m4: Ditto, and similarly for roundl.
96810         * modules/round: Reference new m4 file.
96811         * modules/roundf: Ditto.
96812         * modules/roundl: Ditto.
96813         * tests/test-round2.c (main): Use ROUND instead of round.
96814         Bug report from Bruno Haible.
96816 2007-10-21  Bruno Haible  <bruno@clisp.org>
96818         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
96819         context.
96821 2007-10-21  Bruno Haible  <bruno@clisp.org>
96823         * tests/test-wcwidth.c (main): Allow negative result for some control
96824         characters.
96826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
96827         Needed on OSF/1 5.1.
96829 2007-10-21  Bruno Haible  <bruno@clisp.org>
96831         * tests/test-floorf1.c: Include isnanf.h.
96832         (main): Use isnanf() instead of isnan().
96833         * tests/test-ceilf1.c: Include isnanf.h.
96834         (main): Use isnanf() instead of isnan().
96835         * tests/test-truncf1.c: Include isnanf.h.
96836         (main): Use isnanf() instead of isnan().
96837         * tests/test-roundf1.c: Include isnanf.h.
96838         (main): Use isnanf() instead of isnan().
96840 2007-10-21  Eric Blake  <ebb9@byu.net>
96842         * users.txt: Update URL for m4.
96844 2007-10-21  Bruno Haible  <bruno@clisp.org>
96846         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
96848 2007-10-21  Bruno Haible  <bruno@clisp.org>
96850         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
96851         Git's management files if the CVS files are not present.
96853 2007-10-20  Bruno Haible  <bruno@clisp.org>
96855         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
96856         gcc-3.4.x.
96858 2007-10-20  Ben Pfaff  <blp@gnu.org>
96860         * lib/math.in.h: Declare round, roundf, roundl if we are providing
96861         implementations.
96862         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
96863         * lib/round.c: New file.
96864         * lib/roundf.c: New file.
96865         * lib/roundl.c: New file.
96866         * m4/round.m4: New file.
96867         * m4/roundf.m4: New file.
96868         * m4/roundl.m4: New file.
96869         * m4/check-libm-func-m4: New file.
96870         * modules/math: Replace round, roundf, roundl related @VARS@ in
96871         math.in.h.
96872         * modules/round: New file.
96873         * modules/round-tests: New file.
96874         * modules/roundf: New file.
96875         * modules/roundf-tests: New file.
96876         * modules/roundl: New file.
96877         * modules/roundl-tests: New file.
96878         * tests/test-round1.c: New file.
96879         * tests/test-round2.c: New file.
96880         * tests/test-roundf1.c: New file.
96881         * tests/test-roundf2.c: New file.
96882         * tests/test-roundl.c: New file.
96883         * doc/functions/round.texi: Mention round module.
96884         * doc/functions/roundf.texi: Mention roundf module.
96885         * doc/functions/roundl.texi: Mention roundl module.
96886         * MODULES.html.sh: Mention new modules.
96887         Thanks to Bruno Haible for suggestions.
96889 2007-10-20  Jim Meyering  <meyering@redhat.com>
96891         * lib/xprintf.c: Include <config.h> unconditionally.
96893         Change xprintf's license to GPL.
96894         * modules/xprintf (License): s/LGPL/GPL/, since this module
96895         depends on modules (exit and exitfail) which are GPL.
96896         Suggestion from Bruno Haible.
96898         xprintf fixes.
96899         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
96900         Use a clearer diagnostic.
96901         Patch from Bruno Haible.
96903 2007-10-20  Bruno Haible  <bruno@clisp.org>
96905         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
96906         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
96907         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96909 2007-10-20  Bruno Haible  <bruno@clisp.org>
96911         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
96912         precision in the comparison result > x - 1 or similar.
96913         * tests/test-ceilf2.c (correct_result_p): Likewise.
96914         * tests/test-truncf2.c (correct_result_p): Likewise.
96915         * tests/test-trunc2.c (correct_result_p): Likewise.
96916         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96918 2007-10-20  Bruno Haible  <bruno@clisp.org>
96920         * modules/ceil: New file.
96921         * m4/ceil.m4: New file.
96922         * doc/functions/ceil.texi: Mention the 'ceil' module.
96924 2007-10-20  Bruno Haible  <bruno@clisp.org>
96926         * modules/floor: New file.
96927         * m4/floor.m4: New file.
96928         * doc/functions/floor.texi: Mention the 'floor' module.
96930 2007-10-20  Bruno Haible  <bruno@clisp.org>
96932         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
96933         of %a.
96934         * modules/floorf-tests (Depends-on): Likewise.
96935         * modules/truncf-tests (Depends-on): Likewise.
96936         * modules/trunc-tests (Depends-on): Likewise.
96937         Reported by Ben Pfaff.
96939 2007-10-19  Jim Meyering  <meyering@redhat.com>
96941         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
96942         Don't bother testing specific errno values.  Just test ferror.
96944         New module: xprintf
96945         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
96947 2007-10-19  Bruno Haible  <bruno@clisp.org>
96949         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
96950         syntax.
96951         * modules/javaexec (Makefile.am): Likewise.
96952         * modules/relocatable-prog (Makefile.am): Likewise.
96953         Suggested by Jim Meyering.
96955 2007-10-18  Bruno Haible  <bruno@clisp.org>
96957         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
96958         Reported by Jim Meyering.
96960 2007-10-18  Eric Blake  <ebb9@byu.net>
96962         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
96964 2007-10-18  Bruno Haible  <bruno@clisp.org>
96966         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
96967         the format string into writable memory. Needed in Fortify conditions.
96969 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
96970             Bruno Haible  <bruno@clisp.org>
96972         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
96973         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
96974         * modules/trim (Depends-on): Add mbchar.
96975         (configure.ac): Add gl_FUNC_MBRTOWC.
96976         (Makefile.am): Augment lib_SOURCES.
96978 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96980         Modify glob.c to use fstatat and dirfd, to simplify it.
96981         Suggested by Eric Blake.
96982         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
96983         Don't include <stdbool.h>; not used.
96984         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
96985         (link_exists_p): Simplify implementation, since we can now assume
96986         dirfd and fstatat.
96987         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
96989 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96991         * gnulib-tool (func_get_dependencies): Fix sed script to
96992         match only tests.
96994 2007-10-17  Bruno Haible  <bruno@clisp.org>
96996         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
96997         allow locale names without encoding suffix.
96998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96999         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97001 2007-10-16  Bruno Haible  <bruno@clisp.org>
97003         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
97004         * lib/getgroups.c (getgroups): Likewise.
97005         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
97007 2007-10-16  Bruno Haible  <bruno@clisp.org>
97009         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
97010         * modules/malloc-posix (License): Likewise.
97011         * modules/realloc-posix (License): Likewise.
97012         * modules/calloc-posix (License): Likewise.
97013         * modules/intprops (License): Change from GPL to LGPL, with
97014         Paul Eggert's approval.
97016 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97018         Merge glibc changes into lib/glob.c.
97020         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
97021         2007-10-15 04:59:03 UTC.  Here are the changes:
97023         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
97025         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
97027         * lib/glob.c: Add some branch prediction throughout.
97029         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
97031         [BZ #5103]
97032         * lib/glob.c (glob): Recognize patterns starting \/.
97034         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
97036         [BZ #3996]
97037         * lib/glob.c (attribute_hidden): Define if not defined.
97038         (glob): Unescape dirname, filename or username when needed and not
97039         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
97040         is NULL.  Handle unescaped [ in pattern without closing ].
97041         Don't pass GLOB_CHECK down to recursive glob for directories.
97042         (__glob_pattern_type): New function.
97043         (__glob_pattern_p): Implement using __glob_pattern_type.
97044         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
97045         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
97046         Remove unreachable code.
97048         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
97050         * lib/glob.c (glob_in_dir): Add some comments and asserts to
97051         explain why there are no leaks.
97053         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
97055         [BZ #3253]
97056         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
97057         time, rather allocate increasingly bigger arrays of pointers, if
97058         possible with alloca, if too large with malloc.
97060 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
97062         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
97063         Problem reported by H.Merijn Brand in
97064         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
97065         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
97066         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
97068 2007-10-15  Bruno Haible  <bruno@clisp.org>
97070         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
97071         with explicit rpl_ prefix.
97072         * lib/fopen.c (fopen): Likewise.
97073         * lib/freopen.c (freopen): Likewise.
97074         * lib/iconv.c (iconv): Likewise.
97075         * lib/iconv_close.c (iconv_close): Likewise.
97077 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97079         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
97081 2007-10-15  Bruno Haible  <bruno@clisp.org>
97083         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
97084         <stddef.h> instead of <stdlib.h> since we only need NULL.
97085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97087 2007-10-15  Bruno Haible  <bruno@clisp.org>
97089         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
97090         Replace paragraph talking about LIBOBJS.
97091         Reported by Colin Watson <cjwatson@debian.org>.
97093 2007-10-15  Bruno Haible  <bruno@clisp.org>
97095         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
97096         <stdlib.h> before using NULL.
97098 2007-10-15  Simon Josefsson  <simon@josefsson.org>
97100         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
97101         Reported by Albert Chin <china@thewrittenword.com>.
97103 2007-10-14  Bruno Haible  <bruno@clisp.org>
97105         * modules/iconv_open-utf-tests: New file.
97106         * tests/test-iconv-utf.c: New file.
97108         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
97109         * modules/iconv_open-utf: New file.
97110         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
97111         (iconv, iconv_close): New declarations.
97112         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
97113         be defined.
97114         (iconv_open): Add special handling of conversion between UTF-8 and
97115         UTF-{16,32}{BE,LE}.
97116         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
97117         * lib/iconv_close.c: New file.
97118         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
97119         gl_FUNC_ICONV_OPEN.
97120         (gl_FUNC_ICONV_OPEN): Use it.
97121         (gl_FUNC_ICONV_OPEN_UTF): New macro.
97122         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
97123         and REPLACE_ICONV_UTF.
97124         * modules/iconv_open (Depends-on): Add c-strcase.
97125         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
97126         ICONV_CONST.
97127         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
97129 2007-10-13  Albert Chin  <china@thewrittenword.com>
97130             Bruno Haible  <bruno@clisp.org>
97132         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
97133         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
97135 2007-10-13  Bruno Haible  <bruno@clisp.org>
97137         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
97138         defined, use the ISO C99 inline semantics.
97139         * lib/argp.h (ARGP_EI): Likewise.
97141 2007-10-13  Bruno Haible  <bruno@clisp.org>
97143         Handle 'inline' change in gcc 4.3.0.
97144         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
97145         argp_fmtstream_write, argp_fmtstream_set_lmargin,
97146         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
97147         argp_fmtstream_point): Disable 'extern' declaration if the function
97148         definition is going to be provided inline.
97149         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
97150         semantics, not the ISO C99 inline semantics.
97151         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
97152         'extern' declaration if the function definition is going to be provided
97153         inline.
97154         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
97155         the GNU C inline semantics, not the ISO C99 inline semantics. With
97156         GCC 4.2, avoid a warning.
97158 2007-10-13  Bruno Haible  <bruno@clisp.org>
97160         * lib/freading.h (freading): Enable the use of __freading for
97161         glibc >= 2.7.
97162         * lib/freading.c (freading): Likewise.
97164 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
97166         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
97167         "warning: C99 inline functions are not supported; using GNU89".
97169 2007-10-12  Bruno Haible  <bruno@clisp.org>
97171         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
97172         of 2.
97173         * tests/test-ceilf2.c: New file.
97174         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
97176         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
97177         * modules/ceilf-tests: Update.
97179 2007-10-12  Bruno Haible  <bruno@clisp.org>
97181         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
97182         of 2.
97183         * tests/test-floorf2.c: New file.
97184         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
97186         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
97187         * modules/floorf-tests: Update.
97189 2007-10-12  Bruno Haible  <bruno@clisp.org>
97191         * tests/test-trunc2.c: New file.
97192         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
97194         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
97195         * modules/trunc-tests: Update.
97197 2007-10-12  Bruno Haible  <bruno@clisp.org>
97199         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
97200         of 2.
97201         * tests/test-truncf2.c: New file.
97202         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
97204         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
97205         * modules/truncf-tests: Update.
97207 2007-10-11  Eric Blake  <ebb9@byu.net>
97209         Don't claim strerror is broken on Interix.
97210         * doc/functions/strerror.texi (strerror): Known broken systems are
97211         now Solaris 8, and not Interix.
97212         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
97213         Interix on cross-compile.
97214         Reported by Martin Koeppe in
97215         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
97217 2007-10-11  Bruno Haible  <bruno@clisp.org>
97219         * modules/i-ring-tests: New file.
97220         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
97221         instead of assert.
97223 2007-10-11  Bruno Haible  <bruno@clisp.org>
97225         * modules/filenamecat-tests: New file.
97226         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
97227         * lib/filenamecat.c: Remove test code.
97229 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
97231         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
97233         * lib/strerror.c: Include <string.h> always, to test interface,
97234         and to remove the need for the dummy.
97235         Include intprops.h to compute width instead of doing it ourselves
97236         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
97237         (strerror): Define it to return NULL if there's no system strerror.
97238         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
97239         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
97240         ancient pre-strerror Unix systems well any more.  Saying "unknown
97241         system error" is enough.
97242         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
97243         simpler strerror.c implementation.
97244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
97245         Simplify the tests to reflect the simpler strerror implementation.
97246         * modules/strerror (Depends-on): Add intprops.
97248 2007-10-09  Eric Blake  <ebb9@byu.net>
97250         Silence test-fpending.
97251         * modules/fpending-tests (Files): Add wrapper script.
97252         * tests/test-fpending.sh: New file.
97254 2007-10-09  Bruno Haible  <bruno@clisp.org>
97256         * MODULES.html.sh (func_module): Don't create a hyperlink for
97257         function names like 'printf_frexp'.
97258         (Misc): Add crc, memxor.
97259         (Characteristics of floating types): New section.
97260         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
97261         isnanf-nolibm, signbit, trunc, truncf, truncl.
97262         (Enhancements for ISO C 99 functions): New subsection Input/output.
97263         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
97264         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
97265         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
97266         (Compatibility checks for POSIX:2001 functions): Add clock-time.
97267         (Enhancements for POSIX:2001 functions): Add chdir-long.
97268         (File system functions): Add areadlink, chdir-safer, read-file.
97269         Remove cycle-check.
97270         (File system as inode set): New section.
97271         (Date and time): Add gethrxtime.
97272         (Multithreading): Add openmp.
97273         (Internationalization functions): Add localename.
97274         (Unicode string functions): Add unistr/u*-mbsnlen.
97275         (Support for maintaining and releasing projects): Add git-version-gen.
97276         (Lone files): Remove directories.
97278 2007-10-08  Ben Pfaff  <blp@gnu.org>
97280         * lib/xmalloca.h: Fix typo in comment.
97282 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
97284         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
97285         when avoiding problems with integer overflow.  Use a portable test
97286         instead.
97288 2007-10-08  Simon Josefsson  <simon@josefsson.org>
97290         * modules/dummy (License): Change to LGPLv2+.
97291         * modules/float (License): Likewise
97292         * modules/realloc (License): Likewise
97293         * modules/stdlib (License): Likewise
97295 2007-10-07  Bruno Haible  <bruno@clisp.org>
97297         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
97298         * floor.c (TWO_MANT_DIG): Likewise.
97299         * ceil.c (TWO_MANT_DIG): Likewise.
97300         Reported by Ben Pfaff.
97302 2007-10-07  Bruno Haible  <bruno@clisp.org>
97304         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
97305         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
97306         * lib/frexp.c (FUNC): Likewise.
97307         * lib/printf-frexp.h (printf_frexp): Likewise.
97308         * lib/printf-frexpl.h (printf_frexpl): Likewise.
97309         * lib/printf-frexp.c (FUNC): Likewise.
97310         Suggested by Jim Meyering.
97312 2007-10-07  Jim Meyering  <meyering@redhat.com>
97314         Make xnanosleep's integer overflow test more robust.
97315         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
97316         so that gcc-4.3.0 doesn't optimize away this test for overflow.
97318 2007-10-07  Bruno Haible  <bruno@clisp.org>
97320         * NEWS: Mention the license change.
97322         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
97323         abbreviations in the modules files.
97325         Change copyright notice from GPLv2+ to GPLv3+.
97326         * README: Change copyright notice.
97327         * MODULES.html.sh: Likewise.
97328         * build-aux/bootstrap.conf: Likewise.
97329         * build-aux/config.libpath: Likewise.
97330         * build-aux/csharpcomp.sh.in: Likewise.
97331         * build-aux/csharpexec.sh.in: Likewise.
97332         * build-aux/install-reloc: Likewise.
97333         * build-aux/javacomp.sh.in: Likewise.
97334         * build-aux/javaexec.sh.in: Likewise.
97335         * build-aux/ldd.sh.in: Likewise.
97336         * build-aux/reloc-ldflags: Likewise.
97337         * build-aux/relocatable.sh.in: Likewise.
97338         * build-aux/x-to-1.in: Likewise.
97339         * check-module: Likewise.
97340         * config/srclistvars.sh: Likewise.
97341         * gnulib-tool: Likewise.
97342         * lib/acl-internal.h: Likewise.
97343         * lib/acl.c: Likewise.
97344         * lib/acl.h: Likewise.
97345         * lib/acl_entries.c: Likewise.
97346         * lib/areadlink-with-size.c: Likewise.
97347         * lib/areadlink.c: Likewise.
97348         * lib/areadlink.h: Likewise.
97349         * lib/argmatch.c: Likewise.
97350         * lib/argmatch.h: Likewise.
97351         * lib/argp-ba.c: Likewise.
97352         * lib/argp-eexst.c: Likewise.
97353         * lib/argp-fmtstream.c: Likewise.
97354         * lib/argp-fmtstream.h: Likewise.
97355         * lib/argp-fs-xinl.c: Likewise.
97356         * lib/argp-help.c: Likewise.
97357         * lib/argp-namefrob.h: Likewise.
97358         * lib/argp-parse.c: Likewise.
97359         * lib/argp-pin.c: Likewise.
97360         * lib/argp-pv.c: Likewise.
97361         * lib/argp-pvh.c: Likewise.
97362         * lib/argp-xinl.c: Likewise.
97363         * lib/argp.h: Likewise.
97364         * lib/at-func.c: Likewise.
97365         * lib/atanl.c: Likewise.
97366         * lib/backupfile.c: Likewise.
97367         * lib/backupfile.h: Likewise.
97368         * lib/basename.c: Likewise.
97369         * lib/binary-io.h: Likewise.
97370         * lib/byteswap.in.h: Likewise.
97371         * lib/c-stack.c: Likewise.
97372         * lib/c-stack.h: Likewise.
97373         * lib/c-strcasestr.c: Likewise.
97374         * lib/c-strcasestr.h: Likewise.
97375         * lib/c-strstr.c: Likewise.
97376         * lib/c-strstr.h: Likewise.
97377         * lib/c-strtod.c: Likewise.
97378         * lib/calloc.c: Likewise.
97379         * lib/canon-host.c: Likewise.
97380         * lib/canon-host.h: Likewise.
97381         * lib/canonicalize-lgpl.c: Likewise.
97382         * lib/canonicalize.c: Likewise.
97383         * lib/canonicalize.h: Likewise.
97384         * lib/ceil.c: Likewise.
97385         * lib/ceilf.c: Likewise.
97386         * lib/ceill.c: Likewise.
97387         * lib/chdir-long.c: Likewise.
97388         * lib/chdir-long.h: Likewise.
97389         * lib/chdir-safer.c: Likewise.
97390         * lib/chdir-safer.h: Likewise.
97391         * lib/chown.c: Likewise.
97392         * lib/classpath.c: Likewise.
97393         * lib/classpath.h: Likewise.
97394         * lib/clean-temp.c: Likewise.
97395         * lib/clean-temp.h: Likewise.
97396         * lib/cloexec.c: Likewise.
97397         * lib/close-stream.c: Likewise.
97398         * lib/closein.c: Likewise.
97399         * lib/closein.h: Likewise.
97400         * lib/closeout.c: Likewise.
97401         * lib/closeout.h: Likewise.
97402         * lib/concat-filename.c: Likewise.
97403         * lib/copy-file.c: Likewise.
97404         * lib/copy-file.h: Likewise.
97405         * lib/count-one-bits.h: Likewise.
97406         * lib/crc.c: Likewise.
97407         * lib/crc.h: Likewise.
97408         * lib/creat-safer.c: Likewise.
97409         * lib/csharpcomp.c: Likewise.
97410         * lib/csharpcomp.h: Likewise.
97411         * lib/csharpexec.c: Likewise.
97412         * lib/csharpexec.h: Likewise.
97413         * lib/cycle-check.c: Likewise.
97414         * lib/cycle-check.h: Likewise.
97415         * lib/diacrit.c: Likewise.
97416         * lib/diacrit.h: Likewise.
97417         * lib/diffseq.h: Likewise.
97418         * lib/dirchownmod.c: Likewise.
97419         * lib/dirent.in.h: Likewise.
97420         * lib/dirfd.c: Likewise.
97421         * lib/dirfd.h: Likewise.
97422         * lib/dirname.c: Likewise.
97423         * lib/dirname.h: Likewise.
97424         * lib/dummy.c: Likewise.
97425         * lib/dup-safer.c: Likewise.
97426         * lib/dup2.c: Likewise.
97427         * lib/eealloc.h: Likewise.
97428         * lib/error.c: Likewise.
97429         * lib/error.h: Likewise.
97430         * lib/euidaccess.c: Likewise.
97431         * lib/exclude.c: Likewise.
97432         * lib/exclude.h: Likewise.
97433         * lib/execute.c: Likewise.
97434         * lib/execute.h: Likewise.
97435         * lib/exitfail.c: Likewise.
97436         * lib/exitfail.h: Likewise.
97437         * lib/expl.c: Likewise.
97438         * lib/fatal-signal.c: Likewise.
97439         * lib/fatal-signal.h: Likewise.
97440         * lib/fbufmode.c: Likewise.
97441         * lib/fbufmode.h: Likewise.
97442         * lib/fchdir.c: Likewise.
97443         * lib/fchmodat.c: Likewise.
97444         * lib/fchownat.c: Likewise.
97445         * lib/fcntl--.h: Likewise.
97446         * lib/fcntl-safer.h: Likewise.
97447         * lib/fcntl.in.h: Likewise.
97448         * lib/fd-safer.c: Likewise.
97449         * lib/fflush.c: Likewise.
97450         * lib/file-has-acl.c: Likewise.
97451         * lib/file-set.c: Likewise.
97452         * lib/file-type.c: Likewise.
97453         * lib/file-type.h: Likewise.
97454         * lib/fileblocks.c: Likewise.
97455         * lib/filemode.c: Likewise.
97456         * lib/filemode.h: Likewise.
97457         * lib/filename.h: Likewise.
97458         * lib/filenamecat.c: Likewise.
97459         * lib/filenamecat.h: Likewise.
97460         * lib/findprog.c: Likewise.
97461         * lib/findprog.h: Likewise.
97462         * lib/float.in.h: Likewise.
97463         * lib/floor.c: Likewise.
97464         * lib/floorf.c: Likewise.
97465         * lib/floorl.c: Likewise.
97466         * lib/fopen-safer.c: Likewise.
97467         * lib/fopen.c: Likewise.
97468         * lib/fpending.c: Likewise.
97469         * lib/fpending.h: Likewise.
97470         * lib/fprintf.c: Likewise.
97471         * lib/fprintftime.h: Likewise.
97472         * lib/fpucw.h: Likewise.
97473         * lib/fpurge.c: Likewise.
97474         * lib/fpurge.h: Likewise.
97475         * lib/freadable.c: Likewise.
97476         * lib/freadable.h: Likewise.
97477         * lib/freadahead.c: Likewise.
97478         * lib/freadahead.h: Likewise.
97479         * lib/freading.c: Likewise.
97480         * lib/freading.h: Likewise.
97481         * lib/free.c: Likewise.
97482         * lib/freopen.c: Likewise.
97483         * lib/frexp.c: Likewise.
97484         * lib/frexpl.c: Likewise.
97485         * lib/fseek.c: Likewise.
97486         * lib/fseterr.c: Likewise.
97487         * lib/fseterr.h: Likewise.
97488         * lib/fstatat.c: Likewise.
97489         * lib/fstrcmp.c: Likewise.
97490         * lib/fstrcmp.h: Likewise.
97491         * lib/fsusage.c: Likewise.
97492         * lib/fsusage.h: Likewise.
97493         * lib/ftell.c: Likewise.
97494         * lib/ftello.c: Likewise.
97495         * lib/fts-cycle.c: Likewise.
97496         * lib/fts.c: Likewise.
97497         * lib/fts_.h: Likewise.
97498         * lib/full-read.c: Likewise.
97499         * lib/full-read.h: Likewise.
97500         * lib/full-write.c: Likewise.
97501         * lib/full-write.h: Likewise.
97502         * lib/fwritable.c: Likewise.
97503         * lib/fwritable.h: Likewise.
97504         * lib/fwriteerror.c: Likewise.
97505         * lib/fwriteerror.h: Likewise.
97506         * lib/fwriting.c: Likewise.
97507         * lib/fwriting.h: Likewise.
97508         * lib/gcd.c: Likewise.
97509         * lib/gcd.h: Likewise.
97510         * lib/getcwd.c: Likewise.
97511         * lib/getdate.h: Likewise.
97512         * lib/getdate.y: Likewise.
97513         * lib/getdomainname.c: Likewise.
97514         * lib/getdomainname.h: Likewise.
97515         * lib/getgroups.c: Likewise.
97516         * lib/gethostname.c: Likewise.
97517         * lib/gethrxtime.c: Likewise.
97518         * lib/gethrxtime.h: Likewise.
97519         * lib/getloadavg.c: Likewise.
97520         * lib/getndelim2.c: Likewise.
97521         * lib/getndelim2.h: Likewise.
97522         * lib/getnline.c: Likewise.
97523         * lib/getnline.h: Likewise.
97524         * lib/getopt.c: Likewise.
97525         * lib/getopt.in.h: Likewise.
97526         * lib/getopt1.c: Likewise.
97527         * lib/getopt_int.h: Likewise.
97528         * lib/getpagesize.h: Likewise.
97529         * lib/getsubopt.c: Likewise.
97530         * lib/gettime.c: Likewise.
97531         * lib/getugroups.c: Likewise.
97532         * lib/getugroups.h: Likewise.
97533         * lib/getusershell.c: Likewise.
97534         * lib/gl_anyavltree_list1.h: Likewise.
97535         * lib/gl_anyavltree_list2.h: Likewise.
97536         * lib/gl_anyhash_list1.h: Likewise.
97537         * lib/gl_anyhash_list2.h: Likewise.
97538         * lib/gl_anylinked_list1.h: Likewise.
97539         * lib/gl_anylinked_list2.h: Likewise.
97540         * lib/gl_anyrbtree_list1.h: Likewise.
97541         * lib/gl_anyrbtree_list2.h: Likewise.
97542         * lib/gl_anytree_list1.h: Likewise.
97543         * lib/gl_anytree_list2.h: Likewise.
97544         * lib/gl_anytree_oset.h: Likewise.
97545         * lib/gl_anytreehash_list1.h: Likewise.
97546         * lib/gl_anytreehash_list2.h: Likewise.
97547         * lib/gl_array_list.c: Likewise.
97548         * lib/gl_array_list.h: Likewise.
97549         * lib/gl_array_oset.c: Likewise.
97550         * lib/gl_array_oset.h: Likewise.
97551         * lib/gl_avltree_list.c: Likewise.
97552         * lib/gl_avltree_list.h: Likewise.
97553         * lib/gl_avltree_oset.c: Likewise.
97554         * lib/gl_avltree_oset.h: Likewise.
97555         * lib/gl_avltreehash_list.c: Likewise.
97556         * lib/gl_avltreehash_list.h: Likewise.
97557         * lib/gl_carray_list.c: Likewise.
97558         * lib/gl_carray_list.h: Likewise.
97559         * lib/gl_linked_list.c: Likewise.
97560         * lib/gl_linked_list.h: Likewise.
97561         * lib/gl_linkedhash_list.c: Likewise.
97562         * lib/gl_linkedhash_list.h: Likewise.
97563         * lib/gl_list.c: Likewise.
97564         * lib/gl_list.h: Likewise.
97565         * lib/gl_oset.c: Likewise.
97566         * lib/gl_oset.h: Likewise.
97567         * lib/gl_rbtree_list.c: Likewise.
97568         * lib/gl_rbtree_list.h: Likewise.
97569         * lib/gl_rbtree_oset.c: Likewise.
97570         * lib/gl_rbtree_oset.h: Likewise.
97571         * lib/gl_rbtreehash_list.c: Likewise.
97572         * lib/gl_rbtreehash_list.h: Likewise.
97573         * lib/gl_sublist.c: Likewise.
97574         * lib/gl_sublist.h: Likewise.
97575         * lib/group-member.c: Likewise.
97576         * lib/group-member.h: Likewise.
97577         * lib/hard-locale.c: Likewise.
97578         * lib/hard-locale.h: Likewise.
97579         * lib/hash-pjw.c: Likewise.
97580         * lib/hash-pjw.h: Likewise.
97581         * lib/hash-triple.c: Likewise.
97582         * lib/hash.c: Likewise.
97583         * lib/hash.h: Likewise.
97584         * lib/human.c: Likewise.
97585         * lib/human.h: Likewise.
97586         * lib/i-ring.c: Likewise.
97587         * lib/i-ring.h: Likewise.
97588         * lib/idcache.c: Likewise.
97589         * lib/imaxabs.c: Likewise.
97590         * lib/imaxdiv.c: Likewise.
97591         * lib/inet_pton.c: Likewise.
97592         * lib/inet_pton.h: Likewise.
97593         * lib/intprops.h: Likewise.
97594         * lib/inttostr.c: Likewise.
97595         * lib/inttostr.h: Likewise.
97596         * lib/inttypes.in.h: Likewise.
97597         * lib/isapipe.c: Likewise.
97598         * lib/isdir.c: Likewise.
97599         * lib/isnan.c: Likewise.
97600         * lib/isnan.h: Likewise.
97601         * lib/isnanf.c: Likewise.
97602         * lib/isnanf.h: Likewise.
97603         * lib/isnanl-nolibm.h: Likewise.
97604         * lib/isnanl.c: Likewise.
97605         * lib/isnanl.h: Likewise.
97606         * lib/javacomp.c: Likewise.
97607         * lib/javacomp.h: Likewise.
97608         * lib/javaexec.c: Likewise.
97609         * lib/javaexec.h: Likewise.
97610         * lib/javaversion.c: Likewise.
97611         * lib/javaversion.h: Likewise.
97612         * lib/javaversion.java: Likewise.
97613         * lib/lbrkprop.h: Likewise.
97614         * lib/lchmod.h: Likewise.
97615         * lib/lchown.c: Likewise.
97616         * lib/ldexpl.c: Likewise.
97617         * lib/linebreak.c: Likewise.
97618         * lib/linebreak.h: Likewise.
97619         * lib/linebuffer.c: Likewise.
97620         * lib/linebuffer.h: Likewise.
97621         * lib/locale.in.h: Likewise.
97622         * lib/logl.c: Likewise.
97623         * lib/long-options.c: Likewise.
97624         * lib/long-options.h: Likewise.
97625         * lib/lstat.c: Likewise.
97626         * lib/lstat.h: Likewise.
97627         * lib/math.in.h: Likewise.
97628         * lib/mbchar.c: Likewise.
97629         * lib/mbchar.h: Likewise.
97630         * lib/mbfile.h: Likewise.
97631         * lib/mbiter.h: Likewise.
97632         * lib/mbscasecmp.c: Likewise.
97633         * lib/mbscasestr.c: Likewise.
97634         * lib/mbschr.c: Likewise.
97635         * lib/mbscspn.c: Likewise.
97636         * lib/mbslen.c: Likewise.
97637         * lib/mbsncasecmp.c: Likewise.
97638         * lib/mbsnlen.c: Likewise.
97639         * lib/mbspbrk.c: Likewise.
97640         * lib/mbspcasecmp.c: Likewise.
97641         * lib/mbsrchr.c: Likewise.
97642         * lib/mbssep.c: Likewise.
97643         * lib/mbsspn.c: Likewise.
97644         * lib/mbsstr.c: Likewise.
97645         * lib/mbstok_r.c: Likewise.
97646         * lib/mbswidth.c: Likewise.
97647         * lib/mbswidth.h: Likewise.
97648         * lib/mbuiter.h: Likewise.
97649         * lib/memcasecmp.c: Likewise.
97650         * lib/memcasecmp.h: Likewise.
97651         * lib/memchr.c: Likewise.
97652         * lib/memcmp.c: Likewise.
97653         * lib/memcoll.c: Likewise.
97654         * lib/memcoll.h: Likewise.
97655         * lib/memcpy.c: Likewise.
97656         * lib/memrchr.c: Likewise.
97657         * lib/mkancesdirs.c: Likewise.
97658         * lib/mkdir-p.c: Likewise.
97659         * lib/mkdir-p.h: Likewise.
97660         * lib/mkdir.c: Likewise.
97661         * lib/mkdirat.c: Likewise.
97662         * lib/mkdtemp.c: Likewise.
97663         * lib/mkstemp-safer.c: Likewise.
97664         * lib/mkstemp.c: Likewise.
97665         * lib/modechange.c: Likewise.
97666         * lib/modechange.h: Likewise.
97667         * lib/mountlist.c: Likewise.
97668         * lib/mountlist.h: Likewise.
97669         * lib/mpsort.c: Likewise.
97670         * lib/nanosleep.c: Likewise.
97671         * lib/obstack.c: Likewise.
97672         * lib/obstack.h: Likewise.
97673         * lib/open-safer.c: Likewise.
97674         * lib/open.c: Likewise.
97675         * lib/openat-die.c: Likewise.
97676         * lib/openat-priv.h: Likewise.
97677         * lib/openat-proc.c: Likewise.
97678         * lib/openat.c: Likewise.
97679         * lib/openat.h: Likewise.
97680         * lib/pagealign_alloc.c: Likewise.
97681         * lib/pagealign_alloc.h: Likewise.
97682         * lib/physmem.c: Likewise.
97683         * lib/physmem.h: Likewise.
97684         * lib/pipe-safer.c: Likewise.
97685         * lib/pipe.c: Likewise.
97686         * lib/pipe.h: Likewise.
97687         * lib/posixtm.c: Likewise.
97688         * lib/posixtm.h: Likewise.
97689         * lib/posixver.c: Likewise.
97690         * lib/printf-frexp.c: Likewise.
97691         * lib/printf-frexp.h: Likewise.
97692         * lib/printf-frexpl.c: Likewise.
97693         * lib/printf-frexpl.h: Likewise.
97694         * lib/printf.c: Likewise.
97695         * lib/progname.c: Likewise.
97696         * lib/progname.h: Likewise.
97697         * lib/progreloc.c: Likewise.
97698         * lib/putenv.c: Likewise.
97699         * lib/quote.c: Likewise.
97700         * lib/quote.h: Likewise.
97701         * lib/quotearg.c: Likewise.
97702         * lib/quotearg.h: Likewise.
97703         * lib/raise.c: Likewise.
97704         * lib/readline.c: Likewise.
97705         * lib/readline.h: Likewise.
97706         * lib/readlink.c: Likewise.
97707         * lib/readtokens.c: Likewise.
97708         * lib/readtokens.h: Likewise.
97709         * lib/readtokens0.c: Likewise.
97710         * lib/readtokens0.h: Likewise.
97711         * lib/readutmp.c: Likewise.
97712         * lib/readutmp.h: Likewise.
97713         * lib/realloc.c: Likewise.
97714         * lib/relocwrapper.c: Likewise.
97715         * lib/rename-dest-slash.c: Likewise.
97716         * lib/rename.c: Likewise.
97717         * lib/rmdir.c: Likewise.
97718         * lib/rpmatch.c: Likewise.
97719         * lib/safe-read.c: Likewise.
97720         * lib/safe-read.h: Likewise.
97721         * lib/safe-write.c: Likewise.
97722         * lib/safe-write.h: Likewise.
97723         * lib/same-inode.h: Likewise.
97724         * lib/same.c: Likewise.
97725         * lib/same.h: Likewise.
97726         * lib/save-cwd.c: Likewise.
97727         * lib/save-cwd.h: Likewise.
97728         * lib/savedir.c: Likewise.
97729         * lib/savedir.h: Likewise.
97730         * lib/savewd.c: Likewise.
97731         * lib/savewd.h: Likewise.
97732         * lib/search.in.h: Likewise.
97733         * lib/setenv.c: Likewise.
97734         * lib/setenv.h: Likewise.
97735         * lib/settime.c: Likewise.
97736         * lib/sh-quote.c: Likewise.
97737         * lib/sh-quote.h: Likewise.
97738         * lib/sig2str.c: Likewise.
97739         * lib/sig2str.h: Likewise.
97740         * lib/signal.in.h: Likewise.
97741         * lib/signbitd.c: Likewise.
97742         * lib/signbitf.c: Likewise.
97743         * lib/signbitl.c: Likewise.
97744         * lib/sigprocmask.c: Likewise.
97745         * lib/sincosl.c: Likewise.
97746         * lib/sleep.c: Likewise.
97747         * lib/sprintf.c: Likewise.
97748         * lib/sqrtl.c: Likewise.
97749         * lib/stat-time.h: Likewise.
97750         * lib/stdio--.h: Likewise.
97751         * lib/stdio-safer.h: Likewise.
97752         * lib/stdlib--.h: Likewise.
97753         * lib/stdlib-safer.h: Likewise.
97754         * lib/stdlib.in.h: Likewise.
97755         * lib/stpcpy.c: Likewise.
97756         * lib/stpncpy.c: Likewise.
97757         * lib/strchrnul.c: Likewise.
97758         * lib/strcspn.c: Likewise.
97759         * lib/strerror.c: Likewise.
97760         * lib/strftime.c: Likewise.
97761         * lib/strftime.h: Likewise.
97762         * lib/striconveh.c: Likewise.
97763         * lib/striconveh.h: Likewise.
97764         * lib/striconveha.c: Likewise.
97765         * lib/striconveha.h: Likewise.
97766         * lib/stripslash.c: Likewise.
97767         * lib/strnlen1.c: Likewise.
97768         * lib/strnlen1.h: Likewise.
97769         * lib/strtod.c: Likewise.
97770         * lib/strtoimax.c: Likewise.
97771         * lib/strtok_r.c: Likewise.
97772         * lib/strtol.c: Likewise.
97773         * lib/strtoll.c: Likewise.
97774         * lib/strtoul.c: Likewise.
97775         * lib/strtoull.c: Likewise.
97776         * lib/sysexits.in.h: Likewise.
97777         * lib/tempname.c: Likewise.
97778         * lib/tempname.h: Likewise.
97779         * lib/timespec.h: Likewise.
97780         * lib/tls.c: Likewise.
97781         * lib/tls.h: Likewise.
97782         * lib/tmpdir.c: Likewise.
97783         * lib/tmpdir.h: Likewise.
97784         * lib/tmpfile-safer.c: Likewise.
97785         * lib/tmpfile.c: Likewise.
97786         * lib/trigl.c: Likewise.
97787         * lib/trigl.h: Likewise.
97788         * lib/trim.c: Likewise.
97789         * lib/trim.h: Likewise.
97790         * lib/trunc.c: Likewise.
97791         * lib/truncf.c: Likewise.
97792         * lib/truncl.c: Likewise.
97793         * lib/tsearch.c: Likewise.
97794         * lib/unicodeio.c: Likewise.
97795         * lib/unicodeio.h: Likewise.
97796         * lib/unistd--.h: Likewise.
97797         * lib/unistd-safer.h: Likewise.
97798         * lib/unistdio/ulc-fprintf.c: Likewise.
97799         * lib/unistdio/ulc-vfprintf.c: Likewise.
97800         * lib/unlinkdir.c: Likewise.
97801         * lib/unlinkdir.h: Likewise.
97802         * lib/unlocked-io.h: Likewise.
97803         * lib/unsetenv.c: Likewise.
97804         * lib/userspec.c: Likewise.
97805         * lib/utime.c: Likewise.
97806         * lib/utimecmp.c: Likewise.
97807         * lib/utimecmp.h: Likewise.
97808         * lib/utimens.c: Likewise.
97809         * lib/verify.h: Likewise.
97810         * lib/verror.c: Likewise.
97811         * lib/verror.h: Likewise.
97812         * lib/version-etc-fsf.c: Likewise.
97813         * lib/version-etc.c: Likewise.
97814         * lib/version-etc.h: Likewise.
97815         * lib/vfprintf.c: Likewise.
97816         * lib/vprintf.c: Likewise.
97817         * lib/vsprintf.c: Likewise.
97818         * lib/w32spawn.h: Likewise.
97819         * lib/wait-process.c: Likewise.
97820         * lib/wait-process.h: Likewise.
97821         * lib/wcwidth.c: Likewise.
97822         * lib/write-any-file.c: Likewise.
97823         * lib/xalloc-die.c: Likewise.
97824         * lib/xalloc.h: Likewise.
97825         * lib/xasprintf.c: Likewise.
97826         * lib/xgetcwd.c: Likewise.
97827         * lib/xgetcwd.h: Likewise.
97828         * lib/xgetdomainname.c: Likewise.
97829         * lib/xgetdomainname.h: Likewise.
97830         * lib/xgethostname.c: Likewise.
97831         * lib/xmalloc.c: Likewise.
97832         * lib/xmalloca.c: Likewise.
97833         * lib/xmalloca.h: Likewise.
97834         * lib/xmemcoll.c: Likewise.
97835         * lib/xnanosleep.c: Likewise.
97836         * lib/xreadlink.c: Likewise.
97837         * lib/xreadlink.h: Likewise.
97838         * lib/xsetenv.c: Likewise.
97839         * lib/xsetenv.h: Likewise.
97840         * lib/xstriconv.c: Likewise.
97841         * lib/xstriconv.h: Likewise.
97842         * lib/xstrndup.c: Likewise.
97843         * lib/xstrndup.h: Likewise.
97844         * lib/xstrtod.c: Likewise.
97845         * lib/xstrtod.h: Likewise.
97846         * lib/xstrtol-error.c: Likewise.
97847         * lib/xstrtol.c: Likewise.
97848         * lib/xstrtol.h: Likewise.
97849         * lib/xtime.h: Likewise.
97850         * lib/xvasprintf.c: Likewise.
97851         * lib/xvasprintf.h: Likewise.
97852         * lib/yesno.c: Likewise.
97853         * lib/yesno.h: Likewise.
97854         * posix-modules: Likewise.
97855         * tests/test-alloca-opt.c: Likewise.
97856         * tests/test-arcfour.c: Likewise.
97857         * tests/test-arctwo.c: Likewise.
97858         * tests/test-argmatch.c: Likewise.
97859         * tests/test-argp-2.sh: Likewise.
97860         * tests/test-argp.c: Likewise.
97861         * tests/test-arpa_inet.c: Likewise.
97862         * tests/test-array_list.c: Likewise.
97863         * tests/test-array_oset.c: Likewise.
97864         * tests/test-atexit.c: Likewise.
97865         * tests/test-avltree_list.c: Likewise.
97866         * tests/test-avltree_oset.c: Likewise.
97867         * tests/test-avltreehash_list.c: Likewise.
97868         * tests/test-base64.c: Likewise.
97869         * tests/test-binary-io.c: Likewise.
97870         * tests/test-byteswap.c: Likewise.
97871         * tests/test-c-ctype.c: Likewise.
97872         * tests/test-c-strcasecmp.c: Likewise.
97873         * tests/test-c-strcasestr.c: Likewise.
97874         * tests/test-c-strncasecmp.c: Likewise.
97875         * tests/test-c-strstr.c: Likewise.
97876         * tests/test-canonicalize-lgpl.c: Likewise.
97877         * tests/test-canonicalize.c: Likewise.
97878         * tests/test-carray_list.c: Likewise.
97879         * tests/test-ceilf.c: Likewise.
97880         * tests/test-ceill.c: Likewise.
97881         * tests/test-count-one-bits.c: Likewise.
97882         * tests/test-crc.c: Likewise.
97883         * tests/test-dirname.c: Likewise.
97884         * tests/test-fbufmode.c: Likewise.
97885         * tests/test-fcntl.c: Likewise.
97886         * tests/test-fflush.c: Likewise.
97887         * tests/test-floorf.c: Likewise.
97888         * tests/test-floorl.c: Likewise.
97889         * tests/test-fopen.c: Likewise.
97890         * tests/test-fprintf-posix.c: Likewise.
97891         * tests/test-fprintf-posix.h: Likewise.
97892         * tests/test-fpurge.c: Likewise.
97893         * tests/test-freadable.c: Likewise.
97894         * tests/test-freadahead.c: Likewise.
97895         * tests/test-freading.c: Likewise.
97896         * tests/test-freopen.c: Likewise.
97897         * tests/test-frexp.c: Likewise.
97898         * tests/test-frexpl.c: Likewise.
97899         * tests/test-fseek.c: Likewise.
97900         * tests/test-fseeko.c: Likewise.
97901         * tests/test-fseterr.c: Likewise.
97902         * tests/test-fstrcmp.c: Likewise.
97903         * tests/test-ftell.c: Likewise.
97904         * tests/test-ftello.c: Likewise.
97905         * tests/test-fwritable.c: Likewise.
97906         * tests/test-fwriting.c: Likewise.
97907         * tests/test-getaddrinfo.c: Likewise.
97908         * tests/test-getpass.c: Likewise.
97909         * tests/test-gettimeofday.c: Likewise.
97910         * tests/test-hmac-md5.c: Likewise.
97911         * tests/test-hmac-sha1.c: Likewise.
97912         * tests/test-iconv.c: Likewise.
97913         * tests/test-iconvme.c: Likewise.
97914         * tests/test-inttypes.c: Likewise.
97915         * tests/test-isnan.c: Likewise.
97916         * tests/test-isnanf.c: Likewise.
97917         * tests/test-isnanl-nolibm.c: Likewise.
97918         * tests/test-isnanl.c: Likewise.
97919         * tests/test-isnanl.h: Likewise.
97920         * tests/test-ldexpl.c: Likewise.
97921         * tests/test-linked_list.c: Likewise.
97922         * tests/test-linkedhash_list.c: Likewise.
97923         * tests/test-locale.c: Likewise.
97924         * tests/test-localename.c: Likewise.
97925         * tests/test-lock.c: Likewise.
97926         * tests/test-lseek.c: Likewise.
97927         * tests/test-malloca.c: Likewise.
97928         * tests/test-math.c: Likewise.
97929         * tests/test-mbscasecmp.c: Likewise.
97930         * tests/test-mbscasestr1.c: Likewise.
97931         * tests/test-mbscasestr2.c: Likewise.
97932         * tests/test-mbscasestr3.c: Likewise.
97933         * tests/test-mbscasestr4.c: Likewise.
97934         * tests/test-mbschr.c: Likewise.
97935         * tests/test-mbscspn.c: Likewise.
97936         * tests/test-mbsncasecmp.c: Likewise.
97937         * tests/test-mbspbrk.c: Likewise.
97938         * tests/test-mbspcasecmp.c: Likewise.
97939         * tests/test-mbsrchr.c: Likewise.
97940         * tests/test-mbsspn.c: Likewise.
97941         * tests/test-mbsstr1.c: Likewise.
97942         * tests/test-mbsstr2.c: Likewise.
97943         * tests/test-mbsstr3.c: Likewise.
97944         * tests/test-md5.c: Likewise.
97945         * tests/test-memmem.c: Likewise.
97946         * tests/test-netinet_in.c: Likewise.
97947         * tests/test-open.c: Likewise.
97948         * tests/test-printf-frexp.c: Likewise.
97949         * tests/test-printf-frexpl.c: Likewise.
97950         * tests/test-printf-posix.c: Likewise.
97951         * tests/test-printf-posix.h: Likewise.
97952         * tests/test-rbtree_list.c: Likewise.
97953         * tests/test-rbtree_oset.c: Likewise.
97954         * tests/test-rbtreehash_list.c: Likewise.
97955         * tests/test-read-file.c: Likewise.
97956         * tests/test-rijndael.c: Likewise.
97957         * tests/test-search.c: Likewise.
97958         * tests/test-signbit.c: Likewise.
97959         * tests/test-sleep.c: Likewise.
97960         * tests/test-snprintf-posix.c: Likewise.
97961         * tests/test-snprintf-posix.h: Likewise.
97962         * tests/test-snprintf.c: Likewise.
97963         * tests/test-sprintf-posix.c: Likewise.
97964         * tests/test-sprintf-posix.h: Likewise.
97965         * tests/test-stat-time.c: Likewise.
97966         * tests/test-stdbool.c: Likewise.
97967         * tests/test-stdint.c: Likewise.
97968         * tests/test-stdio.c: Likewise.
97969         * tests/test-stdlib.c: Likewise.
97970         * tests/test-stpncpy.c: Likewise.
97971         * tests/test-strcasestr.c: Likewise.
97972         * tests/test-striconv.c: Likewise.
97973         * tests/test-striconveh.c: Likewise.
97974         * tests/test-striconveha.c: Likewise.
97975         * tests/test-string.c: Likewise.
97976         * tests/test-sys_select.c: Likewise.
97977         * tests/test-sys_socket.c: Likewise.
97978         * tests/test-sys_stat.c: Likewise.
97979         * tests/test-sys_time.c: Likewise.
97980         * tests/test-sysexits.c: Likewise.
97981         * tests/test-time.c: Likewise.
97982         * tests/test-tls.c: Likewise.
97983         * tests/test-trunc.c: Likewise.
97984         * tests/test-truncf.c: Likewise.
97985         * tests/test-truncl.c: Likewise.
97986         * tests/test-unistd.c: Likewise.
97987         * tests/test-vasnprintf-posix.c: Likewise.
97988         * tests/test-vasnprintf-posix2.c: Likewise.
97989         * tests/test-vasnprintf.c: Likewise.
97990         * tests/test-vasprintf-posix.c: Likewise.
97991         * tests/test-vasprintf.c: Likewise.
97992         * tests/test-verify.c: Likewise.
97993         * tests/test-vfprintf-posix.c: Likewise.
97994         * tests/test-vprintf-posix.c: Likewise.
97995         * tests/test-vsnprintf-posix.c: Likewise.
97996         * tests/test-vsnprintf.c: Likewise.
97997         * tests/test-vsprintf-posix.c: Likewise.
97998         * tests/test-wchar.c: Likewise.
97999         * tests/test-wctype.c: Likewise.
98000         * tests/test-wcwidth.c: Likewise.
98001         * tests/test-xstrtol.c: Likewise.
98002         * tests/test-xvasprintf.c: Likewise.
98003         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
98004         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
98005         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
98006         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
98007         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
98008         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
98009         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
98010         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
98011         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
98012         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
98013         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
98014         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
98015         * tests/uniname/test-uninames.c: Likewise.
98016         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
98017         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
98018         * tests/unistdio/test-u16-printf1.h: Likewise.
98019         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
98020         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
98021         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
98022         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
98023         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
98024         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
98025         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
98026         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
98027         * tests/unistdio/test-u32-printf1.h: Likewise.
98028         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
98029         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
98030         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
98031         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
98032         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
98033         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
98034         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
98035         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
98036         * tests/unistdio/test-u8-printf1.h: Likewise.
98037         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
98038         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
98039         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
98040         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
98041         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
98042         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
98043         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
98044         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
98045         * tests/unistdio/test-ulc-printf1.h: Likewise.
98046         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
98047         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
98048         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
98049         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
98050         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
98051         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
98052         * tests/uniwidth/test-u16-strwidth.c: Likewise.
98053         * tests/uniwidth/test-u16-width.c: Likewise.
98054         * tests/uniwidth/test-u32-strwidth.c: Likewise.
98055         * tests/uniwidth/test-u32-width.c: Likewise.
98056         * tests/uniwidth/test-u8-strwidth.c: Likewise.
98057         * tests/uniwidth/test-u8-width.c: Likewise.
98058         * tests/uniwidth/test-uc_width.c: Likewise.
98059         * config/srclist-update: Likewise.
98060         (fixlicense): Update to GPLv3+.
98062         Change copyright notice from LGPLv2.1+ to LGPLv3+.
98063         * tests/test-tsearch.c: Change copyright notice.
98065         Change copyright notice from LGPLv2.0+ to LGPLv3+.
98066         * lib/c-strcaseeq.h: Change copyright notice.
98067         * lib/streq.h: Likewise.
98068         * lib/uniconv.h: Likewise.
98069         * lib/uniconv/u-conv-from-enc.h: Likewise.
98070         * lib/uniconv/u-conv-to-enc.h: Likewise.
98071         * lib/uniconv/u-strconv-from-enc.h: Likewise.
98072         * lib/uniconv/u-strconv-to-enc.h: Likewise.
98073         * lib/uniconv/u16-conv-from-enc.c: Likewise.
98074         * lib/uniconv/u16-conv-to-enc.c: Likewise.
98075         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
98076         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
98077         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
98078         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
98079         * lib/uniconv/u32-conv-from-enc.c: Likewise.
98080         * lib/uniconv/u32-conv-to-enc.c: Likewise.
98081         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
98082         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
98083         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
98084         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
98085         * lib/uniconv/u8-conv-from-enc.c: Likewise.
98086         * lib/uniconv/u8-conv-to-enc.c: Likewise.
98087         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
98088         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
98089         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
98090         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
98091         * lib/uniname.h: Likewise.
98092         * lib/uniname/uniname.c: Likewise.
98093         * lib/unistdio.h: Likewise.
98094         * lib/unistdio/u-asnprintf.h: Likewise.
98095         * lib/unistdio/u-asprintf.h: Likewise.
98096         * lib/unistdio/u-printf-args.c: Likewise.
98097         * lib/unistdio/u-printf-args.h: Likewise.
98098         * lib/unistdio/u-printf-parse.h: Likewise.
98099         * lib/unistdio/u-snprintf.h: Likewise.
98100         * lib/unistdio/u-sprintf.h: Likewise.
98101         * lib/unistdio/u-vasprintf.h: Likewise.
98102         * lib/unistdio/u-vsnprintf.h: Likewise.
98103         * lib/unistdio/u-vsprintf.h: Likewise.
98104         * lib/unistdio/u16-asnprintf.c: Likewise.
98105         * lib/unistdio/u16-asprintf.c: Likewise.
98106         * lib/unistdio/u16-printf-parse.c: Likewise.
98107         * lib/unistdio/u16-snprintf.c: Likewise.
98108         * lib/unistdio/u16-sprintf.c: Likewise.
98109         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
98110         * lib/unistdio/u16-u16-asprintf.c: Likewise.
98111         * lib/unistdio/u16-u16-snprintf.c: Likewise.
98112         * lib/unistdio/u16-u16-sprintf.c: Likewise.
98113         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
98114         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
98115         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
98116         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
98117         * lib/unistdio/u16-vasnprintf.c: Likewise.
98118         * lib/unistdio/u16-vasprintf.c: Likewise.
98119         * lib/unistdio/u16-vsnprintf.c: Likewise.
98120         * lib/unistdio/u16-vsprintf.c: Likewise.
98121         * lib/unistdio/u32-asnprintf.c: Likewise.
98122         * lib/unistdio/u32-asprintf.c: Likewise.
98123         * lib/unistdio/u32-printf-parse.c: Likewise.
98124         * lib/unistdio/u32-snprintf.c: Likewise.
98125         * lib/unistdio/u32-sprintf.c: Likewise.
98126         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
98127         * lib/unistdio/u32-u32-asprintf.c: Likewise.
98128         * lib/unistdio/u32-u32-snprintf.c: Likewise.
98129         * lib/unistdio/u32-u32-sprintf.c: Likewise.
98130         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
98131         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
98132         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
98133         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
98134         * lib/unistdio/u32-vasnprintf.c: Likewise.
98135         * lib/unistdio/u32-vasprintf.c: Likewise.
98136         * lib/unistdio/u32-vsnprintf.c: Likewise.
98137         * lib/unistdio/u32-vsprintf.c: Likewise.
98138         * lib/unistdio/u8-asnprintf.c: Likewise.
98139         * lib/unistdio/u8-asprintf.c: Likewise.
98140         * lib/unistdio/u8-printf-parse.c: Likewise.
98141         * lib/unistdio/u8-snprintf.c: Likewise.
98142         * lib/unistdio/u8-sprintf.c: Likewise.
98143         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
98144         * lib/unistdio/u8-u8-asprintf.c: Likewise.
98145         * lib/unistdio/u8-u8-snprintf.c: Likewise.
98146         * lib/unistdio/u8-u8-sprintf.c: Likewise.
98147         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
98148         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
98149         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
98150         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
98151         * lib/unistdio/u8-vasnprintf.c: Likewise.
98152         * lib/unistdio/u8-vasprintf.c: Likewise.
98153         * lib/unistdio/u8-vsnprintf.c: Likewise.
98154         * lib/unistdio/u8-vsprintf.c: Likewise.
98155         * lib/unistdio/ulc-asnprintf.c: Likewise.
98156         * lib/unistdio/ulc-asprintf.c: Likewise.
98157         * lib/unistdio/ulc-printf-parse.c: Likewise.
98158         * lib/unistdio/ulc-snprintf.c: Likewise.
98159         * lib/unistdio/ulc-sprintf.c: Likewise.
98160         * lib/unistdio/ulc-vasnprintf.c: Likewise.
98161         * lib/unistdio/ulc-vasprintf.c: Likewise.
98162         * lib/unistdio/ulc-vsnprintf.c: Likewise.
98163         * lib/unistdio/ulc-vsprintf.c: Likewise.
98164         * lib/unistr.h: Likewise.
98165         * lib/unistr/u-cpy-alloc.h: Likewise.
98166         * lib/unistr/u-cpy.h: Likewise.
98167         * lib/unistr/u-endswith.h: Likewise.
98168         * lib/unistr/u-move.h: Likewise.
98169         * lib/unistr/u-set.h: Likewise.
98170         * lib/unistr/u-startswith.h: Likewise.
98171         * lib/unistr/u-stpcpy.h: Likewise.
98172         * lib/unistr/u-stpncpy.h: Likewise.
98173         * lib/unistr/u-strcat.h: Likewise.
98174         * lib/unistr/u-strcpy.h: Likewise.
98175         * lib/unistr/u-strcspn.h: Likewise.
98176         * lib/unistr/u-strdup.h: Likewise.
98177         * lib/unistr/u-strlen.h: Likewise.
98178         * lib/unistr/u-strncat.h: Likewise.
98179         * lib/unistr/u-strncpy.h: Likewise.
98180         * lib/unistr/u-strnlen.h: Likewise.
98181         * lib/unistr/u-strpbrk.h: Likewise.
98182         * lib/unistr/u-strspn.h: Likewise.
98183         * lib/unistr/u-strstr.h: Likewise.
98184         * lib/unistr/u-strtok.h: Likewise.
98185         * lib/unistr/u16-check.c: Likewise.
98186         * lib/unistr/u16-chr.c: Likewise.
98187         * lib/unistr/u16-cmp.c: Likewise.
98188         * lib/unistr/u16-cpy-alloc.c: Likewise.
98189         * lib/unistr/u16-cpy.c: Likewise.
98190         * lib/unistr/u16-endswith.c: Likewise.
98191         * lib/unistr/u16-mblen.c: Likewise.
98192         * lib/unistr/u16-mbsnlen.c: Likewise.
98193         * lib/unistr/u16-mbtouc-aux.c: Likewise.
98194         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
98195         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
98196         * lib/unistr/u16-mbtouc.c: Likewise.
98197         * lib/unistr/u16-mbtoucr.c: Likewise.
98198         * lib/unistr/u16-move.c: Likewise.
98199         * lib/unistr/u16-next.c: Likewise.
98200         * lib/unistr/u16-prev.c: Likewise.
98201         * lib/unistr/u16-set.c: Likewise.
98202         * lib/unistr/u16-startswith.c: Likewise.
98203         * lib/unistr/u16-stpcpy.c: Likewise.
98204         * lib/unistr/u16-stpncpy.c: Likewise.
98205         * lib/unistr/u16-strcat.c: Likewise.
98206         * lib/unistr/u16-strchr.c: Likewise.
98207         * lib/unistr/u16-strcmp.c: Likewise.
98208         * lib/unistr/u16-strcpy.c: Likewise.
98209         * lib/unistr/u16-strcspn.c: Likewise.
98210         * lib/unistr/u16-strdup.c: Likewise.
98211         * lib/unistr/u16-strlen.c: Likewise.
98212         * lib/unistr/u16-strmblen.c: Likewise.
98213         * lib/unistr/u16-strmbtouc.c: Likewise.
98214         * lib/unistr/u16-strncat.c: Likewise.
98215         * lib/unistr/u16-strncmp.c: Likewise.
98216         * lib/unistr/u16-strncpy.c: Likewise.
98217         * lib/unistr/u16-strnlen.c: Likewise.
98218         * lib/unistr/u16-strpbrk.c: Likewise.
98219         * lib/unistr/u16-strrchr.c: Likewise.
98220         * lib/unistr/u16-strspn.c: Likewise.
98221         * lib/unistr/u16-strstr.c: Likewise.
98222         * lib/unistr/u16-strtok.c: Likewise.
98223         * lib/unistr/u16-to-u32.c: Likewise.
98224         * lib/unistr/u16-to-u8.c: Likewise.
98225         * lib/unistr/u16-uctomb-aux.c: Likewise.
98226         * lib/unistr/u16-uctomb.c: Likewise.
98227         * lib/unistr/u32-check.c: Likewise.
98228         * lib/unistr/u32-chr.c: Likewise.
98229         * lib/unistr/u32-cmp.c: Likewise.
98230         * lib/unistr/u32-cpy-alloc.c: Likewise.
98231         * lib/unistr/u32-cpy.c: Likewise.
98232         * lib/unistr/u32-endswith.c: Likewise.
98233         * lib/unistr/u32-mblen.c: Likewise.
98234         * lib/unistr/u32-mbsnlen.c: Likewise.
98235         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
98236         * lib/unistr/u32-mbtouc.c: Likewise.
98237         * lib/unistr/u32-mbtoucr.c: Likewise.
98238         * lib/unistr/u32-move.c: Likewise.
98239         * lib/unistr/u32-next.c: Likewise.
98240         * lib/unistr/u32-prev.c: Likewise.
98241         * lib/unistr/u32-set.c: Likewise.
98242         * lib/unistr/u32-startswith.c: Likewise.
98243         * lib/unistr/u32-stpcpy.c: Likewise.
98244         * lib/unistr/u32-stpncpy.c: Likewise.
98245         * lib/unistr/u32-strcat.c: Likewise.
98246         * lib/unistr/u32-strchr.c: Likewise.
98247         * lib/unistr/u32-strcmp.c: Likewise.
98248         * lib/unistr/u32-strcpy.c: Likewise.
98249         * lib/unistr/u32-strcspn.c: Likewise.
98250         * lib/unistr/u32-strdup.c: Likewise.
98251         * lib/unistr/u32-strlen.c: Likewise.
98252         * lib/unistr/u32-strmblen.c: Likewise.
98253         * lib/unistr/u32-strmbtouc.c: Likewise.
98254         * lib/unistr/u32-strncat.c: Likewise.
98255         * lib/unistr/u32-strncmp.c: Likewise.
98256         * lib/unistr/u32-strncpy.c: Likewise.
98257         * lib/unistr/u32-strnlen.c: Likewise.
98258         * lib/unistr/u32-strpbrk.c: Likewise.
98259         * lib/unistr/u32-strrchr.c: Likewise.
98260         * lib/unistr/u32-strspn.c: Likewise.
98261         * lib/unistr/u32-strstr.c: Likewise.
98262         * lib/unistr/u32-strtok.c: Likewise.
98263         * lib/unistr/u32-to-u16.c: Likewise.
98264         * lib/unistr/u32-to-u8.c: Likewise.
98265         * lib/unistr/u32-uctomb.c: Likewise.
98266         * lib/unistr/u8-check.c: Likewise.
98267         * lib/unistr/u8-chr.c: Likewise.
98268         * lib/unistr/u8-cmp.c: Likewise.
98269         * lib/unistr/u8-cpy-alloc.c: Likewise.
98270         * lib/unistr/u8-cpy.c: Likewise.
98271         * lib/unistr/u8-endswith.c: Likewise.
98272         * lib/unistr/u8-mblen.c: Likewise.
98273         * lib/unistr/u8-mbsnlen.c: Likewise.
98274         * lib/unistr/u8-mbtouc-aux.c: Likewise.
98275         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
98276         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
98277         * lib/unistr/u8-mbtouc.c: Likewise.
98278         * lib/unistr/u8-mbtoucr.c: Likewise.
98279         * lib/unistr/u8-move.c: Likewise.
98280         * lib/unistr/u8-next.c: Likewise.
98281         * lib/unistr/u8-prev.c: Likewise.
98282         * lib/unistr/u8-set.c: Likewise.
98283         * lib/unistr/u8-startswith.c: Likewise.
98284         * lib/unistr/u8-stpcpy.c: Likewise.
98285         * lib/unistr/u8-stpncpy.c: Likewise.
98286         * lib/unistr/u8-strcat.c: Likewise.
98287         * lib/unistr/u8-strchr.c: Likewise.
98288         * lib/unistr/u8-strcmp.c: Likewise.
98289         * lib/unistr/u8-strcpy.c: Likewise.
98290         * lib/unistr/u8-strcspn.c: Likewise.
98291         * lib/unistr/u8-strdup.c: Likewise.
98292         * lib/unistr/u8-strlen.c: Likewise.
98293         * lib/unistr/u8-strmblen.c: Likewise.
98294         * lib/unistr/u8-strmbtouc.c: Likewise.
98295         * lib/unistr/u8-strncat.c: Likewise.
98296         * lib/unistr/u8-strncmp.c: Likewise.
98297         * lib/unistr/u8-strncpy.c: Likewise.
98298         * lib/unistr/u8-strnlen.c: Likewise.
98299         * lib/unistr/u8-strpbrk.c: Likewise.
98300         * lib/unistr/u8-strrchr.c: Likewise.
98301         * lib/unistr/u8-strspn.c: Likewise.
98302         * lib/unistr/u8-strstr.c: Likewise.
98303         * lib/unistr/u8-strtok.c: Likewise.
98304         * lib/unistr/u8-to-u16.c: Likewise.
98305         * lib/unistr/u8-to-u32.c: Likewise.
98306         * lib/unistr/u8-uctomb-aux.c: Likewise.
98307         * lib/unistr/u8-uctomb.c: Likewise.
98308         * lib/unitypes.h: Likewise.
98309         * lib/uniwidth.h: Likewise.
98310         * lib/uniwidth/cjk.h: Likewise.
98311         * lib/uniwidth/u16-strwidth.c: Likewise.
98312         * lib/uniwidth/u16-width.c: Likewise.
98313         * lib/uniwidth/u32-strwidth.c: Likewise.
98314         * lib/uniwidth/u32-width.c: Likewise.
98315         * lib/uniwidth/u8-strwidth.c: Likewise.
98316         * lib/uniwidth/u8-width.c: Likewise.
98317         * lib/uniwidth/width.c: Likewise.
98319 2007-10-07  Bruno Haible  <bruno@clisp.org>
98321         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
98322         The file is still under LGPL (see modules/inttypes).
98324 2007-10-06  Bruno Haible  <bruno@clisp.org>
98326         * modules/trunc (Dependencies): Add 'extensions'.
98327         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
98328         Reported by Ben Pfaff <blp@gnu.org>.
98330 2007-10-06  Bruno Haible  <bruno@clisp.org>
98332         * modules/freopen-tests: New file.
98333         * tests/test-freopen.c: New file.
98335         * modules/fopen-tests: New file.
98336         * tests/test-fopen.c: New file.
98338         * modules/fopen: New file.
98339         * lib/fopen.c: New file.
98340         * m4/fopen.m4: New file.
98341         * modules/freopen: New file.
98342         * lib/freopen.c: New file.
98343         * m4/freopen.m4: New file.
98344         * lib/stdio.in.h (fopen, freopen): New declarations.
98345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
98346         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98347         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
98348         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
98349         * doc/functions/fopen.texi: Mention the 'fopen' module.
98350         * doc/functions/freopen.texi: Mention the 'freopen' module.
98352 2007-10-06  Bruno Haible  <bruno@clisp.org>
98354         * modules/open-tests: New file.
98355         * tests/test-open.c: New file.
98357         * modules/open: New file.
98358         * lib/open.c: New file.
98359         * m4/open.m4: New file.
98360         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
98361         lib/open.c does.
98362         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
98363         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
98364         macros.
98365         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
98366         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
98367         REPLACE_OPEN.
98368         * doc/functions/open.texi: Mention the 'open' module.
98370 2007-10-04  Bruno Haible  <bruno@clisp.org>
98372         * modules/ceill-tests: New file.
98373         * tests/test-ceill.c: New file.
98375         * modules/ceill: New file.
98376         * lib/ceill.c: Replace entire file.
98377         * m4/ceill.m4: New file.
98378         * lib/math.in.h (ceill): Replace declaration.
98379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
98380         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
98381         * doc/functions/ceill.texi: Mention the 'ceill' module.
98382         * modules/mathl (Files): Remove lib/ceill.c.
98383         (Depends-on): Add ceill.
98385 2007-10-04  Bruno Haible  <bruno@clisp.org>
98387         * modules/ceilf-tests: New file.
98388         * tests/test-ceilf.c: New file.
98390         * modules/ceilf: New file.
98391         * lib/ceil.c: New file.
98392         * lib/ceilf.c: New file.
98393         * m4/ceilf.m4: New file.
98394         * lib/math.in.h (ceilf): New declaration.
98395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
98396         HAVE_DECL_CEILF.
98397         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
98398         HAVE_DECL_CEILF.
98399         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
98401 2007-10-04  Bruno Haible  <bruno@clisp.org>
98403         * modules/floorl-tests: New file.
98404         * tests/test-floorl.c: New file.
98406         * modules/floorl: New file.
98407         * lib/floorl.c: Replace entire file.
98408         * m4/floorl.m4: New file.
98409         * lib/math.in.h (floorl): Replace declaration.
98410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
98411         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
98412         * doc/functions/floorl.texi: Mention the 'floorl' module.
98413         * modules/mathl (Files): Remove lib/floorl.c.
98414         (Depends-on): Add floorl.
98416 2007-10-04  Bruno Haible  <bruno@clisp.org>
98418         * modules/floorf-tests: New file.
98419         * tests/test-floorf.c: New file.
98421         * modules/floorf: New file.
98422         * lib/floor.c: New file.
98423         * lib/floorf.c: New file.
98424         * m4/floorf.m4: New file.
98425         * lib/math.in.h (floorf): New declaration.
98426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
98427         HAVE_DECL_FLOORF.
98428         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
98429         HAVE_DECL_FLOORF.
98430         * doc/functions/floorf.texi: Mention the 'floorf' module.
98432 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
98433             Bruno Haible  <bruno@clisp.org>
98435         Advertise for the Git server instead of the CVS server.
98436         * doc/gnulib-intro.texi (Steady Development): Mention the Git
98437         repository instead of the CVS one.
98438         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
98439         about all VCS systems generically.
98440         * doc/gnulib.texi (Introduction): Capitalize `Git'.
98442 2007-10-04  Bruno Haible  <bruno@clisp.org>
98444         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
98445         means.
98446         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
98448 2007-10-04  Bruno Haible  <bruno@clisp.org>
98450         * modules/truncl-tests: New file.
98451         * tests/test-truncl.c: New file.
98453         * modules/truncl: New file.
98454         * lib/truncl.c: New file.
98455         * m4/truncl.m4: New file.
98456         * lib/math.in.h (truncl): New declaration.
98457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
98458         HAVE_DECL_TRUNCL.
98459         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
98460         HAVE_DECL_TRUNCL.
98461         * doc/functions/truncl.texi: Mention the 'truncl' module.
98463 2007-10-04  Bruno Haible  <bruno@clisp.org>
98465         * modules/truncf-tests: New file.
98466         * tests/test-truncf.c: New file.
98468         * modules/truncf: New file.
98469         * lib/trunc.c: Make paramerizable through USE_* macros.
98470         * lib/truncf.c: New file.
98471         * m4/truncf.m4: New file.
98472         * lib/math.in.h (truncf): New declaration.
98473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
98474         HAVE_DECL_TRUNCF.
98475         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
98476         HAVE_DECL_TRUNCF.
98477         * doc/functions/truncf.texi: Mention the 'truncf' module.
98479 2007-10-03  Bruno Haible  <bruno@clisp.org>
98481         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
98482         augmentation also for tests modules.
98483         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
98484         * modules/atexit-tests (Makefile.am): Likewise.
98485         * modules/binary-io-tests (Makefile.am): Likewise.
98486         * modules/c-strcase-tests (Makefile.am): Likewise.
98487         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
98488         * modules/canonicalize-tests (Makefile.am): Likewise.
98489         * modules/closein-tests (Makefile.am): Likewise.
98490         * modules/fprintf-posix-tests (Makefile.am): Likewise.
98491         * modules/freadahead-tests (Makefile.am): Likewise.
98492         * modules/fseek-tests (Makefile.am): Likewise.
98493         * modules/fseeko-tests (Makefile.am): Likewise.
98494         * modules/ftell-tests (Makefile.am): Likewise.
98495         * modules/ftello-tests (Makefile.am): Likewise.
98496         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
98497         * modules/isnanl-tests (Makefile.am): Likewise.
98498         * modules/lseek-tests (Makefile.am): Likewise.
98499         * modules/mbscasecmp-tests (Makefile.am): Likewise.
98500         * modules/mbscasestr-tests (Makefile.am): Likewise.
98501         * modules/mbschr-tests (Makefile.am): Likewise.
98502         * modules/mbscspn-tests (Makefile.am): Likewise.
98503         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
98504         * modules/mbspbrk-tests (Makefile.am): Likewise.
98505         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
98506         * modules/mbsrchr-tests (Makefile.am): Likewise.
98507         * modules/mbsspn-tests (Makefile.am): Likewise.
98508         * modules/mbsstr-tests (Makefile.am): Likewise.
98509         * modules/printf-posix-tests (Makefile.am): Likewise.
98510         * modules/snprintf-posix-tests (Makefile.am): Likewise.
98511         * modules/sprintf-posix-tests (Makefile.am): Likewise.
98512         * modules/tsearch-tests (Makefile.am): Likewise.
98513         * modules/uniname/uniname-tests (Makefile.am): Likewise.
98514         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
98515         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
98516         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
98517         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
98518         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
98519         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
98520         * modules/vprintf-posix-tests (Makefile.am): Likewise.
98521         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
98522         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
98523         * modules/xstrtoimax-tests (Makefile.am): Likewise.
98524         * modules/xstrtol-tests (Makefile.am): Likewise.
98525         * modules/xstrtoumax-tests (Makefile.am): Likewise.
98526         * modules/yesno-tests (Makefile.am): Likewise.
98528 2007-10-03  Bruno Haible  <bruno@clisp.org>
98530         * modules/trunc-tests: New file.
98531         * tests/test-trunc.c: New file.
98533         * modules/trunc: New file.
98534         * lib/trunc.c: New file.
98535         * m4/trunc.m4: New file.
98536         * lib/math.in.h (trunc): New declaration.
98537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
98538         HAVE_DECL_TRUNC.
98539         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
98540         HAVE_DECL_TRUNC.
98541         * doc/functions/trunc.texi: Mention the 'trunc' module.
98543 2007-10-03  Bruno Haible  <bruno@clisp.org>
98545         * tests/test-fpending.c: New file, mostly copied
98546         from coreutils/lib/t-fpending.c.
98547         * modules/fpending-tests: New file.
98549 2007-10-03  Bruno Haible  <bruno@clisp.org>
98551         Port the stdio extensions to QNX (untested).
98552         * lib/fseterr.c (fseterr): Add support for QNX.
98553         * lib/fbufmode.c (fbufmode): Likewise.
98554         * lib/freadable.c (freadable): Likewise.
98555         * lib/fwritable.c (fwritable): Likewise.
98556         * lib/freading.c (freading): Likewise.
98557         * lib/fwriting.c (fwriting): Likewise.
98558         * lib/freadahead.c (freadahed): Likewise.
98559         * lib/fpurge.c (fpurge): Likewise.
98560         * lib/fseeko.c (rpl_fseeko): Likewise.
98562 2007-10-03  Bruno Haible  <bruno@clisp.org>
98563             Jim Meyering  <jim@meyering.net>
98564             Eric Blake  <ebb9@byu.net>
98566         * doc/relocatable.texi: Use @command instead of @program.
98568 2007-10-02  Jim Meyering  <jim@meyering.net>
98570         Perform one more "_.h" -> ".in.h" substitution.
98571         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
98572         instead of unistd_.h here, too.
98574 2007-10-01  Bruno Haible  <bruno@clisp.org>
98576         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
98577         Needed for the alloca-opt module.
98579 2007-09-30  Bruno Haible  <bruno@clisp.org>
98581         * lib/alloca.in.h: Renamed from lib/alloca_.h.
98582         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
98583         alloca_.h.
98584         * lib/argz.in.h: Renamed from lib/argz_.h.
98585         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
98586         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
98587         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
98588         byteswap_.h.
98589         * lib/dirent.in.h: Renamed from lib/dirent_.h.
98590         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
98591         dirent_.h.
98592         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
98593         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
98594         fcntl_.h.
98595         * lib/float.in.h: Renamed from lib/float_.h.
98596         * modules/float (Files, Makefile.am): Use float.in.h instead of
98597         float_.h.
98598         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
98599         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
98600         fnmatch_.h.
98601         * lib/getopt.in.h: Renamed from lib/getopt_.h.
98602         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
98603         getopt_.h.
98604         * lib/glob.in.h: Renamed from lib/glob_.h.
98605         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
98606         * lib/iconv.in.h: Renamed from lib/iconv_.h.
98607         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
98608         iconv_.h.
98609         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
98610         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
98611         inttypes_.h.
98612         * lib/locale.in.h: Renamed from lib/locale_.h.
98613         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
98614         locale_.h.
98615         * lib/math.in.h: Renamed from lib/math_.h.
98616         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
98617         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
98618         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
98619         of netinet_in_.h. Add dependency.
98620         * lib/poll.in.h: Renamed from lib/poll_.h.
98621         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
98622         * lib/search.in.h: Renamed from lib/search_.h.
98623         * modules/search (Files, Makefile.am): Use search.in.h instead of
98624         search_.h.
98625         * lib/signal.in.h: Renamed from lib/signal_.h.
98626         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
98627         _signal.h.
98628         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
98629         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
98630         stdbool_.h.
98631         * lib/stdint.in.h: Renamed from lib/stdint_.h.
98632         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
98633         stdint_.h.
98634         * lib/stdio.in.h: Renamed from lib/stdio_.h.
98635         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
98636         stdio_.h.
98637         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
98638         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
98639         stdlib_.h.
98640         * lib/string.in.h: Renamed from lib/string_.h.
98641         * modules/string (Files, Makefile.am): Use string.in.h instead of
98642         string_.h.
98643         * doc/gnulib-tool.texi (Initial import): Update.
98644         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
98645         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
98646         of sys_select_.h. Add dependency.
98647         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
98648         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
98649         of sys_socket_.h.
98650         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
98651         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
98652         sys_stat_.h.
98653         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
98654         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
98655         sys_time_.h.
98656         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
98657         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
98658         sysexits_.h.
98659         * lib/time.in.h: Renamed from lib/time_.h.
98660         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
98661         * lib/unistd.in.h: Renamed from lib/unistd_.h.
98662         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
98663         unistd_.h.
98664         * lib/wchar.in.h: Renamed from lib/wchar_.h.
98665         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
98666         wchar_.h.
98667         * lib/wctype.in.h: Renamed from lib/wctype_.h.
98668         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
98669         wctype_.h.
98670         * build-aux/bootstrap (slurp): Update.
98671         * lib/.cppi-disable: Update.
98673 2007-09-30  Bruno Haible  <bruno@clisp.org>
98675         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
98676         Needed on BeOS.
98678 2007-09-30  Bruno Haible  <bruno@clisp.org>
98680         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
98682 2007-09-29  Bruno Haible  <bruno@clisp.org>
98684         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
98686 2007-09-29  Bruno Haible  <bruno@clisp.org>
98688         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
98689         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
98690         * build-aux/install-reloc: Compile also areadlink.c.
98691         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
98693 2007-09-29  Bruno Haible  <bruno@clisp.org>
98695         * gnulib-tool (func_emit_initmacro_done): Indentation.
98697 2007-09-29  Bruno Haible  <bruno@clisp.org>
98699         * README: Add CVS checkout update instructions.
98700         Info from Bob Proulx <bob@proulx.com>.
98702 2007-09-28  Eric Blake  <ebb9@byu.net>
98704         Provide move-if-change.
98705         * build-aux/move-if-change: New file, based on best practice
98706         rather than any canonical upstream location.
98708 2007-09-28  Jim Meyering  <jim@meyering.net>
98710         Fix canonicalize loop-detection corner case.
98711         Do not attempt to stat the symlink values stored via seen_triple.
98712         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
98713         on linux-2.6.18, (but not 2.6.22).
98714         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
98715         triple_compare.  The former compares dev,ino,filename, while the latter
98716         would actually stat dirname(filename) when dev and ino were equal.
98717         * lib/hash-triple.c: Install <string.h>.
98718         (STREQ): Define.
98719         (triple_compare_ino_str): New function.
98720         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
98722 2007-09-28  Eric Blake  <ebb9@byu.net>
98724         Enforce that AC_REPLACE_FUNCS files exist.
98725         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
98726         override check for typos.
98728         Fix test-closein on Solaris 10.
98729         * tests/test-closein.c (main): Don't assume stdin can be inherited
98730         closed on all systems.
98731         * tests/test-closein.sh: Likewise.
98732         Reported by Piotr Tarnowski.
98734 2007-09-28  Jim Meyering  <jim@meyering.net>
98736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
98738 2007-09-27  Jim Meyering  <jim@meyering.net>
98740         canonicalize: Avoid a false-positive cycle failure.
98741         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
98742         Sort.  Remove cycle-check.
98743         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
98744         not cycle-check.h.
98745         (seen_triple): New function.
98746         (canonicalize_filename_mode): Use it instead of cycle-check.
98747         * tests/test-canonicalize.c: Add a test for this bug.
98748         * tests/test-canonicalize.sh: Set up and run the test.
98750         New module, file-set, from coreutils.
98751         * modules/file-set: Define it.
98752         * lib/file-set.c, lib/file-set.h: Implement.
98754         New module, hash-triple, from coreutils.
98755         * modules/hash-triple: Define it.
98756         * lib/hash-triple.c, lib/hash-triple.h: Implement.
98758 2007-09-25  Eric Blake  <ebb9@byu.net>
98760         Fix strerror on Interix.
98761         * lib/string_.h (strerror): Declare replacement.
98762         * doc/functions/strerror.texi (strerror): Document the Interix
98763         shortcoming.
98764         * modules/string (Makefile.am): Support new hooks.
98765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
98766         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
98767         gl_FUNC_STRERROR_SEPARATE.
98768         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
98769         * lib/strerror.c (rpl_strerror): Provide replacement.
98770         * modules/strerror (Depends-on): Add string.
98771         (configure.ac): Detect use of module.
98772         * tests/test-strerror.c: New file.
98773         * modules/strerror-tests: New test module.
98774         * modules/argp (Depends-on): Add strerror.
98775         * modules/error (Depends-on): Likewise.
98776         Reported by Martin Koeppe.
98778 2007-09-24  Bruno Haible  <bruno@clisp.org>
98780         * README: Update git instructions.
98782 2007-09-24  Eric Blake  <ebb9@byu.net>
98784         Revert fpending breakage from 2007-09-08.
98785         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
98786         __fpending.c.
98788 2007-09-24  Jim Meyering  <jim@meyering.net>
98790         filenamecat.c: Add a test.
98791         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
98792         showing how the function works when DIR is the empty string.
98794 2007-09-21  Simon Josefsson  <simon@josefsson.org>
98796         * tests/test-canonicalize.sh: Turn on executable bit.
98798 2007-09-19  Eric Blake  <ebb9@byu.net>
98800         * README: Update CVS instructions.
98802 2007-09-18  Bruno Haible  <bruno@clisp.org>
98804         * modules/areadlink: New file.
98805         * lib/areadlink.h (areadlink): New declaration.
98806         * lib/areadlink.c: New file, based on lib/xreadlink.c.
98808 2007-09-17  Jim Meyering  <jim@meyering.net>
98810         * lib/savewd.c (ESTALE) [!defined]: Define.
98811         Reported to be required on Interix by Martin Koeppe.
98813 2007-09-17  Bruno Haible  <bruno@clisp.org>
98815         * gnulib-tool (func_version): Use $version.
98817 2007-09-16  Bruno Haible  <bruno@clisp.org>
98819         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
98820         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
98821         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
98822         Reported by Greg Schafer <gschafer@zip.com.au>.
98824 2007-09-15  Bruno Haible  <bruno@clisp.org>
98826         * gnulib-tool (sed): Try a little harder to make bash understand the
98827         alias.
98828         Reported by Bruce Korb <bruce.korb@gmail.com>.
98830 2007-09-13  Eric Blake  <ebb9@byu.net>
98832         * ChangeLog: Remove conflict markers.
98834 2007-09-13  Simon Josefsson  <simon@josefsson.org>
98836         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
98837         Reported by Bruno Haible <bruno@clisp.org>.
98839 2007-09-12  Bruno Haible  <bruno@clisp.org>
98841         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
98842         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
98843         is not defined.
98845 2007-09-12  Eric Blake  <ebb9@byu.net>
98847         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
98848         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
98849         Autoconf definition.
98850         * modules/euidaccess (Depends-on): Add extensions, for
98851         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
98852         * modules/fnmatch (Depends-on): Likewise.
98853         * modules/getaddrinfo (Depends-on): Likewise.
98854         * modules/getdelim (Depends-on): Likewise.
98855         * modules/getline (Depends-on): Likewise.
98856         * modules/getsubopt (Depends-on): Likewise.
98857         * modules/gettext (Depends-on): Likewise.
98858         * modules/group-member (Depends-on): Likewise.
98859         * modules/mbchar (Depends-on): Likewise.
98860         * modules/memmem (Depends-on): Likewise.
98861         * modules/mempcpy (Depends-on): Likewise.
98862         * modules/memrchr (Depends-on): Likewise.
98863         * modules/pagealign_alloc (Depends-on): Likewise.
98864         * modules/readutmp (Depends-on): Likewise.
98865         * modules/stpcpy (Depends-on): Likewise.
98866         * modules/stpncpy (Depends-on): Likewise.
98867         * modules/strchrnul (Depends-on): Likewise.
98868         * modules/strndup (Depends-on): Likewise.
98869         * modules/strsep (Depends-on): Likewise.
98870         * modules/strverscmp (Depends-on): Likewise.
98871         * modules/vasprintf (Depends-on): Likewise.
98872         * modules/wcwidth (Depends-on): Likewise.
98873         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
98874         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
98875         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
98876         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
98877         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98878         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
98879         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
98880         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
98881         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
98882         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
98883         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
98884         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
98885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
98886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
98887         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
98888         * m4/readutmp.m4 (gl_READUTMP): Likewise.
98889         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
98890         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
98891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
98892         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
98893         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
98894         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
98895         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
98896         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
98897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
98898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
98899         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
98900         so that lock.m4 can be used in gettext without extensions module.
98902 2007-09-11  Bruno Haible  <bruno@clisp.org>
98904         * m4/isc-posix.m4: Remove file.
98905         Suggested by Eric Blake.
98907 2007-09-11  Eric Blake  <ebb9@byu.net>
98909         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
98911 2007-09-10  Bruno Haible  <bruno@clisp.org>
98913         * posix-modules: Fix typo in error message.
98914         Reported by Matt <mkraai@beckman.com>.
98916 2007-09-09  Bruno Haible  <bruno@clisp.org>
98918         * doc/functions/getdelim.texi: Update list of platforms lacking the
98919         function.
98920         * doc/functions/getline.texi: Likewise.
98922 2007-09-09  Jim Meyering  <jim@meyering.net>
98924         * lib/hash.c (hash_initialize): Detect calloc failure.
98925         Reported by Bruno Haible.
98927 2007-09-09  Bruno Haible  <bruno@clisp.org>
98929         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
98930         malloc or realloc fails.
98932 2007-09-09  Bruno Haible  <bruno@clisp.org>
98934         * modules/getcwd (Depends-on): Add malloc-posix.
98935         * modules/glob (Depends-on): Likewise.
98936         * modules/putenv (Depends-on): Likewise.
98937         * modules/strdup (Depends-on): Likewise.
98938         * modules/getdelim (Depends-on): Add realloc-posix.
98939         * modules/read-file (Depends-on): Likewise.
98941 2007-09-09  Bruno Haible  <bruno@clisp.org>
98943         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
98944         (gl_FUNC_MALLOC_POSIX): Require it.
98945         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
98946         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
98947         * modules/realloc (Files): Add m4/malloc.m4.
98948         * modules/calloc (Files): Likewise.
98950 2007-09-09  Bruno Haible  <bruno@clisp.org>
98952         * modules/malloc-posix: New file.
98953         * modules/malloc (Depends-on): Add malloc-posix.
98954         * lib/malloc.c: Include errno.h.
98955         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
98956         and a POSIX-compatible malloc into a single function. Set ENOMEM
98957         when returning NULL.
98958         * m4/malloc.m4: New file.
98959         * doc/functions/malloc.texi: Mention the malloc-posix module.
98960         * lib/stdlib_.h (malloc): New declaration.
98961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98962         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
98963         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
98964         and HAVE_MALLOC_POSIX.
98966 2007-09-09  Bruno Haible  <bruno@clisp.org>
98968         * modules/realloc-posix: New file.
98969         * modules/realloc (Depends-on): Add realloc-posix.
98970         * lib/realloc.c: Include errno.h.
98971         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
98972         and a POSIX-compatible realloc into a single function. Set ENOMEM
98973         when returning NULL.
98974         * m4/realloc.m4: New file.
98975         * doc/functions/realloc.texi: Mention the realloc-posix module.
98976         * lib/stdlib_.h (realloc): New declaration.
98977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98978         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
98979         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
98980         and HAVE_REALLOC_POSIX.
98982 2007-09-09  Bruno Haible  <bruno@clisp.org>
98984         * modules/calloc-posix: New file.
98985         * modules/calloc (Depends-on): Add calloc-posix.
98986         * lib/calloc.c: Include errno.h.
98987         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
98988         and a POSIX-compatible calloc into a single function. Set ENOMEM
98989         when returning NULL.
98990         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
98991         * doc/functions/calloc.texi: Mention the calloc-posix module.
98992         * lib/stdlib_.h (calloc): New declaration.
98993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
98994         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
98995         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
98996         and HAVE_CALLOC_POSIX.
98998 2007-09-09  Bruno Haible  <bruno@clisp.org>
99000         Allow for modules to show an arbitrary notice.
99001         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
99002         * gnulib-tool: New option --extract-notice.
99003         (func_usage): Document it.
99004         (sed_extract_prog): Update.
99005         (func_get_notice): New function.
99006         (func_modules_notice): New function.
99007         (func_import, func_create_testdir): Invoke it.
99008         Suggested by Jim Meyering.
99010 2007-09-09  Bruno Haible  <bruno@clisp.org>
99012         * gnulib-tool: New options --verbose, --quiet.
99013         (func_usage): Document them.
99014         (verbose): New variable.
99015         (func_execute_command): New function.
99016         (func_import): Don't show the module list and the file list if
99017         $verbose < 0.
99018         (func_create_testdir): Likewise. Use func_execute_command.
99019         (func_create_megatestdir): Use func_execute_command.
99021 2007-09-08  Bruno Haible  <bruno@clisp.org>
99023         * gnulib-tool (func_import): Prefer rsync over wget when available,
99024         for fetching the PO files.
99026 2007-09-08  Bruno Haible  <bruno@clisp.org>
99028         * posix-modules: New file. Portions copied from gnulib-tool.
99029         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
99031 2007-09-08  Jim Meyering  <jim@meyering.net>
99033         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
99034         * lib/fpending.h: Rename from __fpending.h.
99035         * lib/fpending.c: Rename from __fpending.c.
99036         Include "fpending.h", not "__fpending.h".
99037         * lib/__fpending.h, lib/__fpending.c: Remove files.
99038         * modules/fpending (Files): Reflect new file names.
99039         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
99041 2007-09-08  Bruno Haible  <bruno@clisp.org>
99043         * m4/inttypes-h.m4: Remove stub file.
99045 2007-09-07  Simon Josefsson  <simon@josefsson.org>
99047         * doc/headers/stdint.texi: Discuss #include_next issue.
99049 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99051         * build-aux/bootstrap: Remove obsolete comment about wget --help.
99053 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99055         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
99056         in variable name.
99058 2007-09-03  Jim Meyering  <jim@meyering.net>
99060         New module: git-version-gen.
99061         * modules/git-version-gen: New file.
99063         Import changes from coreutils for bootstrap script.
99065         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
99067         bootstrap: uses rsync to download the .po files
99068         * build-aux/bootstrap (po_download_command_format): New global.
99069         (download_po_files): Use rsync.
99070         (update_po_files): Don't remove .po files after download,
99071         so future rsync runs can take advantage of the copies.
99073         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
99075         Solve the unnecessary-.po-file-regeneration problem once and for all.
99076         * build-aux/bootstrap (download_po_files): New function, renamed from
99077         get_translations.  Now, downloads, but doesn't update LINGUAS.
99078         (update_po_files): New function.
99080         bootstrap: Ignore more.
99081         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
99082         uniwidth to e.g., lib/.gitignore.
99083         (slurp): Handle the sys_stat_.h -> sys mapping, too.
99085         * build-aux/bootstrap: New setting: vc_ignore.
99086         (insert_sorted_if_absent): Create $file if absent.
99087         Adapt to new, possibly empty, list: $vc_ignore.
99089         bootstrap: generate more ignorable names
99090         * build-aux/bootstrap (slurp): When generating ignorable names,
99091         also map .sin to .sed, .gperf to .c, and .y to .c.
99093 2007-09-03  Jim Meyering  <jim@meyering.net>
99095         * build-aux/git-version-gen: New file, from coreutils.  For details, see
99096         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
99098 2007-09-02  Bruno Haible  <bruno@clisp.org>
99100         Fix mis-recognition of 'mcs' on QNX 6.
99101         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
99102         output contains the string "Mono".
99103         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
99104         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
99106 2007-09-01  Bruno Haible  <bruno@clisp.org>
99108         Fix collision between uniwidth/* and linebreak modules.
99109         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
99110         u32_width): Remove declarations.
99111         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
99112         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
99113         streq3, streq2, streq1, streq0): Remove functions.
99114         (STREQ): Remove macro.
99115         (is_cjk_encoding): Remove function.
99116         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
99117         (uc_width, u8_width, u16_width, u32_width): Remove functions.
99118         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
99119         * NEWS: Document the change.
99121 2007-09-01  Bruno Haible  <bruno@clisp.org>
99123         * lib/streq.h: Add double-inclusion guard.
99125 2007-09-01  Karl Berry  <karl@gnu.org>
99127         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
99129 2007-08-28  Jim Meyering  <jim@meyering.net>
99131         Rename mreadlink_with_size to areadlink_with_size.
99132         * NEWS: Document the change.
99133         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
99134         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
99135         * lib/mreadlink.h: Rename this to...
99136         * lib/areadlink.h: ...this.
99137         * modules/mreadlink-with-size: Rename this to...
99138         * modules/areadlink-with-size: ...this.
99139         * lib/canonicalize.c: Reflect the renaming.
99140         * modules/canonicalize: Likewise.
99142 2007-08-26  Bruno Haible  <bruno@clisp.org>
99144         * gnulib-tool (func_import): When deciding which files to remove,
99145         consider also dangling symbolic links.
99146         Reported by Eric Blake.
99148 2007-08-26  Bruno Haible  <bruno@clisp.org>
99150         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
99152 2007-08-23  Simon Josefsson  <simon@josefsson.org>
99154         * lib/readline.c: Don't include getline.h, the prototype is now
99155         found in stdio.h.
99157 2007-08-23  Jim Meyering  <jim@meyering.net>
99159         Getdelim touchup.
99160         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
99161         around the funlockfile call, since funlockfile never sets errno.
99162         Don't set errno upon failed realloc.
99164 2007-08-22  Eric Blake  <ebb9@byu.net>
99166         Getline touchups.
99167         * lib/getdelim.c (getdelim): Revert regression that required *n to
99168         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
99169         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
99170         getdelim, rather than whether implementation is missing.
99171         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
99172         * lib/stdio_.h (getline): Also declare if replacement is
99173         required.
99174         * doc/functions/getdelim.texi: New file.
99175         * doc/functions/getline.texi: Likewise.
99176         * doc/gnulib.texi (Function Substitutes): Add new files.
99177         Reported by Bruno Haible.
99179 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
99181         * users.txt: Add Guile.
99183 2007-08-22  Eric Blake  <ebb9@byu.net>
99185         * tests/test-getdelim.c (main): Use remove, not unlink.
99186         * tests/test-getline.c (main): Likewise.
99188         Move getline and getdelim into stdio.h, per POSIX 200x.
99189         * modules/getline (Files): Remove getline.h.
99190         (Depends-on): Add stdio.
99191         (configure.ac): Add module indicator.
99192         * modules/getdelim (Files): Remove getdelim.h.
99193         (Depends-on): Add stdio.
99194         (configure.ac): Add module indicator.
99195         * modules/stdio (Makefile.am): Work with new indicators.
99196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
99197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
99198         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
99199         * lib/getdelim.h: Delete.
99200         * lib/getline.h: Delete.
99201         * lib/stdio_.h (getdelim, getline): Declare.
99202         * modules/getdelim-tests: New module.
99203         * modules/getline-tests: Likewise.
99204         * tests/test-getdelim.c: New file.
99205         * tests/test-getline.c: Likewise.
99206         * NEWS: Document the change.
99207         * lib/getline.c: Update choice of header.
99208         * lib/csharpcomp.c: Likewise.
99209         * lib/getpass.c: Likewise.
99210         * lib/javacomp.c: Likewise.
99211         * lib/javaversion.c: Likewise.
99212         * lib/yesno.c: Likewise.
99213         * lib/getdelim.c: Likewise.
99214         (getdelim): Set errno on failure, and avoid memory leak.
99216 2007-08-19  Bruno Haible  <bruno@clisp.org>
99218         * modules/closein (Depends-on): Add freadahead.
99219         * lib/closein.c: Include freadahead.h.
99220         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
99221         is zero.
99223 2007-08-19  Bruno Haible  <bruno@clisp.org>
99225         * modules/freadahead-tests: New file.
99226         * tests/test-freadahead.sh: New file.
99227         * tests/test-freadahead.c: New file.
99229         * modules/freadahead: New file.
99230         * lib/freadahead.h: New file.
99231         * lib/freadahead.c: New file.
99232         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
99233         fbufmode, fpurge, freadable, fwritable.
99235 2007-08-19  Eric Blake  <ebb9@byu.net>
99237         Test yesno in combination with closein.
99238         * lib/yesno.c (yesno): Document use of stdin.
99239         * modules/yesno-tests (Files): New module.
99240         * tests/test-yesno.c (main): New file.
99241         * tests/test-yesno.sh: Likewise.
99243 2007-08-19  Bruno Haible  <bruno@clisp.org>
99245         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
99246         * lib/fseeko.c (rpl_fseeko): Likewise.
99247         * lib/fseterr.c (fseterr): Likewise.
99249 2007-08-19  Bruno Haible  <bruno@clisp.org>
99251         * tests/test-lseek.c (main): Disable a test for BeOS.
99252         * doc/functions/lseek.texi: Document the BeOS bug.
99254 2007-08-19  Bruno Haible  <bruno@clisp.org>
99255             Eric Blake  <ebb9@byu.net>
99257         * lib/lseek.c: Include <sys/stat.h>.
99258         (rpl_lseek): Add workaround code also for Unix platforms.
99259         Needed for BeOS.
99260         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
99261         * doc/functions/lseek.texi: Document BeOS definiency.
99263 2007-08-18  Bruno Haible  <bruno@clisp.org>
99265         * modules/fstrcmp-tests: New file.
99266         * tests/test-fstrcmp.c: New file.
99268 2007-08-18  Bruno Haible  <bruno@clisp.org>
99270         * modules/fstrcmp: New file, from GNU gettext with modifications.
99271         * lib/fstrcmp.h: New file, from GNU gettext.
99272         * lib/fstrcmp.c: New file, from GNU gettext.
99273         * MODULES.html.sh (String handling): Add fstrcmp.
99275 2007-08-18  Bruno Haible  <bruno@clisp.org>
99277         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
99278         'bool'.
99279         (diag, compareseq): Remove const from the ctxt argument.
99280         (USE_HEURISTIC): Undefine at the end.
99282 2007-08-18  Jim Meyering  <jim@meyering.net>
99284         New file: lib/idcache.h
99285         * NEWS: Mention the addition.
99286         * modules/idcache (Files): Add lib/idcache.h
99287         * lib/idcache.c: Include "idcache.h".
99288         Don't include <sys/types.h>.
99289         Add a FIXME comment.
99290         Move file-scoped "static" declarations to the top.
99291         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
99293 2007-08-17  Bruno Haible  <bruno@clisp.org>
99294         and Paul Eggert  <eggert@cs.ucla.edu>
99296         * MODULES.html.sh: Add diffseq.
99297         * modules/diffseq: New file.
99298         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
99299         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
99301 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
99303         Import changes from coreutils for bootstrap script.
99305         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
99307         * build-aux/bootstrap (slurp): Work even in environments where
99308         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
99309         current code does not slurp files whose names start with ".", and
99310         this looks like it might be a troublesome area.
99312         2007-07-11  Jim Meyering  <jim@meyering.net>
99314         If there's a GPL vN copyright comment, require that N == 3.
99316         2007-07-08  Jim Meyering  <jim@meyering.net>
99318         Run the coreutils-specific code only if tests/Makefile.am.in exists.
99319         * build-aux/bootstrap (mam_template): Move definition out of loop.
99321         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
99323         * build-aux/bootstrap (symlink_to_dir): Rename function from
99324         symlink_to_gnulib.  Add a directory parameter.  Update all
99325         callers.
99326         (cp_mark_as_generated): Also check for -- and link to -- files in
99327         gl/.
99329         2007-07-08  Jim Meyering  <jim@meyering.net>
99331         Adapt to deeper hierarchy in gnulib.
99332         * build-aux/bootstrap (symlink_to_dir): If the destination
99333         directory doesn't exist, create it. This is required at least for
99334         "lib/uniwidth/cjk.h".
99336         2007-05-15  Jim Meyering  <jim@meyering.net>
99338         * build-aux/bootstrap: Now that generated Makefile.am files
99339         are no longer under version control, they must be created at
99340         bootstrap time.
99342 2007-08-14  Ben Pfaff  <blp@gnu.org>
99344         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
99346 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99348         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
99349         given the changes below.
99350         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
99351         even on hosts that have padding bits beyond the supported 64.
99353 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99355         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
99356         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
99357         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
99358         depends on it.
99359         (xstrtol_error): Remove.
99360         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
99361         but with a different signature.
99362         (ATTRIBUTE_NORETURN, __attribute__): New macros.
99363         * lib/xstrtol-error.c: Include exitfail.h.
99364         (xstrtol_fatal): New function, with a different signature from the
99365         old xstrtol_error, so that the caller need not worry about passing
99366         in an exit status, or about storage management of the option argument.
99367         (xstrtol_error): Now a static function.  Redo signature to
99368         implement xstrtol_fatal.  Output the correct number of hyphens in
99369         front of the option so that the caller need not worry about
99370         storage management.
99371         (N_): New macro.
99372         (_): Remove; not used now.
99373         * modules/xstrtol: Depend on getopt.
99374         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
99375         of old STRTOL_FATAL_ERROR macro.
99376         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
99377         of test program.
99378         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
99379         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
99381 2007-08-08  Eric Blake  <ebb9@byu.net>
99383         * lib/xstrtol-error.c: Add missing include.
99385         Move xstrtol messages into gnulib domain, when --pobase is used.
99386         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
99387         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
99388         * modules/xstrtol (Files): Distribute new file.
99389         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
99390         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
99391         * tests/test-xstrtol.c: ...into new file.
99392         * tests/test-xstrtoul.c: Also test xstrtoul.
99393         * tests/test-xstrtoimax.c: Also test xstrtoimax.
99394         * tests/test-xstrtoumax.c: Also test xstrtoumax.
99395         * tests/test-xstrtol.sh: Drive the tests.
99396         * tests/test-xstrtoimax.sh: Likewise.
99397         * tests/test-xstrtoumax.sh: Likewise.
99398         * modules/xstrtol-tests: New module.
99399         * modules/xstrtoimax-tests: Likewise.
99400         * modules/xstrtoumax-tests: Likewise.
99402 2007-08-08  Jim Meyering  <jim@meyering.net>
99404         New function: mfile_name_concat.
99405         * lib/filenamecat.c (mfile_name_concat): New function, just like
99406         file_name_concat, but return NULL upon failure rather than exiting
99407         with a diagnostic.
99408         * lib/filenamecat.h: Declare it.
99410 2007-08-07  Bruno Haible  <bruno@clisp.org>
99412         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
99413         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
99414         warning from gcc.
99415         Reported by Eric Blake.
99417 2007-08-07  Simon Josefsson  <simon@josefsson.org>
99419         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
99420         * modules/crypto/arcfour (License): Likewise.
99421         * modules/crypto/des-tests (License): Likewise.
99422         * modules/crypto/gc-arctwo-tests (License): Likewise.
99423         * modules/crypto/gc-des-tests (License): Likewise.
99424         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
99425         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
99426         * modules/crypto/gc-md2-tests (License): Likewise.
99427         * modules/crypto/gc-md4-tests (License): Likewise.
99428         * modules/crypto/gc-md5-tests (License): Likewise.
99429         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
99430         * modules/crypto/gc-rijndael-tests (License): Likewise.
99431         * modules/crypto/gc-sha1-tests (License): Likewise.
99432         * modules/crypto/gc-tests (License): Likewise.
99433         * modules/crypto/hmac-md5 (License): Likewise.
99434         * modules/crypto/hmac-sha1 (License): Likewise.
99435         * modules/crypto/md2-tests (License): Likewise.
99436         * modules/crypto/md4-tests (License): Likewise.
99437         * modules/crypto/md5 (License): Likewise.
99438         * modules/crypto/rijndael (License): Likewise.
99439         * modules/crypto/sha1 (License): Likewise.
99440         * modules/memxor (License): Likewise.
99442 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
99443         and Bruno Haible  <bruno@clisp.org>
99445         * NEWS: Describe interface changes to human, xstrtol.
99446         * lib/human.h: Include <xstrtol.h>.
99447         (human_options): Return enum strtol_error, not int.  Remove
99448         bool arg; take int * instead.
99449         * lib/human.c: Don't include "gettext.h".
99450         (_): Remove; no longer used.
99451         Don't include <xstrtol.h>, since human.h does it.
99452         (human_options): Adjust to abovementioned interface changes.
99453         Do not report error to stderr; that's now the caller's
99454         responsibility.
99455         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
99456         interface change.
99457         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
99458         Str, Argument_type_string.  All uses changed.  Put " argument"
99459         in diagnostics to make them clearer.  Change wording of suffix
99460         message for clarity.
99461         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
99462         Argument_type_string.
99463         (STRTOL_FATAL_WARN): Remove; no longer used.
99464         * modules/human (Depends-on): Remove gettext-h.
99466 2007-08-06  Simon Josefsson  <simon@josefsson.org>
99468         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
99470 2007-07-31  Bruno Haible  <bruno@clisp.org>
99472         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
99473         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
99474         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
99476 2007-07-31  Bruno Haible  <bruno@clisp.org>
99478         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
99479         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
99481 2007-07-30  Bruno Haible  <bruno@clisp.org>
99483         * modules/base64 (License): Use the synonymous term "LGPLv2+".
99484         * modules/c-ctype (License): Likewise.
99485         * modules/c-strcase (License): Likewise.
99486         * modules/check-version (License): Likewise.
99487         * modules/iconv (License): Likewise.
99488         * modules/iconv_open (License): Likewise.
99489         * modules/read-file (License): Likewise.
99490         * modules/striconv (License): Likewise.
99491         * modules/strverscmp (License): Likewise.
99492         * modules/vasprintf (License): Likewise.
99493         * modules/crypto/des (License): Likewise.
99494         * modules/crypto/gc (License): Likewise.
99495         * modules/crypto/gc-arcfour (License): Likewise.
99496         * modules/crypto/gc-arctwo (License): Likewise.
99497         * modules/crypto/gc-des (License): Likewise.
99498         * modules/crypto/gc-hmac-md5 (License): Likewise.
99499         * modules/crypto/gc-hmac-sha1 (License): Likewise.
99500         * modules/crypto/gc-md2 (License): Likewise.
99501         * modules/crypto/gc-md4 (License): Likewise.
99502         * modules/crypto/gc-md5 (License): Likewise.
99503         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
99504         * modules/crypto/gc-random (License): Likewise.
99505         * modules/crypto/gc-rijndael (License): Likewise.
99506         * modules/crypto/gc-sha1 (License): Likewise.
99507         * modules/crypto/md2 (License): Likewise.
99508         * modules/crypto/md4 (License): Likewise.
99510 2007-07-30  Jim Meyering  <jim@meyering.net>
99512         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
99513         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
99514         it has valid stat data.  This bug would cause du not to count the
99515         sizes of inaccessible directories.
99516         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
99517         in <http://bugzilla.redhat.com/250077>.
99519 2007-07-25  Peter O'Gorman  <peter@pogma.com>
99520             Bruno Haible  <bruno@clisp.org>
99522         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
99523         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
99524         #include_next, gives a diagnostic about it, but reports no error in
99525         the exit code.
99526         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
99528 2007-07-24  Ben Pfaff  <blp@gnu.org>
99530         Improve name: "count-one-bits" is better than "popcount".
99531         * MODULES.html.sh: Update name.
99532         * lib/popcount.h: Renamed lib/count-one-bits.h.
99533         (popcount): Renamed count_one_bits.
99534         (popcountl): Renamed count_one_bits_l.
99535         (popcountll): Renamed count_one_bits_ll.
99536         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
99537         * modules/popcount: Renamed module/count-one-bits.
99538         * modules/popcount-tests: Renamed module/count-one-bits-tests.
99539         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
99541 2007-07-23  Ben Pfaff  <blp@gnu.org>
99543         * lib/popcount.h (popcount32): Reduce size of constants, to allow
99544         better code generation, and add U to large constants to avoid
99545         warnings, in non-GCC case.
99546         Suggested by Bruno Haible.
99548 2007-07-23  Ben Pfaff  <blp@gnu.org>
99550         * lib/popcount.h: Use verify_true instead of if...abort.
99551         * modules/popcount: Depend on verify module.
99552         Suggested by Jim Meyering.
99554 2007-07-23  Bruno Haible  <bruno@clisp.org>
99556         * gnulib-tool (func_import): Create a .cvsignore file also when the
99557         directory is not yet in CVS but the toplevel directory is. When
99558         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
99559         Reported by Karl Berry.
99561 2007-07-22  Ben Pfaff  <blp@gnu.org>
99563         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
99564         case.
99565         Suggested by Eric Blake.
99567 2007-07-22  Ben Pfaff  <blp@gnu.org>
99569         New module: popcount.
99570         * MODULES.html.sh: Add popcount.
99571         * modules/popcount: New file.
99572         * modules/popcount-tests: New file.
99573         * tests/test-popcount.c: New file.
99574         * lib/popcount.h: New file.
99575         * m4/popcount.m4: New file.
99577 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99579         * build-aux/announce-gen: Update to GPLv3.
99581         * build-aux/config.guess: Update from config.
99583 2007-07-21  Bruno Haible  <bruno@clisp.org>
99585         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
99586         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
99588 2007-07-20  Jim Meyering  <jim@meyering.net>
99590         * check-module: Diagnose a self-dependency.
99592 2007-07-19  Bruno Haible  <bruno@clisp.org>
99594         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
99595         empty.
99596         Reported by Eric Blake.
99598 2007-07-18  Bruno Haible  <bruno@clisp.org>
99600         * gnulib-tool: New options --po-base, --po-domain.
99601         (func_usage): Document them.
99602         (pobase, po_domain): New variables.
99603         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
99604         DEFAULT_TEXT_DOMAIN.
99605         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
99606         (func_import): Consider pobase and po_domain. Create a po/ directory.
99607         (func_create_testdir): Set pobase and po_domain to empty.
99608         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
99609         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
99611 2007-07-18  Bruno Haible  <bruno@clisp.org>
99613         * gnulib-tool (func_get_automake_snippet): Synthesize also an
99614         EXTRA_DIST augmentation for files in build-aux/.
99616 2007-07-16  Bruno Haible  <bruno@clisp.org>
99618         * modules/lseek (License): Use the synonymous term "LGPLv2+".
99619         * modules/getdelim (License): Likewise.
99621 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99623         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
99624         * modules/d-type (License): Likewise.
99625         * modules/extensions (License): Likewise.
99626         * modules/fnmatch (License): Likewise.
99627         * modules/fseeko (License): Likewise.
99628         * modules/getaddrinfo (License): Likewise.
99629         * modules/getline (License): Likewise.
99630         * modules/getlogin_r (License): Likewise.
99631         * modules/getpass (License): Likewise.
99632         * modules/gettimeofday (License): Likewise.
99633         * modules/glob (License): Likewise.
99634         * modules/inet_ntop (License): Likewise.
99635         * modules/malloc (License): Likewise.
99636         * modules/malloca (License): Likewise.
99637         * modules/memmem (License): Likewise.
99638         * modules/mempcpy (License): Likewise.
99639         * modules/memset (License): Likewise.
99640         * modules/minmax (License): Likewise.
99641         * modules/mktime (License): Likewise.
99642         * modules/netinet_in (License): Likewise.
99643         * modules/pathmax (License): Likewise.
99644         * modules/poll (License): Likewise.
99645         * modules/regex (License): Likewise.
99646         * modules/snprintf (License): Likewise.
99647         * modules/stdbool (License): Likewise.
99648         * modules/stdint (License): Likewise.
99649         * modules/stdio (License): Likewise.
99650         * modules/strcase (License): Likewise.
99651         * modules/strcasestr (License): Likewise.
99652         * modules/strdup (License): Likewise.
99653         * modules/string (License): Likewise.
99654         * modules/strndup (License): Likewise.
99655         * modules/strnlen (License): Likewise.
99656         * modules/strpbrk (License): Likewise.
99657         * modules/strptime (License): Likewise.
99658         * modules/strsep (License): Likewise.
99659         * modules/sys_select (License): Likewise.
99660         * modules/sys_socket (License): Likewise.
99661         * modules/sys_stat (License): Likewise.
99662         * modules/sys_time (License): Likewise.
99663         * modules/time (License): Likewise.
99664         * modules/time_r (License): Likewise.
99665         * modules/timegm (License): Likewise.
99666         * modules/unistd (License): Likewise.
99667         * modules/vsnprintf (License): Likewise.
99668         * modules/wctype (License): Likewise.
99670 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99672         * modules/argz (License): LGPLv2+.
99674 2007-07-15  Karl Berry  <karl@gnu.org>
99676         * doc/gnulib.texi: revise node structure per new fdl.texi.
99678 2007-07-14  Bruno Haible  <bruno@clisp.org>
99680         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
99681         the output file.
99682         * lib/uniname/uninames.h: Regenerated.
99684 2007-07-14  Karl Berry  <karl@gnu.org>
99686         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
99687         omitting sectioning and index commands.
99689 2007-07-13  Bruno Haible  <bruno@clisp.org>
99691         New gnulib-tool option --more-symlinks.
99692         * gnulib-tool (func_usage): Document --more-symlinks.
99693         (do_copyrights): New variable.
99694         Recognize option --more-symlinks.
99695         (func_import): Don't add a copyright notice transform to
99696         sed_transform_lib_file if do_copyrights is empty.
99698 2007-07-13  Bruno Haible  <bruno@clisp.org>
99700         * lib/vasnprintf.c (decimal_point_char): Define also if
99701         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
99702         && !NEED_PRINTF_DIRECTIVE_A.
99703         Reported by Clemens Koller <clemens.koller@anagramm.de> via
99704         Gary V. Vaughan <gary@gnu.org>.
99706 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
99708         * lib/inttypes_.h: Undo previous change, since it was fixed
99709         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
99711 2007-07-13  Bruno Haible  <bruno@clisp.org>
99713         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
99714         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
99716 2007-07-13  Jim Meyering  <jim@meyering.net>
99718         df: Don't fail for Tru64's "file-on-file mount".
99719         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
99720         so we fall through and use statfs instead.  Details here:
99721         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
99722         Reported by Albert Chin.
99724 2007-07-13  Bruno Haible  <bruno@clisp.org>
99726         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
99727         * modules/configmake (License): Likewise.
99728         * modules/gettext (License): Likewise.
99729         * modules/gettext-h (License): Likewise.
99730         * modules/include_next (License): Likewise.
99731         * modules/link-warning (License): Likewise.
99732         * modules/localcharset (License): Likewise.
99733         * modules/localename (License): Likewise.
99734         * modules/lock (License): Likewise.
99735         * modules/relocatable-lib-lgpl (License): Likewise.
99736         * modules/size_max (License): Likewise.
99737         * modules/vasnprintf (License): Likewise.
99738         * modules/wchar (License): Likewise.
99739         * modules/xsize (License): Likewise.
99741 2007-07-13  Bruno Haible  <bruno@clisp.org>
99743         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
99744         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
99746 2007-07-12  Bruno Haible  <bruno@clisp.org>
99748         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
99749         in the modules files.
99751 2007-07-11  Karl Berry  <karl@gnu.org>
99753         * MODULES.html.sh (func_module): use
99754          sed -e '\|^'"${includefile}"'$|d'
99755          instead of /.../d, to avoid errors on $includefile's containing /.
99757 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
99759         * gnulib-tool (func_import): Avoid duplication of --avoid
99760         statements
99761         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
99762         names to `_' in variable names.
99764 2007-07-10  Eric Blake  <ebb9@byu.net>
99766         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
99767         * NEWS: Document this change.
99769 2007-07-08  Bruno Haible  <bruno@clisp.org>
99771         Update to Unicode 5.0.
99772         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
99773         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
99774         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
99775         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
99776         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
99777         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
99778         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
99779         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
99780         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
99781         U+10A3F, U+1D242..U+1D244.
99782         (nonspacing_table_ind): Update.
99783         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
99784         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
99786 2007-07-08  Bruno Haible  <bruno@clisp.org>
99788         Update to Unicode 5.0.
99789         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
99790         code transform. Extend the name index field of unicode_name_to_code and
99791         unicode_code_to_name from 16 to 24 bits.
99792         * lib/uniname/uniname.c (unicode_character_name,
99793         unicode_name_character): Add the range 0x12xxx to the code transform.
99794         * lib/uniname/uninames.h: Regenerated.
99795         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
99797 2007-07-07  Bruno Haible  <bruno@clisp.org>
99799         * modules/wcwidth-tests: New file.
99800         * tests/test-wcwidth.c: New file.
99802         Work around MacOS X wcwidth() bug.
99803         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
99804         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
99805         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
99806         original wcwidth in non-UTF-8 locales.
99807         * modules/wcwidth (Depends-on): Add localcharset, streq,
99808         uniwidth/width.
99809         * doc/functions/wcwidth.texi: Update.
99811 2007-07-07  Bruno Haible  <bruno@clisp.org>
99813         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
99814         (wcwidth): New declaration.
99815         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
99816         macros.
99817         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
99818         here. Prepare for creating <wchar.h> unconditionally.
99819         * modules/wchar (Depends-on): Add link-warning.
99820         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
99821         REPLACE_WCWIDTH, and GL_LINK_WARNING.
99822         * lib/wcwidth.h: Remove file.
99823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
99824         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
99825         * modules/wcwidth (Files): Remove lib/wcwidth.h.
99826         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
99827         (Include): Replace wcwidth.h with <wchar.h>.
99828         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
99829         * lib/mbchar.h: Don't include wcwidth.h.
99830         * lib/mbswidth.c: Likewise.
99831         * NEWS: Mention the change.
99833 2007-07-07  Bruno Haible  <bruno@clisp.org>
99835         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
99836         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
99837         definition with an external declaration.
99838         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
99839         defined as a function. Remove AC_C_INLINE requirement.
99840         * modules/wcwidth (Files): Add lib/wcwidth.c.
99841         (Makefile.am): Remove redundant statement.
99843 2007-07-07  Bruno Haible  <bruno@clisp.org>
99845         * MODULES.html.sh (Unicode string functions): Add the new modules.
99847         * tests/uniwidth/test-u32-strwidth.c: New file.
99848         * modules/uniwidth/u32-strwidth-tests: New file.
99850         * lib/uniwidth/u32-strwidth.c: New file.
99851         * modules/uniwidth/u32-strwidth: New file.
99853         * tests/uniwidth/test-u16-strwidth.c: New file.
99854         * modules/uniwidth/u16-strwidth-tests: New file.
99856         * lib/uniwidth/u16-strwidth.c: New file.
99857         * modules/uniwidth/u16-strwidth: New file.
99859         * tests/uniwidth/test-u8-strwidth.c: New file.
99860         * modules/uniwidth/u8-strwidth-tests: New file.
99862         * lib/uniwidth/u8-strwidth.c: New file.
99863         * modules/uniwidth/u8-strwidth: New file.
99865         * tests/uniwidth/test-u32-width.c: New file.
99866         * modules/uniwidth/u32-width-tests: New file.
99868         * lib/uniwidth/u32-width.c: New file.
99869         * modules/uniwidth/u32-width: New file.
99871         * tests/uniwidth/test-u16-width.c: New file.
99872         * modules/uniwidth/u16-width-tests: New file.
99874         * lib/uniwidth/u16-width.c: New file.
99875         * modules/uniwidth/u16-width: New file.
99877         * tests/uniwidth/test-u8-width.c: New file.
99878         * modules/uniwidth/u8-width-tests: New file.
99880         * lib/uniwidth/u8-width.c: New file.
99881         * modules/uniwidth/u8-width: New file.
99883         * tests/uniwidth/test-uc_width.c: New file.
99884         * modules/uniwidth/width-tests: New file.
99886         * lib/uniwidth/width.c: New file, from GNU libiconv.
99887         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
99888         * modules/uniwidth/width: New file.
99890         * lib/uniwidth.h: New file, from GNU libiconv.
99891         * modules/uniwidth/base: New file.
99893 2007-07-07  Bruno Haible  <bruno@clisp.org>
99895         * lib/uniname.h: New file, from GNU gettext.
99896         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
99897         * lib/uniname/uninames.h: New file, from GNU gettext.
99898         * lib/uniname/uniname.c: New file, from GNU gettext.
99899         * tests/uniname/test-uninames.sh: New file.
99900         * tests/uniname/test-uninames.c: New file, from GNU gettext.
99901         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
99902         * modules/uniname/base: New file.
99903         * modules/uniname/uniname: New file.
99904         * modules/uniname/uniname-tests: New file.
99905         * MODULES.html.sh (Unicode string functions): Add the new modules.
99907 2007-07-06  Bruno Haible  <bruno@clisp.org>
99909         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
99911 2007-07-06  Bruno Haible  <bruno@clisp.org>
99913         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
99914         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
99915         includes <cygwin/sys_time.h> which includes <sys/select.h> which
99916         include <sys/time.h>.
99917         Reported by Eric Blake.
99919 2007-07-06  Eric Blake  <ebb9@byu.net>
99921         Fix testing canonicalize on cygwin.
99922         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
99923         Revert patch from 2007-06-19.
99924         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
99925         canonicalize module is also in use.
99926         * tests/test-canonicalize.c: New file.
99927         * tests/test-canonicalize.sh: Likewise.
99928         * modules/canonicalize-tests: Likewise.
99930 2007-07-06  Jim Meyering  <jim@meyering.net>
99932         * lib/getugroups.c (getugroups): Detect getgrent failure.
99933         Adjust comment to reflect reality: this function may return -1.
99935 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
99937         * build-aux/bootstrap (TP_URL,get_translations): Update to use
99938         the new TP address.
99939         (usage): Fix typo
99940         (gnulib_mk): New variable.
99942 2007-07-05  Jim Meyering  <jim@meyering.net>
99944         Don't let endgrent clobber errno, no matter how improbable.
99945         * lib/getugroups.c (getugroups): Save and restore errno around
99946         endgrent call.
99948         Close the group DB even when failing with 2^31 or more members.
99949         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
99951 2007-07-04  Jim Meyering  <jim@meyering.net>
99953         * lib/getugroups.h: New file.
99954         * lib/getugroups.c: Include "getugroups.h".
99955         Remove uses of "register" keyword.
99956         Move local variable, "cp", down into scope where used.
99957         Give "username" parameter the "const" attribute.
99958         * modules/getugroups (Files): Add lib/getugroups.h
99960 2007-07-04  Karl Berry  <karl@gnu.org>
99962         * MODULES.html.sh (func_all_modules): Complete rename of
99963         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
99965 2007-07-02  Bruno Haible  <bruno@clisp.org>
99967         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
99968         mode, when inttypes.h comes from gnulib.
99969         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
99971 2007-07-02  Simon Josefsson  <simon@josefsson.org>
99973         * NEWS: Mention lgpl module name change.
99975         * modules/lgpl-2.1: Renamed from lgpl.
99977         * NEWS: Mention gpl module name change.
99979         * modules/gpl-3.0: New file, based on gpl-2.0.
99981         * modules/gpl-2.0: Renamed from gpl.
99983         * modules/gpl: Fix filename, doc/gpl.texi is now found at
99984         doc/gpl-2.0.texi.
99986 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
99988         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
99989         #define __STDC_LIMIT_MACROS temporarily while including
99990         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
99991         Problem reported by Joel E. Denny in
99992         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
99994 2007-07-01  Bruno Haible  <bruno@clisp.org>
99996         * lib/unistdio.h: New file.
99997         * lib/unistdio/u-asnprintf.h: New file.
99998         * lib/unistdio/u-asprintf.h: New file.
99999         * lib/unistdio/u-printf-args.c: New file.
100000         * lib/unistdio/u-printf-args.h: New file.
100001         * lib/unistdio/u-printf-parse.h: New file.
100002         * lib/unistdio/u-snprintf.h: New file.
100003         * lib/unistdio/u-sprintf.h: New file.
100004         * lib/unistdio/u-vasprintf.h: New file.
100005         * lib/unistdio/u-vsnprintf.h: New file.
100006         * lib/unistdio/u-vsprintf.h: New file.
100007         * lib/unistdio/ulc-asnprintf.c: New file.
100008         * lib/unistdio/ulc-asprintf.c: New file.
100009         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
100010         * lib/unistdio/ulc-printf-parse.c: New file.
100011         * lib/unistdio/ulc-snprintf.c: New file.
100012         * lib/unistdio/ulc-sprintf.c: New file.
100013         * lib/unistdio/ulc-vasnprintf.c: New file.
100014         * lib/unistdio/ulc-vasprintf.c: New file.
100015         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
100016         * lib/unistdio/ulc-vsnprintf.c: New file.
100017         * lib/unistdio/ulc-vsprintf.c: New file.
100018         * lib/unistdio/u8-asnprintf.c: New file.
100019         * lib/unistdio/u8-asprintf.c: New file.
100020         * lib/unistdio/u8-printf-parse.c: New file.
100021         * lib/unistdio/u8-snprintf.c: New file.
100022         * lib/unistdio/u8-sprintf.c: New file.
100023         * lib/unistdio/u8-vasnprintf.c: New file.
100024         * lib/unistdio/u8-vasprintf.c: New file.
100025         * lib/unistdio/u8-vsnprintf.c: New file.
100026         * lib/unistdio/u8-vsprintf.c: New file.
100027         * lib/unistdio/u8-u8-asnprintf.c: New file.
100028         * lib/unistdio/u8-u8-asprintf.c: New file.
100029         * lib/unistdio/u8-u8-snprintf.c: New file.
100030         * lib/unistdio/u8-u8-sprintf.c: New file.
100031         * lib/unistdio/u8-u8-vasnprintf.c: New file.
100032         * lib/unistdio/u8-u8-vasprintf.c: New file.
100033         * lib/unistdio/u8-u8-vsnprintf.c: New file.
100034         * lib/unistdio/u8-u8-vsprintf.c: New file.
100035         * lib/unistdio/u16-asnprintf.c: New file.
100036         * lib/unistdio/u16-asprintf.c: New file.
100037         * lib/unistdio/u16-printf-parse.c: New file.
100038         * lib/unistdio/u16-snprintf.c: New file.
100039         * lib/unistdio/u16-sprintf.c: New file.
100040         * lib/unistdio/u16-vasnprintf.c: New file.
100041         * lib/unistdio/u16-vasprintf.c: New file.
100042         * lib/unistdio/u16-vsnprintf.c: New file.
100043         * lib/unistdio/u16-vsprintf.c: New file.
100044         * lib/unistdio/u16-u16-asnprintf.c: New file.
100045         * lib/unistdio/u16-u16-asprintf.c: New file.
100046         * lib/unistdio/u16-u16-snprintf.c: New file.
100047         * lib/unistdio/u16-u16-sprintf.c: New file.
100048         * lib/unistdio/u16-u16-vasnprintf.c: New file.
100049         * lib/unistdio/u16-u16-vasprintf.c: New file.
100050         * lib/unistdio/u16-u16-vsnprintf.c: New file.
100051         * lib/unistdio/u16-u16-vsprintf.c: New file.
100052         * lib/unistdio/u32-asnprintf.c: New file.
100053         * lib/unistdio/u32-asprintf.c: New file.
100054         * lib/unistdio/u32-printf-parse.c: New file.
100055         * lib/unistdio/u32-snprintf.c: New file.
100056         * lib/unistdio/u32-sprintf.c: New file.
100057         * lib/unistdio/u32-vasnprintf.c: New file.
100058         * lib/unistdio/u32-vasprintf.c: New file.
100059         * lib/unistdio/u32-vsnprintf.c: New file.
100060         * lib/unistdio/u32-vsprintf.c: New file.
100061         * lib/unistdio/u32-u32-asnprintf.c: New file.
100062         * lib/unistdio/u32-u32-asprintf.c: New file.
100063         * lib/unistdio/u32-u32-snprintf.c: New file.
100064         * lib/unistdio/u32-u32-sprintf.c: New file.
100065         * lib/unistdio/u32-u32-vasnprintf.c: New file.
100066         * lib/unistdio/u32-u32-vasprintf.c: New file.
100067         * lib/unistdio/u32-u32-vsnprintf.c: New file.
100068         * lib/unistdio/u32-u32-vsprintf.c: New file.
100069         * tests/unistdio/test-ulc-asnprintf1.c: New file.
100070         * tests/unistdio/test-ulc-asnprintf1.h: New file.
100071         * tests/unistdio/test-ulc-printf1.h: New file.
100072         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
100073         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
100074         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
100075         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
100076         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
100077         * tests/unistdio/test-ulc-vasprintf1.c: New file.
100078         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
100079         * tests/unistdio/test-ulc-vsprintf1.c: New file.
100080         * tests/unistdio/test-u8-asnprintf1.c: New file.
100081         * tests/unistdio/test-u8-asnprintf1.h: New file.
100082         * tests/unistdio/test-u8-printf1.h: New file.
100083         * tests/unistdio/test-u8-vasnprintf1.c: New file.
100084         * tests/unistdio/test-u8-vasnprintf2.c: New file.
100085         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
100086         * tests/unistdio/test-u8-vasnprintf3.c: New file.
100087         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
100088         * tests/unistdio/test-u8-vasprintf1.c: New file.
100089         * tests/unistdio/test-u8-vsnprintf1.c: New file.
100090         * tests/unistdio/test-u8-vsprintf1.c: New file.
100091         * tests/unistdio/test-u16-asnprintf1.c: New file.
100092         * tests/unistdio/test-u16-asnprintf1.h: New file.
100093         * tests/unistdio/test-u16-printf1.h: New file.
100094         * tests/unistdio/test-u16-vasnprintf1.c: New file.
100095         * tests/unistdio/test-u16-vasnprintf2.c: New file.
100096         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
100097         * tests/unistdio/test-u16-vasnprintf3.c: New file.
100098         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
100099         * tests/unistdio/test-u16-vasprintf1.c: New file.
100100         * tests/unistdio/test-u16-vsnprintf1.c: New file.
100101         * tests/unistdio/test-u16-vsprintf1.c: New file.
100102         * tests/unistdio/test-u32-asnprintf1.c: New file.
100103         * tests/unistdio/test-u32-asnprintf1.h: New file.
100104         * tests/unistdio/test-u32-printf1.h: New file.
100105         * tests/unistdio/test-u32-vasnprintf1.c: New file.
100106         * tests/unistdio/test-u32-vasnprintf2.c: New file.
100107         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
100108         * tests/unistdio/test-u32-vasnprintf3.c: New file.
100109         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
100110         * tests/unistdio/test-u32-vasprintf1.c: New file.
100111         * tests/unistdio/test-u32-vsnprintf1.c: New file.
100112         * tests/unistdio/test-u32-vsprintf1.c: New file.
100113         * modules/unistdio/base: New file.
100114         * modules/unistdio/u-printf-args: New file.
100115         * modules/unistdio/ulc-asnprintf: New file.
100116         * modules/unistdio/ulc-asprintf: New file.
100117         * modules/unistdio/ulc-fprintf: New file.
100118         * modules/unistdio/ulc-printf-parse: New file.
100119         * modules/unistdio/ulc-snprintf: New file.
100120         * modules/unistdio/ulc-sprintf: New file.
100121         * modules/unistdio/ulc-vasnprintf: New file.
100122         * modules/unistdio/ulc-vasprintf: New file.
100123         * modules/unistdio/ulc-vfprintf: New file.
100124         * modules/unistdio/ulc-vsnprintf: New file.
100125         * modules/unistdio/ulc-vsprintf: New file.
100126         * modules/unistdio/u8-asnprintf: New file.
100127         * modules/unistdio/u8-asprintf: New file.
100128         * modules/unistdio/u8-printf-parse: New file.
100129         * modules/unistdio/u8-snprintf: New file.
100130         * modules/unistdio/u8-sprintf: New file.
100131         * modules/unistdio/u8-vasnprintf: New file.
100132         * modules/unistdio/u8-vasprintf: New file.
100133         * modules/unistdio/u8-vsnprintf: New file.
100134         * modules/unistdio/u8-vsprintf: New file.
100135         * modules/unistdio/u8-u8-asnprintf: New file.
100136         * modules/unistdio/u8-u8-asprintf: New file.
100137         * modules/unistdio/u8-u8-snprintf: New file.
100138         * modules/unistdio/u8-u8-sprintf: New file.
100139         * modules/unistdio/u8-u8-vasnprintf: New file.
100140         * modules/unistdio/u8-u8-vasprintf: New file.
100141         * modules/unistdio/u8-u8-vsnprintf: New file.
100142         * modules/unistdio/u8-u8-vsprintf: New file.
100143         * modules/unistdio/u16-asnprintf: New file.
100144         * modules/unistdio/u16-asprintf: New file.
100145         * modules/unistdio/u16-printf-parse: New file.
100146         * modules/unistdio/u16-snprintf: New file.
100147         * modules/unistdio/u16-sprintf: New file.
100148         * modules/unistdio/u16-vasnprintf: New file.
100149         * modules/unistdio/u16-vasprintf: New file.
100150         * modules/unistdio/u16-vsnprintf: New file.
100151         * modules/unistdio/u16-vsprintf: New file.
100152         * modules/unistdio/u16-u16-asnprintf: New file.
100153         * modules/unistdio/u16-u16-asprintf: New file.
100154         * modules/unistdio/u16-u16-snprintf: New file.
100155         * modules/unistdio/u16-u16-sprintf: New file.
100156         * modules/unistdio/u16-u16-vasnprintf: New file.
100157         * modules/unistdio/u16-u16-vasprintf: New file.
100158         * modules/unistdio/u16-u16-vsnprintf: New file.
100159         * modules/unistdio/u16-u16-vsprintf: New file.
100160         * modules/unistdio/u32-asnprintf: New file.
100161         * modules/unistdio/u32-asprintf: New file.
100162         * modules/unistdio/u32-printf-parse: New file.
100163         * modules/unistdio/u32-snprintf: New file.
100164         * modules/unistdio/u32-sprintf: New file.
100165         * modules/unistdio/u32-vasnprintf: New file.
100166         * modules/unistdio/u32-vasprintf: New file.
100167         * modules/unistdio/u32-vsnprintf: New file.
100168         * modules/unistdio/u32-vsprintf: New file.
100169         * modules/unistdio/u32-u32-asnprintf: New file.
100170         * modules/unistdio/u32-u32-asprintf: New file.
100171         * modules/unistdio/u32-u32-snprintf: New file.
100172         * modules/unistdio/u32-u32-sprintf: New file.
100173         * modules/unistdio/u32-u32-vasnprintf: New file.
100174         * modules/unistdio/u32-u32-vasprintf: New file.
100175         * modules/unistdio/u32-u32-vsnprintf: New file.
100176         * modules/unistdio/u32-u32-vsprintf: New file.
100177         * modules/unistdio/ulc-asnprintf-tests: New file.
100178         * modules/unistdio/ulc-vasnprintf-tests: New file.
100179         * modules/unistdio/ulc-vasprintf-tests: New file.
100180         * modules/unistdio/ulc-vsnprintf-tests: New file.
100181         * modules/unistdio/ulc-vsprintf-tests: New file.
100182         * modules/unistdio/u8-asnprintf-tests: New file.
100183         * modules/unistdio/u8-vasnprintf-tests: New file.
100184         * modules/unistdio/u8-vasprintf-tests: New file.
100185         * modules/unistdio/u8-vsnprintf-tests: New file.
100186         * modules/unistdio/u8-vsprintf-tests: New file.
100187         * modules/unistdio/u16-asnprintf-tests: New file.
100188         * modules/unistdio/u16-vasnprintf-tests: New file.
100189         * modules/unistdio/u16-vasprintf-tests: New file.
100190         * modules/unistdio/u16-vsnprintf-tests: New file.
100191         * modules/unistdio/u16-vsprintf-tests: New file.
100192         * modules/unistdio/u32-asnprintf-tests: New file.
100193         * modules/unistdio/u32-vasnprintf-tests: New file.
100194         * modules/unistdio/u32-vasprintf-tests: New file.
100195         * modules/unistdio/u32-vsnprintf-tests: New file.
100196         * modules/unistdio/u32-vsprintf-tests: New file.
100197         * MODULES.html.sh (Unicode string functions): Add the new modules.
100199 2007-07-01  Bruno Haible  <bruno@clisp.org>
100201         * lib/sprintf.c (sprintf): Limit the available length estimation,
100202         to avoid address wraparound.
100203         * lib/vsprintf.c (vsprintf): Likewise.
100204         * modules/sprintf-posix (Dependencies): Add stdint.
100205         * modules/vsprintf-posix (Dependencies): Likewise.
100207 2007-07-01  Bruno Haible  <bruno@clisp.org>
100209         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
100210         Windows PATH as well. Conservative double-quoting. Comments.
100212 2007-07-01  Bruno Haible  <bruno@clisp.org>
100213             Eric Blake  <ebb9@byu.net>
100214             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100216         * gnulib-tool (self_abspathname): Fix algorithm to cope with
100217         empty components in $PATH, denoting '.'.
100219 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100221         * gnulib-tool: Fix indentation.
100222         (func_create_megatestdir): Likewise.
100223         Report by Bruno Haible.
100225 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100227         Sync from Automake.
100228         * build-aux/gnupload: Fix shell portability issues with for loops.
100229         Report by Karl Berry.
100231 2007-06-29  Simon Josefsson  <simon@josefsson.org>
100233         * build-aux/maint.mk (POURL): Use translationproject.org.
100235 2007-06-27  Simon Josefsson  <simon@josefsson.org>
100236             Bruno Haible  <bruno@clisp.org>
100238         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
100239         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
100240         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
100241         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
100242         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
100244 2007-06-27  Bruno Haible  <bruno@clisp.org>
100246         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
100247         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
100249 2007-06-26  Karl Berry  <karl@gnu.org>
100251         * MODULES.html.sh: remove xreadlink-with-size.
100253 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100255         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
100256         method that I hope also handles the double-include problem noted
100257         by Bruno Haible in
100258         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
100260 2007-06-23  Bruno Haible  <bruno@clisp.org>
100262         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
100263         Don't let the 'mostlyclean' target fail if the last subdirectory could
100264         not be removed.
100265         Reported by Karl Berry.
100267 2007-06-23  Bruno Haible  <bruno@clisp.org>
100269         * gnulib-tool (echo): Add a speedier workaround for ksh.
100270         * tests/test-echo.sh: Likewise.
100272 2007-06-23  Bruno Haible  <bruno@clisp.org>
100274         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
100275         * tests/test-echo.sh: Likewise.
100277 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100279         * gnulib-tool (IFS): Initialize early, so we don't set it to
100280         empty later.
100281         (self_abspathname): Rewrite algorithm to set it, reindent.
100282         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
100283         (func_create_megatestdir): Merge some sed scripts.
100285 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
100287         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
100288         exposed by Sun Studio 11 cc on Solaris 8.
100290 2007-06-22  Bruno Haible  <bruno@clisp.org>
100292         * gnulib-tool (echo): Ensure the echo primitive does not interpret
100293         backslashes.
100294         * tests/test-echo.sh: New file.
100296 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100298         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
100299         simplify `sed_replace_build_aux' scripts, they are portable but
100300         echoing them with `echo' is not.
100301         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
100303 2007-06-21  Karl Berry  <karl@gnu.org>
100305         * config/srclist.txt: guess we can't handle the licenses via
100306         srclist at the moment.
100308 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100310         * MODULES.html.sh: Add include_next.
100311         * modules/include_next: New file.
100313 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100315         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
100316         INCLUDE_NEXT.
100317         (gl_CHECK_NEXT_HEADERS): New macro.
100318         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
100319         the obsolescent gl_ABSOLUTE_HEADER.
100320         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
100321         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
100322         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
100323         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
100324         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
100325         * m4/math_h.m4 (gl_MATH_H): Likewise.
100326         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
100327         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
100328         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
100329         * m4/stdint.m4 (gl_STDINT_H): Likewise.
100330         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
100331         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
100332         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
100333         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
100334         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
100335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
100336         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
100337         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
100338         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
100339         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
100340         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
100341         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100342         * m4/inttypes.m4 (gl_INTTYPES_H): Define
100343         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
100344         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
100345         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
100346         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
100347         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
100348         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
100349         * lib/float_.h: Likewise.
100350         * lib/inttypes_.h: Likewise.
100351         * lib/math_.h: Likewise.
100352         * lib/search_.h: Likewise.
100353         * lib/signal_.h: Likewise.
100354         * lib/stdint_.h: Likewise.
100355         * lib/stdio_.h: Likewise.
100356         * lib/stdlib_.h: Likewise.
100357         * lib/string_.h: Likewise.
100358         * lib/sys_stat_.h: Likewise.
100359         * lib/sys_time_.h: Likewise.
100360         * lib/time_.h: Likewise.
100361         * lib/unistd_.h: Likewise.
100362         * lib/wchar_.h: Likewise.
100363         * lib/wctype_.h: Likewise.
100364         * lib/dirent_.h: Likewise.
100365         * lib/iconv_.h: Likewise.
100366         * lib/locale_.h: Likewise.
100367         * lib/netinet_in_.h: Likewise.
100368         * lib/sys_select_.h: Likewise.
100369         * lib/sys_socket_.h: Likewise.
100370         * lib/sysexits_.h: Likewise.
100371         * modules/fcntl (Depends-on): Depend on include_next, not
100372         absolute_header.
100373         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
100374         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
100375         * modules/fchdir: Likewise.
100376         * modules/float: Likewise.
100377         * modules/iconv_open: Likewise.
100378         * modules/inttypes: Likewise.
100379         * modules/locale: Likewise.
100380         * modules/math: Likewise.
100381         * modules/netinet_in: Likewise.
100382         * modules/search: Likewise.
100383         * modules/signal: Likewise.
100384         * modules/stdint: Likewise.
100385         * modules/stdio: Likewise.
100386         * modules/stdlib: Likewise.
100387         * modules/string: Likewise.
100388         * modules/sys_select: Likewise.
100389         * modules/sys_socket: Likewise.
100390         * modules/sys_stat: Likewise.
100391         * modules/sys_time: Likewise.
100392         * modules/sysexits: Likewise.
100393         * modules/time: Likewise.
100394         * modules/unistd: Likewise.
100395         * modules/wchar: Likewise.
100396         * modules/wctype: Likewise.
100397         * modules/sys_stat: Change maintainer to "all".
100398         * modules/unistd: Likewise.
100400 2007-06-20  Karl Berry  <karl@gnu.org>
100402         * config/srclist.txt: track www changes in license files.
100404 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
100406         * build-aux/bootstrap: Remove stray dot.
100407         Make sure build_aux settings are honored when linking
100408         gnulib_extra_files.
100410 2007-06-19  Eric Blake  <ebb9@byu.net>
100412         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
100413         Allow compilation on cygwin.
100415 2007-06-19  Jim Meyering  <jim@meyering.net>
100417         xreadlink-with-size: Remove module.  No longer used.
100418         Ex-callers now use xreadlink or mreadlink-with-size.
100419         * modules/xreadlink-with-size: Remove module.
100420         * lib/xreadlink-with-size.c: Remove file.
100421         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
100422         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
100423         just before the function definition *is* accurate.
100425         Eliminate one way canonicalize_filename_mode could exit.
100426         * lib/canonicalize.c (canonicalize_filename_mode):
100427         Use mreadlink_with_size, not xreadlink_with_size.
100429 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
100431         Detect porting problems to FreeBSD/arm, which has time_t wider than
100432         long int.  Original problem reported for GNU diff by Xin Li in
100433         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
100434         * modules/getdate (Depends-on): Add intprops, verify.
100435         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
100436         is an integer type no wider than long int.
100438 2007-06-18  Jim Meyering  <jim@meyering.net>
100440         New module: mreadlink-with-size.
100441         * MODULES.html.sh: Add mreadlink-with-size.
100442         * modules/mreadlink-with-size: New module
100443         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
100444         not xreadlink-with-size.
100445         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
100447 2007-06-16  Bruno Haible  <bruno@clisp.org>
100449         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
100450         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
100451         Reported by Gary V. Vaughan <gary@gnu.org>.
100453 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
100455         Revamp lchown so that it lives in unistd.h where it belongs.
100456         * lib/lchown.h: Remove.
100457         * lib/dirchownmod.c: Don't include lib/lchown.h.
100458         * lib/fchownat.c: Likewise.
100459         * lib/openat.c: Likewise.
100460         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
100461         does not follow symlinks.
100462         (EOPNOTSUPP): Define if not defined.
100463         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
100464         is defined to 0.
100465         (lchown): New decl.
100466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
100467         Do not check for lchown decl.
100468         Set REPLACE_LCHOWN.
100469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
100470         REPLACE_LCHOWN.
100471         * modules/chown: Make it clear it follows symlinks.
100472         * modules/lchown: Make it clear it doesn't follow symlinks.
100473         (Files): Remove lib/lchown.h
100474         (Depends-on): Add unistd.
100475         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
100476         (Include): Include <unistd.h>, not "lchown.h".
100477         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
100478         REPLACE_LCHOWN.
100480 2007-06-15  Jim Meyering  <jim@meyering.net>
100482         Change license (GPL to LGPL) of fsusage and dependents.
100483         * modules/fsusage (License): Change to LGPL.
100484         * modules/full-read (License): Likewise.
100485         * modules/full-write (License): Likewise.
100486         * modules/safe-read (License): Likewise.
100487         * modules/safe-write (License): Likewise.
100489 2007-06-14  Ben Pfaff  <blp@gnu.org>
100491         Missing part of allocsa -> malloca transition.
100492         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
100493         gl_MALLOCA.
100495 2007-06-12  Bruno Haible  <bruno@clisp.org>
100497         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
100498         to ia64, x86_64, i386.
100499         Reported by Eric Blake.
100501 2007-06-12  Bruno Haible  <bruno@clisp.org>
100503         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
100504         cross-compiling to x86_64.
100506 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
100508         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
100509         glitch reported by Ralf Wildenhues in
100510         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
100512         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
100513         Vin Shelton.
100515 2007-06-11  Bruno Haible  <bruno@clisp.org>
100517         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
100518         replacement string.
100519         Reported by Eric Blake.
100521 2007-06-10  Bruno Haible  <bruno@clisp.org>
100523         Prepare vasnprintf code for use with Unicode strings.
100524         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
100525         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
100526         TYPE_U32_STRING.
100527         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
100528         a_u32_string variants.
100529         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100530         * lib/printf-args.c: Don't include config.h and the specification
100531         header if PRINTF_FETCHARGS is already defined.
100532         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
100533         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
100534         TYPE_U16_STRING, TYPE_U32_STRING.
100535         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
100536         u16_directive, u16_directives, u32_directive, u32_directives): New
100537         types.
100538         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
100539         New declarations.
100540         * lib/printf-parse.c: Don't include config.h and the specification
100541         header if PRINTF_PARSE is already defined. Eliminate the set of
100542         parameters for WIDE_CHAR_VERSION; the user of this file must provide
100543         them now. Include c-ctype.h.
100544         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
100545         directive and CHAR_T_ONLY_ASCII.
100546         * lib/vasnprintf.c: Don't include config.h and the specification header
100547         if VASNPRINTF is already defined.
100548         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
100549         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
100550         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
100551         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
100552         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
100553         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
100554         code accordingly.
100555         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
100556         pad_ourselves also in this case, with the 'c' and 's' directives, and
100557         with a different notion of "width".
100558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
100560 2007-06-10  Bruno Haible  <bruno@clisp.org>
100562         * modules/unistr/u32-mbsnlen: New file.
100563         * lib/unistr/u32-mbsnlen.c: New file.
100565         * modules/unistr/u16-mbsnlen: New file.
100566         * lib/unistr/u16-mbsnlen.c: New file.
100568         * modules/unistr/u8-mbsnlen: New file.
100569         * lib/unistr/u8-mbsnlen.c: New file.
100571         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
100572         declarations.
100574 2007-06-10  Bruno Haible  <bruno@clisp.org>
100576         * lib/string_.h (mbsnlen): New declaration.
100577         * lib/mbsnlen.c: New file.
100578         * m4/mbsnlen.m4: New file.
100579         * modules/mbsnlen: New file.
100580         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
100581         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
100582         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
100584 2007-06-10  Bruno Haible  <bruno@clisp.org>
100586         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
100588 2007-06-10  Bruno Haible  <bruno@clisp.org>
100590         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
100591         * lib/mbuiter.h: Likewise.
100593 2007-06-10  Bruno Haible  <bruno@clisp.org>
100595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
100596         declaration.
100598 2007-06-10  Karl Berry  <karl@gnu.org>
100600         * config/srclist.txt: remove gettext entries, Bruno prefers
100601         to update individually.
100603 2007-06-10  Bruno Haible  <bruno@clisp.org>
100605         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
100606         'maxlen'. Ensure only length + width bytes are allocated, not
100607         length + 1 + width.
100609 2007-06-09  Bruno Haible  <bruno@clisp.org>
100611         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
100612         (CHAR_T): Remove macro.
100613         (VASNPRINTF): Update.
100615 2007-06-09  Bruno Haible  <bruno@clisp.org>
100617         * MODULES.html.sh (Unicode string functions): Add the new modules.
100619         * modules/uniconv/u32-conv-to-enc: New file.
100620         * lib/uniconv/u32-conv-to-enc.c: New file.
100621         * modules/uniconv/u32-conv-to-enc-tests: New file.
100622         * tests/uniconv/test-u32-conv-to-enc.c: New file.
100624         * modules/uniconv/u16-conv-to-enc: New file.
100625         * lib/uniconv/u16-conv-to-enc.c: New file.
100626         * lib/uniconv/u-conv-to-enc.h: New file.
100627         * modules/uniconv/u16-conv-to-enc-tests: New file.
100628         * tests/uniconv/test-u16-conv-to-enc.c: New file.
100630         * modules/uniconv/u8-conv-to-enc: New file.
100631         * lib/uniconv/u8-conv-to-enc.c: New file.
100632         * modules/uniconv/u8-conv-to-enc-tests: New file.
100633         * tests/uniconv/test-u8-conv-to-enc.c: New file.
100635         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
100636         u32_conv_to_encoding): New declarations.
100638 2007-06-09  Bruno Haible  <bruno@clisp.org>
100640         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
100642 2007-06-09  Bruno Haible  <bruno@clisp.org>
100644         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
100645         * modules/malloca: Renamed from modules/allocsa, updated.
100646         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
100647         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
100648         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
100649         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
100650         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
100651         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
100652         * modules/xmalloca: Renamed from modules/xallocsa, updated.
100653         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
100654         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
100655         * modules/c-strcasestr (Depends-on): Update.
100656         * lib/c-strcasestr.c: Update.
100657         * modules/c-strstr (Depends-on): Update.
100658         * lib/c-strstr.c: Update.
100659         * modules/canonicalize-lgpl (Depends-on): Update.
100660         * lib/canonicalize-lgpl.c: Update.
100661         * modules/clean-temp (Depends-on): Update.
100662         * lib/clean-temp.c: Update.
100663         * modules/csharpcomp (Depends-on): Update.
100664         * lib/csharpcomp.c: Update.
100665         * modules/csharpexec (Depends-on): Update.
100666         * lib/csharpexec.c: Update.
100667         * modules/javacomp (Depends-on): Update.
100668         * lib/javacomp.c: Update.
100669         * modules/javaexec (Depends-on): Update.
100670         * lib/javaexec.c: Update.
100671         * modules/mbscasestr (Depends-on): Update.
100672         * lib/mbscasestr.c: Update.
100673         * modules/mbsstr (Depends-on): Update.
100674         * lib/mbsstr.c: Update.
100675         * modules/setenv (Depends-on): Update.
100676         * lib/setenv.c: Update.
100677         * modules/strcasestr (Depends-on): Update.
100678         * lib/strcasestr.c: Update.
100679         * modules/striconveha (Depends-on): Update.
100680         * lib/striconveha.c: Update.
100681         * modules/relocatable-prog-wrapper (Files): Update.
100682         * lib/relocwrapper.c: Update.
100683         * build-aux/install-reloc: Update.
100684         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
100686 2007-06-08  Bruno Haible  <bruno@clisp.org>
100688         Port to uClibc.
100689         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
100690         * lib/fpurge.c (fpurge): Likewise.
100691         * lib/freading.c (freading): Likewise.
100692         * lib/fseeko.c (rpl_fseeko): Likewise.
100693         * lib/fseterr.c (fseterr): Likewise.
100694         * lib/fwriting.c (fwriting): Likewise.
100695         * tests/test-fflush.c (main): Avoid a failure on uClibc.
100697 2007-06-08  Bruno Haible  <bruno@clisp.org>
100699         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
100700         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
100701         * modules/gettext (Files): Add m4/intlmacosx.m4.
100703 2007-06-07  Bruno Haible  <bruno@clisp.org>
100705         * modules/localename-tests: New file.
100706         * tests/test-localename.c: New file.
100708         New module 'localename'.
100709         * lib/localename.h: New file.
100710         * lib/localename.c: New file, from GNU gettext.
100711         * m4/localename.m4: New file.
100712         * modules/localename: New file.
100714 2007-06-07  Bruno Haible  <bruno@clisp.org>
100716         Work around the lack of <wchar.h> on some builds of uClibc.
100717         * doc/headers/wchar.texi: Update.
100718         * lib/wchar_.h: Include <wchar.h> only if it exists.
100719         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
100720         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
100721         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
100722         doesn't exist.
100723         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
100724         * modules/mbfile (Depends-on): Add wchar.
100725         * modules/mbiter (Depends-on): Likewise.
100726         * modules/mbuiter (Depends-on): Likewise.
100727         Reported by Simon Josefsson.
100729 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
100731         Work around problem reported by Steven M. Schweda in
100732         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
100733         Tru64 5.1B with the Compaq compiler environment installed declares
100734         an 'isblank' function but does not define it in the C library.
100735         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
100736         * lib/regex_internal.h (isblank): Likewise.
100737         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
100738         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100740 2007-06-05  Bruno Haible  <bruno@clisp.org>
100742         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
100743         ia64.
100744         * modules/printf-safe: New file.
100745         * modules/fprintf-posix (Depends-on): Add printf-safe.
100746         * modules/printf-posix (Depends-on): Likewise.
100747         * modules/snprintf-posix (Depends-on): Likewise.
100748         * modules/sprintf-posix (Depends-on): Likewise.
100749         * modules/vasnprintf-posix (Depends-on): Likewise.
100750         * modules/vasprintf-posix (Depends-on): Likewise.
100751         * modules/vfprintf-posix (Depends-on): Likewise.
100752         * modules/vprintf-posix (Depends-on): Likewise.
100753         * modules/vsnprintf-posix (Depends-on): Likewise.
100754         * modules/vsprintf-posix (Depends-on): Likewise.
100755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
100756         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
100757         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
100758         "no" on i386, x86_64, ia64.
100759         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
100760         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100761         on i386, x86_64, ia64.
100762         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
100763         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100764         on i386, x86_64, ia64.
100765         * tests/test-vasnprintf-posix.c: Include float.h.
100766         (LDBL80_WORDS): New macro.
100767         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100768         on i386, x86_64, ia64.
100769         * tests/test-vasprintf-posix.c: Include float.h.
100770         (LDBL80_WORDS): New macro.
100771         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
100772         on i386, x86_64, ia64.
100773         * tests/test-snprintf-posix.c: Include float.h.
100774         * tests/test-sprintf-posix.c: Likewise.
100775         * tests/test-vsnprintf-posix.c: Likewise.
100776         * tests/test-vsprintf-posix.c: Likewise.
100778 2007-06-05  Bruno Haible  <bruno@clisp.org>
100780         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
100781         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
100782         non-IEEE numbers on i386, x86_64, ia64.
100783         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
100784         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
100785         * tests/test-isnanl.h: Include float.h.
100786         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
100788 2007-06-05  Bruno Haible  <bruno@clisp.org>
100790         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
100791         also the %a / %A. Handle the %a / %A code before this extra handling.
100793 2007-06-05  Bruno Haible  <bruno@clisp.org>
100795         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
100796         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
100798 2007-06-05  Bruno Haible  <bruno@clisp.org>
100800         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
100801         typo in variable name.
100803 2007-06-05  Eric Blake  <ebb9@byu.net>
100805         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
100806         Reported by Simon Josefsson.
100808 2007-06-04  Bruno Haible  <bruno@clisp.org>
100810         Avoid test failures on some PowerPC platforms.
100811         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
100812         Define differently for PowerPC.
100813         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
100814         Reported by Gary V. Vaughan <gary@gnu.org>.
100816 2007-06-02  Bruno Haible  <bruno@clisp.org>
100818         Fix test-stdint failure on FreeBSD/ia64.
100819         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
100820         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
100821         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
100822         * doc/headers/stdint.texi: Update.
100824 2007-06-01  Bruno Haible  <bruno@clisp.org>
100826         * tests/test-binary-io.c (main): Pass a third argument to open().
100827         Reported by Gary V. Vaughan <gary@gnu.org>.
100829 2007-06-01  Bruno Haible  <bruno@clisp.org>
100831         * doc/functions/frexpl.texi: Update for mingw.
100833 2007-06-01  Bruno Haible  <bruno@clisp.org>
100835         * tests/test-lseek.c (main): Disable test of errno for invalid third
100836         argument.
100837         * doc/functions/lseek.texi: Update.
100838         Reported by Gary V. Vaughan <gary@gnu.org>.
100840 2007-05-28  Bruno Haible  <bruno@clisp.org>
100842         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
100844 2007-05-31  Eric Blake  <ebb9@byu.net>
100846         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
100847         cross compiling.
100849 2007-05-30  Eric Blake  <ebb9@byu.net>
100850         and Bruno Haible  <bruno@clisp.org>
100852         Work around mingw test failures exposed by m4-1.4.9b.
100853         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
100854         * tests/test-unistd.c: Disable uid_t and git_t tests for the
100855         moment.
100857 2007-05-30  Bruno Haible  <bruno@clisp.org>
100859         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
100860         assuming that they are closed. Needed on HP-UX 11.
100862 2007-05-29  Bruno Haible  <bruno@clisp.org>
100864         Fix a problem with #include_next.
100865         * lib/dirent_.h: Split the double-inclusion guard.
100866         * lib/fcntl_.h: Likewise.
100867         * lib/float_.h: Likewise.
100868         * lib/iconv_.h: Likewise.
100869         * lib/inttypes_.h: Likewise.
100870         * lib/locale_.h: Likewise.
100871         * lib/math_.h: Likewise.
100872         * lib/netinet_in_.h: Likewise.
100873         * lib/search_.h: Likewise.
100874         * lib/signal_.h: Likewise.
100875         * lib/stdint_.h: Likewise.
100876         * lib/stdio_.h: Likewise.
100877         * lib/stdlib_.h: Likewise.
100878         * lib/string_.h: Likewise.
100879         * lib/sys_select_.h: Likewise.
100880         * lib/sys_socket_.h: Likewise.
100881         * lib/sys_stat_.h: Likewise.
100882         * lib/sys_time_.h: Likewise.
100883         * lib/sysexits_.h: Likewise.
100884         * lib/time_.h: Likewise.
100885         * lib/unistd_.h: Likewise.
100886         * lib/wchar_.h: Likewise.
100887         * lib/wctype_.h: Likewise.
100889 2007-05-29  Bruno Haible  <bruno@clisp.org>
100891         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
100892         for the moment.
100894 2007-05-29  Bruno Haible  <bruno@clisp.org>
100896         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
100897         invocation.
100898         Reported by Eric Blake.
100900 2007-05-29  Bruno Haible  <bruno@clisp.org>
100902         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
100903         compiling case.
100905 2007-05-29  Eric Blake  <ebb9@byu.net>
100906             Bruno Haible  <bruno@clisp.org>
100908         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
100909         cross compiles.
100911 2007-05-28  Eric Blake  <ebb9@byu.net>
100913         * modules/closein-tests (test_closein_LDADD): Support test on
100914         cygwin with libtool.
100916 2007-05-28  Bruno Haible  <bruno@clisp.org>
100918         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
100919         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100920         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100921         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100922         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100923         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100924         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100925         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100926         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100928 2007-05-28  Eric Blake  <ebb9@byu.net>
100930         Unconditionally include <config.h> in unit tests.
100931         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
100932         * tests/test-allocsa.c, tests/test-arcfour.c,
100933         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
100934         tests/test-array_list.c, tests/test-array_oset.c,
100935         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
100936         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
100937         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
100938         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
100939         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
100940         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
100941         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
100942         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
100943         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
100944         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
100945         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
100946         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
100947         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
100948         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
100949         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
100950         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
100951         test-md5.c, test-memmem.c, test-printf-posix.c,
100952         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
100953         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
100954         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
100955         test-strcasestr.c, test-striconv.c, test-striconveh.c,
100956         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
100957         test-vasnprintf-posix2.c, test-vasnprintf.c,
100958         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
100959         test-vfprintf-posix.c, test-vprintf-posix.c,
100960         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
100961         test-xvasprintf.c: Likewise.
100963 2007-05-28  Bruno Haible  <bruno@clisp.org>
100965         * gnulib-tool (func_import): Remember the --with-tests command-line
100966         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
100967         Reported by Eric Blake.
100969 2007-05-28  Bruno Haible  <bruno@clisp.org>
100971         * modules/ftell-tests: New file.
100972         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
100973         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
100975         * lib/ftell.c: New file.
100976         * modules/ftell: New file.
100977         * m4/ftell.m4: New file.
100978         * doc/functions/ftell.texi: Update.
100979         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
100980         REPLACE_FTELL.
100981         * lib/stdio_.h (rpl_ftell): New declaration.
100982         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
100983         REPLACE_FTELL.
100985 2007-05-28  Eric Blake  <ebb9@byu.net>
100987         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
100989 2007-05-28  Bruno Haible  <bruno@clisp.org>
100991         * modules/fseek-tests: New file.
100992         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
100993         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
100995         * lib/fseek.c: New file.
100996         * modules/fseek: New file.
100997         * m4/fseek.m4: New file.
100998         * doc/functions/fseek.texi: Update.
100999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
101000         REPLACE_FSEEK.
101001         * lib/stdio_.h (rpl_fseek): New declaration.
101002         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
101003         REPLACE_FSEEK.
101005 2007-05-28  Bruno Haible  <bruno@clisp.org>
101007         * lib/stdio_.h (fflush): More comments.
101009 2007-05-28  Bruno Haible  <bruno@clisp.org>
101011         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
101012         runtime test.
101014 2007-05-28  Eric Blake  <ebb9@byu.net>
101016         Improve lseek module.
101017         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
101018         * lib/unistd_.h (lseek): Scale back link warning message.
101019         * tests/test-lseek.c: Beef up test.
101020         * tests/test-lseek.sh: Exercise more facets of lseek.
101021         Reported by Bruno Haible.
101023 2007-05-28  Bruno Haible  <bruno@clisp.org>
101025         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
101026         to define.
101028 2007-05-27  Bruno Haible  <bruno@clisp.org>
101030         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
101032 2007-05-27  Bruno Haible  <bruno@clisp.org>
101034         * modules/openmp: New file.
101035         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
101036         Noah Misch.
101038 2007-05-26  Bruno Haible  <bruno@clisp.org>
101040         * modules/chdir-long (Depends-on): Add fchdir.
101041         * modules/chdir-safer (Depends-on): Likewise.
101042         * modules/fts (Depends-on): Likewise.
101043         * modules/fts-lgpl (Depends-on): Likewise.
101044         * modules/openat (Depends-on): Likewise.
101045         * modules/savewd (Depends-on): Likewise.
101047 2007-05-24  Eric Blake  <ebb9@byu.net>
101049         Fix lseek on mingw.
101050         * modules/lseek: New module.
101051         * m4/lseek.m4: New file.
101052         * lib/lseek.c: New file.
101053         * modules/lseek-tests: New file.
101054         * tests/test-lseek.c: New file.
101055         * tests/test-lseek.sh: New file.
101056         * MODULES.html.sh: Document lseek module.
101057         * modules/fflush (Depends-on): Add lseek, fseeko.
101058         * modules/fseeko (Depends-on): Likewise.
101059         * modules/ftello (Depends-on): Likewise.
101060         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
101061         broken.
101062         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
101063         broken.
101064         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
101065         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
101066         * lib/ftello.c (rpl_ftello): Likewise.
101067         * tests/test-fseeko.c (main): Test this.
101068         * tests/test-fseeko.sh: Likewise.
101069         * tests/test-ftello.c (main): Likewise.
101070         * tests/test-ftello.sh: Likewise.
101071         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
101072         implies replacing fseek.
101073         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
101074         HAVE_FTELLO.
101075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
101076         * modules/unistd (Makefile.am): Likewise.
101077         * lib/unistd_.h (lseek): Declare a replacement.
101078         * doc/functions/lseek.texi (lseek): Document this fix.
101079         * doc/functions/fseek.texi (fseek): Likewise.
101080         * doc/functions/ftell.texi (ftell): Likewise.
101082 2007-05-24  Bruno Haible  <bruno@clisp.org>
101084         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
101085         in the printed representation of a NaN.
101086         * tests/test-vasprintf-posix.c (test_function): Likewise.
101087         * tests/test-snprintf-posix.h (test_function): Likewise.
101088         * tests/test-sprintf-posix.h (test_function): Likewise.
101089         Reported by Eric Blake.
101091 2007-05-23  Eric Blake  <ebb9@byu.net>
101093         Fix fseeko/ftello on cygwin 1.5.24.
101094         * doc/functions/fseeko.texi (fseeko): Document the fix.
101095         * doc/functions/ftello.texi (ftello): Document the fix.
101096         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
101097         * doc/functions/stdout.text (stdout): New file.
101098         * doc/functions/stderr.text (stderr): New file.
101099         * doc/gnulib.texi (Function Substitutes): Use new files.
101100         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
101101         prior to 1.7.0.
101102         * tests/test-ftello.c (main): Likewise for ftello.
101103         * tests/test-fseeko.sh: New file.
101104         * tests/test-ftello.sh: New file.
101105         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
101106         with seekable stdin.
101107         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
101108         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
101109         (gl_REPLACE_FSEEKO): New macro.
101110         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
101111         * modules/fseeko (Files): Distribute fseeko.c.
101112         * modules/ftello (Files): Distribute ftello.c.
101113         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
101114         mode.
101115         * lib/ftello.c (rpl_ftello): New file.
101116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
101117         fseeko, ftello.
101118         (gl_STDIN_LARGE_OFFSET): New macro.
101119         * modules/stdio (Makefile.am): Perform the replacement.
101120         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
101122 2007-05-23  Bruno Haible  <bruno@clisp.org>
101124         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
101125         GNULIB_POSIXCHECK is defined.
101127 2007-05-21  Bruno Haible  <bruno@clisp.org>
101129         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
101130         Check also the output for NaN arguments. When cross-compiling, guess
101131         no on IRIX.
101132         * lib/vasnprintf.c: Update comments.
101133         * tests/test-vasnprintf-posix.c (strisnan): New function.
101134         (test_function): Use it.
101135         * tests/test-vasprintf-posix.c (strisnan): New function.
101136         (test_function): Use it.
101137         * tests/test-snprintf-posix.h (strisnan): New function.
101138         (test_function): Use it.
101139         * tests/test-sprintf-posix.h (strisnan): New function.
101140         (test_function): Use it.
101141         Reported by Eric Blake.
101143 2007-05-20  Bruno Haible  <bruno@clisp.org>
101145         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
101146         numbers that fails on BeOS.
101147         * doc/functions/frexpl.texi: Update.
101149 2007-05-20  Jim Meyering  <jim@meyering.net>
101151         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
101152         forced upon us by glibc-2.6.
101154 2007-05-20  Bruno Haible  <bruno@clisp.org>
101156         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
101157         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
101158         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
101159         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
101160         NEED_PRINTF_INFINITE.
101161         (is_infinitel): New function.
101162         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
101163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
101164         gl_PREREQ_VASNPRINTF_INFINITE.
101165         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
101166         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101167         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
101168         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
101169         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
101170         gl_PREREQ_VASNPRINTF_INFINITE.
101171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101178         * doc/functions/fprintf.texi: Update.
101179         * doc/functions/printf.texi: Update.
101180         * doc/functions/snprintf.texi: Update.
101181         * doc/functions/sprintf.texi: Update.
101182         * doc/functions/vfprintf.texi: Update.
101183         * doc/functions/vprintf.texi: Update.
101184         * doc/functions/vsnprintf.texi: Update.
101185         * doc/functions/vsprintf.texi: Update.
101187 2007-05-20  Bruno Haible  <bruno@clisp.org>
101189         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
101190         was not found in libc.
101191         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
101193 2007-05-20  Bruno Haible  <bruno@clisp.org>
101195         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101196         printed as "-nan" instead of "nan".
101197         * tests/test-vasprintf-posix.c (test_function): Likewise.
101198         * tests/test-snprintf-posix.h (test_function): Likewise.
101199         * tests/test-sprintf-posix.h (test_function): Likewise.
101200         Needed for HP-UX 11.
101202 2007-05-20  Jim Meyering  <jim@meyering.net>
101204         Fix buggy test for the fchownat-deref bug.
101205         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
101206         symlink required for the run-test.  Without it, this test would
101207         always declare that fchownat doesn't work, and client code would
101208         unnecessarily use the replacement function with fixed libc.
101209         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
101210         Reported by Greg Schafer.
101212 2007-05-19  Bruno Haible  <bruno@clisp.org>
101214         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
101215         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
101216         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
101217         Needed for IRIX 6.5 and Solaris 2.5.1.
101219 2007-05-19  Bruno Haible  <bruno@clisp.org>
101221         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
101222         (test_function): Skip tests involving -0.0 on platforms where
101223         -0.0 = 0.0.
101224         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
101225         (test_function): Skip tests involving -0.0 on platforms where
101226         -0.0 = 0.0.
101227         * tests/test-snprintf-posix.h (have_minus_zero): New function.
101228         (test_function): Skip tests involving -0.0 on platforms where
101229         -0.0 = 0.0.
101230         * tests/test-sprintf-posix.h (have_minus_zero): New function.
101231         (test_function): Skip tests involving -0.0 on platforms where
101232         -0.0 = 0.0.
101233         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
101234         tests.
101235         * tests/test-printf-posix.h (test_function): Likewise.
101236         * tests/test-printf-posix.output: Remove all -0.0 related results.
101237         Needed for IRIX 6.5.
101239 2007-05-19  Bruno Haible  <bruno@clisp.org>
101241         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
101242         printed as "nan0x7fffffff" instead of "nan".
101243         * tests/test-vasprintf-posix.c (test_function): Likewise.
101244         * tests/test-snprintf-posix.h (test_function): Likewise.
101245         * tests/test-sprintf-posix.h (test_function): Likewise.
101246         * tests/test-fprintf-posix.h (NaN): Remove macro.
101247         (test_function): Remove all NaN related tests.
101248         * tests/test-printf-posix.h (NaN): Remove macro.
101249         (test_function): Remove all NaN related tests.
101250         * tests/test-printf-posix.output: Remove all NaN related results.
101251         Needed for IRIX 6.5.
101253 2007-05-19  Bruno Haible  <bruno@clisp.org>
101255         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
101256         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
101258 2007-05-19  Bruno Haible  <bruno@clisp.org>
101260         * lib/float_.h: New file.
101261         * m4/float_h.m4: New file.
101262         * modules/float: New file.
101263         * modules/isnanl (Dependencies): Add float.
101264         * modules/isnanl-nolibm (Dependencies): Likewise.
101265         * modules/mathl (Dependencies): Likewise.
101266         * modules/printf-frexpl (Dependencies): Likewise.
101267         * modules/signbit (Dependencies): Likewise.
101268         * modules/vasnprintf (Dependencies): Likewise.
101269         * doc/headers/float.texi: Update.
101271 2007-05-19  Jim Meyering  <jim@meyering.net>
101273         * lib/utimens.c (gl_futimens): Rename from futimens,
101274         now that glibc-2.6 declares futimens.
101275         * lib/utimens.h: Likewise.
101277 2007-05-19  Bruno Haible  <bruno@clisp.org>
101279         Avoid test failures on mingw.
101280         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
101281         * tests/test-printf-posix.sh: Likewise.
101282         * tests/test-vfprintf-posix.sh: Likewise.
101283         * tests/test-vprintf-posix.sh: Likewise.
101285 2007-05-19  Bruno Haible  <bruno@clisp.org>
101287         Fix *printf result for NaN, Inf, -0.0 on mingw.
101288         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
101289         * lib/vasnprintf.c: Include math.h and isnan.h.
101290         (is_infinite_or_zero): New function.
101291         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
101292         values in the %f, %F, %e, %E, %g, %G directives.
101293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
101294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101295         gl_PRINTF_INFINITE and test its result. Invoke
101296         gl_PREREQ_VASNPRINTF_INFINITE.
101297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101301         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101304         * doc/functions/fprintf.texi: Update.
101305         * doc/functions/printf.texi: Update.
101306         * doc/functions/snprintf.texi: Update.
101307         * doc/functions/sprintf.texi: Update.
101308         * doc/functions/vfprintf.texi: Update.
101309         * doc/functions/vprintf.texi: Update.
101310         * doc/functions/vsnprintf.texi: Update.
101311         * doc/functions/vsprintf.texi: Update.
101313 2007-05-19  Bruno Haible  <bruno@clisp.org>
101315         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
101316         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
101317         Instead of multiplying with 10^k, set extra_zeroes to k.
101318         (scale10_round_long_double): Remove function.
101320 2007-05-18  Bruno Haible  <bruno@clisp.org>
101322         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
101323         introduced on 2007-05-06.
101325 2007-05-18  Bruno Haible  <bruno@clisp.org>
101327         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
101328         %g directives.
101329         * tests/test-vasprintf-posix.c (test_function): Likewise.
101330         * tests/test-snprintf-posix.h (test_function): Likewise.
101331         * tests/test-sprintf-posix.h (test_function): Likewise.
101333 2007-05-18  Bruno Haible  <bruno@clisp.org>
101335         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
101336         (strmatch): New function.
101337         (test_function): Test the %f directive on numbers of various exponents.
101338         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
101339         (strmatch): New function.
101340         (test_function): Test the %f directive on numbers of various exponents.
101341         * tests/test-snprintf-posix.h (strmatch): New function.
101342         (test_function): Test the %f directive on numbers of various exponents.
101343         * tests/test-sprintf-posix.h (strmatch): New function.
101344         (test_function): Test the %f directive on numbers of various exponents.
101345         * tests/test-snprintf-posix.c (SIZEOF): New macro.
101346         * tests/test-sprintf-posix.c (SIZEOF): New macro.
101347         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
101348         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
101350 2007-05-18  Bruno Haible  <bruno@clisp.org>
101352         Add support for 'long double' number output.
101353         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
101354         * lib/vasnprintf.c: Include math.h and float+.h.
101355         (mp_limb_t): New type.
101356         (GMP_LIMB_BITS): New macro.
101357         (mp_twolimb_t): New type.
101358         (GMP_TWOLIMB_BITS): New macro.
101359         (mpn_t): New type.
101360         (multiply, divide, convert_to_decimal, decode_long_double,
101361         scale10_round_long_double, scale10_round_decimal_long_double,
101362         floorlog10l): New functions.
101363         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
101364         for the %f, %F, %e, %E, %g, %G directives.
101365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
101366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
101367         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
101368         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
101369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
101370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101376         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
101377         * modules/snprintf-posix (Depends-on): Likewise.
101378         * modules/sprintf-posix (Depends-on): Likewise.
101379         * modules/vasnprintf-posix (Depends-on): Likewise.
101380         * modules/vasprintf-posix (Depends-on): Likewise.
101381         * modules/vfprintf-posix (Depends-on): Likewise.
101382         * modules/vsnprintf-posix (Depends-on): Likewise.
101383         * modules/vsprintf-posix (Depends-on): Likewise.
101384         * modules/vasnprintf (Files): Add lib/float+.h.
101385         * doc/functions/fprintf.texi: Update.
101386         * doc/functions/printf.texi: Update.
101387         * doc/functions/snprintf.texi: Update.
101388         * doc/functions/sprintf.texi: Update.
101389         * doc/functions/vfprintf.texi: Update.
101390         * doc/functions/vprintf.texi: Update.
101391         * doc/functions/vsnprintf.texi: Update.
101392         * doc/functions/vsprintf.texi: Update.
101394 2007-05-18  Bruno Haible  <bruno@clisp.org>
101396         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
101398 2007-05-18  Bruno Haible  <bruno@clisp.org>
101400         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
101401         for printing 64-bit integers. Needed for mingw.
101403 2007-05-18  Bruno Haible  <bruno@clisp.org>
101405         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
101406         gl_FUNC_FREXPL_WORKS.
101407         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
101409 2007-05-18  Bruno Haible  <bruno@clisp.org>
101411         * modules/frexpl-nolibm-tests: New file.
101413         * modules/frexpl-nolibm: New file.
101414         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
101416 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
101418         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
101419         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101420         GCC 4.2, which otherwise issues a lot of warnings.
101421         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
101422         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
101423         Likewise.
101424         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
101425         * modules/iconv_open (iconv.h): Likewise.
101426         * modules/locale (locale.h): Likewise.
101427         * modules/netinet_in (netinet/in.h): Likewise.
101428         * modules/sys_select (sys_select.h): Likewise.
101429         * modules/sys_socket (sys/socket.h): Likewise.
101430         * modules/sys_stat (sys/stat.h): Likewise.
101431         * modules/sysexits (sysexits.h): Likewise.
101432         * modules/unistd (unistd.h): Likewise.
101434 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101436         * modules/closein-tests (Makefile.am): Distribute
101437         `test-closein.sh'.
101439 2007-05-17  Bruno Haible  <bruno@clisp.org>
101441         * tests/test-printf-posix.output: Renamed from
101442         tests/test-fprintf-posix.out.
101443         * modules/fprintf-posix-tests: Update.
101444         * modules/printf-posix-tests: Update.
101445         * modules/vfprintf-posix-tests: Update.
101446         * modules/vprintf-posix-tests: Update.
101447         * tests/test-fprintf-posix.sh: Update.
101448         * tests/test-printf-posix.sh: Update.
101449         * tests/test-vfprintf-posix.sh: Update.
101450         * tests/test-vprintf-posix.sh: Update.
101451         Reported by Ralf Wildenhues.
101453 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
101455         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
101456         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
101457         GCC 4.2, which otherwise issues a lot of warnings.
101458         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
101459         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
101460         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
101461         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
101462         it should no longer be needed.
101463         * lib/string_.h: Likewise.
101464         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
101465         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
101466         * modules/inttypes (inttypes.h): Likewise.
101467         * modules/math (math.h): Likewise.
101468         * modules/search (search.h): Likewise.
101469         * modules/signal (signal.h): Likewise.
101470         * modules/stdint (stdint.h): Likewise.
101471         * modules/stdio (stdio.h): Likewise.
101472         * modules/stdlib (stdlib.h): Likewise.
101473         * modules/string (string.h): Likewise.
101474         * modules/sys_time (sys/time.h): Likewise.
101475         * modules/time (time.h): Likewise.
101476         * modules/wchar (wchar.h): Likewise.
101477         * modules/wctype (wtype.h): Likewise.
101479 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
101481         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
101483 2007-05-13  Bruno Haible  <bruno@clisp.org>
101485         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
101486         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
101487         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
101488         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
101489         (gl_PREREQ_STRTOK_R): Don't require it here.
101491 2007-05-13  Bruno Haible  <bruno@clisp.org>
101493         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
101494         when used in C++ mode.
101496 2007-05-12  Bruno Haible  <bruno@clisp.org>
101498         * lib/linebuffer.h: Tweak doc.
101499         * lib/linebuffer.c: Likewise.
101501 2007-05-12  James Youngman  <jay@gnu.org>
101503         * lib/linebuffer.c (readlinebuffer_delim): New function,
101504         like readlinebuffer, but use a caller-specified delimiter.
101505         (readlinebuffer): Just call readlinebuffer_delim with '\n'
101506         as the delimiter.
101507         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
101509 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
101511         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
101512         * modules/openat (Files): Remove openat-die.c.
101513         (Depends-on): Add openat-die.
101514         * modules/openat-die: New module.
101516 2007-05-06  Bruno Haible  <bruno@clisp.org>
101518         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
101519         Update with info about Cygwin.
101520         * doc/functions/fprintf.texi: Update.
101521         * doc/functions/printf.texi: Update.
101522         * doc/functions/snprintf.texi: Update.
101523         * doc/functions/sprintf.texi: Update.
101524         * doc/functions/vfprintf.texi: Update.
101525         * doc/functions/vprintf.texi: Update.
101526         * doc/functions/vsnprintf.texi: Update.
101527         * doc/functions/vsprintf.texi: Update.
101528         Reported by Eric Blake.
101530 2007-05-06  Bruno Haible  <bruno@clisp.org>
101532         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
101533         padding ourselves for the floating-point directives.
101534         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
101535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
101536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101537         gl_PRINTF_FLAG_ZERO and test its result. Invoke
101538         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
101539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101542         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101543         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101545         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101546         * tests/test-snprintf-posix.h (test_function): Also check the width
101547         and some flags in the %f directive.
101548         * tests/test-sprintf-posix.h (test_function): Likewise.
101549         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101550         * tests/test-vasprintf-posix.c (test_function): Likewise.
101551         * doc/functions/fprintf.texi: Update.
101552         * doc/functions/printf.texi: Update.
101553         * doc/functions/snprintf.texi: Update.
101554         * doc/functions/sprintf.texi: Update.
101555         * doc/functions/vfprintf.texi: Update.
101556         * doc/functions/vprintf.texi: Update.
101557         * doc/functions/vsnprintf.texi: Update.
101558         * doc/functions/vsprintf.texi: Update.
101560 2007-05-06  Bruno Haible  <bruno@clisp.org>
101562         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
101563         pass the ' flag character to sprintf or snprintf.
101564         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
101565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
101566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101567         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
101568         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
101569         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
101570         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
101571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
101572         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
101573         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
101574         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101575         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
101576         * tests/test-snprintf-posix.h (test_function): Also check the grouping
101577         flag.
101578         * tests/test-sprintf-posix.h (test_function): Likewise.
101579         * tests/test-vasnprintf-posix.c (test_function): Likewise.
101580         * tests/test-vasprintf-posix.c (test_function): Likewise.
101581         * doc/functions/fprintf.texi: Update.
101582         * doc/functions/printf.texi: Update.
101583         * doc/functions/snprintf.texi: Update.
101584         * doc/functions/sprintf.texi: Update.
101585         * doc/functions/vfprintf.texi: Update.
101586         * doc/functions/vprintf.texi: Update.
101587         * doc/functions/vsnprintf.texi: Update.
101588         * doc/functions/vsprintf.texi: Update.
101590 2007-05-01  Bruno Haible  <bruno@clisp.org>
101592         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
101594 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
101596         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
101597         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
101599 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101601         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
101602         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
101603         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
101605 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
101607         * lib/argp-help.c (struct hol_entry): New member `ord'.
101608         (HOL_ENTRY_PTRCMP): Use ord for comparison
101609         (hol_sort): Initialize ord.
101611 2007-05-01  Bruno Haible  <bruno@clisp.org>
101613         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
101614         Reported by Eric Blake.
101615         * doc/gnulib.texi (Function Substitutes): Update.
101617 2007-05-01  Bruno Haible  <bruno@clisp.org>
101619         * doc/functions.texi: Remove file, now redundant through
101620         doc/functions/*.texi.
101622 2007-05-01  Bruno Haible  <bruno@clisp.org>
101624         * modules/argp (Depends-on): Add sleep.
101626 2007-05-01  Bruno Haible  <bruno@clisp.org>
101628         * modules/sleep-tests: New file.
101629         * tests/test-sleep.c: New file.
101631         * modules/sleep: New file.
101632         * lib/sleep.c: New file.
101633         * m4/sleep.m4: New file.
101634         * lib/unistd_.h (sleep): New declaration.
101635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
101636         HAVE_SLEEP.
101637         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
101638         * doc/functions/sleep.texi: Document the sleep module.
101640 2007-05-01  Bruno Haible  <bruno@clisp.org>
101642         * lib/sigprocmask.h: Remove file.
101643         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
101644         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
101645         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
101646         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
101647         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
101648         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
101649         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
101650         HAVE_SIGSET_T as a shell variable.
101651         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
101652         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
101653         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
101654         (Depends-on): Add signal. Remove verify.
101655         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
101656         (Include): Mention <signal.h> instead of sigprocmask.h.
101657         * NEWS: Mention the change.
101658         * lib/fatal-signal.c: Don't include sigprocmask.h.
101660 2007-05-01  Bruno Haible  <bruno@clisp.org>
101662         * modules/signal: New file.
101663         * lib/signal_.h: New file.
101664         * m4/signal_h.m4: New file.
101666 2007-05-01  Bruno Haible  <bruno@clisp.org>
101668         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
101669         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
101670         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
101671         HAVE_WCTYPE_CTMP_BUG into wctype.h.
101673 2007-05-01  Bruno Haible  <bruno@clisp.org>
101675         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
101676         configure time.
101677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
101678         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
101679         * modules/sys_stat (Makefile.am): Substitute their values into
101680         sys/stat.h.
101682 2007-05-01  Bruno Haible  <bruno@clisp.org>
101684         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
101685         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
101686         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
101688 2007-05-01  Bruno Haible  <bruno@clisp.org>
101690         * doc/header/assert.texi: Undo last change: don't mention the gnulib
101691         'assert' module here.
101693 2007-05-01  Bruno Haible  <bruno@clisp.org>
101695         * doc/functions/*.texi: New files.
101696         * doc/functions/google-ranking.txt: New file.
101697         * doc/gnulib.texi (Function Substitutes): New chapter.
101698         (ctime, inet_ntoa): Remove sections.
101699         * doc/ctime.texi: Remove file.
101700         * doc/inet_ntoa.texi: Remove file.
101701         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
101702         dependencies.
101703         (%.info): New rule, specifying a --reference-limit.
101705 2007-05-01  Bruno Haible  <bruno@clisp.org>
101707         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
101709 2007-05-01  Bruno Haible  <bruno@clisp.org>
101711         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
101712         the portability of 'mkdir' to mingw systems.
101714 2007-05-01  Bruno Haible  <bruno@clisp.org>
101716         * doc/headers/google-ranking.txt: New file.
101718 2007-04-30  Eric Blake  <ebb9@byu.net>
101720         Prefer fseeko to fseek.
101721         * modules/getpass (Depends-on): Add fseeko.
101722         * lib/getpass.c (getpass): Use fseeko, not fseek.
101724 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
101726         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
101727         assumes the sorting is stable, while most qsort implementations
101728         are not.  Use argument addresses to ensure they never compare as
101729         equal.
101731         * tests/test-argp-2.sh (usage-indent test): Fix output
101732         (func_compare): Restore diff options
101733         * tests/test-argp.c: Restore #include "progname.h"
101735 2007-04-29  Bruno Haible  <bruno@clisp.org>
101737         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
101738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
101739         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
101740         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
101741         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
101742         (configure.ac): Define CHECK_SNPRINTF_POSIX.
101743         (TESTS, check_PROGRAMS): Add test-snprintf.
101744         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
101745         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
101746         (TESTS, check_PROGRAMS): Add test-vsnprintf.
101747         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
101748         assertions that fail on HP-UX, OSF/1, or IRIX.
101749         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
101751 2007-04-29  Bruno Haible  <bruno@clisp.org>
101753         * MODULES.html.sh (posix_functions): Remove 'contents'.
101755 2007-04-29  Karl Berry  <karl@gnu.org>
101757         * config/srclist.txt (gendocs_template_min): new entry.
101759 2007-04-29  Bruno Haible  <bruno@clisp.org>
101761         Work around fpurge bug on BSD systems.
101762         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
101763         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
101764         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
101765         fpurge to rpl_fpurge if the system already has this function.
101766         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
101767         the case where the system already has this function. Correct invariants
101768         on BSD systems.
101769         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
101770         BSD systems.
101772 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
101774         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
101775         proposed by Sven Verdoolaege.
101777         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
101778         options.
101779         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
101780         (usage and help tests): Update
101782 2007-04-29  Bruno Haible  <bruno@clisp.org>
101784         * tests/test-fflush.c (main): Use a file of size 17, not 10.
101785         Print more information in case of failure. Disable a test on BeOS.
101787 2007-04-29  Bruno Haible  <bruno@clisp.org>
101789         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
101790         This helps debugging on systems on which no gdb is available.
101792 2007-04-29  Bruno Haible  <bruno@clisp.org>
101794         * lib/freading.h: Improve comments.
101795         * lib/fwriting.h: Likewise.
101796         * tests/test-freading.c (main): Don't check freading immediately after
101797         repositioning. Needed for glibc.
101799 2007-04-29  Bruno Haible  <bruno@clisp.org>
101801         * lib/freading.c (freading): Trivial simplification.
101803 2007-04-28  Bruno Haible  <bruno@clisp.org>
101805         * tests/test-fwriting.c (main): Also test the interaction between
101806         fflush and fwriting.
101807         * modules/fwriting-tests (Depends-on): Add fflush.
101809         * tests/test-freading.c (main): Also test the interaction between
101810         fflush and freading.
101811         * modules/freading-tests (Depends-on): Add fflush.
101813 2007-04-28  Bruno Haible  <bruno@clisp.org>
101815         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
101816         fseeko and ftello.
101817         Suggested by Eric Blake.
101819 2007-04-28  Jim Meyering  <jim@meyering.net>
101821         Avoid false-negative in gl_STDINT_H's C99 conformance test.
101822         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
101823         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
101825 2007-04-27  Eric Blake  <ebb9@byu.net>
101827         * doc/headers/assert.texi (assert.h): Document assert module use.
101829 2007-04-27  Bruno Haible  <bruno@clisp.org>
101831         * doc/headers/*.texi: New files.
101832         * doc/gnulib.texi (Header File Substitutes): New chapter.
101833         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
101834         dependencies.
101835         (standards.info ,standards.html, standards.dvi): Update dependencies.
101836         (mostlyclean, clean): New targets.
101838 2007-04-27  Bruno Haible  <bruno@clisp.org>
101840         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
101841         * modules/sysexits (Files, Makefile.am): Update.
101843         * lib/sys_socket_.h: Renamed from lib/socket_.h.
101844         * modules/sys_socket (Files, Makefile.am): Update.
101846         * lib/sys_stat_.h: Renamed from lib/stat_.h.
101847         * modules/sys_stat (Files, Makefile.am): Update.
101849 2007-04-27  Eric Blake  <ebb9@byu.net>
101851         * lib/freading.h: Improve comments.
101852         * lib/fwriting.h: Likewise.
101853         * lib/fflush.c: Likewise.
101855         Fix closein for mingw.
101856         * modules/closein-tests: Add tests for closein.
101857         * tests/test-closein.c: New file.
101858         * tests/test-closein.sh: Likewise.
101859         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
101860         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
101862 2007-04-27  Bruno Haible  <bruno@clisp.org>
101864         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
101865         version is < 6.
101866         * lib/math_.h [__DECC]: Likewise.
101867         * lib/stdio_.h [__DECC]: Likewise.
101868         * lib/stdlib_.h [__DECC]: Likewise.
101869         * lib/string_.h [__DECC]: Likewise.
101870         * lib/time_.h [__DECC]: Likewise.
101871         * lib/wchar_.h [__DECC]: Likewise.
101872         * lib/wctype_.h [__DECC]: Likewise.
101874 2007-04-27  Bruno Haible  <bruno@clisp.org>
101876         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
101878 2007-04-27  Bruno Haible  <bruno@clisp.org>
101880         * lib/fflush.c: Add comments.
101881         * modules/fpurge-tests (Depends-on): Add fflush.
101882         * modules/freadable-tests (Depends-on): Likewise.
101883         * modules/fwritable-tests (Depends-on): Likewise.
101885 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
101887         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
101888         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
101889         Report by Bruno Haible <bruno@clisp.org>.
101891 2007-04-26  Eric Blake  <ebb9@byu.net>
101893         Fix fflush on mingw.
101894         * modules/fflush (Depends-on): Add freading.
101895         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
101896         but unread data.
101898 2007-04-26  Eric Blake  <ebb9@byu.net>
101899         and Bruno Haible  <bruno@clisp.org>
101901         Implement freading and fwriting.
101902         * lib/freading.c: New file.
101903         * lib/freading.h: Likewise.
101904         * m4/freading.m4: Likewise.
101905         * modules/freading: Likewise.
101906         * modules/freading-tests: Likewise.
101907         * tests/test-freading.c: Likewise.
101908         * lib/fwriting.c: New file.
101909         * lib/fwriting.h: Likewise.
101910         * m4/fwriting.m4: Likewise.
101911         * modules/fwriting: Likewise.
101912         * modules/fwriting-tests: Likewise.
101913         * tests/test-fwriting.c: Likewise.
101914         * MODULES.html.sh (File stream based Input/Output): Mention them.
101916 2007-04-26  Bruno Haible  <bruno@clisp.org>
101918         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
101919         'long' when we assume it.
101920         Suggested by Eric Blake.
101922 2007-04-26  Bruno Haible  <bruno@clisp.org>
101924         Ensure fseeko, ftello are declared on glibc systems.
101925         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
101926         * modules/fseeko (configure.ac-early): Likewise.
101927         * modules/ftello (configure.ac-early): Likewise.
101928         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
101929         AC_FUNC_FSEEKO for this.
101930         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
101931         (gl_CHECK_FSEEKO): Remove macro.
101933 2007-04-26  Bruno Haible  <bruno@clisp.org>
101935         * tests/test-fflush.c (main): Also check the ftell result after
101936         fflush and fseek/fseeko.
101937         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
101938         file descriptor position cache in the stream.
101939         * lib/fseeko.c (rpl_fseeko): Likewise.
101941 2007-04-26  Bruno Haible  <bruno@clisp.org>
101943         * modules/fflush-tests (Depends-on): Add fseeko.
101945 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
101946             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101948         * lib/argz_.h: ensure error_t definition is obtained in same
101949         mechanism system argz.h would have.
101950         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
101951         argz facilities are known bad.  Err on the side of caution if
101952         cross-compiling.
101954 2007-04-25  Eric Blake  <ebb9@byu.net>
101956         * lib/fpurge.c (includes): Use stdlib.h for free.
101957         * tests/test-fflush.c (main): Also test fflush-fseeko.
101959 2007-04-25  Bruno Haible  <bruno@clisp.org>
101961         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
101962         * lib/fseeko.c: New file.
101963         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
101964         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
101965         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
101966         gl_FUNC_FSEEKO.
101967         (gl_FUNC_FSEEKO): Invoke it.
101968         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
101969         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
101970         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
101972 2007-04-25  Bruno Haible  <bruno@clisp.org>
101974         * modules/fflush (Depends-on): Add ftello.
101976 2007-04-25  Bruno Haible  <bruno@clisp.org>
101978         * modules/ftello-tests: New file.
101979         * tests/test-ftello.c: New file.
101981         * modules/ftello: New file.
101982         * m4/ftello.m4: New file.
101983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
101984         HAVE_FTELLO.
101985         * lib/stdio_.h (ftello): New declaration.
101986         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
101987         HAVE_FTELLO.
101989 2007-04-25  Bruno Haible  <bruno@clisp.org>
101991         * modules/fseeko-tests: New file.
101992         * tests/test-fseeko.c: New file.
101994         * modules/fseeko: New file.
101995         * m4/fseeko.m4: New file.
101996         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
101997         HAVE_FSEEKO.
101998         * lib/stdio_.h (fseeko): New declaration.
101999         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
102000         HAVE_FSEEKO.
102002 2007-04-25  Bruno Haible  <bruno@clisp.org>
102004         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
102006 2007-04-25  Bruno Haible  <bruno@clisp.org>
102008         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
102009         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
102010         * tests/test-unistd.c: Likewise.
102011         * tests/test-fcntl.c: Likewise.
102013 2007-04-23  Eric Blake  <ebb9@byu.net>
102015         * lib/fflush.c: Fix missing include.
102016         Reported by Bruno Haible.
102018 2007-04-23  Bruno Haible  <bruno@clisp.org>
102020         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
102021         Reported by Eric Blake.
102023 2007-04-23  Bruno Haible  <bruno@clisp.org>
102025         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
102027 2007-04-23  Bruno Haible  <bruno@clisp.org>
102029         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
102031 2007-04-23  Bruno Haible  <bruno@clisp.org>
102033         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
102034         Needed on HP-UX 11.
102036 2007-04-16  Eric Blake  <ebb9@byu.net>
102038         Make fflush rely on fpurge.
102039         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
102040         open coding all variants.
102041         * modules/fflush (Depends-on): Add fpurge and unistd.
102042         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
102043         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
102045         Fix --with-tests compilation on cygwin.
102046         * modules/argmatch-tests (Makefile.am): List gnulib library first
102047         in LDADD.
102048         * modules/argp-tests (Makefile.am): Likewise.
102049         * modules/array-list-tests (Makefile.am): Likewise.
102050         * modules/array-oset-tests (Makefile.am): Likewise.
102051         * modules/avltree-list-tests (Makefile.am): Likewise.
102052         * modules/avltree-oset-tests (Makefile.am): Likewise.
102053         * modules/avltreehash-list-tests (Makefile.am): Likewise.
102054         * modules/carray-list-tests (Makefile.am): Likewise.
102055         * modules/dirname-tests (Makefile.am): Likewise.
102056         * modules/frexp-tests (Makefile.am): Likewise.
102057         * modules/isnanl-tests (Makefile.am): Likewise.
102058         * modules/linked-list-tests (Makefile.am): Likewise.
102059         * modules/linkedhash-list-tests (Makefile.am): Likewise.
102060         * modules/lock-tests (Makefile.am): Likewise.
102061         * modules/rbtree-list-tests (Makefile.am): Likewise.
102062         * modules/rbtree-oset-tests (Makefile.am): Likewise.
102063         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
102064         * modules/tls-tests (Makefile.am): Likewise.
102065         * modules/tsearch-tests (Makefile.am): Likewise.
102066         * modules/xvasprintf-tests (Makefile.am): Likewise.
102068         Fix fpurge for cygwin.
102069         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
102070         value.
102071         * modules/fpurge-tests (Depends-on): Clean up trash.
102073 2007-04-16  Simon Josefsson  <simon@josefsson.org>
102075         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
102077         * m4/autobuild.m4: Re-indent.
102079 2007-04-13  Bruno Haible  <bruno@clisp.org>
102081         * modules/fpurge-tests: New file.
102082         * tests/test-fpurge.c: New file.
102084         * modules/fpurge: New file.
102085         * lib/fpurge.h: New file.
102086         * lib/fpurge.c: New file.
102087         * m4/fpurge.m4: New file.
102089 2007-04-13  Bruno Haible  <bruno@clisp.org>
102091         * modules/fbufmode-tests: New file.
102092         * tests/test-fbufmode.c: New file.
102094         * modules/fbufmode: New file.
102095         * lib/fbufmode.h: New file.
102096         * lib/fbufmode.c: New file.
102097         * m4/fbufmode.m4: New file.
102099 2007-04-13  Bruno Haible  <bruno@clisp.org>
102101         * modules/fwritable-tests: New file.
102102         * tests/test-fwritable.c: New file.
102104         * modules/fwritable: New file.
102105         * lib/fwritable.h: New file.
102106         * lib/fwritable.c: New file.
102107         * m4/fwritable.m4: New file.
102109 2007-04-13  Bruno Haible  <bruno@clisp.org>
102111         * modules/freadable-tests: New file.
102112         * tests/test-freadable.c: New file.
102114         * modules/freadable: New file.
102115         * lib/freadable.h: New file.
102116         * lib/freadable.c: New file.
102117         * m4/freadable.m4: New file.
102119 2007-04-13  Bruno Haible  <bruno@clisp.org>
102121         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
102122         MOSTLYCLEANFILES.
102124 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
102126         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
102127         gzip bootstrap.conf to avoid dragging in i18n machinery.
102128         (gnulib_tool_option): Use it.
102130 2007-04-13  Bruno Haible  <bruno@clisp.org>
102132         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
102133         %F directives.
102134         * tests/test-vasprintf-posix.c (test_function): Likewise.
102135         * tests/test-snprintf-posix.h (test_function): Likewise.
102136         * tests/test-sprintf-posix.h (test_function): Likewise.
102137         * tests/test-fprintf-posix.h (test_function): Likewise.
102138         * tests/test-printf-posix.h (test_function): Likewise.
102139         * tests/test-fprintf-posix.out: Likewise.
102141 2007-04-13  Bruno Haible  <bruno@clisp.org>
102143         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
102144         * modules/tls-tests (configure.ac): Likewise.
102145         Reported by Arto C. Nirkko <anirkko@insel.ch>.
102147 2007-04-13  Bruno Haible  <bruno@clisp.org>
102149         * lib/tls.c (glthread_tls_get): Fix return type.
102150         Patch by Arto C. Nirkko <anirkko@insel.ch>.
102152 2007-04-12  Eric Blake  <ebb9@byu.net>
102154         * modules/gettime (Depends-on): Remove gettime.
102155         Reported by Dmitry V. Levin.
102157 2007-04-12  Bruno Haible  <bruno@clisp.org>
102159         * modules/fflush (Include): Mention <stdio.h>.
102160         * modules/strtoimax (Include): Mention <inttypes.h>.
102161         * modules/strtoumax (Include): Likewise.
102163 2007-04-12  Eric Blake  <ebb9@byu.net>
102165         * .cvsignore: New file.
102166         * .gitignore: Likewise.
102168 2007-04-12  Bruno Haible  <bruno@clisp.org>
102170         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
102171         not before, since $(LDADD) often contains libgnu.a.
102172         * modules/striconv-tests (test_striconv_LDADD): Likewise.
102173         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
102174         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
102175         Needed on Cygwin.
102177 2007-04-12  Eric Blake  <ebb9@byu.net>
102179         Work around glibc's failure to flush stdin on fclose.
102180         * lib/closein.c (close_stdin): Flush stdin before closing.
102182         Work around glibc's failure to reset seekable stdin on exit.
102183         * modules/closein: New module.
102184         * lib/closein.c: New file.
102185         * lib/closein.h: Likewise.
102186         * m4/closein.m4: Likewise.
102187         * MODULES.html.sh (File stream based Input/Output): Document it.
102189 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102191         * gnulib-tool: Rename generated 'autobuild' script to
102192         'do-autobuild' in --create-megatestdir output.
102194         * doc/gnulib.texi (Build robot for gnulib): Fix.
102196 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102198         * modules/sysexits (Depends-on): Add absolute-header.
102200 2007-04-12  Eric Blake  <ebb9@byu.net>
102202         No need to preserve errno on success.
102203         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
102204         Reported by Bruno Haible.
102206 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102208         * MODULES.html.sh (Support for maintaining and releasing
102209         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
102211 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102213         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
102215 2007-04-12  Simon Josefsson  <simon@josefsson.org>
102217         * modules/autobuild: New module.
102219         * m4/autobuild.m4: New file.
102221 2007-04-11  Bruno Haible  <bruno@clisp.org>
102223         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
102224         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
102225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
102226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
102227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
102228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
102231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
102234         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102235         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
102237         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102238         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102239         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
102240         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102241         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102242         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
102243         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102244         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102245         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
102246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102248         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
102249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
102250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
102251         Reported by Eric Blake.
102253 2007-04-11  Bruno Haible  <bruno@clisp.org>
102255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
102257 2007-04-10  Bruno Haible  <bruno@clisp.org>
102259         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
102260         for NaN and Infinity. Needed on FreeBSD 6.1.
102261         * tests/test-vasnprintf-posix.c (test_function): Undo last change
102262         regarding results for "%010a" of Infinity and NaN.
102263         * tests/test-vasprintf-posix.c (test_function): Likewise.
102264         * tests/test-snprintf-posix.h (test_function): Likewise.
102265         * tests/test-sprintf-posix.h (test_function): Likewise.
102266         * tests/test-fprintf-posix.h (test_function): Likewise.
102267         * tests/test-printf-posix.h (test_function): Likewise.
102268         * tests/test-fprintf-posix.out: Likewise.
102270 2007-04-10  Bruno Haible  <bruno@clisp.org>
102272         * modules/locale-tests: New file.
102273         * tests/test-locale.c: New file.
102275         * modules/locale: New file.
102276         * lib/locale_.h: New file.
102277         * m4/locale_h.m4: New file.
102279 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
102280             Bruno Haible  <bruno@clisp.org>
102282         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
102283         be determined, test for availability of the copysignf, copysign,
102284         copysignl functions.
102285         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
102286         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
102287         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
102289 2007-04-09  Eric Blake  <ebb9@byu.net>
102291         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
102292         * modules/stdio (Makefile.am): Support fflush.
102293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
102294         * modules/fflush: New file.
102295         * lib/fflush.c: Likewise.
102296         * m4/fflush.m4: Likewise.
102297         * modules/fflush-tests: New test.
102298         * tests/test-fflush.c: Likewise.
102299         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
102301 2007-04-06  Bruno Haible  <bruno@clisp.org>
102303         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
102304         (VASNPRINTF): Use signbit for faster determination whether to print a
102305         minus sign.
102306         * modules/vasnprintf (Files): Remove lib/float+.h.
102307         * modules/fprintf-posix (Depends-on): Add signbit.
102308         * modules/snprintf-posix (Depends-on): Likewise.
102309         * modules/sprintf-posix (Depends-on): Likewise.
102310         * modules/vasnprintf-posix (Depends-on): Likewise.
102311         * modules/vasprintf-posix (Depends-on): Likewise.
102312         * modules/vfprintf-posix (Depends-on): Likewise.
102313         * modules/vsnprintf-posix (Depends-on): Likewise.
102314         * modules/vsprintf-posix (Depends-on): Likewise.
102316 2007-04-06  Bruno Haible  <bruno@clisp.org>
102318         * tests/test-frexp.c (main): Test also the sign bit of zero results.
102319         * tests/test-frexpl.c (main): Likewise.
102320         * tests/test-ldexpl.c (main): Likewise.
102321         * modules/frexp-tests (Depends-on): Add signbit.
102322         * modules/frexpl-tests (Depdends-on): Likewise.
102323         * modules/ldexpl-tests (Depdends-on): Likewise.
102325 2007-04-06  Bruno Haible  <bruno@clisp.org>
102327         * modules/signbit-tests: New file.
102328         * tests/test-signbit.c: New file.
102330         * modules/signbit: New file.
102331         * lib/signbitf.c: New file.
102332         * lib/signbitd.c: New file.
102333         * lib/signbitl.c: New file.
102334         * m4/signbit.m4: New file.
102335         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
102336         (signbit): New macro.
102337         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
102338         REPLACE_SIGNBIT.
102339         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
102340         REPLACE_FREXPL into math.h.
102342 2007-04-06  Bruno Haible  <bruno@clisp.org>
102344         * modules/isnanf-nolibm-tests: New file.
102345         * tests/test-isnanf.c: New file.
102347         * modules/isnanf-nolibm: New file.
102348         * lib/isnanf.h: New file.
102349         * lib/isnanf.c: New file.
102350         * lib/isnan.c: Consider the USE_FLOAT macro.
102351         * m4/isnanf.m4: New file.
102353 2007-04-06  Bruno Haible  <bruno@clisp.org>
102355         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
102356         (Link): New section.
102358         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
102360 2007-04-06  Bruno Haible  <bruno@clisp.org>
102362         Assume the 'long double' type.
102363         * m4/longdouble.m4: Remove file.
102364         * config/srclist.txt: Don't mention longdouble.m4.
102365         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
102366         * lib/float+.h: Likewise.
102367         * lib/frexp.c: Likewise.
102368         * lib/printf-args.h: Likewise.
102369         * lib/printf-args.c: Likewise.
102370         * lib/printf-frexp.c: Likewise.
102371         * lib/printf-parse.c: Likewise.
102372         * lib/vasnprintf.c: Likewise.
102373         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
102374         * m4/intl.m4: Likewise.
102375         * m4/isnanl.m4: Likewise.
102376         * m4/printf.m4: Likewise.
102377         * m4/printf-frexpl.m4: Likewise.
102378         * m4/vasnprintf.m4: Likewise.
102379         * modules/allocsa (Files): Remove m4/longdouble.m4.
102380         * modules/gettext (Files): Likewise.
102381         * modules/relocatable-prog-wrapper (Files): Likewise.
102382         * modules/vasnprintf (Files): Likewise.
102383         * modules/isnanl (Files): Likewise.
102384         (Include): Simplify.
102385         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
102386         (Include): Simplify.
102387         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
102388         (Include): Simplify.
102389         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
102390         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102391         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
102392         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102393         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102394         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102395         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
102396         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102397         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
102398         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102399         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
102400         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
102401         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
102402         * tests/test-isnanl.c: Likewise.
102403         * tests/test-snprintf-posix.h: Likewise.
102404         * tests/test-sprintf-posix.h: Likewise.
102405         * tests/test-vasnprintf-posix.c: Likewise.
102406         * tests/test-vasnprintf-posix2.c: Likewise.
102407         * tests/test-vasprintf-posix.c: Likewise.
102409 2007-04-06  Bruno Haible  <bruno@clisp.org>
102411         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
102412         * lib/math_.h [__DECC]: Include the overridden include file through
102413         #include_next, outside the double-inclusion guard.
102414         * lib/stdio_.h [__DECC]: Likewise.
102415         * lib/stdlib_.h [__DECC]: Likewise.
102416         * lib/string_.h [__DECC]: Likewise.
102417         * lib/time_.h [__DECC]: Likewise.
102418         * lib/wchar_.h [__DECC]: Likewise.
102419         * lib/wctype_.h [__DECC]: Likewise.
102420         * lib/inttypes_.h [__DECC]: Likewise.
102421         Reported by Albert Chin <china@thewrittenword.com> in
102422         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
102424 2007-04-04  Eric Blake  <ebb9@byu.net>
102426         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
102427         1.5.x.
102429 2007-04-04  Bruno Haible  <bruno@clisp.org>
102431         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
102432         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
102434 2007-04-04  Bruno Haible  <bruno@clisp.org>
102436         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
102437         results for "%010a" of Infinity and NaN.
102438         * tests/test-vasprintf-posix.c (test_function): Likewise.
102439         * tests/test-snprintf-posix.h (test_function): Likewise.
102440         * tests/test-sprintf-posix.h (test_function): Likewise.
102441         * tests/test-fprintf-posix.h (test_function): Remove these tests.
102442         * tests/test-printf-posix.h (test_function): Likewise.
102443         * tests/test-fprintf-posix.out: Update.
102444         Needed for FreeBSD 6.1.
102446 2007-04-04  Bruno Haible  <bruno@clisp.org>
102448         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
102449         directly used by the gnulib modules nor by gnulib-tool.
102451 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
102453         * DEPENDENCIES: Give overall description of version dependency
102454         desirability.  Use more-typical names for apps.
102455         Add shell, coreutils, diffutils, grep, tar, gzip.
102457 2007-04-04  Simon Josefsson  <simon@josefsson.org>
102459         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
102461 2007-04-04  Karl Berry  <karl@gnu.org>
102463         * MODULES.html.sh (func_module): missing '.
102465 2007-04-03  Bruno Haible  <bruno@clisp.org>
102467         * modules/argmatch-tests (Makefile.am): New variable
102468         test_argmatch_LDADD.
102469         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
102470         * modules/array-list-tests (Makefile.am): New variable
102471         test_array_list_LDADD.
102472         * modules/array-oset-tests (Makefile.am): New variable
102473         test_array_oset_LDADD.
102474         * modules/avltree-list-tests (Makefile.am): New variable
102475         test_avltree_list_LDADD.
102476         * modules/avltree-oset-tests (Makefile.am): New variable
102477         test_avltree_oset_LDADD.
102478         * modules/avltreehash-list-tests (Makefile.am): New variable
102479         test_avltreehash_list_LDADD.
102480         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
102481         test_canonicalize_lgpl_LDADD.
102482         * modules/carray-list-tests (Makefile.am): New variable
102483         test_carray_list_LDADD.
102484         * modules/dirname-tests (Makefile.am): New variable
102485         test_dirname_LDADD.
102486         * modules/linked-list-tests (Makefile.am): New variable
102487         test_linked_list_LDADD.
102488         * modules/linkedhash-list-tests (Makefile.am): New variable
102489         test_linkedhash_list_LDADD.
102490         * modules/rbtree-list-tests (Makefile.am): New variable
102491         test_rbtree_list_LDADD.
102492         * modules/rbtree-oset-tests (Makefile.am): New variable
102493         test_rbtree_oset_LDADD.
102494         * modules/rbtreehash-list-tests (Makefile.am): New variable
102495         test_rbtreehash_list_LDADD.
102496         * modules/xvasprintf-tests (Makefile.am): New variable
102497         test_xvasprintf_LDADD.
102498         Reported by Eric Blake.
102500 2007-04-03  Eric Blake  <ebb9@byu.net>
102502         * DEPENDENCIES: Weaken m4 requirements.
102504 2007-04-03  Bruno Haible  <bruno@clisp.org>
102506         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
102507         * modules/isnanl-tests (configure.ac): Likewise.
102509 2007-04-03  Ben Pfaff  <blp@gnu.org>
102511         * modules/iconv_open: Add $(srcdir)/ to source directory
102512         references in Makefile fragments that call gperf, to fix VPATH
102513         builds.
102515 2007-04-03  Bruno Haible  <bruno@clisp.org>
102517         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
102518         * lib/ldexpl.c: Undo last change.
102520 2007-04-03  Bruno Haible  <bruno@clisp.org>
102522         * modules/printf-frexpl (Depends-on): Undo last change.
102523         (Files): Add m4/ldexpl.m4.
102525 2007-04-03  Bruno Haible  <bruno@clisp.org>
102527         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
102528         * modules/isnanl (Link): New section.
102530         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
102531         * modules/frexp (Link): New section.
102533         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
102534         * modules/frexpl (Link): New section.
102536         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
102537         * modules/ldexpl (Link): New section.
102539 2007-04-03  Bruno Haible  <bruno@clisp.org>
102541         * modules/TEMPLATE-EXTENDED: New file.
102542         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
102544 2007-04-03  Bruno Haible  <bruno@clisp.org>
102546         * DEPENDENCIES: New file.
102547         Suggested by Simon Josefsson.
102549 2007-04-03  Bruno Haible  <bruno@clisp.org>
102551         * doc/gnulib.texi: Escape @.
102553 2007-04-03  James Youngman  <jay@gnu.org>
102554         and Paul Eggert  <eggert@cs.ucla.edu>
102556         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
102557         birthtime on all systems that have birthtime, not just those which
102558         use st_birthtimensec rather than st_birthtim.  Putting zero in
102559         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
102560         that the birth time is not available for files on an NFS mount.
102562 2007-04-03  Simon Josefsson  <simon@josefsson.org>
102564         * modules/memxor: Move back from crypto/, suggested by Bruno.
102565         * modules/crypto/hmac-sha1: Fix memxor dependency.
102567         * modules/crypto/gc: Moved from ../.
102569 2007-04-02  Eric Blake  <ebb9@byu.net>
102571         * lib/ldexpl.c (includes): Avoid libm.
102573         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
102575 2007-04-02  Bruno Haible  <bruno@clisp.org>
102577         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
102578         on IRIX.
102580 2007-04-02  Bruno Haible  <bruno@clisp.org>
102582         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
102583         x86 or x86_64 platforms running MacOS X.
102584         Reported by Ryan Schmidt <@ryandesign.com>.
102586 2007-04-02  Bruno Haible  <bruno@clisp.org>
102588         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
102589         i386.
102591 2007-04-01  Simon Josefsson  <simon@josefsson.org>
102593         * modules/crypto/arcfour: Moved from ../.
102594         * modules/crypto/arcfour-tests: Moved from ../.
102595         * modules/crypto/arctwo: Moved from ../.
102596         * modules/crypto/arctwo-tests: Moved from ../.
102597         * modules/crypto/des: Moved from ../.
102598         * modules/crypto/des-tests: Moved from ../.
102599         * modules/crypto/gc-arcfour: Moved from ../.
102600         * modules/crypto/gc-arcfour-tests: Moved from ../.
102601         * modules/crypto/gc-arctwo: Moved from ../.
102602         * modules/crypto/gc-arctwo-tests: Moved from ../.
102603         * modules/crypto/gc-des: Moved from ../.
102604         * modules/crypto/gc-des-tests: Moved from ../.
102605         * modules/crypto/gc-hmac-md5: Moved from ../.
102606         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
102607         * modules/crypto/gc-hmac-sha1: Moved from ../.
102608         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
102609         * modules/crypto/gc-md2: Moved from ../.
102610         * modules/crypto/gc-md2-tests: Moved from ../.
102611         * modules/crypto/gc-md4: Moved from ../.
102612         * modules/crypto/gc-md4-tests: Moved from ../.
102613         * modules/crypto/gc-md5: Moved from ../.
102614         * modules/crypto/gc-md5-tests: Moved from ../.
102615         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
102616         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
102617         * modules/crypto/gc-random: Moved from ../.
102618         * modules/crypto/gc-rijndael: Moved from ../.
102619         * modules/crypto/gc-rijndael-tests: Moved from ../.
102620         * modules/crypto/gc-sha1: Moved from ../.
102621         * modules/crypto/gc-sha1-tests: Moved from ../.
102622         * modules/crypto/gc-tests: Moved from ../.
102623         * modules/crypto/hmac-md5: Moved from ../.
102624         * modules/crypto/hmac-md5-tests: Moved from ../.
102625         * modules/crypto/hmac-sha1: Moved from ../.
102626         * modules/crypto/hmac-sha1-tests: Moved from ../.
102627         * modules/crypto/md2: Moved from ../.
102628         * modules/crypto/md2-tests: Moved from ../.
102629         * modules/crypto/md4: Moved from ../.
102630         * modules/crypto/md4-tests: Moved from ../.
102631         * modules/crypto/md5: Moved from ../.
102632         * modules/crypto/md5-tests: Moved from ../.
102633         * modules/crypto/memxor: Moved from ../.
102634         * modules/crypto/rijndael: Moved from ../.
102635         * modules/crypto/rijndael-tests: Moved from ../.
102636         * modules/crypto/sha1: Moved from ../.
102638 2007-03-30  James Youngman  <jay@gnu.org>
102640         * tests/test-stat-time.c (prepare_test): use chmod() rather than
102641         rename() to change the ctime of a file (because ctime is unaffected
102642         by rename on jfs2 on AIX 5.1).
102643         (main): Start by doing cleanup, in case a previous run failed leaving
102644         test files behind.
102646 2007-03-31  Bruno Haible  <bruno@clisp.org>
102648         Support old proprietary implementations of iconv.
102649         * modules/iconv_open: New file.
102650         * lib/iconv_.h: New file.
102651         * m4/iconv_h.m4: New file.
102652         * lib/iconv_open.c: New file.
102653         * lib/iconv_open-aix.gperf: New file.
102654         * lib/iconv_open-hpux.gperf: New file.
102655         * lib/iconv_open-irix.gperf: New file.
102656         * lib/iconv_open-osf.gperf: New file.
102657         * m4/iconv_open.m4: New file.
102658         * modules/linebreak (Depends-on): Add iconv_open.
102659         * modules/striconv (Depends-on): Likewise.
102660         * modules/striconveh (Depends-on): Likewise.
102661         * modules/unicodeio (Depends-on): Likewise.
102662         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
102663         (iconv_t)(-1).
102664         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
102665         conversion if cd is (iconv_t)(-1).
102666         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
102667         is not possible.
102669 2007-03-31  Bruno Haible  <bruno@clisp.org>
102671         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102672         work on Solaris either. Protect also second use of "autodetect_jp".
102674 2007-03-31  Bruno Haible  <bruno@clisp.org>
102676         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
102677         the function is not present.
102679 2007-03-31  Bruno Haible  <bruno@clisp.org>
102681         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
102682         the function is not present.
102684 2007-03-31  Bruno Haible  <bruno@clisp.org>
102686         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
102687         a bug in HP-UX iconv_open().
102689 2007-03-31  Bruno Haible  <bruno@clisp.org>
102691         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
102692         (Mathematics <math.h>): New section, add fpieee.
102693         (Input/output <stdio.h>): Add fseterr.
102694         (Mathematics <math.h>): New section, add printf-frexp.
102695         (Container data structures): Add sublist.
102696         (Core language properties): Add fpucw, inline.
102697         (Functions for greatest-width integer types <inttypes.h>): Add
102698         imaxabs, imaxdiv, inttypes.
102699         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
102700         isnanl-nolibm, ldexp.
102701         (Mathematics <math.h>): New section, add printf-frexpl.
102702         (Support for systems lacking POSIX:2001): Add fprintf-posix,
102703         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
102704         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
102705         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
102706         (Unicode string functions): Add unistr/u*-mbtoucr.
102707         (Java): Add javacomp-script, javaexec-script.
102708         (C#): Add csharpcomp-script, csharpexec-script.
102709         (Support for building libraries and executables): Add havelib,
102710         relocatable-*.
102711         (Support for maintaining and releasing projects): Renamed from
102712         'Support for maintaining and release projects'. Add announce-gen.
102714 2007-03-31  Bruno Haible  <bruno@clisp.org>
102716         * README: Talk primarily about git.
102717         (git and CVS): Renamed from CVS.
102718         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
102719         gnulib is available through git.
102720         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
102722 2007-03-30  Bruno Haible  <bruno@clisp.org>
102724         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
102725         * lib/poll_.h: Likewise.
102726         * lib/stat_.h: Likewise.
102727         * lib/sys_time_.h: Likewise.
102728         * lib/sysexit_.h: Likewise.
102729         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
102730         * lib/stdbool_.h: Likewise.
102731         * lib/byteswap_.h: Add double-inclusion guard.
102733 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
102735         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
102737 2007-03-30  Karl Berry  <karl@gnu.org>
102739         * config/srclist-update: double space after USA in the license
102740         substitution, since that's how it's usually (?) written.
102742 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
102744         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
102745         reported by Bruno Haible.
102747 2007-03-29  Bruno Haible  <bruno@clisp.org>
102749         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
102750         a bug in AIX iconv().
102752 2007-03-29  Bruno Haible  <bruno@clisp.org>
102754         * modules/ldexpl-tests: New file.
102755         * tests/test-ldexpl.c: New file.
102757 2007-03-29  Bruno Haible  <bruno@clisp.org>
102759         * lib/ldexpl.c: Include fpucw.h.
102760         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
102761         multiplication.
102762         * modules/ldexpl (Depends-on): Add fpucw.
102764 2007-03-29  Bruno Haible  <bruno@clisp.org>
102766         * modules/ldexpl: New file.
102767         * m4/ldexpl.m4: New file.
102768         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
102769         set.
102770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
102771         REPLACE_LDEXPL.
102772         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
102773         REPLACE_LDEXPL.
102774         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
102775         gl_FUNC_LDEXPL_WORKS.
102776         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
102777         * modules/mathl (Files): Remove lib/ldexpl.c.
102778         (Depends-on): Add ldexpl.
102780 2007-03-29  Bruno Haible  <bruno@clisp.org>
102782         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
102784 2007-03-29  Bruno Haible  <bruno@clisp.org>
102786         * tests/test-striconveh.c (main): Don't assume that a direct conversion
102787         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
102788         and possibly also HP-UX.
102789         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
102790         work on AIX, IRIX, HP-UX, OSF/1.
102791         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
102792         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
102793         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
102794         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
102795         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
102796         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
102798 2007-03-29  Bruno Haible  <bruno@clisp.org>
102800         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
102802 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102804         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
102805         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
102807 2007-03-29  Eric Blake  <ebb9@byu.net>
102809         * lib/acl-internal.h: Remove redundant include.
102810         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
102811         Cygwin when a file is locked.
102813 2007-03-29  Bruno Haible  <bruno@clisp.org>
102815         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
102816         file.
102817         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
102819 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
102821         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
102822         try to remove a parent directory if the child couldn't be removed
102823         (except for the first rmdir, which could fail because the child
102824         doesn't exist).  Problem reported by Jeff Blaine in
102825         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
102827 2007-03-28  Bruno Haible  <bruno@clisp.org>
102829         * lib/striconveh.c (utf8conv_carefully): New function.
102830         (mem_cd_iconveh_internal): Invoke it.
102832 2007-03-28  Bruno Haible  <bruno@clisp.org>
102834         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
102835         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
102836         input.
102837         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
102838         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
102839         unistr/u8-uctomb.
102841 2007-03-28  Bruno Haible  <bruno@clisp.org>
102843         * modules/unistr/u8-mbtoucr: New file.
102844         * lib/unistr/u8-mbtoucr.c: New file.
102845         * modules/unistr/u16-mbtoucr: New file.
102846         * lib/unistr/u16-mbtoucr.c: New file.
102847         * modules/unistr/u16-mbtoucr: New file.
102848         * lib/unistr/u16-mbtoucr.c: New file.
102849         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
102851 2007-03-27  Simon Josefsson  <simon@josefsson.org>
102852             Bruno Haible  <bruno@clisp.org>
102854         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
102855         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
102856         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
102858         * m4/stdio_h.m4: Add stubs for vasprintf too.
102860         * modules/stdio: Support vasprintf in sed command.
102862         * modules/vasprintf: Depend on stdio for prototypes.  Remove
102863         vasprintf.h.  Add stdio module indicator.
102865         * lib/stdio_.h: Declare asprintf and vasprintf, based on
102866         vasprintf.h.
102868         * lib/vasprintf.h: File removed.
102870         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
102871         * lib/vasprintf.c: Ditto.
102872         * lib/xvasprintf.c: Ditto.
102873         * tests/test-vasprintf-posix.c: Ditto.
102874         * tests/test-vasprintf.c: Ditto.
102876 2007-03-27  Bruno Haible  <bruno@clisp.org>
102878         Make vasnprintf multithread-safe.
102879         * lib/vasnprintf.c (decimal_point_char): New function.
102880         (VASNPRINTF): Use it.
102881         Suggested by Simon Josefsson.
102883 2007-03-27  Eric Blake  <ebb9@byu.net>
102885         Support sub-second birthtime on cygwin.
102886         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
102887         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
102888         (get_stat_birthtime): Also work with st_birthtim.
102890 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
102892         * lib/stat-time.h (USE_BIRTHTIME): Remove.
102893         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
102894         (get_stat_birthtime_ns): Do not try to use "spare" fields.
102895         (get_stat_birthtime_ns): Simplify compile-time tests.
102896         (get_stat_birthtime): Change the API to look like
102897         get_stat_mtime etc., except return a negative tv_nsec on error.
102898         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
102899         Don't check for "spare" fields.
102900         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
102901         or for struct stat.st_birthtime, as these tests aren't used.
102902         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
102904 2007-03-27  Bruno Haible  <bruno@clisp.org>
102906         * lib/stat-time.h: Include <sys/stat.h>.
102908 2007-03-27  James Youngman  <jay@gnu.org>
102910         * lib/stat-time.h (get_stat_birthtime): New function for
102911           retrieving st_birthtime as provided by UFS2 (hence *BSD).
102912         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
102913           and its variants.
102914         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
102915         * modules/stat-time-test: New file.
102916         * tests/test-stat-time.c: New test, devised by Bruno Haible.
102918 2007-03-26  Bruno Haible  <bruno@clisp.org>
102920         Better support of signalling NaNs.
102921         * lib/atanl.c: Include isnanl.h.
102922         (atanl): Perform test for NaN at the beginning of the function and
102923         through a call to isnanl.
102924         * lib/cosl.c: Include isnanl.h.
102925         (cosl): Perform test for NaN at the beginning of the function and
102926         through a call to isnanl.
102927         * lib/ldexpl.c: Include isnanl.h.
102928         (ldexpl): Perform test for NaN through a call to isnanl.
102929         * lib/logl.c: Include isnanl.h.
102930         (logl): Perform test for NaN at the beginning of the function and
102931         through a call to isnanl.
102932         * lib/sinl.c: Include isnanl.h.
102933         (sinl): Perform test for NaN at the beginning of the function and
102934         through a call to isnanl.
102935         * lib/sqrtl.c: Include isnanl.h.
102936         (sqrtl): Perform test for NaN at the beginning of the function and
102937         through a call to isnanl.
102938         * lib/tanl.c: Include isnanl.h.
102939         (tanl): Perform test for NaN at the beginning of the function and
102940         through a call to isnanl.
102941         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
102942         * modules/mathl (Depends-on): Add isnanl.
102944 2007-03-26  Eric Blake  <ebb9@byu.net>
102946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
102947         regression in logic sense of previous patch.
102949 2007-03-26  Bruno Haible  <bruno@clisp.org>
102951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
102952         unportable shell command "if ! ...".
102953         Reported by Ralf Wildenhues.
102955 2007-03-25  Bruno Haible  <bruno@clisp.org>
102957         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
102958         <sysexits.h> file, and only add EX_CONFIG.
102959         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
102960         absolute file name and whether it is sufficient. Substitute also
102961         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
102962         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
102963         ABSOLUTE_SYSEXITS_H into sysexits.h.
102965 2007-03-25  Bruno Haible  <bruno@clisp.org>
102967         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
102968         hints is NULL.
102970 2007-03-25  Bruno Haible  <bruno@clisp.org>
102972         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
102973         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
102975 2007-03-25  Bruno Haible  <bruno@clisp.org>
102977         * lib/vasnprintf.c: Include langinfo.h.
102978         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
102979         multithread-safe.
102980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
102981         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
102982         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
102983         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
102984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
102985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
102986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
102987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
102988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
102989         Reported by Simon Josefsson.
102991 2007-03-25  Bruno Haible  <bruno@clisp.org>
102993         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
102994         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
102995         * modules/vasnprintf (Depends-on): Add stdint.
102997 2007-03-25  Bruno Haible  <bruno@clisp.org>
102999         * modules/fpieee: New file.
103000         * m4/fpieee.m4: New file.
103001         * modules/isnan-nolibm (Depends-on): Add fpieee.
103002         * modules/isnanl-nolibm (Depends-on): Add fpieee.
103003         * modules/isnanl (Depends-on): Add fpieee.
103005 2007-03-25  Bruno Haible  <bruno@clisp.org>
103007         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
103009 2007-03-25  Bruno Haible  <bruno@clisp.org>
103011         Avoid test failures on IRIX 6.5.
103012         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
103013         (main): Use it.
103014         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
103015         macros.
103016         (main): Use them.
103018 2007-03-25  Bruno Haible  <bruno@clisp.org>
103020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
103021         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
103022         exists but doesn't work.
103023         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
103024         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
103025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
103026         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
103027         math.h.
103029 2007-03-25  Bruno Haible  <bruno@clisp.org>
103031         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
103032         returns inf. Needed on IRIX 6.5.
103034 2007-03-25  Bruno Haible  <bruno@clisp.org>
103036         * tests/test-frexpl.c: Include isnanl-nolibm.h.
103037         (main): Use isnanl instead of x != x idiom.
103038         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
103040         * tests/test-frexp.c: Include isnan.h.
103041         (main): Use isnan instead of x != x idiom.
103042         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
103044 2007-03-25  Bruno Haible  <bruno@clisp.org>
103046         * tests/test-frexp.c (NaN): New function/macro.
103047         (main): Use it instead of 0.0 / 0.0.
103048         * tests/test-isnan.c (NaN): New function/macro.
103049         (main): Use it instead of 0.0 / 0.0.
103050         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
103051         (test_function): Use it instead of 0.0 / 0.0.
103052         * tests/test-vasprintf-posix.c (NaN): New function/macro.
103053         (test_function): Use it instead of 0.0 / 0.0.
103054         * tests/test-snprintf-posix.h (NaN): New function/macro.
103055         (test_function): Use it instead of 0.0 / 0.0.
103056         * tests/test-sprintf-posix.h (NaN): New function/macro.
103057         (test_function): Use it instead of 0.0 / 0.0.
103058         * tests/test-fprintf-posix.h (NaN): New function/macro.
103059         (test_function): Use it instead of 0.0 / 0.0.
103060         * tests/test-printf-posix.h (NaN): New function/macro.
103061         (test_function): Use it instead of 0.0 / 0.0.
103063         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
103065 2007-03-25  Bruno Haible  <bruno@clisp.org>
103067         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
103069 2007-03-25  Bruno Haible  <bruno@clisp.org>
103071         * lib/regexec.c (merge_state_with_log): Make static.
103073 2007-03-25  Bruno Haible  <bruno@clisp.org>
103075         * lib/trigl.c (kernel_rem_pio2): Make static.
103077 2007-03-25  Bruno Haible  <bruno@clisp.org>
103079         * lib/sincosl.c (sincosl_table): Make static.
103081 2007-03-25  Bruno Haible  <bruno@clisp.org>
103083         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
103084         if the compiler does not support C99.
103086 2007-03-25  Bruno Haible  <bruno@clisp.org>
103088         * modules/time (Makefile.am): Ensure all rule action lines start with a
103089         tab.
103091 2007-03-24  Bruno Haible  <bruno@clisp.org>
103093         * modules/tsearch-tests: New file.
103094         * tests/test-tsearch.sh: New file.
103095         * tests/test-tsearch.c: New file, mostly copied from glibc.
103097         * modules/search-tests: New file.
103098         * tests/test-search.c: New file.
103100         * modules/search: New file.
103101         * lib/search_.h: New file, incorporating lib/tsearch.h.
103102         * m4/search_h.m4: New file.
103103         * lib/tsearch.h: Remove file.
103104         * lib/tsearch.c: Include search.h instead of tsearch.h.
103105         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
103106         HAVE_TSEARCH.
103107         * modules/tsearch (Files): Remove lib/tsearch.h.
103108         (Depends-on): Add search.
103109         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
103110         (Include): Change tsearch.h into search.h.
103112 2007-03-24  Bruno Haible  <bruno@clisp.org>
103114         * modules/fpucw: New file.
103115         * lib/fpucw.h: New file.
103116         * lib/frexp.c: Include fpucw.h.
103117         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103118         (FUNC): Use them.
103119         * lib/printf-frexp.c: Include fpucw.h.
103120         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
103121         (FUNC): Use them.
103122         * lib/vasnprintf.c: Include fpucw.h.
103123         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
103124         'long double' calculations.
103125         * tests/test-frexpl.c: Include fpucw.h.
103126         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103127         * tests/test-printf-frexpl.c: Include fpucw.h.
103128         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
103129         * modules/frexpl (Depends-on): Add fpucw.
103130         * modules/printf-frexpl (Depends-on): Likewise.
103131         * modules/fprintf-posix (Depends-on): Likewise.
103132         * modules/snprintf-posix (Depends-on): Likewise.
103133         * modules/sprintf-posix (Depends-on): Likewise.
103134         * modules/vasnprintf-posix (Depends-on): Likewise.
103135         * modules/vasprintf-posix (Depends-on): Likewise.
103136         * modules/vfprintf-posix (Depends-on): Likewise.
103137         * modules/vsnprintf-posix (Depends-on): Likewise.
103138         * modules/vsprintf-posix (Depends-on): Likewise.
103139         * modules/frexpl-tests (Depends-on): Likewise.
103140         * modules/printf-frexpl-tests (Depends-on): Likewise.
103142 2007-03-24  Bruno Haible  <bruno@clisp.org>
103144         * lib/float+.h: New file.
103145         * lib/isnan.c: Include float+.h.
103146         (SIZE): New macro.
103147         (FUNC): Compare only SIZE bytes of the value.
103148         * lib/vasnprintf.c: Include float+.h.
103149         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
103150         SIZEOF_LDBL or SIZEOF_DBL bytes.
103151         * modules/isnan-nolibm (Files): Add lib/float+.h.
103152         * modules/isnanl-nolibm (Files): Add lib/float+.h.
103153         * modules/isnanl (Files): Add lib/float+.h.
103154         * modules/vasnprintf (Files): Add lib/float+.h.
103156 2007-03-24  Bruno Haible  <bruno@clisp.org>
103158         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
103159         include isnanl-nolibm.h.
103161 2007-03-24  Bruno Haible  <bruno@clisp.org>
103163         * tests/test-read-file.c (main): Don't produce spurious output for
103164         expected situations. Make the test fail if it encountered unexpected
103165         results.
103167 2007-03-24  Bruno Haible  <bruno@clisp.org>
103169         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
103170         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
103172 2007-03-24  Bruno Haible  <bruno@clisp.org>
103174         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
103176 2007-03-24  Bruno Haible  <bruno@clisp.org>
103178         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
103179         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
103181         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
103182         * modules/utf8-ucs4: Turn into a symbolic link to module
103183         unistr/u8-mbtouc.
103185         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
103186         utf8-ucs4-unsafe.
103187         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
103188         unistr/u8-mbtouc-unsafe.
103190         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
103191         * modules/utf16-ucs4: Turn into a symbolic link to module
103192         unistr/u16-mbtouc.
103194         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
103195         utf16-ucs4-unsafe.
103196         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
103197         unistr/u16-mbtouc-unsafe.
103199         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
103200         * modules/ucs4-utf8: Turn into a symbolic link to module
103201         unistr/u8-ubtomb.
103203         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
103204         * modules/ucs4-utf16: Turn into a symbolic link to module
103205         unistr/u16-ubtomb.
103207 2007-03-24  Bruno Haible  <bruno@clisp.org>
103209         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
103210         Enable the function only if HAVE_INLINE.
103211         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
103212         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103213         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
103214         Enable the function only if HAVE_INLINE.
103215         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
103216         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
103217         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
103218         Enable the function only if HAVE_INLINE.
103219         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
103220         Enable the function only if HAVE_INLINE.
103221         * modules/utf8-ucs4: Update.
103222         * modules/utf8-ucs4-unsafe: Update.
103223         * modules/utf16-ucs4: Update.
103224         * modules/utf16-ucs4-unsafe: Update.
103225         * modules/ucs4-utf8: Update.
103226         * modules/ucs4-utf16: Update.
103228 2007-03-24  Bruno Haible  <bruno@clisp.org>
103230         * lib/utf8-ucs4.h: Remove file.
103231         * lib/utf8-ucs4-unsafe.h: Remove file.
103232         * lib/utf16-ucs4.h: Remove file.
103233         * lib/utf16-ucs4-unsafe.h: Remove file.
103234         * lib/ucs4-utf8.h: Remove file.
103235         * lib/ucs4-utf16.h: Remove file.
103236         * lib/unistr.h: Include their previous contents.
103237         * m4/utf-ucs4.m4: Remove file.
103238         * m4/ucs4-utf.m4: Remove file.
103239         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
103240         (Depends-on): Add unistr/base.
103241         (configure.ac): Remove gl_UTF_UCS4.
103242         (Makefile.am): Update.
103243         (Include): Change to unistr.h.
103244         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
103245         (Depends-on): Add unistr/base.
103246         (configure.ac): Remove gl_UTF_UCS4.
103247         (Makefile.am): Update.
103248         (Include): Change to unistr.h.
103249         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
103250         (Depends-on): Add unistr/base.
103251         (configure.ac): Remove gl_UTF_UCS4.
103252         (Makefile.am): Update.
103253         (Include): Change to unistr.h.
103254         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
103255         (Depends-on): Add unistr/base.
103256         (configure.ac): Remove gl_UTF_UCS4.
103257         (Makefile.am): Update.
103258         (Include): Change to unistr.h.
103259         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
103260         (Depends-on): Add unistr/base.
103261         (configure.ac): Remove gl_UCS4_UTF.
103262         (Makefile.am): Update.
103263         (Include): Change to unistr.h.
103264         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
103265         (Depends-on): Add unistr/base.
103266         (configure.ac): Remove gl_UCS4_UTF.
103267         (Makefile.am): Update.
103268         (Include): Change to unistr.h.
103269         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
103270         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
103271         utf8-ucs4-unsafe.h.
103272         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
103273         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
103274         utf16-ucs4-unsafe.h.
103275         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
103276         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
103277         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
103278         * lib/unistr/u8-strchr.c: Likewise.
103279         * lib/unistr/u8-strrchr.c: Likewise.
103280         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
103281         * lib/unistr/u16-strchr.c: Likewise.
103282         * lib/unistr/u16-strrchr.c: Likewise.
103283         * lib/striconveh.c: Update.
103284         * lib/linebreak.c: Update.
103286 2007-03-24  Bruno Haible  <bruno@clisp.org>
103288         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
103289         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
103291 2007-03-22  Bruno Haible  <bruno@clisp.org>
103293         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
103295 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
103297         * MODULES.html.sh (File system functions): New module write-any-file.
103298         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
103299         * m4/write-any-file.m4: New files.
103301 2007-03-23  Eric Blake  <ebb9@byu.net>
103303         * gnulib-tool: Rearrange space-tab sequences, since some editors
103304         like to eat them.
103306 2007-03-23  Eric Blake  <ebb9@byu.net>
103308         * lib/version-etc.c (version_etc_va): Update license wording to
103309         be more concise.  Recommended by Richard Stallman.
103311 2007-03-22  Bruno Haible  <bruno@clisp.org>
103313         * lib/poll.c (MSG_PEEK): New fallback definition.
103315 2007-03-22  Bruno Haible  <bruno@clisp.org>
103317         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
103318         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
103319         (main): Update.
103320         Fixes a compilation error on BeOS.
103322 2007-03-22  Bruno Haible  <bruno@clisp.org>
103324         * modules/frexpl-tests: New file.
103325         * tests/test-frexpl.c: New file.
103327         * modules/frexpl: New file.
103328         * m4/frexpl.m4: New file.
103329         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
103330         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
103331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
103332         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
103333         (Depends-on): Add frexpl. Remove isnanl-nolibm.
103334         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
103336 2007-03-22  Bruno Haible  <bruno@clisp.org>
103338         * lib/frexpl.c: Share code with lib/frexp.c.
103339         * modules/mathl (Files): Add lib/frexp.c.
103340         (Depends-on): Add isnanl-nolibm.
103342 2007-03-22  Bruno Haible  <bruno@clisp.org>
103344         * modules/printf-frexp (Files): Add m4/frexp.m4.
103345         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
103346         only if the found frexp function actually works.
103348 2007-03-22  Bruno Haible  <bruno@clisp.org>
103350         * lib/frexp.c: Remove older implementation that uses divisions.
103352 2007-03-21  Bruno Haible  <bruno@clisp.org>
103354         * modules/frexp-tests: New file.
103355         * tests/test-frexp.c: New file.
103357         * modules/frexp: New file.
103358         * lib/frexp.c: New file.
103359         * m4/frexp.m4: New file.
103360         * lib/math_.h (frexp): New declaration.
103361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
103362         REPLACE_FREXP.
103363         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
103365 2007-03-21  Bruno Haible  <bruno@clisp.org>
103367         * modules/isnanl-tests: New file.
103368         * tests/test-isnanl.c: New file.
103370         * modules/isnanl: New file.
103371         * lib/isnanl.h: New file.
103372         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
103373         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
103374         gl_FUNC_ISNANL_WORKS.
103375         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
103376         New macros.
103378 2007-03-21  Bruno Haible  <bruno@clisp.org>
103380         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
103381         lib/isnanl.h.
103382         (Include): Update.
103383         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
103384         * lib/vasnprintf.c: Update.
103385         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
103386         tests/test-isnanl.h, remove tests/test-isnanl.c.
103387         (Makefile.am): Update.
103388         * tests/test-isnanl-nolibm.c: New file.
103389         * tests/test-isnanl.h: New file.
103390         * tests/test-isnanl.c: Remove file.
103392 2007-03-21  Jim Meyering  <jim@meyering.net>
103394         When trying to open ".", treat ESTALE like EACCES.
103395         * lib/savewd.c (savewd_save): Resort to forking not just upon
103396         failure with EACCES, but also when errno is ESTALE.
103398 2007-03-20  Bruno Haible  <bruno@clisp.org>
103400         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
103401         Needed on AIX 5.1. Reported by Matthew Woehlke.
103403 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103405         Suggestions by Bruno Haible:
103406         * lib/acl-internal.h: Include "gettext.h" rather than rolling
103407         our own.
103408         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
103409         * modules/acl (Depends-on): Add gettext.
103411 2007-03-19  Bruno Haible  <bruno@clisp.org>
103413         * modules/iconvme: Remove file.
103414         * lib/iconvme.h: Remove file.
103415         * lib/iconvme.c: Remove file.
103416         * m4/iconvme.m4: Remove file.
103418 2007-03-19  Bruno Haible  <bruno@clisp.org>
103420         * doc/relocatable-maint.texi: Break long shell script line.
103421         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103423 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103425         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
103426         handle file_has_acl.
103427         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
103428         * lib/acl.c: Move header inclusions and related macro defns into
103429         lib/acl-internal.h.
103430         (S_ISLNK): Remove defn, since that's now done for us.
103431         (file_has_acl): Move to lib/file-has-acl.c.
103432         Call acl_trivial if available.  This is the crucial part of the fix.
103433         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
103434         shared within the library.  Rewrite a bit, partly to make it compatible
103435         with the GNU coding style.
103436         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
103437         Remove unnecessary double-quotes.
103438         Don't test for acl_to_text; the build will catch that.
103439         Replace acl_entries if it doesn't exist and it is needed.
103440         Check for -lsec and acl_trivial (as used on Solaris 10).
103441         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
103442         lib/file-has-acl.c.
103443         (Depends-on): Add sys_stat, for S_ISLNK.
103445 2007-03-19  Ben Pfaff  <blp@gnu.org>
103447         * doc/gnulib.texi: Fix typos.
103448         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
103450 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
103452         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
103453         If size is zero here, buf must be zero.
103455 2007-03-19  Simon Josefsson  <simon@josefsson.org>
103457         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
103458         <bruno@clisp.org>.
103460 2007-03-18  Bruno Haible  <bruno@clisp.org>
103462         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
103463         Suggested by Eric Blake.
103465 2007-03-18  Ben Pfaff  <blp@gnu.org>
103467         * doc/relocatable.texi: Recommend using as prefix a directory
103468         that does not exist and will never be created.  Based on
103469         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
103470         and others.
103472 2007-03-17  Bruno Haible  <bruno@clisp.org>
103474         * lib/fchownat.c: Include lchown.h.
103476 2007-03-17  Bruno Haible  <bruno@clisp.org>
103478         Fix endless loop when the given allocated size was > INT_MAX.
103479         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
103480         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
103481         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
103482         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
103483         * lib/sprintf.c (sprintf): Likewise.
103485 2007-03-17  Bruno Haible  <bruno@clisp.org>
103487         * tests/test-argp-2.sh (func_compare): Output a context diff.
103489 2007-03-17  Bruno Haible  <bruno@clisp.org>
103491         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
103492         locale's decimal-point character.
103494 2007-03-17  Bruno Haible  <bruno@clisp.org>
103496         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
103497         before comparing it. Needed because on some platforms (e.g. x86) a
103498         'long double' occupies less bytes than sizeof (long double).
103500 2007-03-17  Bruno Haible  <bruno@clisp.org>
103502         * tests/test-crc.c (main): Make printf statements 64-bit clean.
103503         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
103504         * tests/test-getaddrinfo.c (simple): Likewise.
103505         * tests/test-read-file.c (main): Likewise.
103507 2007-03-17  Bruno Haible  <bruno@clisp.org>
103509         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
103511 2007-03-17  Bruno Haible  <bruno@clisp.org>
103513         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
103514         unused variable.
103516 2007-03-17  Bruno Haible  <bruno@clisp.org>
103518         * tests/test-c-strcasecmp.c: Include c-strcase.h.
103519         * tests/test-c-strncasecmp.c: Likewise.
103521 2007-03-17  Bruno Haible  <bruno@clisp.org>
103523         * modules/stdlib (Depends-on): Add unistd.
103524         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
103525         Needed for MacOS X 10.3.
103527 2007-03-17  Bruno Haible  <bruno@clisp.org>
103529         * lib/unistr/u-strdup.h: Include <stdlib.h>.
103531 2007-03-17  Bruno Haible  <bruno@clisp.org>
103533         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
103535 2007-03-17  Bruno Haible  <bruno@clisp.org>
103537         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
103538         to reflect files copied from gnulib (with or without modifications).
103539         Suggested by Jim Meyering.
103541 2007-03-17  Eric Blake  <ebb9@byu.net>
103543         * NEWS: Document stdlib change from 2007-02-18.
103545 2007-03-17  Jim Meyering  <jim@meyering.net>
103547         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
103548         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
103549         someone uses a name containing shell meta-characters.
103550         Reported by Alfred M. Szmidt.
103552         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
103554 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103556         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
103557         and copy gettext configuration files only if configure.ac contains
103558         a use of AM_GNU_GETTEXT_VERSION.
103560 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
103562         * build-aux/bootstrap (gnulib_name): New variable.
103563         (gnulib_tool_options): Use it.
103565 2007-03-13  Simon Josefsson  <simon@josefsson.org>
103567         * tests/test-des.c: Use new namespace.
103569 2007-03-15  Bruno Haible  <bruno@clisp.org>
103571         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
103572         Reported by James Youngman <jay@gnu.org>.
103574 2007-03-15  Bruno Haible  <bruno@clisp.org>
103576         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
103577         declared prototype. Needed with cc on OSF/1 5.1.
103579 2007-03-15  Bruno Haible  <bruno@clisp.org>
103581         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
103582         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
103583         (struct gl_list_implementation): Add dispose_fn argument to the
103584         'create_empty', 'create' methods.
103585         (struct gl_list_impl_base): Add field 'dispose_fn'.
103586         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
103587         argument.
103588         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
103589         dispose_fn argument.
103590         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
103591         dispose_fn on the dropped values.
103592         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
103593         dispose_fn argument.
103594         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
103595         dropped values.
103596         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
103597         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103598         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
103599         (gl_tree_remove_node): Call dispose_fn on the dropped value.
103600         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
103601         argument.
103602         (gl_tree_list_free): Call dispose_fn on the dropped values.
103603         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
103604         the dropped values.
103605         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
103606         Add dispose_fn argument.
103607         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
103608         Call dispose_fn on the dropped values.
103609         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
103610         Add dispose_fn argument.
103611         (gl_sublist_create): Initialize the 'dispose_fn' field.
103612         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
103613         * tests/test-array_list.c (main): Update.
103614         * tests/test-carray_list.c (main): Update.
103615         * tests/test-avltree_list.c (main): Update.
103616         * tests/test-rbtree_list.c (main): Update.
103617         * tests/test-avltreehash_list.c (main): Update.
103618         * tests/test-rbtreehash_list.c (main): Update.
103619         * tests/test-linked_list.c (main): Update.
103620         * tests/test-linkedhash_list.c (main): Update.
103621         * tests/test-array_oset.c (main): Update.
103623 2007-03-15  Bruno Haible  <bruno@clisp.org>
103625         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
103626         (gl_oset_create_empty): Add dispose_fn argument.
103627         (struct gl_oset_implementation): Add dispose_fn argument to
103628         'create_empty' method.
103629         (struct gl_oset_impl_base): Add dispose_fn field.
103630         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
103631         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
103632         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
103633         values.
103634         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
103635         (gl_tree_oset_free): Call dispose_fn on the dropped values.
103636         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103637         dropped value.
103638         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
103639         dropped value.
103640         * tests/test-array_oset.c (main): Update.
103641         * tests/test-avltree_oset.c (main): Update.
103642         * tests/test-rbtree_oset.c (main): Update.
103643         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
103645 2007-03-13  Bruno Haible  <bruno@clisp.org>
103647         * tests/test-stdbool.c (i): Update after last patch.
103649 2007-03-12  Bruno Haible  <bruno@clisp.org>
103651         * lib/quotearg.c: Include <wctype.h> early, before the definition of
103652         the iswprint macro. Needed on Solaris 2.5.1.
103654 2007-03-12  Bruno Haible  <bruno@clisp.org>
103656         * tests/test-printf-frexp.c (main): Declare x as volatile.
103658 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103660         * doc/gnulib.texi (Build robot for gnulib): New section.
103662 2007-03-12  Jim Meyering  <jim@meyering.net>
103664         * build-aux/bootstrap: New file.
103665         * build-aux/bootstrap.conf: New file, from coreutils.
103667 2007-03-11  Bruno Haible  <bruno@clisp.org>
103669         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
103671 2007-03-12  Simon Josefsson  <simon@josefsson.org>
103673         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
103674         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
103675         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
103677 2007-03-11  Bruno Haible  <bruno@clisp.org>
103679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
103680         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
103682 2007-03-11  Bruno Haible  <bruno@clisp.org>
103684         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
103685         formula. Needed for SunPRO C 5.0.
103687 2007-03-11  Bruno Haible  <bruno@clisp.org>
103689         * modules/long-options (Depends-on): Add getopt.
103691 2007-03-11  Bruno Haible  <bruno@clisp.org>
103693         * modules/modechange (Depends-on): Add stdbool.
103695 2007-03-11  Bruno Haible  <bruno@clisp.org>
103697         * modules/i-ring (Depends-on): Add stdbool.
103699 2007-03-11  Bruno Haible  <bruno@clisp.org>
103701         * modules/gc-des (Depends-on): Add stdbool.
103703 2007-03-11  Bruno Haible  <bruno@clisp.org>
103705         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
103707 2007-03-11  Bruno Haible  <bruno@clisp.org>
103709         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
103711 2007-03-11  Bruno Haible  <bruno@clisp.org>
103713         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
103715 2007-03-11  Bruno Haible  <bruno@clisp.org>
103717         * lib/vasnprintf.c (sprintf): Undefine.
103719 2007-03-11  Bruno Haible  <bruno@clisp.org>
103721         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
103722         initializers in SunPRO C and Compaq C compilers.
103724 2007-03-11  Bruno Haible  <bruno@clisp.org>
103726         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
103727         decrementing code ANSI C compliant.
103729 2007-03-11  Bruno Haible  <bruno@clisp.org>
103731         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
103732         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
103734 2007-03-11  Bruno Haible  <bruno@clisp.org>
103736         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
103737         <stdbool.h> substitute doesn't pass.
103739 2007-03-11  Bruno Haible  <bruno@clisp.org>
103741         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
103743 2007-03-11  Bruno Haible  <bruno@clisp.org>
103745         * gnulib-tool (func_create_megatestdir): Create also an autobuild
103746         script, for submission to autobuild.josefsson.org.
103748 2007-03-10  Bruno Haible  <bruno@clisp.org>
103750         * modules/canonicalize-lgpl-tests: New file.
103751         * tests/test-canonicalize-lgpl.sh: New file.
103752         * tests/test-canonicalize-lgpl.c: New file.
103754         * modules/c-strcase-tests: New file.
103755         * tests/test-c-strcase.sh: New file.
103756         * tests/test-c-strcasecmp.c: New file.
103757         * tests/test-c-strncasecmp.c: New file.
103759         * modules/atexit-tests: New file.
103760         * tests/test-atexit.sh: New file.
103761         * tests/test-atexit.c: New file.
103763 2007-03-10  Bruno Haible  <bruno@clisp.org>
103765         * tests/test-binary-io.sh: Use temporary filenames that are not so
103766         likely to clash with those of other tests (in a parallel make).
103767         * tests/test-binary-io.c: Likewise.
103769 2007-03-10  Bruno Haible  <bruno@clisp.org>
103771         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
103772         fallback; use #error instead.
103773         Suggested by Simon Josefsson.
103775 2007-03-10  Bruno Haible  <bruno@clisp.org>
103777         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
103778         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
103779         first and the last.
103781 2007-03-10  Bruno Haible  <bruno@clisp.org>
103783         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
103785 2007-03-10  Bruno Haible  <bruno@clisp.org>
103787         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
103788         "make distcheck".
103789         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
103790         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
103791         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
103793 2007-03-10  Bruno Haible  <bruno@clisp.org>
103795         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
103796         variable.
103797         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
103798         variable.
103800 2007-03-09  Eric Blake  <ebb9@byu.net>
103801         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
103803         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
103804         types are not being provided by gnulib.
103805         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
103806         types are supported.
103808 2007-03-10  Bruno Haible  <bruno@clisp.org>
103810         * lib/stdio_.h (__attribute__): New macro.
103811         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
103812         vsprintf): Specify __attribute__ __format__ for GCC.
103813         Suggested by Eric Blake.
103815 2007-03-09  Bruno Haible  <bruno@clisp.org>
103817         * modules/printf-posix-tests: New file.
103818         * tests/test-printf-posix.sh: New file.
103819         * tests/test-printf-posix.c: New file.
103821         * modules/printf-posix: New file.
103822         * lib/printf.c: New file.
103823         * m4/printf-posix-rpl.m4: New file.
103824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
103825         REPLACE_PRINTF.
103826         * lib/stdio_.h (printf): New declaration.
103827         (format, __format__, ____printf____, ____scanf____, ____strftime____,
103828         ____strfmon____): New macros.
103829         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
103830         REPLACE_PRINTF.
103832 2007-03-09  Bruno Haible  <bruno@clisp.org>
103834         * tests/test-vasnprintf-posix2.sh: New file.
103835         * tests/test-vasnprintf-posix2.c: New file.
103836         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
103837         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
103838         (Makefile.am): Activate test-vasnprintf-posix2.sh.
103840         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
103841         a locale dependent decimal point, rather than always '.'.
103843 2007-03-09  Eric Blake  <ebb9@byu.net>
103845         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
103846         spite of platforms like Tandem/NSK that define it to -1.
103848 2007-03-08  Bruno Haible  <bruno@clisp.org>
103850         * modules/vprintf-posix-tests: New file.
103851         * tests/test-vprintf-posix.sh: New file.
103852         * tests/test-vprintf-posix.c: New file.
103853         * tests/test-printf-posix.h: New file.
103855         * modules/vprintf-posix: New file.
103856         * lib/vprintf.c: New file.
103857         * m4/vprintf-posix.m4: New file.
103858         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
103859         REPLACE_VPRINTF.
103860         * lib/stdio_.h (vprintf): New declaration.
103861         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
103862         REPLACE_VPRINTF.
103864 2007-03-08  Bruno Haible  <bruno@clisp.org>
103866         * modules/fprintf-posix-tests: New file.
103867         * tests/test-fprintf-posix.sh: New file.
103868         * tests/test-fprintf-posix.c: New file.
103870         * modules/fprintf-posix: New file.
103871         * lib/fprintf.c: New file.
103872         * m4/fprintf-posix.m4: New file.
103873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
103874         REPLACE_FPRINTF.
103875         * lib/stdio_.h (fprintf): New declaration.
103876         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
103877         REPLACE_FPRINTF.
103879 2007-03-08  Bruno Haible  <bruno@clisp.org>
103881         * modules/vfprintf-posix-tests: New file.
103882         * tests/test-vfprintf-posix.sh: New file.
103883         * tests/test-vfprintf-posix.c: New file.
103884         * tests/test-fprintf-posix.h: New file.
103885         * tests/test-fprintf-posix.out: New file.
103887         * modules/vfprintf-posix: New file.
103888         * lib/vfprintf.c: New file.
103889         * m4/vfprintf-posix.m4: New file.
103890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
103891         REPLACE_VFPRINTF.
103892         * lib/stdio_.h (vfprintf): New declaration.
103893         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
103894         REPLACE_VFPRINTF.
103896 2007-03-08  Bruno Haible  <bruno@clisp.org>
103898         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
103900 2007-03-08  Bruno Haible  <bruno@clisp.org>
103902         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
103903         instead of 'expr' invocations.
103904         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103905         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103906         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103907         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103908         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103909         Suggested by Paul Eggert.
103911 2007-03-08  Bruno Haible  <bruno@clisp.org>
103913         * modules/fseterr-tests: New file.
103914         * tests/test-fseterr.c: New file.
103916         * modules/fseterr: New file.
103917         * lib/fseterr.h: New file.
103918         * lib/fseterr.c: New file.
103920 2007-03-08  Bruno Haible  <bruno@clisp.org>
103922         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
103923         * lib/getopt_.h: Likewise.
103924         * lib/mbswidth.h: Likewise.
103925         * lib/setenv.h: Likewise.
103926         * lib/vasnprintf.h: Likewise.
103927         * lib/vasprintf.h: Likewise.
103928         * lib/verror.h: Likewise.
103929         * lib/xsetenv.h: Likewise.
103930         * lib/xvasprintf.h: Likewise.
103932 2007-03-08  Jim Meyering  <jim@meyering.net>
103934         * users.txt: Add parted.
103936         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
103938 2007-03-07  Bruno Haible  <bruno@clisp.org>
103940         * m4/printf.m4: Make the shell script snippets copy&pastable.
103942 2007-03-02  Bruno Haible  <bruno@clisp.org>
103944         * lib/netinet_in_.h: New file.
103945         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
103946         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
103947         * modules/netinet_in (Files): Add lib/netinet_in_.h.
103948         (Depends-on): Add absolute-header.
103949         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
103950         into netinet/in.h.
103952 2007-03-03  Bruno Haible  <bruno@clisp.org>
103954         * lib/sys_select_.h: New file.
103955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
103956         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
103957         * modules/sys_select (Files): Add lib/sys_select_.h.
103958         (Depends-on): Add absolute-header.
103959         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
103960         into sys/select.h.
103962 2007-03-02  Bruno Haible  <bruno@clisp.org>
103964         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
103965         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
103966         values.
103967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
103968         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
103969         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
103970         * modules/sys_socket (Depends-on): Add absolute-header.
103971         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
103972         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
103973         (Include): Remove requirement of inclusion of <sys/types.h>.
103975 2007-03-02  Bruno Haible  <bruno@clisp.org>
103977         * lib/byteswap_.h (bswap_32): Fix formula.
103979 2007-03-06  Bruno Haible  <bruno@clisp.org>
103981         * modules/sprintf-posix-tests: New file.
103982         * tests/test-sprintf-posix.c: New file.
103984         * modules/sprintf-posix: New file.
103985         * lib/sprintf.c: New file.
103986         * m4/sprintf-posix.m4: New file.
103987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
103988         REPLACE_SPRINTF.
103989         * lib/stdio_.h (sprintf): New declaration.
103990         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
103991         REPLACE_SPRINTF.
103993 2007-03-06  Bruno Haible  <bruno@clisp.org>
103995         * modules/vsprintf-posix-tests: New file.
103996         * tests/test-vsprintf-posix.c: New file.
103997         * tests/test-sprintf-posix.h: New file.
103999         * modules/vsprintf-posix: New file.
104000         * lib/vsprintf.c: New file.
104001         * m4/vsprintf-posix.m4: New file.
104002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
104003         REPLACE_VSPRINTF.
104004         * lib/stdio_.h (vsprintf): New declaration.
104005         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
104006         REPLACE_VSPRINTF.
104008 2007-03-06  Bruno Haible  <bruno@clisp.org>
104010         * modules/vsnprintf (Depend-on): Remove minmax.
104012 2007-03-06  Bruno Haible  <bruno@clisp.org>
104014         * modules/snprintf-posix-tests: New file.
104015         * tests/test-snprintf-posix.c: New file.
104017         * modules/snprintf-posix: New file.
104018         * m4/snprintf-posix.m4: New file.
104019         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
104020         gl_FUNC_SNPRINTF.
104021         (gl_FUNC_SNPRINTF): Invoke it.
104022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
104023         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
104024         is set.
104025         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
104027 2007-03-06  Bruno Haible  <bruno@clisp.org>
104029         * modules/vsnprintf-posix-tests: New file.
104030         * tests/test-vsnprintf-posix.c: New file.
104031         * tests/test-snprintf-posix.h: New file.
104033         * modules/vsnprintf-posix: New file.
104034         * m4/vsnprintf-posix.m4: New file.
104035         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
104036         gl_FUNC_VSNPRINTF.
104037         (gl_FUNC_VSNPRINTF): Invoke it.
104038         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
104039         * lib/stdio_.h (vsnprintf): Define as a replacement if
104040         REPLACE_VSNPRINTF is set.
104041         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
104043 2007-03-06  Bruno Haible  <bruno@clisp.org>
104045         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
104046         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
104048 2007-03-06  Bruno Haible  <bruno@clisp.org>
104050         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
104051         (asinl): Declare also if HAVE_DECL_ASINL is set.
104052         (atanl): Declare also if HAVE_DECL_ATANL is set.
104053         (ceill): Declare also if HAVE_DECL_CEILL is set.
104054         (cosl): Declare also if HAVE_DECL_COSL is set.
104055         (expl): Declare also if HAVE_DECL_EXPL is set.
104056         (floorl): Declare also if HAVE_DECL_FLOORL is set.
104057         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
104058         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
104059         (logl): Declare also if HAVE_DECL_LOGL is set.
104060         (sinl): Declare also if HAVE_DECL_SINL is set.
104061         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
104062         (tanl): Declare also if HAVE_DECL_TANL is set.
104063         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
104064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
104065         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
104066         declaration of frexpl, ldexpl.
104067         * modules/printf-frexpl (Depends-on): Add math.
104068         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
104070 2007-03-05  Bruno Haible  <bruno@clisp.org>
104072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
104073         frexpl and ldexpl are declared.
104074         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
104076 2007-03-05  Bruno Haible  <bruno@clisp.org>
104078         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
104079         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
104081 2007-03-05  Bruno Haible  <bruno@clisp.org>
104083         * lib/stdio_.h: Include <stddef.h>.
104085 2007-03-05  Bruno Haible  <bruno@clisp.org>
104087         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
104089 2007-03-05  Bruno Haible  <bruno@clisp.org>
104091         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
104092         NetBSD 4, from Ralf Wildenhues.
104094 2007-03-04  Bruno Haible  <bruno@clisp.org>
104096         * lib/vasprintf.h: Update #if logic for the case when the functions
104097         exist but are overridden.
104099 2007-03-04  Bruno Haible  <bruno@clisp.org>
104101         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
104102         implementations: glibc-2.4 and MacOS X 10.3.
104103         * tests/test-vasnprintf-posix.c (test_function): Test also the case
104104         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
104105         * tests/test-vasprintf-posix.c (test_function): Likewise.
104107 2007-03-04  Bruno Haible  <bruno@clisp.org>
104109         * modules/vasprintf-posix-tests: New file.
104110         * tests/test-vasprintf-posix.c: New file.
104112         * modules/vasprintf-posix: New file.
104113         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
104114         defined.
104115         * m4/vasprintf-posix.m4: New file.
104116         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
104117         gl_FUNC_VASPRINTF.
104118         (gl_FUNC_VASPRINTF): Invoke it.
104119         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
104120         here.
104121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
104123 2007-03-04  Bruno Haible  <bruno@clisp.org>
104125         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
104126         REPLACE_GETTIMEOFDAY.
104127         * modules/sys_time (Makefile.am): Likewise.
104128         * m4/sys_time_h.m4: Likewise.
104129         * m4/gettimeofday.m4: Likewise.
104131 2007-03-04  Bruno Haible  <bruno@clisp.org>
104133         * modules/vasnprintf-posix-tests: New file.
104134         * tests/test-vasnprintf-posix.c: New file.
104136         * modules/vasnprintf-posix: New file.
104137         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
104138         printf-frexpl.h.
104139         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
104140         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
104141         REPLACE_VASNPRINTF is defined.
104142         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
104143         gl_FUNC_VASNPRINTF.
104144         (gl_FUNC_VASNPRINTF): Invoke it.
104145         * m4/vasnprintf-posix.m4: New file.
104146         * m4/printf.m4: New file.
104148 2007-03-04  Bruno Haible  <bruno@clisp.org>
104150         Compile progreloc.c only if --enable-relocatable is specified.
104151         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
104152         if --enable-relocatable was specified.
104153         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
104154         lib_SOURCES.
104156 2007-03-04  Jim Meyering  <jim@meyering.net>
104158         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
104159         Use it consistently, rather than enumerating errno constants.
104161 2007-03-04  Bruno Haible  <bruno@clisp.org>
104163         * modules/xvasprintf-tests: New file.
104164         * tests/test-xvasprintf.c: New file.
104166         * modules/vasprintf-tests: New file.
104167         * tests/test-vasprintf.c: New file.
104169         * modules/vasnprintf-tests: New file.
104170         * tests/test-vasnprintf.c: New file.
104172         * modules/vsnprintf-tests: New file.
104173         * tests/test-vsnprintf.c: New file.
104175         * modules/snprintf-tests: New file.
104176         * tests/test-snprintf.c: New file.
104178 2007-03-04  Bruno Haible  <bruno@clisp.org>
104180         Compile relocatable.c only if --enable-relocatable is specified.
104181         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
104182         gl_RELOCATABLE_LIBRARY.
104183         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
104184         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
104185         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
104186         gl_RELOCATABLE_LIBRARY.
104187         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
104188         (Makefile.am): Remove lib_SOURCES.
104189         * modules/relocatable-lib-lgpl (configure.ac): Invoke
104190         gl_RELOCATABLE_LIBRARY.
104191         (Makefile.am): Remove lib_SOURCES.
104192         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
104193         always.
104194         * modules/relocatable-prog-wrapper (configure.ac): Invoke
104195         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
104197 2007-03-04  Bruno Haible  <bruno@clisp.org>
104199         * modules/argmatch-tests: New file.
104200         * tests/test-argmatch.c: New file.
104202         * tests/test-allocsa.c (main): Halve the number of loop runs.
104204         * modules/alloca-opt-tests: New file.
104205         * tests/test-alloca-opt.c: New file.
104207 2007-03-04  Jim Meyering  <jim@meyering.net>
104209         Work around difference between Linux ACLs and Solaris 10 ZFS.
104210         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
104211         for EINVAL.
104213 2007-03-03  Bruno Haible  <bruno@clisp.org>
104215         * modules/relocatable-prog (Depends-on): Add back progreloc's
104216         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
104218 2007-03-03  Bruno Haible  <bruno@clisp.org>
104220         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
104221         * modules/relocatable-lib: New file.
104223 2007-03-03  Bruno Haible  <bruno@clisp.org>
104225         * modules/relocatable-prog: Renamed from modules/relocatable.
104226         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
104228 2007-03-03  Bruno Haible  <bruno@clisp.org>
104230         * modules/relocatable-script (Files): Add doc/relocatable.texi,
104231         m4/relocatable-lib.m4.
104232         (Depends-on): Remove 'relocatable'.
104233         (configure.ac): Add gl_RELOCATABLE_NOP.
104235 2007-03-03  Bruno Haible  <bruno@clisp.org>
104237         * modules/relocatable-prog-wrapper: New file.
104238         * modules/relocatable (Depends-on): Add it. Remove all other
104239         dependencies except progname.
104240         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
104242         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
104243         (gl_FUNC_STRERROR): Nop.
104244         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
104246         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
104247         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
104249         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
104250         (gl_FUNC_READLINK): Update.
104252         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
104254 2007-03-03  Bruno Haible  <bruno@clisp.org>
104256         * lib/xreadlink.c: Include <unistd.h> unconditionally.
104257         * modules/xreadlink (Depends-on): Add unistd.
104258         * modules/xreadlink-with-size (Depends-on): Likewise.
104260 2007-03-03  Bruno Haible  <bruno@clisp.org>
104262         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
104263         extracted from gt_FUNC_SETENV.
104264         (gt_FUNC_SETENV): Remove macro.
104265         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
104266         remove gt_FUNC_SETENV.
104268 2007-03-03  Bruno Haible  <bruno@clisp.org>
104270         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
104271         ENABLE_RELOCATABLE here.
104272         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
104274 2007-03-03  Bruno Haible  <bruno@clisp.org>
104276         * modules/rbtreehash-list-tests (Depends-on): Add progname.
104277         * tests/test-rbtreehash_list.c: Include progname.h.
104278         (main): Call set_program_name.
104280         * modules/rbtree-oset-tests (Depends-on): Add progname.
104281         * tests/test-rbtree_oset.c: Include progname.h.
104282         (main): Call set_program_name.
104284         * modules/rbtree-list-tests (Depends-on): Add progname.
104285         * tests/test-rbtree_list.c: Include progname.h.
104286         (main): Call set_program_name.
104288         * modules/linked-list-tests (Depends-on): Add progname.
104289         * tests/test-linked_list.c: Include progname.h.
104290         (main): Call set_program_name.
104292 2007-03-03  Bruno Haible  <bruno@clisp.org>
104294         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
104295         All uses of __restrict changed to _Restrict_.
104296         * lib/glob_.h (__restrict): Remove macro.
104298 2007-03-02  Bruno Haible  <bruno@clisp.org>
104300         * modules/gettext (configure.ac): Require gettext infrastructure
104301         from version 0.16.1.
104303 2007-03-02  Bruno Haible  <bruno@clisp.org>
104305         * modules/linkedhash-list-tests (Depends-on): Add progname.
104306         * tests/test-linkedhash_list.c: Include progname.h.
104307         (main): Call set_program_name.
104309         * modules/carray-list-tests (Depends-on): Add progname.
104310         * tests/test-carray_list.c: Include progname.h.
104311         (main): Call set_program_name.
104313         * modules/avltreehash-list-tests (Depends-on): Add progname.
104314         * tests/test-avltreehash_list.c: Include progname.h.
104315         (main): Call set_program_name.
104317         * modules/avltree-oset-tests (Depends-on): Add progname.
104318         * tests/test-avltree_oset.c: Include progname.h.
104319         (main): Call set_program_name.
104321         * modules/avltree-list-tests (Depends-on): Add progname.
104322         * tests/test-avltree_list.c: Include progname.h.
104323         (main): Call set_program_name.
104325         * modules/array-oset-tests (Depends-on): Add progname.
104326         * tests/test-array_oset.c: Include progname.h.
104327         (main): Call set_program_name.
104329         * modules/array-list-tests (Depends-on): Add progname.
104330         * tests/test-array_list.c: Include progname.h.
104331         (main): Call set_program_name.
104333         * modules/argp-tests (Depends-on): Add progname.
104334         * tests/test-argp.c: Include argp.h first. Include progname.h.
104335         (main): Call set_program_name.
104337 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
104339         * doc/gnulib-tool.texi (Initial import): Reword description of
104340         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
104341         limited effect even if defined after the first system include.
104343 2007-03-01  Bruno Haible  <bruno@clisp.org>
104345         * build-aux/config.libpath: Update to libtool-1.5.22.
104346         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
104348 2007-03-01  Bruno Haible  <bruno@clisp.org>
104350         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
104351         foo_CFLAGS.
104352         Reported by Ralf Wildenhues.
104354 2007-03-01  Bruno Haible  <bruno@clisp.org>
104356         * build-aux/install-reloc: Remove object files left over by some
104357         compilers.
104358         Reported by Ralf Wildenhues.
104360 2007-03-01  Bruno Haible  <bruno@clisp.org>
104362         * build-aux/install-reloc: Break long lines.
104364 2007-03-01  Bruno Haible  <bruno@clisp.org>
104366         * doc/relocatable.texi: Document that it may not work on OpenBSD.
104367         Reported by Ralf Wildenhues.
104369 2007-03-01  Bruno Haible  <bruno@clisp.org>
104371         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
104372         include ordering constraints.
104374 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104376         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
104377         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
104378         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
104379         as another example.
104380         * lib/time_.h: Fix misspelling.
104381         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104382         Require gl_HEADER_TIME_H_DEFAULTS.
104383         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
104384         * m4/time_r.m4 (gl_TIME_R): Likewise.
104385         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
104387 2007-03-01  Bruno Haible  <bruno@clisp.org>
104389         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
104390         * m4/utimens.m4 (gl_UTIMENS): Likewise.
104392 2007-03-01  Jim Meyering  <jim@meyering.net>
104394         * modules/xreadlink (Maintainer): Add my name.
104395         * modules/xreadlink-with-size (Depends-on): Alphabetize.
104397 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
104398             Bruno Haible  <bruno@clisp.org>
104400         * build-aux/install-reloc: Compile also c-ctype.c.
104401         * build-aux/relocatable.sh.in: New file.
104402         * doc/relocatable.texi: New file.
104403         * doc/relocatable-maint.texi: New file.
104404         * doc/gnulib.texi: Include relocatable-maint.texi.
104405         * lib/progreloc.c: Include unistd.h unconditionally.
104406         * lib/relocwrapper.c: Include unistd.h unconditionally.
104407         Include c-ctype.h.
104408         (add_dotbin): Use c_tolower.
104409         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
104410         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
104411         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
104412         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
104413         to m4/relocatable-lib.m4.
104414         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
104415         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
104416         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
104417         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
104418         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
104419         * modules/relocatable: New file.
104420         * modules/relocatable-lib: New file.
104421         * modules/relocatable-script: New file.
104423 2007-02-28  Bruno Haible  <bruno@clisp.org>
104425         Import --enable-relocatable infrastructure.
104426         * build-aux/config.libpath: New file, from GNU gettext.
104427         * build-aux/install-reloc: New file, from GNU gettext.
104428         * build-aux/reloc-ldflags: New file, from GNU gettext.
104429         * lib/relocatable.h: New file, from GNU gettext.
104430         * lib/relocatable.c: New file, from GNU gettext.
104431         * lib/relocwrapper.c: New file, from GNU gettext.
104432         * m4/relocatable.m4: New file, from GNU gettext.
104434 2007-02-28  Bruno Haible  <bruno@clisp.org>
104436         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
104438         * modules/xreadlink: New file, from GNU gettext with modifications.
104439         * lib/xreadlink.c: New file, from GNU gettext.
104440         * lib/xreadlink.h: Add comments.
104441         (xreadlink): New declaration.
104443         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
104444         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
104445         lib/xreadlink-with-size.c.
104446         (configure.ac): Remove gl_XREADLINK invocation.
104447         (Makefile.am): Augment lib_SOURCES.
104448         * m4/xreadlink.m4: Remove file.
104449         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
104450         (xreadlink_with_size): Renamed from xreadink.
104451         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
104452         * modules/canonicalize (Depends-on): Replace xreadlink with
104453         xreadlink-with-size.
104454         * lib/canonicalize.c (canonicalize_filename_mode): Update.
104456 2007-02-25  Jim Meyering  <jim@meyering.net>
104458         * build-aux/announce-gen: When complaining about excess arguments,
104459         list them.
104461 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104463         * README: Document signed integer overflow situation more
104464         accurately.
104466 2007-02-25  Bruno Haible  <bruno@clisp.org>
104468         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
104469         'a' or 'A' conversion.
104471 2007-02-25  Bruno Haible  <bruno@clisp.org>
104473         * modules/filename: Renamed from modules/pathname.
104474         (Files): Replace lib/pathname.h with lib/filename.h. Replace
104475         lib/concatpath.c with lib/concat-filename.c.
104476         (Makefile.am): Update.
104477         (Include): Replace pathname.h with filename.h.
104478         * lib/filename.h: Renamed from lib/pathname.h.
104479         (concatenated_filename): Renamed from concatenated_pathname.
104480         * lib/concat-filename.c: Renamed from lib/concatpath.c.
104481         (concatenated_filename): Renamed from concatenated_pathname.
104482         * lib/findprog.c: Include filename.h instead of pathname.h.
104483         (find_in_path): Update.
104484         * lib/javacomp.c: Include filename.h instead of pathname.h.
104485         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
104486         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
104487         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
104488         is_oldgcj_14_13_usable, is_javac_usable): Update.
104489         * lib/javaexec.c: Include filename.h instead of pathname.h.
104490         (execute_java_class): Update.
104491         * modules/findprog: Update.
104492         * modules/javacomp: Update.
104493         * modules/javaexec: Update.
104494         * MODULES.html.sh (File system functions): Add 'filename', remove
104495         'pathname'.
104497 2007-02-25  Bruno Haible  <bruno@clisp.org>
104499         * modules/printf-frexpl-tests: New file.
104500         * tests/test-printf-frexpl.c: New file.
104502         * modules/printf-frexpl: New file.
104503         * lib/printf-frexpl.h: New file.
104504         * lib/printf-frexpl.c: New file.
104505         * m4/printf-frexpl.m4: New file.
104507 2007-02-25  Bruno Haible  <bruno@clisp.org>
104509         * modules/printf-frexp-tests: New file.
104510         * tests/test-printf-frexp.c: New file.
104512         * modules/printf-frexp: New file.
104513         * lib/printf-frexp.h: New file.
104514         * lib/printf-frexp.c: New file.
104515         * m4/printf-frexp.m4: New file.
104517 2007-02-25  Bruno Haible  <bruno@clisp.org>
104519         Assume automake >= 1.10 for the tests.
104520         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
104521         * modules/arctwo-tests: Likewise.
104522         * modules/argp-tests: Likewise.
104523         * modules/avltree-list-tests: Likewise.
104524         * modules/avltree-oset-tests: Likewise.
104525         * modules/avltreehash-list-tests: Likewise.
104526         * modules/carray-list-tests: Likewise.
104527         * modules/crc-tests: Likewise.
104528         * modules/des-tests: Likewise.
104529         * modules/gc-arcfour-tests: Likewise.
104530         * modules/gc-arctwo-tests: Likewise.
104531         * modules/gc-des-tests: Likewise.
104532         * modules/gc-hmac-md5-tests: Likewise.
104533         * modules/gc-hmac-sha1-tests: Likewise.
104534         * modules/gc-md2-tests: Likewise.
104535         * modules/gc-md4-tests: Likewise.
104536         * modules/gc-md5-tests: Likewise.
104537         * modules/gc-pbkdf2-sha1-tests: Likewise.
104538         * modules/gc-rijndael-tests: Likewise.
104539         * modules/gc-sha1-tests: Likewise.
104540         * modules/gc-tests: Likewise.
104541         * modules/getaddrinfo-tests: Likewise.
104542         * modules/hmac-md5-tests: Likewise.
104543         * modules/hmac-sha1-tests: Likewise.
104544         * modules/linked-list-tests: Likewise.
104545         * modules/linkedhash-list-tests: Likewise.
104546         * modules/lock-tests: Likewise.
104547         * modules/md2-tests: Likewise.
104548         * modules/md4-tests: Likewise.
104549         * modules/md5-tests: Likewise.
104550         * modules/rbtree-list-tests: Likewise.
104551         * modules/rbtree-oset-tests: Likewise.
104552         * modules/rbtreehash-list-tests: Likewise.
104553         * modules/read-file-tests: Likewise.
104554         * modules/rijndael-tests: Likewise.
104555         * modules/stdint-tests: Likewise.
104556         * modules/tls-tests: Likewise.
104558 2007-02-24  Bruno Haible  <bruno@clisp.org>
104560         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
104561         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
104562         function; instead check whether isnan with a double argument links.
104563         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
104564         function; instead check whether isnan with a 'long double' argument
104565         links.
104566         Reported by Eric Blake <ebb9@byu.net>.
104568 2007-02-24  Bruno Haible  <bruno@clisp.org>
104570         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
104571         defined.
104572         * lib/isnanl.c: Remove all code. Just include isnan.c.
104573         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
104575 2007-02-25  Jim Meyering  <jim@meyering.net>
104577         Avoid conflicting types for 'unsetenv' on FreeBSD.
104578         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
104579         conflicting with FreeBSD's (5.0 and 6.1) function declaration
104580         in stdlib.h.
104582 2007-02-24  Bruno Haible  <bruno@clisp.org>
104584         * modules/isnanl-nolibm-tests: New file.
104585         * tests/test-isnanl.c: New file.
104587         * modules/isnanl-nolibm: New file.
104588         * lib/isnanl.h: New file.
104589         * lib/isnanl.c: New file.
104590         * m4/isnanl.m4: New file.
104592 2007-02-24  Bruno Haible  <bruno@clisp.org>
104594         * modules/isnan-nolibm-tests: New file.
104595         * tests/test-isnan.c: New file.
104597         * modules/isnan-nolibm: New file.
104598         * lib/isnan.h: New file.
104599         * lib/isnan.c: New file.
104600         * m4/isnan.m4: New file.
104602 2007-02-24  Bruno Haible  <bruno@clisp.org>
104604         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
104605         assume that an exponent fits in 20 bits.
104607 2007-02-24  Jim Meyering  <jim@meyering.net>
104609         * m4/regex.m4: Update the description of the configure-time option,
104610         --without-included-regex, to state accurately what the defaults are,
104611         and perhaps to give people an idea why using this option is risky.
104613 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
104615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
104616         loops on small arguments.  This attempts to avoid the problem
104617         Bruno Haible reported for AIX 4.3.2 in
104618         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
104620 2007-02-23  Bruno Haible  <bruno@clisp.org>
104622         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
104623         Needed for help2man.
104625 2007-02-23  Karl Berry  <karl@gnu.org>
104627         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
104628         exists, foo.h should be cvs-ignored, not committed.
104630 2007-02-23  Eric Blake  <ebb9@byu.net>
104632         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
104633         * lib/stat-time.h (includes): Likewise.
104634         * lib/utimecmp.c (includes): Likewise.
104635         * lib/utimens.h (includes): Likewise.
104636         * lib/getdate.y (includes): Also include "timespec.h" for use
104637         internal to the module.
104638         * modules/utimens (Depends-on): Revert yesterday's patch.
104639         * modules/nanosleep (Depends-on): Add missing dependency.
104641 2007-02-22  Bruno Haible  <bruno@clisp.org>
104643         * lib/glob.c: Don't include getlogin_r.h.
104645 2007-02-22  Jim Meyering  <jim@meyering.net>
104647         * modules/utimens (Depends-on): Add timespec, required for
104648         utimens.h's inclusion of timespec.h.
104650 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
104652         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
104653         long unreadable paths in GNU/Linux.  Problem reported by Andreas
104654         Schwab in
104655         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
104656         I'll try to think of a better way to fix the Solaris problem.
104658         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
104659         like glibc; on Solaris 10, it fails with errno == EINVAL.
104660         POSIX says the behavior is unspecified if the first argument is NULL,
104661         so play it safe and never pass NULL to the system getcwd.
104663 2007-02-21  Jim Meyering  <jim@meyering.net>
104665         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
104666         of gettimeofday.  It would conflict with the one now always
104667         provided via sys_time_.h.  Reported by Matthew Woehlke, as
104668         an IRIX 6.5 build failure.
104670 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
104672         Minor fixups to port to Solaris 10 with Sun C 5.8.
104673         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
104674         * modules/getcwd (Depends-on): Add dirfd.
104675         * lib/putenv.c (putenv): #undef it.
104676         (rpl_putenv): New decl.
104677         (malloc, free): Include <stdlib.h> rather than prototyping separately.
104679 2007-02-20  Bruno Haible  <bruno@clisp.org>
104681         * modules/stdio-tests: New file.
104682         * tests/test-stdio.c: New file.
104684         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
104685         (Depends-on): Add stdio.
104686         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104687         (Include): Use <stdio.h> instead of vsnprintf.h.
104688         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104689         HAVE_DECL_VSNPRINTF.
104690         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
104692         * modules/snprintf (Files): Remove lib/snprintf.h.
104693         (Depends-on): Add stdio.
104694         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
104695         (Include): Use <stdio.h> instead of snprintf.h.
104696         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
104697         HAVE_DECL_SNPRINTF.
104698         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
104699         * lib/getaddrinfo.c: Likewise.
104701         * modules/stdio: New file.
104702         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
104703         * lib/snprintf.h: Remove file.
104704         * lib/vsnprintf.h: Remove file.
104705         * lib/.cppi-disable: Remove snprintf.h.
104706         * m4/stdio_h.m4: New file.
104707         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
104709 2007-02-20  Jim Meyering  <jim@meyering.net>
104711         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
104712         used by e.g., mingw.  From Bruno Haible.
104714 2007-02-19  Bruno Haible  <bruno@clisp.org>
104716         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
104717         warnings.
104718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
104720 2007-02-19  Bruno Haible  <bruno@clisp.org>
104722         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
104723         from mingw users.
104725 2007-02-19  Bruno Haible  <bruno@clisp.org>
104727         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
104728         warnings.
104729         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
104731 2007-02-19  Jim Meyering  <jim@meyering.net>
104733         Don't use FD after a successful "fdopendir (fd)".
104734         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
104735         Reset it by calling dirfd on the just-obtained DIR*.
104737         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
104738         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
104740 2007-02-18  Bruno Haible  <bruno@clisp.org>
104742         * lib/readlink.c: Include <unistd.h>.
104743         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
104744         HAVE_READLINK.
104745         * modules/readlink (Depends-on): Add unistd.
104746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104747         (Include): Add <unistd.h>.
104749         * lib/getlogin_r.h: Remove file.
104750         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
104751         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
104752         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
104753         HAVE_DECL_GETLOGIN_R.
104754         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
104755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104756         (Include): Use <unistd.h> instead of getlogin_r.h.
104758         * lib/getcwd.h: Remove file.
104759         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
104760         * lib/xgetcwd.c: Likewise.
104761         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
104762         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
104763         * modules/getcwd (Files): Remove lib/getcwd.h.
104764         (Depends-on): Add unistd.
104765         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104766         (Include): Use <unistd.h> instad of getcwd.h.
104768         * lib/ftruncate.c: Include <unistd.h> first.
104769         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
104770         Set HAVE_FTRUNCATE.
104771         * modules/ftruncate (Depends-on): Add unistd.
104772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104774         * lib/fchdir.c: Include <unistd.h> first.
104775         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
104776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
104777         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
104778         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104779         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
104781         * lib/dup2.c: Include <unistd.h> first.
104782         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
104783         HAVE_DUP2.
104784         * modules/dup2 (Depends-on): Add unistd.
104785         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104787         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
104788         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
104789         REPLACE_CHOWN. Don't define chown as a macro here.
104790         * modules/chown (Depends-on): Add unistd.
104791         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
104793         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
104794         Add definition for GL_LINK_WARNING.
104795         (chown, dup2): New declarations.
104796         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
104797         link warning.
104798         (ftruncate): New declaration.
104799         (getcwd): New declaration, taken from old getcwd.h.
104800         (getlogin_r): New declaration, taken from old getlogin_r.h.
104801         (readlink): New declaration.
104802         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
104803         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
104804         (gl_PREREQ_UNISTD): Remove macro.
104805         (gl_UNISTD_MODULE_INDICATOR): New macro.
104806         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
104807         many new variables. Don't set UNISTD_H.
104808         * modules/unistd (Description): Change.
104809         (Depends-on): Add link-warning.
104810         (configure.ac): Update.
104811         (Makefile.am): Create unistd.h always. Substitute many new variables
104812         into it.
104814 2007-02-18  Bruno Haible  <bruno@clisp.org>
104816         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
104817         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
104818         HAVE_GETSUBOPT.
104819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
104820         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
104821         * lib/getsubopt.h: Remove file.
104822         * modules/getsubopt (Files): Remove lib/getsubopt.h.
104823         (Depends-on): Add stdlib.
104824         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104825         (Includes): Use <stdlib.h> instead of getsubopt.h.
104826         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
104827         Set HAVE_GETSUBOPT.
104828         * lib/getsubopt.c: Don't include getsubopt.h.
104830 2007-02-18  Bruno Haible  <bruno@clisp.org>
104832         * modules/fchdir (Depends-on): Add dup2.
104834 2007-02-18  Bruno Haible  <bruno@clisp.org>
104836         * lib/stdlib_.h: Handle glibc's special invocation convention
104837         specially.
104839 2007-02-18  Bruno Haible  <bruno@clisp.org>
104841         * modules/stdlib-tests: New file.
104842         * tests/test-stdlib.c: New file.
104844         * modules/mkstemp (Files): Remove lib/mkstemp.h.
104845         (Depends-on): Add stdlib.
104846         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104847         (Includes): Use <stdlib.h> instead of mkstemp.h.
104848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104849         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
104850         * lib/mkstemp.c: Don't include mkstemp.h.
104851         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
104852         * lib/stdlib--.h: Don't include mkstemp.h.
104854         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
104855         (Depends-on): Add stdlib.
104856         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
104857         (Includes): Use <stdlib.h> instead of mkdtemp.h.
104858         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
104859         HAVE_MKDTEMP.
104860         * lib/mkdtemp.c: Don't include mkdtemp.h.
104861         * lib/clean-temp.c: Don't include mkdtemp.h.
104863         * modules/exit (Files): Remove lib/exit.h.
104864         (Depends-on): Add stdlib.
104865         (Makefile.am): Remove lib_SOURCES.
104866         (Include): Use <stdlib.h> instead of exit.h.
104867         * lib/argmatch.c: Don't include exit.h.
104868         * lib/execute.c: Likewise.
104869         * lib/pagealign_alloc.c: Likewise.
104870         * lib/pipe.c: Likewise.
104871         * lib/wait-process.c: Likewise.
104872         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
104873         * lib/exitfail.c: Likewise.
104874         * lib/savewd.c: Likewise.
104875         * lib/xsetenv.c: Likewise.
104877         * modules/stdlib: New file.
104878         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
104879         and extra comments about mkstemp().
104880         * lib/exit.h: Remove file.
104881         * lib/mkdtemp.h: Remove file.
104882         * lib/mkstemp.h: Remove file.
104883         * m4/stdlib_h.m4: New file.
104884         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
104886 2007-02-18  Bruno Haible  <bruno@clisp.org>
104888         * modules/math-tests: New file.
104889         * tests/test-math.c: New file.
104891         * modules/math: New file.
104892         * modules/mathl (Files): Remove lib/mathl.h.
104893         (Depends-on): Add math.
104894         (Makefile.am): Don't mention mathl.h.
104895         (Include): Use <math.h> instead of mathl.h.
104896         * lib/math_.h: New file.
104897         * lib/mathl.h: Remove file.
104898         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
104899         mathl.h.
104900         * lib/asinl.c: Likewise.
104901         * lib/atanl.c: Likewise.
104902         * lib/ceill.c: Likewise.
104903         * lib/cosl.c: Likewise.
104904         * lib/expl.c: Likewise.
104905         * lib/floorl.c: Likewise.
104906         * lib/frexpl.c: Likewise.
104907         * lib/ldexpl.c: Likewise.
104908         * lib/logl.c: Likewise.
104909         * lib/sincosl.c: Likewise.
104910         * lib/sinl.c: Likewise.
104911         * lib/sqrtl.c: Likewise.
104912         * lib/tanl.c: Likewise.
104913         * lib/trigl.c: Likewise.
104914         * m4/math_h.m4: New file.
104915         * MODULES.html.sh (Mathematics): Add math.
104917 2007-02-17  Bruno Haible  <bruno@clisp.org>
104919         * modules/wctype-tests: New file.
104920         * tests/test-wctype.c: New file.
104922         * modules/wchar-tests: New file.
104923         * tests/test-wchar.c: New file.
104925         * modules/unistd-tests: New file.
104926         * tests/test-unistd.c: New file.
104928         * modules/time-tests: New file.
104929         * tests/test-time.c: New file.
104931         * modules/sysexits-tests: New file.
104932         * tests/test-sysexits.c: New file.
104934         * modules/sys_time-tests: New file.
104935         * tests/test-sys_time.c: New file.
104937         * modules/sys_stat-tests: New file.
104938         * tests/test-sys_stat.c: New file.
104940         * modules/sys_socket-tests: New file.
104941         * tests/test-sys_socket.c: New file.
104943         * modules/sys_select-tests: New file.
104944         * tests/test-sys_select.c: New file.
104946         * modules/string-tests: New file.
104947         * tests/test-string.c: New file.
104949         * modules/stdbool-tests: New file.
104950         * tests/test-stdbool.c: New file.
104952         * modules/netinet_in-tests: New file.
104953         * tests/test-netinet_in.c: New file.
104955         * modules/inttypes-tests: New file.
104956         * tests/test-inttypes.c: New file.
104958         * modules/fcntl-tests: New file.
104959         * tests/test-fcntl.c: New file.
104961         * modules/byteswap-tests: New file.
104962         * tests/test-byteswap.c: New file.
104964         * modules/arpa_inet-tests: New file.
104965         * tests/test-arpa_inet.c: New file.
104967 2007-02-17  Bruno Haible  <bruno@clisp.org>
104969         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
104970         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
104971         if the corresponding module is not enabled. Emit link warnings if
104972         the function is used nevertheless.
104973         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
104974         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
104975         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
104976         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
104977         * modules/inttypes (Depends-on): Add link-warning.
104978         (Makefile.am): Copy the contents of build-aux/link-warning.h into
104979         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
104980         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
104981         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
104982         * modules/imaxdiv (configure.ac): Likewise.
104983         * modules/strtoimax (configure.ac): Likewise.
104984         * modules/strtoumax (configure.ac): Likewise.
104986 2007-02-17  Bruno Haible  <bruno@clisp.org>
104988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
104989         gl_STRING_MODULE_INDICATOR_DEFAULTS.
104990         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
104991         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
104993 2007-02-17  Bruno Haible  <bruno@clisp.org>
104995         * modules/link-warning: New file.
104996         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
104997         * lib/string_.h (GL_LINK_WARNING): Remove definition.
104998         * modules/string (Depends-on): Add link-warning.
104999         (Makefile.am): Copy the contents of build-aux/link-warning.h into
105000         string.h.
105001         * MODULES.html.sh (Support for building libraries and executables): Add
105002         link-warning.
105004 2007-02-17  Bruno Haible  <bruno@clisp.org>
105006         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
105007         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
105008         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
105009         long lines.
105011 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
105012             Bruno Haible  <bruno@clisp.org>
105014         * modules/tmpfile: New file.
105015         * lib/tmpfile.c: New file.
105016         * m4/tmpfile.m4: New file.
105017         * MODULES.html.sh (func_all_modules): New section "Input/output".
105019 2007-02-15  Bruno Haible  <bruno@clisp.org>
105021         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
105022         (supports_delete_on_close): New function.
105023         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
105025 2007-02-14  Bruno Haible  <bruno@clisp.org>
105027         * modules/mbspcasecmp-tests: New file.
105028         * tests/test-mbspcasecmp.sh: New file.
105029         * tests/test-mbspcasecmp.c: New file.
105031         New module mbspcasecmp.
105032         * modules/mbspcasecmp: New file.
105033         * lib/mbspcasecmp.c: New file.
105034         * lib/string_.h (strncasecmp): Change warning message.
105035         (mbspcasecmp): New declaration.
105036         * m4/mbspcasecmp.m4: New file.
105037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105038         GNULIB_MBSPCASECMP.
105039         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
105040         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
105042 2007-02-14  Bruno Haible  <bruno@clisp.org>
105044         * modules/mbsncasecmp-tests: New file.
105045         * tests/test-mbsncasecmp.sh: New file.
105046         * tests/test-mbsncasecmp.c: New file.
105048         New module mbsncasecmp.
105049         * modules/mbsncasecmp: New file.
105050         * lib/mbsncasecmp.c: New file.
105051         * lib/string_.h (mbsncasecmp): New declaration.
105052         * m4/mbsncasecmp.m4: New file.
105053         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105054         GNULIB_MBSNCASECMP.
105055         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
105056         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
105058 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
105060         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
105061         Verify that it doesn't overlap with our flags.
105062         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
105063         do not have the desired effect in multibyte locales; instead, use
105064         mbscasecmp.
105065         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
105066         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
105067         we don't require GNU fnmatch ourselves (if our users require it, they
105068         should do so explicitly).
105070         Fix regex code so it doesn't rely on strcasecmp.
105071         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
105072         Otherwise, include gnulib's langinfo.h.
105073         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
105074         undesirable behavior in non-C locales.  Instead, rely on localecharset.
105075         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
105076         * modules/regex (FILES): Remove m4/codeset.m4.
105077         (Depends-on): Add localcharset.  Remove strcase.
105079 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105081         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
105082         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
105084 2007-02-13  Bruno Haible  <bruno@clisp.org>
105086         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
105087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105089 2007-02-12  Bruno Haible  <bruno@clisp.org>
105091         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105092         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
105093         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
105094         time warning rather than a link error.
105096 2007-02-12  Bruno Haible  <bruno@clisp.org>
105098         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
105099         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
105100         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
105102 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105104         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
105105         args, not 2.
105107 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
105109         New module 'time', so that apps can include <time.h> as per
105110         POSIX and GNU instead of separate include files like time_r.h
105111         and timegm.h.  This implementation tries out a simpler approach
105112         for replacing decls in standard include files (as compared to
105113         the string module), somewhat as an experiment.
105115         * config/srclist.txt: Comment out mktime.c for now.
105116         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
105117         since it doesn't apply any more.  Use generic wording instead.
105118         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
105119         'time'.
105120         * lib/time_.h, m4/time_h.m4, modules/time: New files.
105121         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
105122         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
105123         Don't include <sys/types.h>; no longer needed since we assume C89.
105124         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
105125         * lib/strftime.c: Likewise.
105126         * lib/time_r.c: Likewise.
105127         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
105128         * lib/nanosleep.c: Include <time.h> first, to check interface.
105129         * lib/strptime.c: Likewise.
105130         * lib/time_r.c: Likewise.
105131         * lib/timegm.c: Likewise.
105132         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
105133         needed.
105134         * lib/timegm.c: Don't include timegm.h; no longer needed.
105135         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
105136         time.h now handles any problems in that area.
105137         (struct timespec, nanosleep): Remove; time.h now arranges for these.
105138         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
105139         that time.h defines struct timespec.
105140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
105141         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
105142         handles that.
105143         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
105144         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
105145         needed.  Set REPLACE_LOCALTIME.
105146         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
105147         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
105148         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
105149         nanosleep; time_h.m4 now does that.  Don't require
105150         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
105151         module handles this now.
105152         * modules/getdate (Depends-on): Remove timespec.  Add time.
105153         * modules/nanosleep (Depends-on): Likewise.
105154         * modules/stat-time (Depends-on): Likewise.
105155         * modules/nanosleep (Include): Include time.h, not timespec.h.
105156         * modules/strptime (Files): Remove lib/strptime.h.
105157         (Depends-on): Add extensions, time.
105158         (Include): Include time.h, not strptime.h.
105159         * modules/time_r (Files): Remove lib/time_r.h.
105160         (Depends-on): Add time.
105161         (Include): Include time.h, not time_r.h.
105162         * modules/timegm: Likewise.
105163         * modules/timespec (Description): Now does timespec-related decls
105164         of our own, instead of struct timespec itself.
105165         (Depends-on): Add time; remove extensions.
105166         (Maintainer): Add self.
105167         * modules/utimecmp (Depends-on): Add time; remove timespec.
105168         * modules/utimens (Depends-on): Likewise.
105169         * modules/xnanosleep (Depends-on): Likewise.
105171 2007-02-11  Bruno Haible  <bruno@clisp.org>
105173         * lib/c-strstr.c: Include allocsa.h.
105174         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105175         * lib/c-strcasestr.c: Include allocsa.h.
105176         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105177         * lib/strcasestr.c: Include allocsa.h.
105178         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
105179         * lib/mbsstr.c: Include allocsa.h.
105180         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105181         allocsa/freesa instead of malloc/free.
105182         * lib/mbscasestr.c: Include allocsa.h.
105183         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
105184         allocsa/freesa instead of malloc/free.
105185         * modules/c-strstr (Depends-on): Add allocsa.
105186         * modules/c-strcasestr (Depends-on): Likewise.
105187         * modules/strcasestr (Depends-on): Likewise.
105188         * modules/mbsstr (Depends-on): Likewise.
105189         * modules/mbscasestr (Depends-on): Likewise.
105191 2007-02-11  Bruno Haible  <bruno@clisp.org>
105193         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
105195         * modules/mbsspn-tests: New file.
105196         * tests/test-mbsspn.sh: New file.
105197         * tests/test-mbsspn.c: New file.
105199 2007-02-11  Bruno Haible  <bruno@clisp.org>
105201         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
105203         * modules/mbspbrk-tests: New file.
105204         * tests/test-mbspbrk.sh: New file.
105205         * tests/test-mbspbrk.c: New file.
105207 2007-02-11  Bruno Haible  <bruno@clisp.org>
105209         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
105210         unneeded cast.
105212         * modules/mbscspn-tests: New file.
105213         * tests/test-mbscspn.sh: New file.
105214         * tests/test-mbscspn.c: New file.
105216 2007-02-11  Bruno Haible  <bruno@clisp.org>
105218         * modules/mbscasecmp-tests: New file.
105219         * tests/test-mbscasecmp.sh: New file.
105220         * tests/test-mbscasecmp.c: New file.
105222 2007-02-11  Bruno Haible  <bruno@clisp.org>
105224         Ensure O(n) worst-case complexity of mbscasestr.
105225         * lib/mbscasestr.c: Include stdbool.h.
105226         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105227         functions.
105228         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
105229         the bookkeeping indicates that it's worth it.
105230         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
105232         * modules/mbscasestr-tests: New file.
105233         * tests/test-mbscasestr1.c: New file.
105234         * tests/test-mbscasestr2.sh: New file.
105235         * tests/test-mbscasestr2.c: New file.
105236         * tests/test-mbscasestr3.sh: New file.
105237         * tests/test-mbscasestr3.c: New file.
105238         * tests/test-mbscasestr4.sh: New file.
105239         * tests/test-mbscasestr4.c: New file.
105240         * m4/locale-tr.m4: New file.
105242 2007-02-11  Bruno Haible  <bruno@clisp.org>
105244         Ensure O(n) worst-case complexity of mbsstr.
105245         * lib/mbsstr.c: Include stdbool.h.
105246         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
105247         functions.
105248         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
105249         bookkeeping indicates that it's worth it.
105250         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
105252         * modules/mbsstr-tests: New file.
105253         * tests/test-mbsstr1.c: New file.
105254         * tests/test-mbsstr2.sh: New file.
105255         * tests/test-mbsstr2.c: New file.
105256         * tests/test-mbsstr3.sh: New file.
105257         * tests/test-mbsstr3.c: New file.
105258         * m4/locale-fr.m4: New file.
105260 2007-02-11  Bruno Haible  <bruno@clisp.org>
105262         * lib/mbsrchr.c (mbsrchr): Fix bug.
105264         * modules/mbsrchr-tests: New file.
105265         * tests/test-mbsrchr.sh: New file.
105266         * tests/test-mbsrchr.c: New file.
105268 2007-02-11  Bruno Haible  <bruno@clisp.org>
105270         * lib/mbschr.c (mbschr): Fix bug.
105272         * modules/mbschr-tests: New file.
105273         * tests/test-mbschr.sh: New file.
105274         * tests/test-mbschr.c: New file.
105275         * m4/locale-zh.m4: New file.
105277 2007-02-11  Bruno Haible  <bruno@clisp.org>
105279         Support for copying multibyte string iterators.
105280         * lib/mbiter.h: Include <string.h>.
105281         (mbiter_multi_copy): New function.
105282         (mbi_copy): New macro.
105283         * lib/mbuiter.h: Include <string.h>.
105284         (mbuiter_multi_copy): New function.
105285         (mbui_copy): New macro.
105287 2007-02-11  Bruno Haible  <bruno@clisp.org>
105289         New module mbslen.
105290         * modules/mbslen: New file.
105291         * lib/mbslen.c: New file.
105292         * lib/string_.h (mbslen): New declaration.
105293         * m4/mbslen.m4: New file.
105294         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105295         GNULIB_MBSLEN.
105296         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
105297         * MODULES.html.sh (Internationalization functions): Add mbslen.
105299 2007-02-11  Bruno Haible  <bruno@clisp.org>
105301         Ensure O(n) worst-case complexity of strcasestr substitute.
105302         * lib/strcasestr.c: Include stdbool.h.
105303         (knuth_morris_pratt): New function.
105304         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105305         bookkeeping indicates that it's worth it.
105306         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
105308         * modules/strcasestr-tests: New file.
105309         * tests/test-strcasestr.c: New file.
105311 2007-02-11  Bruno Haible  <bruno@clisp.org>
105313         Ensure O(n) worst-case complexity of c_strcasestr.
105314         * lib/c-strcasestr.c: Include stdbool.h, string.h.
105315         (knuth_morris_pratt): New function.
105316         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
105317         the bookkeeping indicates that it's worth it.
105318         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
105320         * modules/c-strcasestr-tests: New file.
105321         * tests/test-c-strcasestr.c: New file.
105323 2007-02-11  Bruno Haible  <bruno@clisp.org>
105325         Ensure O(n) worst-case complexity of c_strstr.
105326         * lib/c-strstr.c: Include stdbool.h, string.h.
105327         (knuth_morris_pratt): New function.
105328         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
105329         bookkeeping indicates that it's worth it.
105330         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
105332         * lib/c-strstr.c: Complete rewrite for maintainability.
105334         * modules/c-strstr-tests: New file.
105335         * tests/test-c-strstr.c: New file.
105337 2007-02-11  Bruno Haible  <bruno@clisp.org>
105339         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
105340         5.2.1 and earlier, whereby \055 was treated just like the range
105341         delimiter '-'.
105342         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
105344 2007-02-08  Bruno Haible  <bruno@clisp.org>
105346         * modules/regex (Depends-on): Add stdbool.
105347         Reported by Dalibor Topic <robilad@kaffe.org>.
105349 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
105351         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
105352         Prefer returning from main to exiting from it.
105353         Remove unnecessary parens after sizeof.
105355 2007-02-05  Bruno Haible  <bruno@clisp.org>
105357         New module mbssep.
105358         * modules/mbssep: New file.
105359         * lib/mbssep.c: New file.
105360         * lib/string_.h (strsep): Add a conditional link warning.
105361         (mbssep): New declaration.
105362         * m4/mbssep.m4: New file.
105363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105364         GNULIB_MBSSEP.
105365         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
105366         * MODULES.html.sh (Internationalization functions): Add mbssep.
105368 2007-02-05  Bruno Haible  <bruno@clisp.org>
105370         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
105371         Optimize search in case of 1 delimiter.
105373 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105375         * lib/acl.h: Include sys/types.h before sys/acl.h.
105377 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
105379         Merge upstream fix for glibc bugzilla #3957:
105381         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
105383         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
105384         bit for RE_HAT_LISTS_NOT_NEWLINE.
105385         (build_charclass_op): Remove bogus comment.
105387 2007-02-05  Simon Josefsson  <simon@josefsson.org>
105389         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
105391 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105393         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
105394         * lib/memmem.c [!defined _LIBC]: Include config.h.
105396 2007-02-04  Bruno Haible  <bruno@clisp.org>
105398         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
105399         warning message.
105401 2007-02-04  Bruno Haible  <bruno@clisp.org>
105403         New module mbstok_r.
105404         * modules/mbstok_r: New file.
105405         * lib/mbstok_r.c: New file.
105406         * lib/string_.h (strtok_r): Change argument names to match the
105407         comments. Add a conditional link warning.
105408         (mbstok_r): New declaration.
105409         * m4/mbstok_r.m4: New file.
105410         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105411         GNULIB_MBSTOK_R.
105412         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
105413         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
105415 2007-02-04  Bruno Haible  <bruno@clisp.org>
105417         New module mbsspn.
105418         * modules/mbsspn: New file.
105419         * lib/mbsspn.c: New file.
105420         * lib/string_.h (strspn): Add a conditional link warning.
105421         (mbsspn): New declaration.
105422         * m4/mbsspn.m4: New file.
105423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105424         GNULIB_MBSSPN.
105425         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
105426         * MODULES.html.sh (Internationalization functions): Add mbsspn.
105428 2007-02-04  Bruno Haible  <bruno@clisp.org>
105430         New module mbspbrk.
105431         * modules/mbspbrk: New file.
105432         * lib/mbspbrk.c: New file.
105433         * lib/string_.h (strpbrk): Add a conditional link warning.
105434         (mbspbrk): New declaration.
105435         * m4/mbspbrk.m4: New file.
105436         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105437         GNULIB_MBSPBRK.
105438         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
105439         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
105441 2007-02-04  Bruno Haible  <bruno@clisp.org>
105443         New module mbscspn.
105444         * modules/mbscspn: New file.
105445         * lib/mbscspn.c: New file.
105446         * lib/string_.h (strcspn): Add a conditional link warning.
105447         (mbscspn): New declaration.
105448         * m4/mbscspn.m4: New file.
105449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105450         GNULIB_MBSCSPN.
105451         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
105452         * MODULES.html.sh (Internationalization functions): Add mbscspn.
105454 2007-02-04  Bruno Haible  <bruno@clisp.org>
105456         New module mbscasestr, reduced goal of strcasestr.
105457         * modules/mbscasestr: New file.
105458         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
105459         (mbscasestr): Renamed from strcasestr.
105460         * lib/strcasestr.c: Don't include mbuiter.h.
105461         (strcasestr): Remove support for multibyte locales.
105462         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
105463         Change the conditional link warning.
105464         (mbscasestr): New declaration.
105465         * m4/mbscasestr.m4: New file.
105466         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
105467         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
105468         REPLACE_STRCASESTR.
105469         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
105470         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105471         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105472         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
105473         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
105474         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
105475         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
105476         (Depends-on): Remove mbuiter.
105477         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
105479 2007-02-04  Bruno Haible  <bruno@clisp.org>
105481         Simplify handling of strncasecmp.
105482         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
105483         the conditional link warning.
105484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
105485         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
105486         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
105487         * modules/strcase (configure.ac): Don't invoke
105488         gl_STRING_MODULE_INDICATOR.
105489         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
105491 2007-02-04  Bruno Haible  <bruno@clisp.org>
105493         New module mbscasecmp, reduced goal of strcasecmp.
105494         * modules/mbscasecmp: New file.
105495         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
105496         (mbscasecmp): Renamed from strcasecmp.
105497         * lib/strcasecmp.c: Don't include mbuiter.h.
105498         (strcasecmp): Remove support for multibyte locales.
105499         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
105500         Change the conditional link warning.
105501         (mbscasecmp): New declaration.
105502         * m4/mbscasecmp.m4: New file.
105503         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
105504         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
105505         REPLACE_STRCASECMP.
105506         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
105507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105508         GNULIB_MBSCASECMP.
105509         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
105510         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
105511         * modules/strcase (Files): Remove m4/mbrtowc.m4.
105512         (Depends-on): Remove mbuiter.
105513         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
105515 2007-02-04  Bruno Haible  <bruno@clisp.org>
105517         New module mbsstr. Remove module strstr.
105518         * modules/mbsstr: New file.
105519         * modules/strstr: Remove file.
105520         * lib/mbsstr.c: Renamed from lib/strstr.c.
105521         (mbsstr): Renamed from strstr.
105522         * lib/string_.h (strstr): Remove declaration. Change the conditional
105523         link warning.
105524         (mbsstr): New declaration.
105525         * m4/mbsstr.m4: New file.
105526         * m4/strstr.m4: Remove file.
105527         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
105528         REPLACE_STRSTR.
105529         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
105530         Don't initialize GNULIB_STRSTR.
105531         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
105532         substitute GNULIB_STRSTR and REPLACE_STRSTR.
105533         * MODULES.html.sh (Internationalization functions): Add mbsstr.
105534         (Support for systems lacking ANSI C 89): Remove strstr.
105536 2007-02-04  Bruno Haible  <bruno@clisp.org>
105538         New module mbsrchr.
105539         * modules/mbsrchr: New file.
105540         * lib/mbsrchr.c: New file.
105541         * lib/string_.h (strrchr): Add a conditional link warning.
105542         (mbsrchr): New declaration.
105543         * m4/mbsrchr.m4: New file.
105544         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105545         GNULIB_MBSRCHR.
105546         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
105547         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
105549 2007-02-04  Bruno Haible  <bruno@clisp.org>
105551         New module mbschr.
105552         * modules/mbschr: New file.
105553         * lib/mbschr.c: New file.
105554         * lib/string_.h (strchr): Add a conditional link warning.
105555         (mbschr): New declaration.
105556         * m4/mbschr.m4: New file.
105557         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
105558         GNULIB_MBSCHR.
105559         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
105560         * MODULES.html.sh (Internationalization functions): Add mbschr.
105562 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
105564         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
105566         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
105568 2007-02-04  Bruno Haible  <bruno@clisp.org>
105570         New module description section 'configure.ac-early'.
105571         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
105572         (func_get_autoconf_early_snippet): New function.
105573         (func_import, func_create_testdir): Use it. Remove special cases for
105574         modules 'extensions' and 'lock'.
105575         * modules/extensions (configure.ac-early): Require
105576         gl_USE_SYSTEM_EXTENSIONS.
105577         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
105579 2007-02-04  Bruno Haible  <bruno@clisp.org>
105581         Make use of gcj-4.3's -fsource and -ftarget option.
105582         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
105583         and if so try the options -fsource and -ftarget.
105584         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
105585         source_version, ftarget_option, target_version arguments.
105586         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
105587         (is_envjavac_oldgcj_14_14_usable): Renamed from
105588         is_envjavac_gcj_14_14_usable.
105589         (is_envjavac_oldgcj_14_13_usable): Renamed from
105590         is_envjavac_gcj_14_13_usable.
105591         (is_gcj_present): Update.
105592         (is_gcj_43, is_gcj43_usable): New functions.
105593         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
105594         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
105595         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
105596         try the options -fsource and -ftarget.
105598 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105600         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
105601         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
105602         larger value.
105604 2007-02-03  Jim Meyering  <jim@meyering.net>
105606         Give tools a better chance to allocate space for very large buffers.
105607         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
105609         Make pwd and readlink work also when run with an unreadable parent dir
105610         on systems with openat support.
105611         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
105612         provided getcwd function, even when we have openat support.
105613         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
105615 2007-02-02  Bruno Haible  <bruno@clisp.org>
105617         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
105618         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
105619         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
105620         portability problems if one of these functions is only used on specific
105621         platforms.
105622         Reported by Paul Eggert.
105624 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
105626         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
105627         is causing more trouble than it's curing.
105628         * lib/regex_internal.h (__mempcpy): Remove.
105629         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
105630         (and make the code a tad smaller to boot).
105631         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
105633 2007-02-02  Jim Meyering  <jim@meyering.net>
105635         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
105636         section, not in the Makefile.am: one.
105638 2007-02-02  Eric Blake  <ebb9@byu.net>
105640         * lib/strchrnul.c: Always include config.h first.
105642         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
105643         gnulib strstr is not necessary here.
105645 2007-02-02  Simon Josefsson  <simon@josefsson.org>
105647         * m4/socklen.m4: Fix typo.
105649 2007-02-02  Eric Blake  <ebb9@byu.net>
105651         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
105652         * modules/netinet_in (Makefile.am): Likewise.
105654 2007-02-01  Bruno Haible  <bruno@clisp.org>
105656         * lib/string_.h (GL_LINK_WARNING): New macro.
105657         (strcasecmp, strstr, strcasestr): If provided by the system,
105658         conditionally define as a macro that leads to a warning instead of to
105659         an error.
105660         (strncasecmp): Conditionally define as a macro that leads to a warning.
105662 2007-02-01  Karl Berry  <karl@gnu.org>
105664         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
105666 2007-02-01  Bruno Haible  <bruno@clisp.org>
105668         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
105669         renamings.
105671 2007-02-01  Eric Blake  <ebb9@byu.net>
105673         * modules/regex (Depends-on): Revert dependence on mempcpy.
105674         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
105675         module's definition of mempcpy.
105676         Reported by Paul Eggert.
105678 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105680         * lib/string_.h: If the gnulib module XYZ is not present, undefine
105681         the symbol XYZ before redefining it.  This fixes a problem with
105682         programs that don't use XYZ, when compiled on systems that define
105683         XYZ to something else.
105685 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
105687         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
105688         occurs when "mkdir -m foo" creates a setgid directory that is (1)
105689         writeable to group or other and (2) is intended to have a special
105690         mode bit that is set or cleared.  In such a case, the directory
105691         should be neither group- nor other-writeable until the special
105692         mode bits are right.
105694 2007-01-31  Eric Blake  <ebb9@byu.net>
105696         * modules/mountlist (Depends-on): Add strstr.
105698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
105699         bug.
105700         * modules/string (Makefile.am): Remove redundant replacement.
105701         * modules/regex (Depends-on): Add mempcpy.
105703 2007-01-31  Bruno Haible  <bruno@clisp.org>
105705         New module description field 'Link'.
105706         * gnulib-tool (func_usage): Document --extract-link-directive.
105707         (sed_extract_prog): Recognize 'Link' directive.
105708         (func_get_link_directive): New function.
105709         (func_import): Show summary of link directives.
105710         Handle --extract-link-directive option.
105711         * modules/acl (Link): New section.
105712         * modules/clock-time (Link): New section.
105713         * modules/euidaccess (Link): New section.
105714         * modules/gettext (Link): New section.
105715         * modules/iconv (Link): New section.
105716         * modules/lock (Link): New section.
105717         * modules/nanosleep (Link): New section.
105718         * modules/readline (Link): New section.
105720 2007-01-27  Bruno Haible  <bruno@clisp.org>
105722         Enforce the use of gnulib modules for unportable <string.h> functions.
105723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
105724         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
105725         (gl_HEADER_STRING_H_BODY): Require it.
105726         * lib/string_.h: If the gnulib module XYZ is not present, redefine
105727         the symbol XYZ to one that gives a link error.
105728         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
105729         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
105730         * modules/mempcpy (configure.ac): Likewise.
105731         * modules/memrchr (configure.ac): Likewise.
105732         * modules/stpcpy (configure.ac): Likewise.
105733         * modules/stpncpy (configure.ac): Likewise.
105734         * modules/strcase (configure.ac): Likewise.
105735         * modules/strcasestr (configure.ac): Likewise.
105736         * modules/strchrnul (configure.ac): Likewise.
105737         * modules/strdup (configure.ac): Likewise.
105738         * modules/strndup (configure.ac): Likewise.
105739         * modules/strnlen (configure.ac): Likewise.
105740         * modules/strpbrk (configure.ac): Likewise.
105741         * modules/strsep (configure.ac): Likewise.
105742         * modules/strstr (configure.ac): Likewise.
105743         * modules/strtok_r (configure.ac): Likewise.
105745 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
105747         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
105749 2007-01-30  Jim Meyering  <jim@meyering.net>
105751         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
105753 2007-01-29  Bruno Haible  <bruno@clisp.org>
105755         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
105756         * lib/execute.c: Likewise.
105757         * lib/pipe.c: Likewise.
105758         * lib/printf-args.h: Likewise.
105759         * lib/printf-args.c: Likewise.
105760         * lib/printf-parse.c: Likewise.
105761         * lib/vasnprintf.c: Likewise.
105763 2007-01-29  Eric Blake  <ebb9@byu.net>
105765         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
105766         declaration.
105768 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
105770         * lib/strptime.h (strptime): Use 'restrict' for args where
105771         POSIX requires this.
105772         * lib/strptime.c (strptime): Likewise.
105773         Change license notice from LGPL to GPL, since gnulib-tool will
105774         change this as needed.
105775         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
105776         defined.
105777         Include "strptime.h" first, to check interface.
105778         Do not #undef _LIBC and _NL_CURRENT.
105779         Do not include <stdlib.h>; no longer needed.
105780         Include "time_r.h" and declare ptime_locale_status
105781         only if _LIBC is not defined.
105782         (__P): Remove unused macro.
105783         (match_string): Bring back glibc version, but use it only if _LIBC
105784         is defined.
105785         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
105786         Remove unnecessary assertion and abort() call.
105787         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
105788         * m4/strptime.m4: Fix serial number comment.
105789         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
105790         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
105791         (Depends-on): Add time_r.
105793 2007-01-29  Bruno Haible  <bruno@clisp.org>
105795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105796         strptime.
105797         * modules/strptime (Depends-on): Add stdbool.
105798         * lib/strptime.h: Include <time.h> always. Add comments.
105800 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
105802         * modules/strptime: New file.
105803         * lib/strptime.h: New file.
105804         * lib/strptime.c: New file.
105805         * m4/strptime.m4: New file.
105807 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105809         * MODULES.html.sh: New module mpsort.
105810         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
105812         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
105813         a circularity problem with HP-UX ia64 reported by Bob Proulx in
105814         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
105815         All uses changed.
105816         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
105817         All uses changed.
105818         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
105819         to _Restrict_.
105820         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
105821         the parameter matches the prototype.
105823 2007-01-28  Jim Meyering  <jim@meyering.net>
105825         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
105826         sys/time.h here, reverting that part of the previous patch:
105827         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
105829 2007-01-28  Bruno Haible  <bruno@clisp.org>
105831         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
105832         value of $(SYS_TIME_H).
105833         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
105834         remove it conditionally, too. [added by Jim Meyering]
105835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
105836         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
105837         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
105838         GETTIMEOFDAY_REPLACEMENT to 1.
105840 2007-01-28  Bruno Haible  <bruno@clisp.org>
105842         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
105843         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
105844         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
105845         Set UNISTD_H instead of UNISTD_H2.
105846         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
105848 2007-01-28  Bruno Haible  <bruno@clisp.org>
105850         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
105851         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
105853 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105855         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
105856         (func_create_testdir): Ensure C locale for `grep' and `tr'
105857         character ranges.
105858         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
105859         ACLOCAL_AMFLAGS parsing state machine.
105861 2007-01-27  Bruno Haible  <bruno@clisp.org>
105863         * modules/unistr/base: Update.
105865 2007-01-27  Bruno Haible  <bruno@clisp.org>
105867         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
105868         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
105869         * modules/unistr/u32-mbtouc-unsafe: Renamed from
105870         modules/unistr/u32-mbtouc.
105871         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
105872         * lib/unistr.h: Update.
105873         * lib/linebreak.c: Update.
105874         * modules/unistr/u32-mbtouc: Renamed from
105875         modules/unistr/u32-mbtouc-safe.
105876         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
105877         * lib/unistr.h: Update.
105878         * lib/unistr/u32-to-u8.c: Update.
105879         * lib/unistr/u32-to-u16.c: Update.
105881 2007-01-27  Bruno Haible  <bruno@clisp.org>
105883         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
105884         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
105885         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
105886         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
105887         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
105888         * modules/unistr/u16-mbtouc-unsafe: Renamed from
105889         modules/unistr/u16-mbtouc.
105890         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
105891         * lib/unistr.h: Update.
105892         * lib/linebreak.c: Update.
105893         * modules/linebreak: Update.
105894         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
105895         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
105896         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
105897         * modules/unistr/u16-mbtouc: Renamed from
105898         modules/unistr/u16-mbtouc-safe.
105899         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
105900         * lib/unistr.h: Update.
105901         * lib/unistr/u16-to-u8.c: Update.
105902         * modules/unistr/u16-to-u8: Update.
105903         * lib/unistr/u16-to-u32.c: Update.
105904         * modules/unistr/u16-to-u32: Update.
105906 2007-01-27  Bruno Haible  <bruno@clisp.org>
105908         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
105909         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
105910         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
105911         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
105912         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
105913         * modules/unistr/u8-mbtouc-unsafe: Renamed from
105914         modules/unistr/u8-mbtouc.
105915         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
105916         * lib/unistr.h: Update.
105917         * lib/striconveh.c: Update.
105918         * modules/striconveh: Update.
105919         * lib/linebreak.c: Update.
105920         * modules/linebreak: Update.
105921         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
105922         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
105923         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
105924         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
105925         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
105926         * lib/unistr.h: Update.
105927         * lib/striconveh.c: Update.
105928         * modules/striconveh: Update.
105929         * lib/unistr/u8-to-u16.c: Update.
105930         * modules/unistr/u8-to-u16: Update.
105931         * lib/unistr/u8-to-u32.c: Update.
105932         * modules/unistr/u8-to-u32: Update.
105934 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105936         Sync from Libtool.
105937         * lib/argz.c: Do not include strings.h nor memory.h, include
105938         string.h unconditionally.  Patch by Simon Josefsson.
105940 2007-01-27  Bruno Haible  <bruno@clisp.org>
105942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
105943         from gl_HEADER_STRING_H_BODY.
105944         (gl_HEADER_STRING_H_BODY): Require it.
105945         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
105946         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
105947         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
105948         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
105949         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
105950         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
105951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
105952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
105953         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
105954         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
105955         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
105956         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
105957         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
105958         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
105959         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
105961 2007-01-27  Bruno Haible  <bruno@clisp.org>
105963         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
105964         check_PROGRAMS into noinst_PROGRAMS.
105965         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
105966         check_PROGRAMS in this case.
105967         (func_import): Set for_test to false.
105968         (func_create_testdir): Set for_test to true.
105970 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105971             Bruno Haible  <bruno@clisp.org>
105973         * modules/strcasestr (Files): Remove lib/strcasestr.h.
105974         (Depends-on): Add string.
105975         (Includes): Use <string.h> instead of strcasestr.h.
105976         * modules/string (Makefile.am): Also substitute the value of
105977         REPLACE_STRCASESTR.
105978         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
105979         assume strcasestr is declared in <string.h> not <strings.h>. Also
105980         set REPLACE_STRCASESTR.
105981         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
105982         REPLACE_STRCASESTR.
105983         * lib/strcasestr.h: Remove file.
105984         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
105985         * lib/string_.h (strcasestr): New declaration.
105987 2007-01-27  Bruno Haible  <bruno@clisp.org>
105989         * lib/string_.h: Use 'extern'.
105991 2007-01-27  Jim Meyering  <jim@meyering.net>
105993         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
105994         of set-but-not-used local, "q".
105996         * lib/mempcpy.c: Include <config.h> before <string.h>.
105997         This fixes a compilation error on HP-UX, due to the system's
105998         "restrict"-using mempcpy prototype.
106000 2007-01-26  Bruno Haible  <bruno@clisp.org>
106002         Small optimization.
106003         * lib/javacomp.c: Include c-strstr.h.
106004          (is_envjavac_gcj): Use c_strstr instead of strstr.
106005         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
106007 2007-01-26  Bruno Haible  <bruno@clisp.org>
106009         * MODULES.html.sh (Unicode string functions): Add the new modules.
106011         * modules/uniconv/u32-strconv-to-locale: New file.
106012         * lib/uniconv/u32-strconv-to-locale.c: New file.
106014         * modules/uniconv/u16-strconv-to-locale: New file.
106015         * lib/uniconv/u16-strconv-to-locale.c: New file.
106017         * modules/uniconv/u8-strconv-to-locale: New file.
106018         * lib/uniconv/u8-strconv-to-locale.c: New file.
106020         * modules/uniconv/u32-strconv-from-locale: New file.
106021         * lib/uniconv/u32-strconv-from-locale.c: New file.
106023         * modules/uniconv/u16-strconv-from-locale: New file.
106024         * lib/uniconv/u16-strconv-from-locale.c: New file.
106026         * modules/uniconv/u8-strconv-from-locale: New file.
106027         * lib/uniconv/u8-strconv-from-locale.c: New file.
106029         * modules/uniconv/u32-strconv-to-enc: New file.
106030         * lib/uniconv/u32-strconv-to-enc.c: New file.
106031         * modules/uniconv/u32-strconv-to-enc-tests: New file.
106032         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
106034         * modules/uniconv/u16-strconv-to-enc: New file.
106035         * lib/uniconv/u16-strconv-to-enc.c: New file.
106036         * lib/uniconv/u-strconv-to-enc.h: New file.
106037         * modules/uniconv/u16-strconv-to-enc-tests: New file.
106038         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
106040         * modules/uniconv/u8-strconv-to-enc: New file.
106041         * lib/uniconv/u8-strconv-to-enc.c: New file.
106042         * modules/uniconv/u8-strconv-to-enc-tests: New file.
106043         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
106045         * modules/uniconv/u32-strconv-from-enc: New file.
106046         * lib/uniconv/u32-strconv-from-enc.c: New file.
106047         * modules/uniconv/u32-strconv-from-enc-tests: New file.
106048         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
106050         * modules/uniconv/u16-strconv-from-enc: New file.
106051         * lib/uniconv/u16-strconv-from-enc.c: New file.
106052         * modules/uniconv/u16-strconv-from-enc-tests: New file.
106053         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
106055         * modules/uniconv/u8-strconv-from-enc: New file.
106056         * lib/uniconv/u8-strconv-from-enc.c: New file.
106057         * lib/uniconv/u-strconv-from-enc.h: New file.
106058         * modules/uniconv/u8-strconv-from-enc-tests: New file.
106059         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
106061         * modules/uniconv/u32-conv-from-enc: New file.
106062         * lib/uniconv/u32-conv-from-enc.c: New file.
106063         * modules/uniconv/u32-conv-from-enc-tests: New file.
106064         * tests/uniconv/test-u32-conv-from-enc.c: New file.
106066         * modules/uniconv/u16-conv-from-enc: New file.
106067         * lib/uniconv/u16-conv-from-enc.c: New file.
106068         * lib/uniconv/u-conv-from-enc.h: New file.
106069         * modules/uniconv/u16-conv-from-enc-tests: New file.
106070         * tests/uniconv/test-u16-conv-from-enc.c: New file.
106072         * modules/uniconv/u8-conv-from-enc: New file.
106073         * lib/uniconv/u8-conv-from-enc.c: New file.
106074         * modules/uniconv/u8-conv-from-enc-tests: New file.
106075         * tests/uniconv/test-u8-conv-from-enc.c: New file.
106077         * modules/uniconv/base: New file.
106078         * lib/uniconv.h: New file.
106080 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
106082         * doc/gnulib-tool.texi (Initial import): Update to match current
106083         behavior with strdup module.
106084         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
106085         * lib/memmem.h: Remove; all uses removed.  This is now done
106086         by <string.h>.
106087         * lib/mempcpy.h: Likewise.
106088         * lib/memrchr.h: Likewise.
106089         * lib/stpcpy.h: Likewise.
106090         * lib/stpncpy.h: Likewise.
106091         * lib/strcase.h: Likewise.
106092         * lib/strchrnul.h: Likewise.
106093         * lib/strdup.h: Likewise.
106094         * lib/strndup.h: Likewise.
106095         * lib/strnlen.h: Likewise.
106096         * lib/strpbrk.h: Likewise.
106097         * lib/strsep.h: Likewise.
106098         * lib/strstr.h: Likewise.
106099         * lib/strtok_r.h: Likewise.
106100         * lib/string_.h: New file.
106101         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
106102         Rely on <string.h> instead.
106103         * lib/canon-host.c: Likewise.
106104         * lib/chdir-long.c: Likewise.
106105         * lib/concatpath.c: Likewise.
106106         * lib/exclude.c: Likewise.
106107         * lib/fchdir.c: Likewise.
106108         * lib/getaddrinfo.c: Likewise.
106109         * lib/getcwd.c: Likewise.
106110         * lib/getsubopt.c: Likewise.
106111         * lib/glob.c: Likewise.
106112         * lib/hard-locale.c: Likewise.
106113         * lib/iconvme.c: Likewise.
106114         * lib/javacomp.c: Likewise.
106115         * lib/mempcpy.c: Likewise.
106116         * lib/memrchr.c: Likewise.
106117         * lib/regex_internal.h: Likewise.
106118         * lib/stpncpy.c: Likewise.
106119         * lib/strcasecmp.c: Likewise.
106120         * lib/strchrnul.c: Likewise.
106121         * lib/strdup.c: Likewise.
106122         * lib/striconv.c: Likewise.
106123         * lib/striconveh.c: Likewise.
106124         * lib/striconveha.c: Likewise.
106125         * lib/strncasecmp.c: Likewise.
106126         * lib/strndup.c: Likewise.
106127         * lib/strnlen.c: Likewise.
106128         * lib/strsep.c: Likewise.
106129         * lib/strstr.c: Likewise.
106130         * lib/strtok_r.c: Likewise.
106131         * lib/userspec.c: Likewise.
106132         * lib/w32spawn.h: Likewise.
106133         * lib/xstrndup.c: Likewise.
106134         * lib/mountlist.c (strstr): Remove decl.
106135         * m4/string_h.m4: New file.
106136         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
106137         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
106138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
106139         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
106140         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
106141         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
106142         Set REPLACE_STRCASECMP if necessary.
106143         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
106144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
106145         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
106146         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
106147         HAVE_DECL_STRDUP if necessary.
106148         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
106149         since gl_FUNC_STRNDUP does that now.
106150         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
106151         Check for decl here...
106152         (gl_PREREQ_STRNLEN): ... not here.
106153         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
106154         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
106155         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
106156         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
106157         necessary.
106158         * modules/string: New file.
106159         * modules/memmem (Files): Remove special-purpose include file.
106160         (Depends-on): Add string.
106161         (Include): Include <string.h>, not the removed file.
106162         * modules/mempcpy: Likewise.
106163         * modules/memrchr: Likewise.
106164         * modules/stpcpy: Likewise.
106165         * modules/stpncpy: Likewise.
106166         * modules/strcase: Likewise.
106167         * modules/strchrnul: Likewise.
106168         * modules/strdup: Likewise.
106169         * modules/strndup: Likewise.
106170         * modules/strnlen: Likewise.
106171         * modules/strpbrk: Likewise.
106172         * modules/strsep: Likewise.
106173         * modules/strstr: Likewise.
106174         * modules/strtok_r: Likewise.
106175         * tests/test-dirname.c: Don't include "strdup.h", since
106176         <string.h> now suffices.
106177         * tests/test-memmem.c: Don't include "memmem.h", since
106178         <string.h> now suffices.
106180 2007-01-25  Bruno Haible  <bruno@clisp.org>
106182         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
106183         *resultp is 0.
106185         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
106186         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
106187         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
106188         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
106190         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
106191         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
106192         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
106193         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
106194         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
106195         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
106197 2007-01-24  Bruno Haible  <bruno@clisp.org>
106199         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
106200         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
106201         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
106202         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
106203         gl_FUNC_FTS_CORE.
106204         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
106205         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
106206         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
106207         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
106208         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
106209         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
106210         gl_FUNC_FCHOWNAT.
106211         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
106212         gl_FUNC_STRFTIME.
106213         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
106214         Reported by Ralf Wildenhues.
106216 2007-01-24  Bruno Haible  <bruno@clisp.org>
106218         Drop AC_REQUIRE calls that are redundant with the module dependencies.
106219         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
106220         gl_GETADDRINFO.
106221         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
106222         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
106223         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
106225 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
106227         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
106228         Don't use 'exit'; just return from 'main'.
106229         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
106231         * lib/fnmatch_.h: Readjust white space and comments to match
106232         glibc, to avoid spurious diffs.
106234 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106236         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
106237         2004-12-01 change by Jakub Jelinek, since this code won't compile
106238         if !LIBC.  Problem reported by Bob Proulx.
106240 2007-01-23  Bruno Haible  <bruno@clisp.org>
106242         * lib/striconveh.c: Include c-strcaseeq.h.
106243         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
106244         * modules/striconveh (Depends-on): Add c-strcaseeq.
106246 2007-01-23  Bruno Haible  <bruno@clisp.org>
106248         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
106250         * modules/c-strcaseeq: New file.
106251         * lib/c-strcaseeq.h: New file.
106253         * modules/streq: New file.
106254         * lib/streq.h: New file.
106256 2007-01-23  Bruno Haible  <bruno@clisp.org>
106258         * modules/striconveha-tests: New file.
106259         * tests/test-striconveha.c: New file.
106261         * lib/striconveha.h: Include <stdbool.h>.
106262         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
106263         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
106264         (mem_iconveha_notranslit): Renamed from mem_iconveha.
106265         (mem_iconveha): New function.
106266         (str_iconveha_notranslit): Renamed from str_iconveha.
106267         (str_iconveha): New function.
106268         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
106269         c-strcase.
106271 2007-01-23  Bruno Haible  <bruno@clisp.org>
106273         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
106274         encodings without forgiving before trying any encoding with handler.
106275         (str_iconveha): Try all encodings without forgiving before trying any
106276         encoding with handler.
106278 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
106280         Import the following changes from libc.
106282         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
106284         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
106286         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
106288         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
106289         normal_bracket label.
106291         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
106293         [BZ #361]
106294         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
106295         to normal_bracket after fetching the next character.
106297 2007-01-22  Bruno Haible  <bruno@clisp.org>
106299         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
106300         argument.
106301         * lib/striconveh.c (iconv_carefully_1): New function.
106302         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
106303         argument.
106304         (str_cd_iconveh): Update.
106305         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
106306         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
106307         * tests/test-striconveh.c (MAGIC): New macro.
106308         (new_offsets): New function.
106309         (main): Test call with and without offsets.
106311 2007-01-22  Bruno Haible  <bruno@clisp.org>
106313         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
106314         * modules/sys_select (Makefile.am): Likewise.
106315         * modules/sys_socket (Makefile.am): Likewise.
106316         * modules/sys_time (Makefile.am): Likewise.
106318 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
106320         * modules/gettimeofday (License): Change from GPL to LGPL, since
106321         gettimeofday is a library function.
106323 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106325         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
106327 2007-01-21  Bruno Haible  <bruno@clisp.org>
106329         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
106331 2007-01-21  Bruno Haible  <bruno@clisp.org>
106333         * modules/striconveha: New file.
106334         * lib/striconveha.h: New file.
106335         * lib/striconveha.c: New file.
106336         * MODULES.html.sh (Internationalization functions): Add striconveha.
106337         * lib/striconv.c (str_iconv): Optimize the case of an empty input
106338         string.
106339         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
106341 2007-01-21  Bruno Haible  <bruno@clisp.org>
106343         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
106344         * lib/striconveh.c (str_iconveh): Likewise.
106346 2007-01-21  Bruno Haible  <bruno@clisp.org>
106348         * lib/striconveh.h (mem_iconveh): New declaration.
106349         * lib/striconveh.c (mem_iconveh): New function.
106350         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
106352 2007-01-21  Bruno Haible  <bruno@clisp.org>
106354         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
106356         * lib/striconveh.h (mem_cd_iconveh): Change specification.
106357         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
106358         original result buffer.
106359         (str_cd_iconveh): Update.
106360         * tests/test-striconveh.c (main): Update.
106362         * lib/striconv.h (mem_cd_iconv): Change specification.
106363         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
106364         result buffer.
106365         (str_cd_iconv): Update.
106366         * tests/test-striconv.c (main): Update.
106368 2007-01-21  Bruno Haible  <bruno@clisp.org>
106370         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
106372 2007-01-20  Jim Meyering  <jim@meyering.net>
106374         * lib/userspec.c (parse_with_separator): If a user or group string
106375         starts with "+", skip the corresponding name-to-ID look-up, since
106376         such a look-up must fail: user and group names may not include "+".
106378 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
106380         * lib/poll.c: Include sys/time.h and time.h unconditionally,
106381         since we now assume the sys_time module.
106382         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
106383         check for sys/time.h; no longer needed.
106384         * modules/poll (Depends-on): Depend on sys_time.
106386 2007-01-18  Bruno Haible  <bruno@clisp.org>
106388         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
106389         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106391         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
106392         gettimeofday.
106394         * tests/test-gettimeofday.c: Include <time.h>.
106395         (dummy): Remove variable.
106397         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
106398         gl_HEADER_SYS_TIME_H.
106399         (gl_HEADER_SYS_TIME_H): New macro.
106401         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
106402         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
106404         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
106405         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106406         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
106407         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
106408         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106409         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
106410         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
106411         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106413         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
106414         last change; it caused a compilation error when cross-compiling to
106415         Cygwin.
106417 2007-01-18  Jim Meyering  <jim@meyering.net>
106419         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
106420         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
106421         than the race-prone "test -d sys || mkdir sys".
106422         (configure.ac): Use AC_PROG_MKDIR_P.
106423         * modules/sys_select: Likewise.
106424         * modules/sys_socket: Likewise.
106425         * modules/sys_time: Likewise.
106427 2007-01-18  Eric Blake  <ebb9@byu.net>
106429         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
106430         replace gettimeofday.
106431         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
106432         name, to avoid infinite recursion.
106434 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
106436         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
106437         module sys_time.
106438         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
106439         assume timespec.h defines struct timeval.
106440         * lib/settime.c: Likewise.
106441         * lib/utimens.c: Likewise.
106442         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
106443         since we now assume the gettimeofday module.
106444         * lib/tempname.c (__gen_tempname): Likewise.
106445         * lib/gettimeofday.h: Remove.
106446         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
106447         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
106448         Include <time.h>, for 'time()'.
106449         (localtime_buffer_addr): Also use this workaround if
106450         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
106451         to simplify the uses.  All uses changed.
106452         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
106453         that #undef is inside {}, and 'const' follows type name consistently.
106454         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
106455         (gettimeofday): Do not use the maximum possible value for
106456         tv->tv_usec, since that might break usages other than ls.c.
106457         Instead, we'll leave ls.c alone.  This undoes today's patch
106458         by Bruno.  Add a compile-time warning for 1s-clock resolution;
106459         we've never observed the problem but might as well keep the
106460         canary.
106461         * lib/nanosleep.c: Include timespec.h first, for interface check.
106462         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
106463         now assume the sys_time module.
106464         * lib/tempname.c: Likewise.
106465         * lib/timespec.h: Likewise.
106466         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
106467         needed.
106468         * lib/strftime.c: Likewise.
106469         * lib/timespec.h: Likewise.
106470         * lib/posixtm.c: Include posixtm.h first, for interface check.
106471         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
106472         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
106473         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
106474         * lib/sys_time_.h: New file.
106475         * lib/timespec.h (struct timespec): Use long int, not long.
106476         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
106477         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
106478         Remove obsolescent call to AC_HEADER_TIME.
106479         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
106480         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106481         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
106482         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
106483         Likewise.
106484         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
106485         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
106486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
106487         into the sys_time module.  Check for gettimeofday just once.
106488         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
106489         for gettimeofday signature to just check the signature.  Merely
106490         compile it, since linking doesn't test signature.  Improve test for
106491         whether gettimeofday.o is actually needed.
106492         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
106493         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
106494         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
106495         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106496         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
106497         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
106498         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
106499         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
106500         than worrying about sys/time.h.
106501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106502         Don't bother worrying about TIME_WITH_SYS_TIME.
106503         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
106504         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
106505         * m4/sys_time_h.m4: New file.
106506         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
106507         Don't include sys/time.h.  Return from main rather than exiting.
106508         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
106509         all uses changed.
106510         * modules/gethrxtime (Depends-on): Add sys_time.
106511         * modules/gettime (Depends-on): Likewise.
106512         * modules/gettimeofday (Depends-on): Likewise.
106513         * modules/nanosleep (Depends-on): Likewise.
106514         * modules/settime (Depends-on): Likewise.
106515         * modules/tempname (Depends-on): Likewise.
106516         * modules/utimens (Depends-on): Likewise.
106517         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
106518         (Include): Change back to <sys/time.h>.
106519         (Maintainer): Add self.
106520         * modules/sys_time: New file.
106521         * modules/tempname (Depends-on): Add gettimeofday.
106522         * tests/test-gettimeofday.c: Include <sys/time.h>
106523         rather than gettimeofday.h.
106525 2007-01-17  Bruno Haible  <bruno@clisp.org>
106527         * gnulib-tool (func_get_license): Revert last patch. Instead, let
106528         the license default to GPL.
106529         (func_create_testdir): Don't complain if a module is LGPL and its
106530         tests module depends on GPLed modules.
106532 2007-01-17  Bruno Haible  <bruno@clisp.org>
106534         * lib/gettimeofday.c (gettimeofday): Add code for the case
106535         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
106536         maximum possible value for tv->tv_usec, rather than the minimum one.
106538 2005-10-08  Martin Lambers  <marlam@marlam.de>
106539 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
106540 2007-01-16  Bruno Haible  <bruno@clisp.org>
106542         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
106543         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
106544         gl_FUNC_GETTIMEOFDAY.
106545         (Include): Add gettimeofday.h.
106546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
106547         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
106548         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
106549         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
106550         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
106551         * lib/gettimeofday.h: New file.
106552         * lib/gettimeofday.c: Include <sys/timeb.h>.
106553         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
106554         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
106555         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
106556         fall back on time().
106558         * tests/test-gettimeofday.c: New file.
106559         * modules/gettimeofday-tests: New file.
106561 2007-01-16  Eric Blake  <ebb9@byu.net>
106563         * modules/fnmatch (Depends-on): Depend on wchar.
106564         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
106565         * m4/fnmatch.m4: Likewise.
106566         * modules/mbchar (Makefile.am): Assume <wchar.h>.
106567         * m4/mbchar.m4: Likewise.
106568         * modules/mbswidth (Depends-on): Depend on wchar.
106569         * lib/mbswidth.c: Assume <wchar.h>.
106570         * m4/mbswidth.m4: Likewise.
106571         * modules/quotearg (Depends-on): Depend on wchar.
106572         * lib/quotearg.c: Assume <wchar.h>.
106573         * m4/quotearg.m4: Likewise.
106574         * modules/regex (Depends-on): Depend on wchar.
106575         * lib/regex_internal.h: Assume <wchar.h>.
106576         * m4/regex.m4: Likewise.
106577         * modules/stdint (Depends-on): Depend on wchar.
106578         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
106579         * m4/stdint.m4: Likewise.
106580         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
106581         * modules/strftime (Depends-on): Depend on wchar.
106582         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
106583         * modules/strtol (Depends-on): Depend on wchar.
106584         * lib/strtol.c: Assume <wchar.h>.
106585         * modules/wcwidth (Depends-on): Depend on wchar.
106586         * lib/wcwidth.h: Assume <wchar.h>.
106587         * m4/wcwidth.m4: Likewise.
106589 2007-01-16  Bruno Haible  <bruno@clisp.org>
106591         * modules/csharpexec-script: New, created from...
106592         * modules/csharpexec: ... this.
106594 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
106596         * modules/javaexec-script: New, created from...
106597         * modules/javaexec: ... this.
106599 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106601         * modules/poll (Dependencies): Add sys_select.
106603 2007-01-15  Jim Meyering  <jim@meyering.net>
106605         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
106606         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
106607         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
106608         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
106610 2007-01-15  Bruno Haible  <bruno@clisp.org>
106612         * modules/striconveh: New file.
106613         * lib/striconveh.h: New file.
106614         * lib/striconveh.c: New file.
106615         * MODULES.html.sh (Internationalization functions): Add striconveh.
106617         * modules/striconveh-tests: New file.
106618         * tests/test-striconveh.c: New file.
106620 2007-01-15  Bruno Haible  <bruno@clisp.org>
106622         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
106623         not from GNU libiconv or GNU libc.
106625 2007-01-15  Bruno Haible  <bruno@clisp.org>
106627         * doc/gnulib-intro.texi (Copyright): Explain the different license
106628         terms for module descriptions, autoconf macros, tests, documentation.
106630 2007-01-14  Bruno Haible  <bruno@clisp.org>
106632         * modules/striconv-tests: New file.
106633         * tests/test-striconv.c: New file.
106635 2007-01-14  Bruno Haible  <bruno@clisp.org>
106637         * modules/iconv-tests: New file.
106638         * tests/test-iconv.c: New file.
106640 2007-01-14  Bruno Haible  <bruno@clisp.org>
106642         * gnulib-tool (func_get_license): For test modules, use the license of
106643         the main module.
106645 2007-01-14  Bruno Haible  <bruno@clisp.org>
106647         * modules/iconv (Include): Clarify that <iconv.h> can only be included
106648         if iconv is found to exist.
106650 2007-01-14  Bruno Haible  <bruno@clisp.org>
106652         * modules/c-ctype-tests: New file.
106653         * tests/test-c-ctype.c: New file.
106655 2007-01-14  Bruno Haible  <bruno@clisp.org>
106657         * modules/binary-io-tests: New file.
106658         * tests/test-binary-io.sh: New file.
106659         * tests/test-binary-io.c: New file.
106661 2007-01-14  Bruno Haible  <bruno@clisp.org>
106663         * modules/array-oset-tests: New file.
106664         * tests/test-array_oset.c: New file.
106666 2007-01-14  Bruno Haible  <bruno@clisp.org>
106668         * modules/array-list-tests: New file.
106669         * tests/test-array_list.c: New file.
106671 2007-01-14  Bruno Haible  <bruno@clisp.org>
106673         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
106674         and make.
106675         Reported by Simon Josefsson in
106676         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
106678 2007-01-14  Bruno Haible  <bruno@clisp.org>
106680         * modules/allocsa-tests: New file.
106681         * tests/test-allocsa.c: New file.
106683 2007-01-14  Bruno Haible  <bruno@clisp.org>
106685         * modules/fchdir (Depends-on): Add absolute-header.
106686         * modules/unistd (Depends-on): Likewise.
106688 2006-12-30  Bruno Haible  <bruno@clisp.org>
106690         * modules/fchdir: New file.
106691         * modules/unistd (Files): Add lib/unistd_.h.
106692         (Makefile.am): Generate unistd.h from unistd_.h.
106693         * lib/fchdir.c: New file.
106694         * lib/dirent_.h: New file.
106695         * lib/unistd_.h: New file.
106696         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
106697         * m4/fchdir.m4: New file.
106698         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
106699         (gl_HEADER_UNISTD): Invoke it.
106700         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
106701         function.
106702         * lib/backupfile.c (opendir, closedir): Undefine.
106703         * lib/chown.c (open, close): Undefine.
106704         * lib/clean-temp.c (open, close): Undefine.
106705         * lib/copy-file.c (open, close): Undefine.
106706         * lib/execute.c (open, close): Undefine.
106707         * lib/fsusage.c (open, close): Undefine.
106708         * lib/gc-gnulib.c (open, close): Undefine.
106709         * lib/getcwd.c (opendir, closedir): Undefine.
106710         * lib/glob.c (opendir, closedir): Undefine.
106711         * lib/javacomp.c (open, close): Undefine.
106712         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
106713         * lib/openat-proc.c (open, close): Undefine.
106714         * lib/pagealign_alloc.c (open, close): Undefine.
106715         * lib/pipe.c (open, close): Undefine.
106716         * lib/progreloc.c (open, close): Undefine.
106717         * lib/savedir.c (opendir, closedir): Undefine.
106718         * lib/utime.c (open, close): Undefine.
106719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
106721 2007-01-10  Bruno Haible  <bruno@clisp.org>
106723         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
106725 2007-01-12  Eric Blake  <ebb9@byu.net>
106727         Provide a robust <wchar.h>.  Further simplifications are now
106728         possible in other modules, but not included here.
106729         * modules/wchar: New module.
106730         * m4/wchar.m4: New file.
106731         * lib/wchar_.h: Likewise.
106732         * modules/mbchar (Depends-on): Depend on wchar, as the first use
106733         of the new module.
106734         * MODULES.html.sh (Extended multibyte and wide character utilities):
106735         New section.
106737 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
106739         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
106740         to a reasonable default for memory allocation.
106741         (xreadlink): Don't allocate a huge buffer, to work around a buggy
106742         file system that reports garbage st_size values for symlinks.
106743         Problem reported by Liyang Hu.
106745 2007-01-11  Simon Josefsson  <simon@josefsson.org>
106747         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
106748         Emacs .#* auto-save files).
106750 2007-01-11  Bruno Haible  <bruno@clisp.org>
106752         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
106753         directory.
106755 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
106757         Use @...@ consistently in lib/wctype_.h.
106758         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
106759         on it being set to 1 or 0.
106760         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
106761         go back to AC_SUBSTing it.
106762         * modules/wctype (Makefile.am): Undo previous change.
106764 2007-01-10  Eric Blake  <ebb9@byu.net>
106766         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
106767         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
106768         * modules/wctype (Makefile.am): Likewise.
106769         Reported by Chris McGuire.
106771 2007-01-10  Jim Meyering  <jim@meyering.net>
106773         fts.c: a small readability/maintainability improvement
106774         * lib/fts.c (fts_read): Make this code slightly more readable and
106775         maintainable by hoisting the "sp->fts_cur = p" assignments to
106776         immediately follow the statements that set P.  Derived from
106777         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
106779 2007-01-10  Eric Blake  <ebb9@byu.net>
106781         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
106782         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
106783         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
106784         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
106785         Reported by Chris McGuire.
106787 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106789         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
106790         in sed script.
106792 2007-01-09  Bruno Haible  <bruno@clisp.org>
106794         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
106795         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
106796         variables.
106797         (func_module): Use them.
106799 2007-01-09  Bruno Haible  <bruno@clisp.org>
106801         * modules/unistr/base: New file.
106802         * lib/unistr.h: New file.
106804         * modules/unistr/u8-to-u16: New file.
106805         * lib/unistr/u8-to-u16.c: New file.
106807         * modules/unistr/u8-to-u32: New file.
106808         * lib/unistr/u8-to-u32.c: New file.
106810         * modules/unistr/u16-to-u8: New file.
106811         * lib/unistr/u16-to-u8.c: New file.
106813         * modules/unistr/u16-to-u32: New file.
106814         * lib/unistr/u16-to-u32.c: New file.
106816         * modules/unistr/u32-to-u8: New file.
106817         * lib/unistr/u32-to-u8.c: New file.
106819         * modules/unistr/u32-to-u16: New file.
106820         * lib/unistr/u32-to-u16.c: New file.
106822         * modules/unistr/u8-check: New file.
106823         * modules/unistr/u16-check: New file.
106824         * modules/unistr/u32-check: New file.
106825         * lib/unistr/u8-check.c: New file.
106826         * lib/unistr/u16-check.c: New file.
106827         * lib/unistr/u32-check.c: New file.
106829         * modules/unistr/u8-chr: New file.
106830         * modules/unistr/u16-chr: New file.
106831         * modules/unistr/u32-chr: New file.
106832         * lib/unistr/u8-chr.c: New file.
106833         * lib/unistr/u16-chr.c: New file.
106834         * lib/unistr/u32-chr.c: New file.
106836         * modules/unistr/u8-cmp: New file.
106837         * modules/unistr/u16-cmp: New file.
106838         * modules/unistr/u32-cmp: New file.
106839         * lib/unistr/u8-cmp.c: New file.
106840         * lib/unistr/u16-cmp.c: New file.
106841         * lib/unistr/u32-cmp.c: New file.
106843         * modules/unistr/u8-cpy: New file.
106844         * modules/unistr/u16-cpy: New file.
106845         * modules/unistr/u32-cpy: New file.
106846         * lib/unistr/u8-cpy.c: New file.
106847         * lib/unistr/u16-cpy.c: New file.
106848         * lib/unistr/u32-cpy.c: New file.
106849         * lib/unistr/u-cpy.h: New file.
106851         * modules/unistr/u8-cpy-alloc: New file.
106852         * modules/unistr/u16-cpy-alloc: New file.
106853         * modules/unistr/u32-cpy-alloc: New file.
106854         * lib/unistr/u8-cpy-alloc.c: New file.
106855         * lib/unistr/u16-cpy-alloc.c: New file.
106856         * lib/unistr/u32-cpy-alloc.c: New file.
106857         * lib/unistr/u-cpy-alloc.h: New file.
106859         * modules/unistr/u8-endswith: New file.
106860         * modules/unistr/u16-endswith: New file.
106861         * modules/unistr/u32-endswith: New file.
106862         * lib/unistr/u8-endswith.c: New file.
106863         * lib/unistr/u16-endswith.c: New file.
106864         * lib/unistr/u32-endswith.c: New file.
106865         * lib/unistr/u-endswith.h: New file.
106867         * modules/unistr/u8-mblen: New file.
106868         * modules/unistr/u16-mblen: New file.
106869         * modules/unistr/u32-mblen: New file.
106870         * lib/unistr/u8-mblen.c: New file.
106871         * lib/unistr/u16-mblen.c: New file.
106872         * lib/unistr/u32-mblen.c: New file.
106874         * modules/unistr/u8-mbtouc: New file.
106875         * modules/unistr/u16-mbtouc: New file.
106876         * modules/unistr/u32-mbtouc: New file.
106877         * lib/unistr/u8-mbtouc.c: New file.
106878         * lib/unistr/u16-mbtouc.c: New file.
106879         * lib/unistr/u32-mbtouc.c: New file.
106881         * modules/unistr/u8-mbtouc-safe: New file.
106882         * modules/unistr/u16-mbtouc-safe: New file.
106883         * modules/unistr/u32-mbtouc-safe: New file.
106884         * lib/unistr/u8-mbtouc-safe.c: New file.
106885         * lib/unistr/u16-mbtouc-safe.c: New file.
106886         * lib/unistr/u32-mbtouc-safe.c: New file.
106888         * modules/unistr/u8-move: New file.
106889         * modules/unistr/u16-move: New file.
106890         * modules/unistr/u32-move: New file.
106891         * lib/unistr/u8-move.c: New file.
106892         * lib/unistr/u16-move.c: New file.
106893         * lib/unistr/u32-move.c: New file.
106894         * lib/unistr/u-move.h: New file.
106896         * modules/unistr/u8-next: New file.
106897         * modules/unistr/u16-next: New file.
106898         * modules/unistr/u32-next: New file.
106899         * lib/unistr/u8-next.c: New file.
106900         * lib/unistr/u16-next.c: New file.
106901         * lib/unistr/u32-next.c: New file.
106903         * modules/unistr/u8-prev: New file.
106904         * modules/unistr/u16-prev: New file.
106905         * modules/unistr/u32-prev: New file.
106906         * lib/unistr/u8-prev.c: New file.
106907         * lib/unistr/u16-prev.c: New file.
106908         * lib/unistr/u32-prev.c: New file.
106910         * modules/unistr/u8-set: New file.
106911         * modules/unistr/u16-set: New file.
106912         * modules/unistr/u32-set: New file.
106913         * lib/unistr/u8-set.c: New file.
106914         * lib/unistr/u16-set.c: New file.
106915         * lib/unistr/u32-set.c: New file.
106916         * lib/unistr/u-set.h: New file.
106918         * modules/unistr/u8-startswith: New file.
106919         * modules/unistr/u16-startswith: New file.
106920         * modules/unistr/u32-startswith: New file.
106921         * lib/unistr/u8-startswith.c: New file.
106922         * lib/unistr/u16-startswith.c: New file.
106923         * lib/unistr/u32-startswith.c: New file.
106924         * lib/unistr/u-startswith.h: New file.
106926         * modules/unistr/u8-stpcpy: New file.
106927         * modules/unistr/u16-stpcpy: New file.
106928         * modules/unistr/u32-stpcpy: New file.
106929         * lib/unistr/u8-stpcpy.c: New file.
106930         * lib/unistr/u16-stpcpy.c: New file.
106931         * lib/unistr/u32-stpcpy.c: New file.
106932         * lib/unistr/u-stpcpy.h: New file.
106934         * modules/unistr/u8-stpncpy: New file.
106935         * modules/unistr/u16-stpncpy: New file.
106936         * modules/unistr/u32-stpncpy: New file.
106937         * lib/unistr/u8-stpncpy.c: New file.
106938         * lib/unistr/u16-stpncpy.c: New file.
106939         * lib/unistr/u32-stpncpy.c: New file.
106940         * lib/unistr/u-stpncpy.h: New file.
106942         * modules/unistr/u8-strcat: New file.
106943         * modules/unistr/u16-strcat: New file.
106944         * modules/unistr/u32-strcat: New file.
106945         * lib/unistr/u8-strcat.c: New file.
106946         * lib/unistr/u16-strcat.c: New file.
106947         * lib/unistr/u32-strcat.c: New file.
106948         * lib/unistr/u-strcat.h: New file.
106950         * modules/unistr/u8-strchr: New file.
106951         * modules/unistr/u16-strchr: New file.
106952         * modules/unistr/u32-strchr: New file.
106953         * lib/unistr/u8-strchr.c: New file.
106954         * lib/unistr/u16-strchr.c: New file.
106955         * lib/unistr/u32-strchr.c: New file.
106957         * modules/unistr/u8-strcmp: New file.
106958         * modules/unistr/u16-strcmp: New file.
106959         * modules/unistr/u32-strcmp: New file.
106960         * lib/unistr/u8-strcmp.c: New file.
106961         * lib/unistr/u16-strcmp.c: New file.
106962         * lib/unistr/u32-strcmp.c: New file.
106964         * modules/unistr/u8-strcpy: New file.
106965         * modules/unistr/u16-strcpy: New file.
106966         * modules/unistr/u32-strcpy: New file.
106967         * lib/unistr/u8-strcpy.c: New file.
106968         * lib/unistr/u16-strcpy.c: New file.
106969         * lib/unistr/u32-strcpy.c: New file.
106970         * lib/unistr/u-strcpy.h: New file.
106972         * modules/unistr/u8-strcspn: New file.
106973         * modules/unistr/u16-strcspn: New file.
106974         * modules/unistr/u32-strcspn: New file.
106975         * lib/unistr/u8-strcspn.c: New file.
106976         * lib/unistr/u16-strcspn.c: New file.
106977         * lib/unistr/u32-strcspn.c: New file.
106978         * lib/unistr/u-strcspn.h: New file.
106980         * modules/unistr/u8-strdup: New file.
106981         * modules/unistr/u16-strdup: New file.
106982         * modules/unistr/u32-strdup: New file.
106983         * lib/unistr/u8-strdup.c: New file.
106984         * lib/unistr/u16-strdup.c: New file.
106985         * lib/unistr/u32-strdup.c: New file.
106986         * lib/unistr/u-strdup.h: New file.
106988         * modules/unistr/u8-strlen: New file.
106989         * modules/unistr/u16-strlen: New file.
106990         * modules/unistr/u32-strlen: New file.
106991         * lib/unistr/u8-strlen.c: New file.
106992         * lib/unistr/u16-strlen.c: New file.
106993         * lib/unistr/u32-strlen.c: New file.
106994         * lib/unistr/u-strlen.h: New file.
106996         * modules/unistr/u8-strmblen: New file.
106997         * modules/unistr/u16-strmblen: New file.
106998         * modules/unistr/u32-strmblen: New file.
106999         * lib/unistr/u8-strmblen.c: New file.
107000         * lib/unistr/u16-strmblen.c: New file.
107001         * lib/unistr/u32-strmblen.c: New file.
107003         * modules/unistr/u8-strmbtouc: New file.
107004         * modules/unistr/u16-strmbtouc: New file.
107005         * modules/unistr/u32-strmbtouc: New file.
107006         * lib/unistr/u8-strmbtouc.c: New file.
107007         * lib/unistr/u16-strmbtouc.c: New file.
107008         * lib/unistr/u32-strmbtouc.c: New file.
107010         * modules/unistr/u8-strncat: New file.
107011         * modules/unistr/u16-strncat: New file.
107012         * modules/unistr/u32-strncat: New file.
107013         * lib/unistr/u8-strncat.c: New file.
107014         * lib/unistr/u16-strncat.c: New file.
107015         * lib/unistr/u32-strncat.c: New file.
107016         * lib/unistr/u-strncat.h: New file.
107018         * modules/unistr/u8-strncmp: New file.
107019         * modules/unistr/u16-strncmp: New file.
107020         * modules/unistr/u32-strncmp: New file.
107021         * lib/unistr/u8-strncmp.c: New file.
107022         * lib/unistr/u16-strncmp.c: New file.
107023         * lib/unistr/u32-strncmp.c: New file.
107025         * modules/unistr/u8-strncpy: New file.
107026         * modules/unistr/u16-strncpy: New file.
107027         * modules/unistr/u32-strncpy: New file.
107028         * lib/unistr/u8-strncpy.c: New file.
107029         * lib/unistr/u16-strncpy.c: New file.
107030         * lib/unistr/u32-strncpy.c: New file.
107031         * lib/unistr/u-strncpy.h: New file.
107033         * modules/unistr/u8-strnlen: New file.
107034         * modules/unistr/u16-strnlen: New file.
107035         * modules/unistr/u32-strnlen: New file.
107036         * lib/unistr/u8-strnlen.c: New file.
107037         * lib/unistr/u16-strnlen.c: New file.
107038         * lib/unistr/u32-strnlen.c: New file.
107039         * lib/unistr/u-strnlen.h: New file.
107041         * modules/unistr/u8-strpbrk: New file.
107042         * modules/unistr/u16-strpbrk: New file.
107043         * modules/unistr/u32-strpbrk: New file.
107044         * lib/unistr/u8-strpbrk.c: New file.
107045         * lib/unistr/u16-strpbrk.c: New file.
107046         * lib/unistr/u32-strpbrk.c: New file.
107047         * lib/unistr/u-strpbrk.h: New file.
107049         * modules/unistr/u8-strrchr: New file.
107050         * modules/unistr/u16-strrchr: New file.
107051         * modules/unistr/u32-strrchr: New file.
107052         * lib/unistr/u8-strrchr.c: New file.
107053         * lib/unistr/u16-strrchr.c: New file.
107054         * lib/unistr/u32-strrchr.c: New file.
107056         * modules/unistr/u8-strspn: New file.
107057         * modules/unistr/u16-strspn: New file.
107058         * modules/unistr/u32-strspn: New file.
107059         * lib/unistr/u8-strspn.c: New file.
107060         * lib/unistr/u16-strspn.c: New file.
107061         * lib/unistr/u32-strspn.c: New file.
107062         * lib/unistr/u-strspn.h: New file.
107064         * modules/unistr/u8-strstr: New file.
107065         * modules/unistr/u16-strstr: New file.
107066         * modules/unistr/u32-strstr: New file.
107067         * lib/unistr/u8-strstr.c: New file.
107068         * lib/unistr/u16-strstr.c: New file.
107069         * lib/unistr/u32-strstr.c: New file.
107070         * lib/unistr/u-strstr.h: New file.
107072         * modules/unistr/u8-strtok: New file.
107073         * modules/unistr/u16-strtok: New file.
107074         * modules/unistr/u32-strtok: New file.
107075         * lib/unistr/u8-strtok.c: New file.
107076         * lib/unistr/u16-strtok.c: New file.
107077         * lib/unistr/u32-strtok.c: New file.
107078         * lib/unistr/u-strtok.h: New file.
107080         * modules/unistr/u8-uctomb: New file.
107081         * modules/unistr/u16-uctomb: New file.
107082         * modules/unistr/u32-uctomb: New file.
107083         * lib/unistr/u8-uctomb.c: New file.
107084         * lib/unistr/u16-uctomb.c: New file.
107085         * lib/unistr/u32-uctomb.c: New file.
107087         * MODULES.html.sh (Unicode string functions): Add the new modules.
107089 2007-01-08  Bruno Haible  <bruno@clisp.org>
107091         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
107092         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
107093         subdirectories.
107095 2007-01-08  Karl Berry  <karl@gnu.org>
107097         * doc/error.texi: mention that main() fns must set program_name
107098         when progname is used.
107100 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
107102         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
107103         WCTYPE_H is empty, for the benefit of builds from non-distclean
107104         directories.  Problem reported by Eric Blake in
107105         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
107107 2007-01-08  Bruno Haible  <bruno@clisp.org>
107109         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
107110         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
107111         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
107112         PROVIDE_CANONICALIZE_FILENAME_MODE.
107113         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
107115 2007-01-08  Bruno Haible  <bruno@clisp.org>
107117         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
107118         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
107119         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
107120         * lib/fts.c: Likewise.
107121         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
107123 2006-12-25  Bruno Haible  <bruno@clisp.org>
107125         * modules/utf8-ucs4-safe: New file.
107126         * lib/utf8-ucs4-safe.h: New file.
107127         * lib/unistr/utf8-ucs4-safe.c: New file.
107129         * modules/utf16-ucs4-safe: New file.
107130         * lib/utf16-ucs4-safe.h: New file.
107131         * lib/unistr/utf16-ucs4-safe.c: New file.
107133         * MODULES.html.sh (Unicode string functions): Add the new modules.
107135 2007-01-08  Bruno Haible  <bruno@clisp.org>
107137         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
107138         (Depends-on): Add unitypes.
107139         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107140         (u8_mbtouc_aux): Move out to separate file.
107141         (u8_mbtouc): Use ucs4_t, uint8_t types.
107142         * lib/unistr/utf8-ucs4.c: New file.
107144         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
107145         (Depends-on): Add unitypes.
107146         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
107147         (u16_mbtouc_aux): Move out to separate file.
107148         (u16_mbtouc): Use ucs4_t, uint16_t types.
107149         * lib/unistr/utf16-ucs4.c: New file.
107151         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
107152         (Depends-on): Add unitypes.
107153         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
107154         (u8_uctomb_aux): Move out to separate file.
107155         (u8_uctomb): Use ucs4_t, uint8_t types.
107156         * lib/unistr/ucs4-utf8.c: New file.
107158         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
107159         (Depends-on): Add unitypes.
107160         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
107161         (u16_uctomb_aux): Move out to separate file.
107162         (u16_uctomb): Use ucs4_t, uint16_t types.
107163         * lib/unistr/ucs4-utf16.c: New file.
107165 2006-12-25  Bruno Haible  <bruno@clisp.org>
107167         * modules/unitypes: New file.
107168         * lib/unitypes.h: New file.
107169         * MODULES.html.sh (func_all_modules): New section "Unicode string
107170         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
107171         this section. Add unitypes.
107173 2007-01-08  Bruno Haible  <bruno@clisp.org>
107175         Avoid variable names that conflict with those from libtool.
107176         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
107177         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
107178         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
107179         library_names_spec to acl_library_names_spec, hardcode_* to
107180         acl_hardcode_*.
107181         Reported by Ralf Wildenhues.
107183 2007-01-08  Bruno Haible  <bruno@clisp.org>
107185         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
107186         definition.
107187         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
107188         definition.
107189         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
107190         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
107191         definition.
107192         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
107193         definition.
107194         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
107195         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
107196         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
107197         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
107198         definition.
107199         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
107200         definition.
107201         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
107202         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
107203         GC_USE_<algorithm>.
107204         * lib/gc-libgcrypt.c: Likewise.
107205         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
107206         * modules/gc-arctwo (configure.ac): Likewise.
107207         * modules/gc-des (configure.ac): Likewise.
107208         * modules/gc-hmac-md5 (configure.ac): Likewise.
107209         * modules/gc-hmac-sha1 (configure.ac): Likewise.
107210         * modules/gc-md2 (configure.ac): Likewise.
107211         * modules/gc-md4 (configure.ac): Likewise.
107212         * modules/gc-md5 (configure.ac): Likewise.
107213         * modules/gc-random (configure.ac): Likewise.
107214         * modules/gc-rijndael (configure.ac): Likewise.
107215         * modules/gc-sha1 (configure.ac): Likewise.
107217 2007-01-08  Bruno Haible  <bruno@clisp.org>
107219         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
107220         macro definition.
107221         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
107222         definition.
107223         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
107224         definition.
107225         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
107226         * modules/fcntl-safer (configure.ac): Likewise.
107227         * modules/fopen-safer (configure.ac): Likewise.
107228         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
107229         GNULIB_FWRITEERROR macro definition.
107231 2007-01-08  Bruno Haible  <bruno@clisp.org>
107233         * m4/gnulib-common.m4: New file.
107234         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
107235         (func_get_filelist): Add m4/gnulib-common.m4.
107237 2007-01-08  Bruno Haible  <bruno@clisp.org>
107239         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
107240         command.
107242 2007-01-08  Jim Meyering  <jim@meyering.net>
107244         Use a more robust test for a "can't happen" condition.
107245         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
107246         narrowed the st_size value.  Presuming the "can't happen" condition
107247         is true, that narrowing could conceivably convert an invalid st_size
107248         value into a valid one.  Instead, use a change based on Matthew
107249         Woehlke's original patch.
107251         Slight readability improvement: use an assert-like macro
107252         in place of literal "abort ()" uses.
107253         * lib/fts.c (fts_assert): Define.
107254         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
107255         Use this macro instead of a bare 'abort'.
107257 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
107259         Don't worry about using IRIX 5.3's wctype.h broken definitions;
107260         simply work around them.
107261         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
107262         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
107263         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
107264         declaring.
107265         Don't bother to define as macros, since the standard doesn't require it.
107266         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
107267         longer worry about IRIX 5.3.
107268         (HAVE_WCTYPE_CTMP_BUG): Remove.
107270 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107272         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
107273         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
107274         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
107275         Problems reported by Georg Schwarz for IRIX 5.3.
107277         * gnulib-tool (autoconf_minversion): Take the maximum version number
107278         found, not the minimum.  Problem reported by James Youngman.
107280 2007-01-03  Karl Berry  <karl@gnu.org>
107282         * doc/error.texi: new file, explaining interaction with progname.
107283         * doc/gnulib.texi: include it.  Update copyright.
107285 2007-01-03  Simon Josefsson  <simon@josefsson.org>
107287         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
107288         AC_CANONICAL_HOST, to improve autobuild outputs.
107290 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
107291             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
107293         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
107294         sockets, server sockets, and other file descriptors.  Count errors
107295         to compute the return value.  Reorder the code a bit to be easier
107296         to follow.  Don't set event bits that were not requested (except
107297         POLLERR and POLLHUP).
107299 2007-01-01  Bruno Haible  <bruno@clisp.org>
107301         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
107303 2007-01-03  Jim Meyering  <jim@meyering.net>
107305         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
107307 2007-01-02  Bruno Haible  <bruno@clisp.org>
107309         * modules/settime (Include): Require timespec.h.
107310         * modules/nanosleep (Include): Likewise.
107312 2007-01-01  Bruno Haible  <bruno@clisp.org>
107314         * gnulib-tool (func_emit_copyright_notice): Bump year.
107315         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
107317 2007-01-01  Bruno Haible  <bruno@clisp.org>
107319         Improve support for OpenBSD.
107320         * build-aux/config.rpath (libname_spec): Export.
107321         (library_names_spec): New variable. Export.
107322         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
107323         library_names_spec from the config.rpath output. Locate shared library
107324         through the name pattern in library_names_spec.
107326 2007-01-01  Eric Blake  <ebb9@byu.net>
107328         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
107330 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
107332         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
107333         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
107334         assume the C locale, and avoid an "eval" that could cause trouble.
107335         Problem with SORT reported by Bob Proulx.
107337         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
107338         Define.  Trivial patch from Henning Nielsen Lund, originally
107339         sent to bug-grep@gnu.org today.
107341 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
107343         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
107344         struct stat.  Problem reported by Henning Nielsen Lund.
107345         * lib/acl.c: Include acl.h first, to check interface.  Don't
107346         bother to include sys/types.h and sys/stat.h again.
107348 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107350         Import the following change from libc; problem reported by
107351         Sven Verdoolaege.
107353         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
107355         [BZ #1373]
107356         * lib/argp.h: Remove __NTH for __argp_usage inline function.
107358 2006-12-28  Jim Meyering  <jim@meyering.net>
107360         * build-aux/announce-gen: Do not assume that the package
107361         builds any of tar.gz, tar.bz2, and .xdelta files.
107362         Suggestion from Simon Josefsson.
107364 2006-12-28  Simon Josefsson  <simon@josefsson.org>
107366         * modules/announce-gen: New file.
107368 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107370         * lib/mbchar.h: Just include <wctype.h>; the wctype module
107371         handles its gotchas now.
107372         * lib/mbswidth.c: Likewise.
107373         * lib/wcwidth.h: Likewise.
107374         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
107375         and iswcntrl; the wctype module does this stuff now.
107376         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
107377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
107378         * modules/mbchar (Depends-on): Add wctype.
107379         * modules/mbswidth (Depends-on): Likewise.
107380         * modules/wcwidth (Depends-on): Likewise.
107382 2006-12-27  Eric Blake  <ebb9@byu.net>
107384         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
107385         module uses more than what <wctype.h> is required to provide.
107387 2006-12-26  Eric Blake  <ebb9@byu.net>
107389         * gnulib-tool (sed_extract_prog): Avoid space-tab.
107391 2006-12-26  Eric Blake  <ebb9@byu.net>
107393         * modules/absolute-header: New module.
107394         * modules/fcntl (Depends-on): Depend on it.
107395         * modules/inttypes (Depends-on): Likewise.
107396         * modules/stdint (Depends-on): Likewise.
107397         * modules/sys_stat (Depends-on): Likewise.
107398         * modules/wctype (Depends-on): Likewise.
107399         * MODULES.html.sh (Support for building libraries and
107400         executables): Document it.
107402 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
107404         * gnulib-tool (SED): Remove, undoing previous change.
107405         The problem was that it broke coreutils on Solaris, because
107406         "sed --posix" leaked into a makefile.
107407         (sed): New alias, if 'alias' and GNU sed.
107409 2006-12-24  Jim Meyering  <jim@meyering.net>
107411         Work around an fchownat bug in glibc-2.4:
107412         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
107413         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
107414         in spite of the -P option.
107415         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
107416         New macros.
107417         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
107418         * modules/openat (Files): Add lib/fchownat.c.
107419         * lib/openat.c (fchownat): Don't define here.  Move to...
107420         * lib/fchownat.c: ...this new file.
107422 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107424         Fix bug reported by Bruno Haible in
107425         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
107426         where quotearg.c didn't compile on Mac OS X 10.2 because it
107427         lacks <wchar.h> and wint_t.
107428         * lib/wctype_.h (__wctype_wint_t): New type.
107429         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
107430         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
107431         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
107432         Arg is now of type __wctype_wint_t, not wint_t.
107433         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
107434         substitute HAVE_WINT_T.
107435         * modules/wctype (Files): Add m4/wint_t.m4.
107436         (wctype.h): Substitute HAVE_WINT_T.
107438 2006-12-23  Bruno Haible  <bruno@clisp.org>
107440         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
107442 2006-12-23  Bruno Haible  <bruno@clisp.org>
107444         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
107445         S_ISLNK.
107446         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
107447         mingw.
107449 2006-12-22  Bruno Haible  <bruno@clisp.org>
107451         * lib/copy-file.c: Include acl.h.
107452         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
107453         Close the file descriptors only after being done with copy_acl.
107454         * modules/copy-file (Depends-on): Add acl.
107456 2006-12-22  Bruno Haible  <bruno@clisp.org>
107458         * gnulib-tool (SED): New variable.
107459         Use $SED instead of sed everywhere.
107461 2006-12-22  Bruno Haible  <bruno@clisp.org>
107463         * modules/no-c++: New file.
107464         * m4/no-c++.m4: New file.
107465         * MODULES.html.sh (Support for building libraries and executables):
107466         Add no-c++.
107468 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
107470         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
107471         Include <limits.h>, and use its INT_MAX to rewrite the
107472         j loop so that it does not overflow 'int'.  Problem reported by
107473         Ralf Wildenhues in
107474         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
107475         Play it safe by shifting left by 1 rather than multiplying by 2,
107476         as GCC is less likely to optimize this away when the value
107477         is signed (when it assumes overflow leads to undefined behavior).
107478         Also, don't assume time_t uses two's complement.
107480 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
107482         * MODULES.html.sh: New module wctype.
107483         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
107484         * lib/fnmatch.c: Don't bother to include <wchar.h> before
107485         <wctype.h>, since the new wctype module should fix this.
107486         * lib/quotearg.c: Include <wctype.h> unconditionally, since
107487         the wctype module should arrange for it.
107488         * lib/regex_internal.h: Likewise.
107489         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
107490         since the wctype module should handle this now.
107491         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
107492         * modules/fnmatch (Depends-on): Add wctype.
107493         * modules/quotearg (Depends-on): Likewise.
107494         * modules/regex (Depends-on): Likewise.
107496 2006-12-19  Bruno Haible  <bruno@clisp.org>
107498         * lib/strdup.h [C++]: Wrap definitions in extern "C".
107499         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
107501 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107503         * modules/savewd (Depends-on): Fix dependency on fcntl.
107505 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107507         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
107508         conforms to C99, rather than relying on the user's environment
107509         setting of STDINT_H.
107511 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
107512         and Eric Blake  <ebb9@byu.net>
107514         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
107515         This is more consistent with the other defines here.
107516         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
107517         Port to z/OS.  Problem reported by Paul Gilmartin.
107518         Change local vars to use gl_ prefix rather than ac_.
107519         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
107520         with other defines.
107521         * modules/double-slash-root: New module.
107522         * modules/dirname (Files): Remove m4/double-slash-root.m4.
107523         (Depends-on): Add double-slash-root.
107524         * MODULES.html.sh (File system functions): Mention new module.
107526 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
107528         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
107529         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
107530         This is for the benefit of gzip, which doesn't do i18n.
107532 2006-12-12  Jim Meyering  <jim@meyering.net>
107534         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
107535         Reported by Andreas Schwab <schwab@suse.de>.
107537 2006-12-12  Bruno Haible  <bruno@clisp.org>
107539         Merge these changes.
107540         2006-09-05  Bruno Haible  <bruno@clisp.org>
107541         * lib/iconvme.c (iconv_string): No need to save and restore errno when
107542         iconv_alloc succeeded.
107543         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
107544         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
107545         test for " && dest " at the end - dest is always != NULL there. Call
107546         iconv with 4xNULL arguments initially, to reset the state. Call iconv
107547         with 2xNULL arguments, also to flush the state storage. Handle the
107548         IRIX iconv behaviour. Realloc the final result, to throw away unused
107549         memory.
107551 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
107553         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
107554         and fchmodat unconditionally, since glibc 2.4 has them.
107555         Problem reported by Arkadiusz Miskiewicz.
107557 2006-12-10  Bruno Haible  <bruno@clisp.org>
107559         * gnulib-tool (func_import): Show the include files only for those
107560         modules that are copied and specified.
107561         Reported by Karl Berry.
107563 2006-12-08  Jim Meyering  <jim@meyering.net>
107565         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
107566         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
107568         * build-aux/announce-gen: Add two new options, both optional:
107569         --bootstrap-tools=TOOL_LIST
107570               a comma-separated list of tools, e.g.,
107571               autoconf,automake,bison,gnulib
107572         --gnulib-snapshot-date=DATE
107573               if gnulib is in the bootstrap tool list,
107574               then report this as the snapshot date.
107575               If not specified, use the current date/time.
107576               If you specify a date here, be sure it's UTC.
107578 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107580         * tests/test-argp-2.sh: Fix test to match actual output.
107581         (func_compare): Fix sed script to be portable.
107583 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
107585         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
107586         workaround for this case.  It is not autoconfigured now; offhand
107587         it's hard to see how to autoconfigure it.
107589 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
107591         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
107592         a directory that is about to be chowned.  Such a directory's
107593         initial file permissions should permit the owner only and this
107594         should not be changed until after the chown, since the group and
107595         other bits would be incorrect if they granted permission before
107596         the chown.
107598         Fix porting problem for iswctype reported by Georg Schwarz in:
107599         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
107600         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
107601         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
107602         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
107603         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
107605 2006-12-03  Jim Meyering  <jim@meyering.net>
107607         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
107608         p->fts_statp may not yet be defined.
107609         (fts_read): Instead, set it in the caller, once p->fts_statp is
107610         sure to be defined, and corresponds to a top-level directory.
107611         This bug made du -x fail.  Here's the coreutils test case:
107612         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
107613         Reported by Mike Frysinger.
107615 2006-12-01  Jim Meyering  <jim@meyering.net>
107617         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
107618         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
107619         Reported by Simon Josefsson.
107621 2006-11-30  Jim Meyering  <jim@meyering.net>
107623         * m4/warning.m4: Use the all-permissive copyright notice
107624         recommended by RMS (rather than LGPL).
107625         * m4/vararrays.m4: Likewise.
107626         * m4/flexmember.m4: Likewise.
107628 2006-11-29  Bruno Haible  <bruno@clisp.org>
107630         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107631         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
107632         using +=.
107633         Reported by Simon Josefsson <simon@josefsson.org>.
107635 2006-11-28  James Youngman  <jay@gnu.org>
107637         * README: Advise users that they might find the bug-gnulib@gnu.org
107638         and autotools-announce@gnu.org mailing lists useful.
107640 2006-11-28  Bruno Haible  <bruno@clisp.org>
107642         * m4/ptrdiff_max.m4: Remove file.
107644 2006-11-21  Bruno Haible  <bruno@clisp.org>
107646         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
107647         _AC_COMPUTE_INT.
107648         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107649         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
107650         _AC_COMPUTE_INT.
107651         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107652         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
107653         _AC_COMPUTE_INT.
107654         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107656 2006-11-28  Jim Meyering  <jim@meyering.net>
107658         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
107659         warning from "gcc -Wshadow" about shadowing the builtin.
107661 2006-11-27  Bruno Haible  <bruno@clisp.org>
107663         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
107664         _AC_COMPUTE_INT.
107665         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
107667 2006-11-27  Bruno Haible  <bruno@clisp.org>
107668             Paul Eggert  <eggert@cs.ucla.edu>
107670         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
107672 2006-11-26  Bruno Haible  <bruno@clisp.org>
107674         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
107675         noinst_LTLIBRARIES.
107677 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
107678             Bruno Haible  <bruno@clisp.org>
107680         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
107681         if compiling with "gcc -ansi".
107683 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
107685         Fix some incompatibilities with gcc -ansi -pedantic.
107686         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
107687         if compiling pedantically with GCC, unless it's C99 or later.
107688         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
107689         it mishandles gcc -ansi -pedantic as well.
107690         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
107691         if gcc -pedantic.
107692         * lib/regexec.c (check_node_accept_bytes): Don't use auto
107693         initializers for struct if -pedantic, unless it's C99 or later.
107695 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
107697         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
107698         Don't close an fd more than once. Identical atimes indicate
107699         success, not failure.
107701 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
107703         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
107705 2006-11-23  Jim Meyering  <jim@meyering.net>
107707         * build-aux/announce-gen: New file.  From coreutils.
107709 2006-11-22  Jim Meyering  <jim@meyering.net>
107711         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
107712         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
107713         (fts_read): Use a temporary to narrow the overused st_size member
107714         before using it in a switch statement.  Reported by Matthew Woehlke.
107716         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
107717         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
107719 2006-11-20  Bruno Haible  <bruno@clisp.org>
107721         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
107722         changequote instead of pairs of brackets.
107723         Reported by Andreas Schwab <schwab@suse.de>.
107725 2006-11-21  Jim Meyering  <jim@meyering.net>
107727         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
107728         so as to remain compatible with older compilers.
107729         Patch from Michael Deutschmann.
107731 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107733         * MODULES.html.sh (File system functions): Add openat.
107735         * lib/openat.h (rpl_fstatat): New macro, if
107736         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
107737         (fstatat): Define to rpl_fstatat under the same conditions,
107738         unless COMPILING_FSTATAT.
107739         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
107740         seems to have the bug.
107741         * lib/fstatat.c: New file.
107742         * modules/openat (Files): Add it.
107744 2006-11-20  Bruno Haible  <bruno@clisp.org>
107746         * Makefile: New file.
107748 2006-11-20  Jim Meyering  <jim@meyering.net>
107750         The beginnings of syntax-related checks for gnulib.
107751         * lib/Makefile: New file.
107752         * lib/t-idcache: New script.  Ensure that the two halves of
107753         idcache.c stay in sync.
107755         * lib/idcache.c: Adjust comments in user- and group- portions to
107756         be more accurate, and to be consistent with one another.
107758 2006-11-20  Jim Meyering  <jim@meyering.net>
107760         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
107761         continue using the flexible array member (thus, this module performs
107762         half as many malloc calls), with the addition that...
107763         (getgroup, getuser): Consistently record a non-match via an empty
107764         "name" string, and map an empty string match to a NULL return value.
107765         * modules/idcache (Depends-on): Re-add flexmember.
107767         * lib/idcache.c (getuser): Remove all uses of the register keyword.
107768         (getuidbyname, getgroup, getgidbyname): Likewise.
107770         Use cleaner syntax: NULL rather than 0.
107771         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
107773 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
107775         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
107776         It mishandled the case where the group was missing.
107777         Problem reported by Greg Schafer.
107778         * modules/idcache: Likewise.
107780 2006-11-18  Jim Meyering  <jim@meyering.net>
107782         * check-module (%exempt_header): Add exception for some
107783         conditionally-included headers.
107785         * modules/i-ring (Depends-on): Add verify.
107786         (License): Change to LGPL.
107788 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
107790         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
107791         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
107792         and inttostr.h.  Use snprintf rather than uinttostr, so that
107793         LGPLed code doesn't depend on GPLed.
107795 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
107797         * modules/inline (License): Change from GPL to LGPL.
107799 2006-11-17  Jim Meyering  <jim@meyering.net>
107801         * modules/d-type (License): Switch to LGPL.
107803 2006-11-15  Bruno Haible  <bruno@clisp.org>
107805         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
107807 2006-11-15  Eric Blake  <ebb9@byu.net>
107809         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
107810         the module dependency.
107812 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
107813             Bruno Haible  <bruno@clisp.org>
107815         * gnulib-tool (func_create_testdir): Add license consistency check.
107817 2006-11-15  Eric Blake  <ebb9@byu.net>
107819         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
107820         random "(cached)" in configure output.
107822 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107824         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
107825         test for conforming inttypes.h is both announced and cached.
107827         * MODULES.html.sh (seen_modules, seen_files): New variables.
107828         (func_module): Rewrite to use a few less gnulib-tool and sed
107829         invocations.  Avoid a couple of quadratic algorithms for ...
107830         (missed_modules, missed_files): ... these, with ...
107831         (func_append, func_tmpdir): ... these new functions, from
107832         gnulib-tool.  Analogously, install traps for cleanup.
107834         * tests/test-gc.c (main): Remove unused variables.
107835         * tests/test-read-file.c: Include stdlib.h, for 'free'.
107837 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
107839         * modules/inttostr (License): Change to LGPL.
107841 2006-11-14  Eric Blake  <ebb9@byu.net>
107843         * modules/tempname (License): Change to LGPL.
107845 2006-11-14  Eric Blake  <ebb9@byu.net>
107847         * doc/functions.texi (Function Portability): *printf functions on
107848         Cygwin now understand all POSIX size specifiers.
107850 2006-11-14  Bruno Haible  <bruno@clisp.org>
107852         * modules/c-ctype (License): Change to LGPL.
107854 2006-11-12  Bruno Haible  <bruno@clisp.org>
107856         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
107857         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
107858         for GNOME libraries, for which the include files are installed in
107859         subdirectories of $prefix/include.
107861 2006-11-12  Bruno Haible  <bruno@clisp.org>
107863         * m4/lib-link.m4: Require at least autoconf-2.54.
107864         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
107865         name to underscores for the --with option.
107867 2006-11-13  Bruno Haible  <bruno@clisp.org>
107869         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
107870         the tests directory.
107871         Reported by Ralf Wildenhues.
107873 2006-11-13  Bruno Haible  <bruno@clisp.org>
107875         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
107876         (func_emit_initmacro_end): Undo the override here.
107877         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
107878         Works around the famous automake error in coreutils.
107880 2006-11-13  Eric Blake  <ebb9@byu.net>
107882         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
107883         element, not its node.
107885 2006-11-12  Bruno Haible  <bruno@clisp.org>
107887         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
107888         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
107890 2006-11-12  Bruno Haible  <bruno@clisp.org>
107892         * gnulib-tool: New option --local-symlink.
107893         (func_usage): Document it.
107894         (lsymbolic): New variable.
107895         (func_import, func_create_testdir): If --symlink was not specified,
107896         test whether --local-symlink was specified and the file comes from
107897         the local_gnulib_dir.
107899 2006-11-12  Bruno Haible  <bruno@clisp.org>
107901         * gnulib-tool (func_ln): New function.
107902         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
107904 2006-11-12  Bruno Haible  <bruno@clisp.org>
107906         Finish support for source files in subdirectories.
107907         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
107908         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
107909         AUTOMAKE_OPTIONS.
107910         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
107912 2006-11-12  Bruno Haible  <bruno@clisp.org>
107914         * gnulib-tool (func_get_automake_snippet): Synthesize also an
107915         EXTRA_lib_SOURCES augmentation.
107916         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
107918 2006-11-12  Jim Meyering  <jim@meyering.net>
107920         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
107921         file descriptors.  This also averts a failure on systems with
107922         native openat support when a traversed directory lacks "x" access.
107923         * lib/fts_.h: Include "i-ring.h"
107924         (struct FTS) [fts_fd_ring]: New member.
107925         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
107926         (FCHDIR): Add parentheses.
107927         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
107928         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
107929         When descending, rather than simply closing the previous
107930         fts_cwd_fd value, push that file descriptor onto the ring.
107931         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
107932         (fts_open): Initialize the new fd_ring member.
107933         (fts_close): Clear the ring.
107934         (fts_safe_changedir): When possible, use our new fd_ring to skip
107935         the diropen and fstat and dev/ino comparison that would normally
107936         accompany a virtual `chdir ("..")'.
107938         * modules/fts (Depends-on): Add i-ring.
107939         * modules/i-ring: New module.
107940         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
107941         * m4/i-ring.m4: New file.
107943 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107945         * gnulib-tool (func_create_testdir): Fix replacement of
107946         `build-aux' in configure.ac.  Run autotools in gltests
107947         subdirectory.
107948         (func_create_testdir, func_create_megatestdir, test): There is
107949         no need for '--force' in most autotool invocations in a new
107950         tree.  Actually fail the whole test if any of the tools, or the
107951         configure or make stages fail.
107953         Sync from Automake.
107954         * build-aux/gnupload: Revert last change.  Add pointer to upload
107955         instructions of the GNU Maintenance Instructions.
107956         Suggestion by Karl Berry.
107958 2006-11-10  Jim Meyering  <jim@meyering.net>
107960         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
107962 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107964         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
107965         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
107966         (bind_textdomain_codeset) [! ENABLE_NLS]:
107967         Evaluate all the arguments.  That way, callers get compatible behavior
107968         if the arguments have side effects.  Also, it avoids some GCC
107969         diagnostics in some cases; Joel E. Denny reported problems when Bison
107970         was configured with --enable-gcc-warnigs.
107972 2006-11-10  Jim Meyering  <jim@meyering.net>
107974         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
107975         relevant options in CFLAGS (like -O, -fno-inline) are taken into
107976         account.
107978 2006-11-10  Jim Meyering  <jim@meyering.net>
107980         * modules/inline: New file/module.
107981         * modules/xalloc (Files): Remove m4/inline.m4.
107982         (Depends-on): Add inline, instead.
107983         * modules/oset: Likewise.
107984         * modules/list: Likewise.
107986 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
107988         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
107989         Problem reported by Matthew Woehlke.
107991 2006-11-09  Bruno Haible  <bruno@clisp.org>
107993         * lib/tempname.c (gen_tempname): Remove variant that invokes
107994         __gen_tempname.
107995         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
107996         __gen_tempname.
107998 2006-11-08  Bruno Haible  <bruno@clisp.org>
108000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
108001         to 'yes' instead of 'cross-compiling'.
108003 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
108005         * lib/quotearg.h (quotearg_free): New decl.
108006         * lib/quotearg.c (quotearg_free): New function.
108007         (slot0, nslots, slotvec0, slotvec):
108008         Now file-scope so that quotearg_free can get at them.
108010 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108012         Sync from Automake.
108013         * build-aux/gnupload: Add missing 'gnu' to example URL.
108014         Report by Karl Berry.
108016 2006-11-08  Bruno Haible  <bruno@clisp.org>
108018         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
108019         Suggested by Paul Eggert.
108021 2006-11-08  Jim Meyering  <jim@meyering.net>
108023         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
108024         It's already included if !_LIBC.
108025         (fts_safe_changedir): Add a comment.
108027 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108029         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
108030         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
108031         Matthew Woehlke.
108033         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
108034         definitions up, to avoid colliding with change below.
108035         (static_inline) [HAVE_INLINE]: New macro.
108036         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
108037         Provide extern decls when !HAVE_INLINE.  Do not define unless
108038         static_inline is defined, either by us or by xmalloc.c.  Use
108039         static_inline rather than static inline.
108040         (XCALLOC): Optimize sizeof(T) = 1 case.
108041         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
108043 2006-11-07  Bruno Haible  <bruno@clisp.org>
108045         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
108046         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
108047         AC_C_INLINE.
108048         * modules/xalloc (Files): Add m4/inline.m4.
108050 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108052         * README: Fix typo.
108053         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
108054         (Miscellanous Notes): ...from this.
108056 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
108058         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
108059         Mention that offsetof should be used instead of sizeof.
108060         From Bruno Haible.
108062 2006-11-07  Bruno Haible  <bruno@clisp.org>
108064         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
108066 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108068         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108069         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
108070         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108071         (gl_tree_add_before, gl_tree_add_after):
108072         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
108073         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
108074         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
108075         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
108076         (gl_linked_add_after, gl_linked_add_at): Likewise.
108077         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
108078         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
108079         (gl_tree_add_before, gl_tree_add_after): Likewise.
108080         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
108081         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
108082         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
108084 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108086         * lib/gl_oset.h: Use C comment style, not C++ comment style.
108088 2006-11-06  Bruno Haible  <bruno@clisp.org>
108090         * m4/inline.m4: New file.
108091         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
108092         * modules/list (Files): Add m4/inline.m4.
108093         * modules/oset (Files): Likewise.
108095 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
108097         * lib/idcache.c: Include <stddef.h>, for offsetof.
108098         (struct userid.name): Change from char * to a flexible array member.
108099         All uses changed.
108100         * modules/idcache (Depends-on): Add flexmember.
108102         * MODULES.html.sh (Core language properties): New module flexmember.
108103         * modules/flexmember, m4/flexmember.m4: New files.
108105         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
108106         inline functions that are identical with the old xnmalloc_inline,
108107         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
108108         that we can avoid some unnecessary integer multiplications and
108109         divisions in the common case where the element size is known at
108110         compile time.
108111         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
108112         needed.
108113         (xnboundedmalloc): Remove.
108114         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
108115         arguments, for consistency with rest of this header.
108116         (xcharalloc): Rewrite using XNMALLOC.
108117         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
108118         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
108119         versions have been moved to lib/xalloc.h and renamed to be the
108120         non-*_inline versions.
108121         (xmalloc, xrealloc): Implement without reference to the xnmalloc
108122         and xnrealloc functions, since those functions are now inline and
108123         now call us.
108124         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
108125         renaming described above.
108126         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
108127         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
108128         captures the dependency in AC_C_INLINE.
108130         New module canonicalize-lgpl, proposed by Charles Wilson in
108131         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
108132         with a few small changes afterwards.
108133         * MODULES.html.sh (File system functions): New module
108134         canonicalize-lgpl.
108135         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
108136         and canonicalize_file_name.
108137         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
108138         * modules/canonicalize-lgpl: New files.
108140 2006-11-05  Bruno Haible  <bruno@clisp.org>
108142         * gnulib-tool (func_import, func_create_testdir): Create directories
108143         also for files in subdirectories of lib/.
108145 2006-11-05  Bruno Haible  <bruno@clisp.org>
108147         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
108148         ANSI C compliant.
108150 2006-11-03  Bruno Haible  <bruno@clisp.org>
108152         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
108153         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
108154         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
108155         (xnboundedmalloc): New inline function.
108156         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
108157         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
108158         xmalloc.
108159         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
108160         xmalloc.
108161         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
108162         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
108163         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
108164         xmalloc.
108165         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108166         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
108167         xmalloc.
108168         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
108169         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108170         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
108171         xmalloc.
108172         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
108173         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
108174         gl_tree_add_after): Use XMALLOC instead of xmalloc.
108175         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
108176         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
108177         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
108178         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
108180 2006-11-03  Bruno Haible  <bruno@clisp.org>
108182         * lib/c-ctype.h [C++]: Define functions without name mangling.
108183         * lib/fwriteerror.h [C++]: Likewise.
108184         * lib/gcd.h [C++]: Likewise.
108185         * lib/linebreak.h [C++]: Likewise.
108187 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108189         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
108190         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
108191         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
108192         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
108193         Check for functions and headers just once.
108194         Check for declaration of canonicalize_file_name.
108195         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
108197 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108199         * gnulib-tool (func_import): Fix typo in actioncmd.
108201 2006-11-02  Bruno Haible  <bruno@clisp.org>
108203         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
108204         newline sequence in the Makefile.am snippet as a space, like "make"
108205         does.
108206         Reported by Roger Persson <perrog@gmail.com>.
108208 2006-11-01  Bruno Haible  <bruno@clisp.org>
108210         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
108211         already declared in <string.h>.
108212         * lib/strcase.h (strncasecmp): Don't declare it if yes.
108214 2006-11-01  Bruno Haible  <bruno@clisp.org>
108216         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
108217         * lib/strcase.h: Include <string.h>.
108218         (strcasecmp): Define to rpl_strcasecmp here.
108220 2006-11-01  Bruno Haible  <bruno@clisp.org>
108222         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
108224 2006-11-01  Eric Blake  <ebb9@byu.net>
108226         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
108228         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
108230 2006-10-29  Bruno Haible  <bruno@clisp.org>
108232         Make it compile in C++ mode.
108233         * lib/full-write.c (full_rw): Add a cast.
108235 2006-11-01  Bruno Haible  <bruno@clisp.org>
108237         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
108238         be POSIX compliant.
108239         Reported by Roger Persson <perrog@gmail.com>.
108241 2006-11-01  Eric Blake  <ebb9@byu.net>
108243         * lib/getopt_.h: Fix comments.
108245 2006-10-31  Eric Blake  <ebb9@byu.net>
108247         * modules/tmpdir (Depends-on): Add sys_stat.
108248         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
108249         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
108250         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
108251         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
108252         tempname.
108254 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
108256         Avoid some C++ diagnostics reported by Bruno Haible.
108257         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
108258         xmalloc.
108259         (quotearg_alloc): Use xcharalloc rather than xmalloc.
108260         (struct slotvec): Move to top level.
108261         (quotearg_n_options): Rewrite to avoid xmalloc.
108262         * lib/xalloc.h (xcharalloc): New function.
108263         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
108264         [defined __cplusplus]: Add function template that provides result
108265         type propagation.  This part of the change is from Bruno Haible.
108267 2006-10-29  Bruno Haible  <bruno@clisp.org>
108269         Make it compile in C++ mode.
108270         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
108271         * lib/strnlen1.c (strnlen1): Cast memchr result.
108272         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
108273         * lib/clean-temp.c (string_equals, string_hash): Add casts.
108274         (create_temp_dir): Rename local variable 'template'.
108275         (compile_csharp_using_sscli): Add cast.
108276         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
108277         * lib/findprog.c (find_in_path): Likewise.
108278         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
108279         * lib/wait-process.c (register_slave_subprocess): Likewise.
108281 2006-10-22  Bruno Haible  <bruno@clisp.org>
108283         * modules/tsearch: New file.
108284         * lib/tsearch.h: New file.
108285         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
108286         * m4/tsearch.m4: New file.
108287         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
108289 2006-10-29  Eric Blake  <ebb9@byu.net>
108291         * lib/arcfour.c: Assume config.h.
108292         * lib/arctwo.c: Likewise.
108293         * lib/base64.c: Likewise.
108294         * lib/check-version.c: Likewise.
108295         * lib/crc.c: Likewise.
108296         * lib/des.c: Likewise.
108297         * lib/gc-gnulib.c: Likewise.
108298         * lib/gc-libgcrypt.c: Likewise.
108299         * lib/gc-pbkdf2-sha1.c: Likewise.
108300         * lib/getaddrinfo.c: Likewise.
108301         * lib/getdelim.c: Likewise.
108302         * lib/getline.c: Likewise.
108303         * lib/hmac-md5.c: Likewise.
108304         * lib/hmac-sha1.c: Likewise.
108305         * lib/iconvme.c: Likewise.
108306         * lib/md2.c: Likewise.
108307         * lib/md4.c: Likewise.
108308         * lib/memxor.c: Likewise.
108309         * lib/read-file.c: Likewise.
108310         * lib/readline.c: Likewise.
108311         * lib/rijndael-alg-fst.c: Likewise.
108312         * lib/rijndael-api-fst.c: Likewise.
108313         * lib/xgetdomainname.c: Likewise.
108315 2006-10-28  Eric Blake  <ebb9@byu.net>
108317         * lib/xstrndup.c: Assume config.h.
108319 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108321         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
108322         stat-macros.h is now for our own macros, whereas stat_h is for
108323         macros in the <sys/stat.h> name space.
108324         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
108325         (STAT_MACROS_H): Remove.
108326         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
108327         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
108328         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
108329         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
108330         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
108331         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
108332         Move these macros to ...
108333         * lib/stat_.h: here.  Don't include stat-macros.h.
108334         * lib/canonicalize.c: Don't include stat-macros.h.
108335         * lib/chown.c: Likewise.
108336         * lib/euidaccess.c: Likewise.
108337         * lib/file-type.c: Likewise.
108338         * lib/filemode.c: Likewise.
108339         * lib/glob.c: Likewise.
108340         * lib/isapipe.c: Likewise.
108341         * lib/lchown.c: Likewise.
108342         * lib/lstat.c: Likewise.
108343         * lib/mkdir-p.c: Likewise.
108344         * lib/rmdir.c: Likewise.
108345         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
108346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
108347         unless mkdir isn't declared, to speed up 'configure'.
108348         Always create sys/stat.h, since it's unlikely any real sys/stat.h
108349         would define all the S_* symbols.
108350         * modules/canonicalize (Depends-on):
108351         Depend on sys_stat, not stat-macros.
108352         * modules/chown: Likewise.
108353         * modules/euidaccess: Likewise.
108354         * modules/filemode: Likewise.
108355         * modules/file-type: Likewise.
108356         * modules/glob: Likewise.
108357         * modules/isapipe: Likewise.
108358         * modules/lchown: Likewise.
108359         * modules/lstat: Likewise.
108360         * modules/mkancesdirs: Likewise.
108361         * modules/rmdir: Likewise.
108362         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
108363         * modules/modechange: Likewise.
108364         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
108365         (configure.ac): Remove gl_STAT_MACROS.
108366         * modules/sys_stat (Depends-on): Remove stat-macros.
108368 2006-10-27  Bruno Haible  <bruno@clisp.org>
108370         * m4/signed.m4: Remove file.
108371         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
108372         invocation.
108373         * modules/vasnprintf (Files): Remove m4/signed.m4.
108375 2006-10-27  Bruno Haible  <bruno@clisp.org>
108377         Update to GNU gettext 0.16.
108378         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
108379         m4/inttypes-h.m4, m4/signed.m4.
108380         * m4/gettext.m4: Update to GNU gettext 0.16.
108381         * m4/intl.m4: New file, from GNU gettext.
108382         * m4/intldir.m4: New file, from GNU gettext.
108383         * config/srclist.txt: Update
108385 2006-10-27  Eric Blake  <ebb9@byu.net>
108387         * MODULES.html.sh: Document tempname.
108388         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
108389         dependencies.
108390         (Files): Move lib/tempname.c...
108391         * modules/tempname: ...to this new module.
108392         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
108393         (gl_PREREQ_TEMPNAME): Move...
108394         * m4/tempname.m4: ...to this new file.
108395         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
108396         * modules/sys_stat (Depends-on): Add stat-macros.
108397         * lib/stat_.h (includes): Pick up stat macros.
108398         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
108399         if stat macros are broken.
108400         * lib/tempname.c (includes): No need to include "stat-macros.h".
108401         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
108402         (direxists, __path_search) [!_LIBC]: Don't compile these in
108403         gnulib; the tmpdir module covers that.
108404         * lib/tempname.h: New file.
108406 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
108408         * COPYING: Explain how gnulib-tool converts licence headers.
108409         Almost all wording by Eric Blake.
108411 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
108413         * lib/mbchar.h (is_basic_table): Make read-only.
108414         * lib/mbchar.c (is_basic_table): Likewise.
108415         Reported by John Darrington.
108417 2006-10-25  Bruno Haible  <bruno@clisp.org>
108419         * lib/progname.h (set_program_name): Undefine before defining.
108421 2006-10-25  Bruno Haible  <bruno@clisp.org>
108423         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
108424         false for non-gcc C++ compilers.
108425         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
108427 2006-10-24  Bruno Haible  <bruno@clisp.org>
108429         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
108430         iconv implementations like Irix iconv.
108432 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108434         * modules/vararrays: New file.
108435         * m4/vararrays.m4: New file, taken from diffutils.
108436         * MODULES.html.sh: New module vararrays.
108438 2006-10-24  Karl Berry  <karl@gnu.org>
108440         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
108441         Don't call GNU Unix.
108443 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108445         * users.txt: Add Libtool.
108447         Sync from Libtool:
108449         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108451         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
108452         to gnulib's policy of including config.h unconditionally.
108454 2006-10-24  Bruno Haible  <bruno@clisp.org>
108456         * modules/wcwidth (Files): Add m4/wint_t.m4.
108457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
108458         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
108460 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108462         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
108463         to pacify GCC with some -W flags enabled.  Problem reported by
108464         Bruno Haible.
108466 2006-10-24  Jim Meyering  <jim@meyering.net>
108468         * MODULES.html.sh: Remove uinttostr.  It's not a module.
108469         Reported by Karl Berry.
108471 2006-10-23  Bruno Haible  <bruno@clisp.org>
108473         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
108475 2006-10-24  Bruno Haible  <bruno@clisp.org>
108477         * lib/gl_list.h: Use C comment style, not C++ comment style.
108479 2006-10-23  Eric Blake  <ebb9@byu.net>
108481         * lib/getaddrinfo.c (includes): Add missing include.
108483 2006-10-23  Bruno Haible  <bruno@clisp.org>
108484             Paul Eggert  <eggert@cs.ucla.edu>
108486         Ability to rename obstack_free.
108487         * lib/obstack.h (__obstack_free): New macro. Declare instead of
108488         obstack_free.
108489         (obstack_free): Invoke the __obstack_free macro.
108490         * lib/obstack.c (obstack_free): Use __obstack_free macro.
108492 2006-10-23  Bruno Haible  <bruno@clisp.org>
108493             Paul Eggert  <eggert@cs.ucla.edu>
108495         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
108496         __argc, __argv from the declaration. (They are defined as macros on
108497         mingw.)
108499 2006-10-22  Bruno Haible  <bruno@clisp.org>
108501         * doc/gnulib-intro.texi: New file.
108502         * doc/gnulib.texi: Include it.
108504 2006-10-21  Bruno Haible  <bruno@clisp.org>
108506         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
108507         "Introduction", "Miscellanous Notes", "Particular Modules".
108509 2006-10-21  Bruno Haible  <bruno@clisp.org>
108511         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108512         Change mostlyclean-local rule to avoid sh syntax error from bash
108513         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
108515 2006-10-23  Jim Meyering  <jim@meyering.net>
108517         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
108518         in place of snprintf.
108520         * modules/inttostr (Files): Add lib/uinttostr.c.
108521         * lib/uinttostr.c (inttostr): New file/function.
108522         * lib/inttostr.h (uinttostr): Declare.
108523         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
108524         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
108525         Add uinttostr.
108526         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
108528 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108530         * lib/canonicalize.c (ELOOP): Define if not already defined.
108531         Problem reported by Bruno Haible in
108532         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
108534 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
108536         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
108537         Problem reported by Perry Smith and Ville Laurikari.
108539         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
108540         uses.
108542 2006-10-19  Bruno Haible  <bruno@clisp.org>
108544         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
108545         for mingw.
108547 2006-10-19  Bruno Haible  <bruno@clisp.org>
108549         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
108550         Needed for mingw.
108552 2006-10-19  Bruno Haible  <bruno@clisp.org>
108554         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
108556 2006-10-19  Bruno Haible  <bruno@clisp.org>
108558         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
108559         it.
108561 2006-10-19  Bruno Haible  <bruno@clisp.org>
108563         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
108564         invocation.
108566 2006-10-19  Bruno Haible  <bruno@clisp.org>
108568         * gnulib-tool (func_create_testdir): Don't include ftruncate and
108569         mountlist by default.
108571 2006-10-16  Bruno Haible  <bruno@clisp.org>
108573         * lib/c-strstr.c: Include c-strstr.h.
108575 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
108577         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
108578         in a slash.
108580 2006-10-18  Bruno Haible  <bruno@clisp.org>
108582         * lib/lock.h [C++]: Wrap definitions in extern "C".
108584 2006-10-18  Bruno Haible  <bruno@clisp.org>
108586         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
108587         gl_LIBOBJS list.
108589 2006-10-18  Bruno Haible  <bruno@clisp.org>
108591         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
108593 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
108595         * lib/xstrtol.h: Include gettext.h.
108596         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
108597         Problem reported by Eric Blake.
108598         * modules/xstrtol (Depends-on): Add gettext-h.
108600 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
108602         * lib/strftime.c (advance): New macro.
108603         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
108604         incomplete type, so you can't add 0 to it.  Problem and patch
108605         reported by Eelco Dolstra for dietlibc.
108607 2006-10-18  Jim Meyering  <jim@meyering.net>
108609         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
108610         type for a local, and rename it: s/up/user_proc/.
108612 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
108614         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
108615         READ_UTMP_USER_PROCESS.
108616         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
108618 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108620         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
108621         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
108623 2006-10-17  Eric Blake  <ebb9@byu.net>
108625         * lib/sigprocmask.c (sigprocmask): Fix typo.
108627         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
108629         * modules/clean-temp (Makefile.am): Don't add to make output...
108630         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
108631         config.h.
108633 2006-10-17  Bruno Haible  <bruno@clisp.org>
108635         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
108636         differently if DEFAULT_TEXT_DOMAIN is set.
108638 2006-10-16  Bruno Haible  <bruno@clisp.org>
108640         * lib/clean-temp.c: Include fwriteerror.h.
108642 2006-10-16  Bruno Haible  <bruno@clisp.org>
108644         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
108646 2006-10-16  Bruno Haible  <bruno@clisp.org>
108648         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
108649         * lib/sigprocmask.h: Include <sys/types.h>.
108650         (sigset_t): Use the system's definition if present.
108652 2006-10-17  Eric Blake  <ebb9@byu.net>
108654         * lib/xvasprintf.c (includes): Assume config.h.
108655         * lib/xasprintf.c (includes): Likewise.
108657 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
108659         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
108660         at least as wide as intmax_t.
108662 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
108664         (Imported from Automake.)
108665         * build-aux/gnupload: Update to version 1.1 of directive file.
108667 2006-10-16  Eric Blake  <ebb9@byu.net>
108669         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
108670         match Automake 1.10a.
108672 2006-10-14  Bruno Haible  <bruno@clisp.org>
108674         * modules/sigprocmask: New file.
108675         * lib/sigprocmask.h: New file.
108676         * lib/sigprocmask.c: New file.
108677         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
108678         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
108679         request sigprocmask.o.
108680         (gl_PREREQ_SIGPROCMASK): New macro.
108681         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
108682         (Depends-on): Add sigprocmask.
108683         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
108684         gt_SIGNALBLOCKING. Test for 'raise' only once.
108685         * lib/fatal-signal.c: Include sigprocmask.h.
108686         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
108687         unblock_fatal_signals): Define always.
108688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108689         sigprocmask.
108691 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108693         Sync from Automake.
108694         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
108695         which incorrectly sets the mode of an existing destination
108696         directory.  In some cases the unpatched install-sh could do the
108697         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
108698         system.  We hope this is rare in practice, but it's clearly worth
108699         fixing.  Problem reported by Alex Unleashed in
108700         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
108701         Also, don't bother to check for -m bugs unless we're using -m;
108702         suggested by Stepan Kasal.
108704 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108706         Sync from Automake.
108707         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
108708         `-c' flag, so they appear at the same position as in %FASTDEP%
108709         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
108710         which ignores unknown options only after the first non-option.
108711         Bug report against M4 by Nelson H. F. Beebe.
108713 2006-10-13  Jim Meyering  <jim@meyering.net>
108715         Fix a bug in yesterday's change.
108716         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
108717         p->fts_statp->st_dev would be used uninitialized.
108718         Ensures that we always call fts_stat on the very first entry.
108719         Miklos Szeredi reported that find -xdev stopped working.
108721 2006-10-12  Bruno Haible  <bruno@clisp.org>
108723         * gnulib-tool (func_get_automake_snippet): Append an automatically
108724         computed EXTRA_DIST augmentation.
108725         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
108726         * modules/alloca-opt (Makefile.am): Likewise.
108727         * modules/allocsa (Makefile.am): Likewise.
108728         * modules/arcfour (Makefile.am): Likewise.
108729         * modules/arctwo (Makefile.am): Likewise.
108730         * modules/argmatch (Makefile.am): Likewise.
108731         * modules/argz (Makefile.am): Likewise.
108732         * modules/atexit (Makefile.am): Likewise.
108733         * modules/backupfile (Makefile.am): Likewise.
108734         * modules/byteswap (Makefile.am): Likewise.
108735         * modules/c-strtod (Makefile.am): Likewise.
108736         * modules/c-strtold (Makefile.am): Likewise.
108737         * modules/calloc (Makefile.am): Likewise.
108738         * modules/canon-host (Makefile.am): Likewise.
108739         * modules/canonicalize (Makefile.am): Likewise.
108740         * modules/chdir-long (Makefile.am): Likewise.
108741         * modules/chdir-safer (Makefile.am): Likewise.
108742         * modules/check-version (Makefile.am): Likewise.
108743         * modules/chown (Makefile.am): Likewise.
108744         * modules/cloexec (Makefile.am): Likewise.
108745         * modules/close-stream (Makefile.am): Likewise.
108746         * modules/closeout (Makefile.am): Likewise.
108747         * modules/crc (Makefile.am): Likewise.
108748         * modules/csharpexec (Makefile.am): Likewise.
108749         * modules/cycle-check (Makefile.am): Likewise.
108750         * modules/des (Makefile.am): Likewise.
108751         * modules/dev-ino (Makefile.am): Likewise.
108752         * modules/dirfd (Makefile.am): Likewise.
108753         * modules/dirname (Makefile.am): Likewise.
108754         * modules/dup2 (Makefile.am): Likewise.
108755         * modules/eealloc (Makefile.am): Likewise.
108756         * modules/error (Makefile.am): Likewise.
108757         * modules/euidaccess (Makefile.am): Likewise.
108758         * modules/exclude (Makefile.am): Likewise.
108759         * modules/exitfail (Makefile.am): Likewise.
108760         * modules/fcntl-safer (Makefile.am): Likewise.
108761         * modules/fcntl (Makefile.am): Likewise.
108762         * modules/file-type (Makefile.am): Likewise.
108763         * modules/fileblocks (Makefile.am): Likewise.
108764         * modules/filemode (Makefile.am): Likewise.
108765         * modules/filenamecat (Makefile.am): Likewise.
108766         * modules/fnmatch (Makefile.am): Likewise.
108767         * modules/fopen-safer (Makefile.am): Likewise.
108768         * modules/fpending (Makefile.am): Likewise.
108769         * modules/fprintftime (Makefile.am): Likewise.
108770         * modules/free (Makefile.am): Likewise.
108771         * modules/fsusage (Makefile.am): Likewise.
108772         * modules/ftruncate (Makefile.am): Likewise.
108773         * modules/fts (Makefile.am): Likewise.
108774         * modules/gc-arcfour (Makefile.am): Likewise.
108775         * modules/gc-des (Makefile.am): Likewise.
108776         * modules/gc-hmac-md5 (Makefile.am): Likewise.
108777         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
108778         * modules/gc-md4 (Makefile.am): Likewise.
108779         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108780         * modules/gc-sha1 (Makefile.am): Likewise.
108781         * modules/gc (Makefile.am): Likewise.
108782         * modules/getaddrinfo (Makefile.am): Likewise.
108783         * modules/getcwd (Makefile.am): Likewise.
108784         * modules/getdelim (Makefile.am): Likewise.
108785         * modules/getdomainname (Makefile.am): Likewise.
108786         * modules/getgroups (Makefile.am): Likewise.
108787         * modules/gethostname (Makefile.am): Likewise.
108788         * modules/gethrxtime (Makefile.am): Likewise.
108789         * modules/getline (Makefile.am): Likewise.
108790         * modules/getloadavg (Makefile.am): Likewise.
108791         * modules/getlogin_r (Makefile.am): Likewise.
108792         * modules/getndelim2 (Makefile.am): Likewise.
108793         * modules/getopt (Makefile.am): Likewise.
108794         * modules/getpagesize (Makefile.am): Likewise.
108795         * modules/getpass-gnu (Makefile.am): Likewise.
108796         * modules/getpass (Makefile.am): Likewise.
108797         * modules/getsubopt (Makefile.am): Likewise.
108798         * modules/gettime (Makefile.am): Likewise.
108799         * modules/gettimeofday (Makefile.am): Likewise.
108800         * modules/getugroups (Makefile.am): Likewise.
108801         * modules/getusershell (Makefile.am): Likewise.
108802         * modules/glob (Makefile.am): Likewise.
108803         * modules/group-member (Makefile.am): Likewise.
108804         * modules/hard-locale (Makefile.am): Likewise.
108805         * modules/hash (Makefile.am): Likewise.
108806         * modules/hmac-md5 (Makefile.am): Likewise.
108807         * modules/hmac-sha1 (Makefile.am): Likewise.
108808         * modules/human (Makefile.am): Likewise.
108809         * modules/idcache (Makefile.am): Likewise.
108810         * modules/imaxabs (Makefile.am): Likewise.
108811         * modules/imaxdiv (Makefile.am): Likewise.
108812         * modules/inet_ntop (Makefile.am): Likewise.
108813         * modules/inet_pton (Makefile.am): Likewise.
108814         * modules/intprops (Makefile.am): Likewise.
108815         * modules/inttostr (Makefile.am): Likewise.
108816         * modules/inttypes (Makefile.am): Likewise.
108817         * modules/isapipe (Makefile.am): Likewise.
108818         * modules/javaversion (Makefile.am): Likewise.
108819         * modules/lchmod (Makefile.am): Likewise.
108820         * modules/lchown (Makefile.am): Likewise.
108821         * modules/localcharset (Makefile.am): Likewise.
108822         * modules/long-options (Makefile.am): Likewise.
108823         * modules/lstat (Makefile.am): Likewise.
108824         * modules/malloc (Makefile.am): Likewise.
108825         * modules/mathl (Makefile.am): Likewise.
108826         * modules/mbchar (Makefile.am): Likewise.
108827         * modules/md2 (Makefile.am): Likewise.
108828         * modules/md4 (Makefile.am): Likewise.
108829         * modules/md5 (Makefile.am): Likewise.
108830         * modules/memcasecmp (Makefile.am): Likewise.
108831         * modules/memchr (Makefile.am): Likewise.
108832         * modules/memcmp (Makefile.am): Likewise.
108833         * modules/memcoll (Makefile.am): Likewise.
108834         * modules/memcpy (Makefile.am): Likewise.
108835         * modules/memmem (Makefile.am): Likewise.
108836         * modules/memmove (Makefile.am): Likewise.
108837         * modules/mempcpy (Makefile.am): Likewise.
108838         * modules/memrchr (Makefile.am): Likewise.
108839         * modules/memset (Makefile.am): Likewise.
108840         * modules/memxor (Makefile.am): Likewise.
108841         * modules/mkancesdirs (Makefile.am): Likewise.
108842         * modules/mkdir-p (Makefile.am): Likewise.
108843         * modules/mkdir (Makefile.am): Likewise.
108844         * modules/mkdtemp (Makefile.am): Likewise.
108845         * modules/mkstemp (Makefile.am): Likewise.
108846         * modules/mktime (Makefile.am): Likewise.
108847         * modules/modechange (Makefile.am): Likewise.
108848         * modules/mountlist (Makefile.am): Likewise.
108849         * modules/nanosleep (Makefile.am): Likewise.
108850         * modules/obstack (Makefile.am): Likewise.
108851         * modules/openat (Makefile.am): Likewise.
108852         * modules/pagealign_alloc (Makefile.am): Likewise.
108853         * modules/pathmax (Makefile.am): Likewise.
108854         * modules/physmem (Makefile.am): Likewise.
108855         * modules/poll (Makefile.am): Likewise.
108856         * modules/posixtm (Makefile.am): Likewise.
108857         * modules/posixver (Makefile.am): Likewise.
108858         * modules/putenv (Makefile.am): Likewise.
108859         * modules/quote (Makefile.am): Likewise.
108860         * modules/quotearg (Makefile.am): Likewise.
108861         * modules/raise (Makefile.am): Likewise.
108862         * modules/read-file (Makefile.am): Likewise.
108863         * modules/readline (Makefile.am): Likewise.
108864         * modules/readlink (Makefile.am): Likewise.
108865         * modules/readtokens (Makefile.am): Likewise.
108866         * modules/readutmp (Makefile.am): Likewise.
108867         * modules/realloc (Makefile.am): Likewise.
108868         * modules/regex (Makefile.am): Likewise.
108869         * modules/rename-dest-slash (Makefile.am): Likewise.
108870         * modules/rename (Makefile.am): Likewise.
108871         * modules/rijndael (Makefile.am): Likewise.
108872         * modules/rmdir (Makefile.am): Likewise.
108873         * modules/rpmatch (Makefile.am): Likewise.
108874         * modules/safe-read (Makefile.am): Likewise.
108875         * modules/safe-write (Makefile.am): Likewise.
108876         * modules/same-inode (Makefile.am): Likewise.
108877         * modules/same (Makefile.am): Likewise.
108878         * modules/save-cwd (Makefile.am): Likewise.
108879         * modules/savedir (Makefile.am): Likewise.
108880         * modules/setenv (Makefile.am): Likewise.
108881         * modules/settime (Makefile.am): Likewise.
108882         * modules/sha1 (Makefile.am): Likewise.
108883         * modules/sig2str (Makefile.am): Likewise.
108884         * modules/snprintf (Makefile.am): Likewise.
108885         * modules/stat-macros (Makefile.am): Likewise.
108886         * modules/stat-time (Makefile.am): Likewise.
108887         * modules/stdbool (Makefile.am): Likewise.
108888         * modules/stdint (Makefile.am): Likewise.
108889         * modules/stdlib-safer (Makefile.am): Likewise.
108890         * modules/stpcpy (Makefile.am): Likewise.
108891         * modules/stpncpy (Makefile.am): Likewise.
108892         * modules/strcase (Makefile.am): Likewise.
108893         * modules/strcasestr (Makefile.am): Likewise.
108894         * modules/strchrnul (Makefile.am): Likewise.
108895         * modules/strcspn (Makefile.am): Likewise.
108896         * modules/strdup (Makefile.am): Likewise.
108897         * modules/strerror (Makefile.am): Likewise.
108898         * modules/strftime (Makefile.am): Likewise.
108899         * modules/strndup (Makefile.am): Likewise.
108900         * modules/strnlen (Makefile.am): Likewise.
108901         * modules/strpbrk (Makefile.am): Likewise.
108902         * modules/strsep (Makefile.am): Likewise.
108903         * modules/strstr (Makefile.am): Likewise.
108904         * modules/strtod (Makefile.am): Likewise.
108905         * modules/strtoimax (Makefile.am): Likewise.
108906         * modules/strtok_r (Makefile.am): Likewise.
108907         * modules/strtol (Makefile.am): Likewise.
108908         * modules/strtoll (Makefile.am): Likewise.
108909         * modules/strtoul (Makefile.am): Likewise.
108910         * modules/strtoull (Makefile.am): Likewise.
108911         * modules/strtoumax (Makefile.am): Likewise.
108912         * modules/strverscmp (Makefile.am): Likewise.
108913         * modules/sys_socket (Makefile.am): Likewise.
108914         * modules/sys_stat (Makefile.am): Likewise.
108915         * modules/sysexits (Makefile.am): Likewise.
108916         * modules/time_r (Makefile.am): Likewise.
108917         * modules/timegm (Makefile.am): Likewise.
108918         * modules/timespec (Makefile.am): Likewise.
108919         * modules/tmpfile-safer (Makefile.am): Likewise.
108920         * modules/trim (Makefile.am): Likewise.
108921         * modules/unistd-safer (Makefile.am): Likewise.
108922         * modules/unlinkdir (Makefile.am): Likewise.
108923         * modules/unlocked-io (Makefile.am): Likewise.
108924         * modules/userspec (Makefile.am): Likewise.
108925         * modules/utime (Makefile.am): Likewise.
108926         * modules/utimecmp (Makefile.am): Likewise.
108927         * modules/utimens (Makefile.am): Likewise.
108928         * modules/vasnprintf (Makefile.am): Likewise.
108929         * modules/vasprintf (Makefile.am): Likewise.
108930         * modules/vsnprintf (Makefile.am): Likewise.
108931         * modules/xalloc (Makefile.am): Likewise.
108932         * modules/xgetcwd (Makefile.am): Likewise.
108933         * modules/xnanosleep (Makefile.am): Likewise.
108934         * modules/xreadlink (Makefile.am): Likewise.
108935         * modules/xstrtod (Makefile.am): Likewise.
108936         * modules/xstrtol (Makefile.am): Likewise.
108937         * modules/xstrtold (Makefile.am): Likewise.
108938         * modules/yesno (Makefile.am): Likewise.
108939         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
108941 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
108943         * modules/error (Makefile.am): Distribute files through
108944         EXTRA_DIST, not lib_SOURCES.
108946 2006-10-12  Eric Blake  <ebb9@byu.net>
108948         * modules/error (Makefile.am): Distribute files in /lib.
108949         * modules/obstack (Makefile.am): Likewise.
108951 2006-10-12  Bruno Haible  <bruno@clisp.org>
108953         * modules/acl (Makefile.am): Distribute all files in lib/ through
108954         EXTRA_DIST.
108955         * modules/arcfour (Makefile.am): Likewise.
108956         * modules/arctwo (Makefile.am): Likewise.
108957         * modules/argmatch (Makefile.am): Likewise.
108958         * modules/argz (Makefile.am): Likewise.
108959         * modules/atexit (Makefile.am): Likewise.
108960         * modules/backupfile (Makefile.am): Likewise.
108961         * modules/c-strtod (Makefile.am): Likewise.
108962         * modules/c-strtold (Makefile.am): Likewise.
108963         * modules/calloc (Makefile.am): Likewise.
108964         * modules/canon-host (Makefile.am): Likewise.
108965         * modules/canonicalize (Makefile.am): Likewise.
108966         * modules/chdir-long (Makefile.am): Likewise.
108967         * modules/chdir-safer (Makefile.am): Likewise.
108968         * modules/check-version (Makefile.am): Likewise.
108969         * modules/chown (Makefile.am): Likewise.
108970         * modules/cloexec (Makefile.am): Likewise.
108971         * modules/close-stream (Makefile.am): Likewise.
108972         * modules/closeout (Makefile.am): Likewise.
108973         * modules/crc (Makefile.am): Likewise.
108974         * modules/cycle-check (Makefile.am): Likewise.
108975         * modules/des (Makefile.am): Likewise.
108976         * modules/dirfd (Makefile.am): Likewise.
108977         * modules/dirname (Makefile.am): Likewise.
108978         * modules/dup2 (Makefile.am): Likewise.
108979         * modules/euidaccess (Makefile.am): Likewise.
108980         * modules/exclude (Makefile.am): Likewise.
108981         * modules/exitfail (Makefile.am): Likewise.
108982         * modules/fcntl-safer (Makefile.am): Likewise.
108983         * modules/file-type (Makefile.am): Likewise.
108984         * modules/fileblocks (Makefile.am): Likewise.
108985         * modules/filemode (Makefile.am): Likewise.
108986         * modules/filenamecat (Makefile.am): Likewise.
108987         * modules/fnmatch (Makefile.am): Likewise.
108988         * modules/fopen-safer (Makefile.am): Likewise.
108989         * modules/fpending (Makefile.am): Likewise.
108990         * modules/fprintftime (Makefile.am): Likewise.
108991         * modules/free (Makefile.am): Likewise.
108992         * modules/fsusage (Makefile.am): Likewise.
108993         * modules/ftruncate (Makefile.am): Likewise.
108994         * modules/fts (Makefile.am): Likewise.
108995         * modules/gc (Makefile.am): Likewise.
108996         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
108997         * modules/getaddrinfo (Makefile.am): Likewise.
108998         * modules/getcwd (Makefile.am): Likewise.
108999         * modules/getdelim (Makefile.am): Likewise.
109000         * modules/getdomainname (Makefile.am): Likewise.
109001         * modules/getgroups (Makefile.am): Likewise.
109002         * modules/gethostname (Makefile.am): Likewise.
109003         * modules/gethrxtime (Makefile.am): Likewise.
109004         * modules/getline (Makefile.am): Likewise.
109005         * modules/getloadavg (Makefile.am): Likewise.
109006         * modules/getlogin_r (Makefile.am): Likewise.
109007         * modules/getopt (Makefile.am): Likewise.
109008         * modules/getpass (Makefile.am): Likewise.
109009         * modules/getpass-gnu (Makefile.am): Likewise.
109010         * modules/getsubopt (Makefile.am): Likewise.
109011         * modules/gettime (Makefile.am): Likewise.
109012         * modules/gettimeofday (Makefile.am): Likewise.
109013         * modules/getugroups (Makefile.am): Likewise.
109014         * modules/getusershell (Makefile.am): Likewise.
109015         * modules/glob (Makefile.am): Likewise.
109016         * modules/group-member (Makefile.am): Likewise.
109017         * modules/hard-locale (Makefile.am): Likewise.
109018         * modules/hash (Makefile.am): Likewise.
109019         * modules/hmac-md5 (Makefile.am): Likewise.
109020         * modules/hmac-sha1 (Makefile.am): Likewise.
109021         * modules/human (Makefile.am): Likewise.
109022         * modules/idcache (Makefile.am): Likewise.
109023         * modules/imaxabs (Makefile.am): Likewise.
109024         * modules/imaxdiv (Makefile.am): Likewise.
109025         * modules/inet_ntop (Makefile.am): Likewise.
109026         * modules/inet_pton (Makefile.am): Likewise.
109027         * modules/inttostr (Makefile.am): Likewise.
109028         * modules/isapipe (Makefile.am): Likewise.
109029         * modules/lchown (Makefile.am): Likewise.
109030         * modules/long-options (Makefile.am): Likewise.
109031         * modules/lstat (Makefile.am): Likewise.
109032         * modules/malloc (Makefile.am): Likewise.
109033         * modules/mathl (Makefile.am): Likewise.
109034         * modules/mbchar (Makefile.am): Likewise.
109035         * modules/md2 (Makefile.am): Likewise.
109036         * modules/md4 (Makefile.am): Likewise.
109037         * modules/md5 (Makefile.am): Likewise.
109038         * modules/memcasecmp (Makefile.am): Likewise.
109039         * modules/memchr (Makefile.am): Likewise.
109040         * modules/memcmp (Makefile.am): Likewise.
109041         * modules/memcoll (Makefile.am): Likewise.
109042         * modules/memcpy (Makefile.am): Likewise.
109043         * modules/memmem (Makefile.am): Likewise.
109044         * modules/memmove (Makefile.am): Likewise.
109045         * modules/mempcpy (Makefile.am): Likewise.
109046         * modules/memrchr (Makefile.am): Likewise.
109047         * modules/memset (Makefile.am): Likewise.
109048         * modules/memxor (Makefile.am): Likewise.
109049         * modules/mkancesdirs (Makefile.am): Likewise.
109050         * modules/mkdir (Makefile.am): Likewise.
109051         * modules/mkdir-p (Makefile.am): Likewise.
109052         * modules/mkdtemp (Makefile.am): Likewise.
109053         * modules/mkstemp (Makefile.am): Likewise.
109054         * modules/mktime (Makefile.am): Likewise.
109055         * modules/modechange (Makefile.am): Likewise.
109056         * modules/mountlist (Makefile.am): Likewise.
109057         * modules/nanosleep (Makefile.am): Likewise.
109058         * modules/openat (Makefile.am): Likewise.
109059         * modules/pagealign_alloc (Makefile.am): Likewise.
109060         * modules/physmem (Makefile.am): Likewise.
109061         * modules/poll (Makefile.am): Likewise.
109062         * modules/posixtm (Makefile.am): Likewise.
109063         * modules/posixver (Makefile.am): Likewise.
109064         * modules/putenv (Makefile.am): Likewise.
109065         * modules/quote (Makefile.am): Likewise.
109066         * modules/quotearg (Makefile.am): Likewise.
109067         * modules/raise (Makefile.am): Likewise.
109068         * modules/read-file (Makefile.am): Likewise.
109069         * modules/readline (Makefile.am): Likewise.
109070         * modules/readlink (Makefile.am): Likewise.
109071         * modules/readtokens (Makefile.am): Likewise.
109072         * modules/readutmp (Makefile.am): Likewise.
109073         * modules/realloc (Makefile.am): Likewise.
109074         * modules/regex (Makefile.am): Likewise.
109075         * modules/rename (Makefile.am): Likewise.
109076         * modules/rename-dest-slash (Makefile.am): Likewise.
109077         * modules/rijndael (Makefile.am): Likewise.
109078         * modules/rmdir (Makefile.am): Likewise.
109079         * modules/rpmatch (Makefile.am): Likewise.
109080         * modules/safe-read (Makefile.am): Likewise.
109081         * modules/safe-write (Makefile.am): Likewise.
109082         * modules/same (Makefile.am): Likewise.
109083         * modules/save-cwd (Makefile.am): Likewise.
109084         * modules/savedir (Makefile.am): Likewise.
109085         * modules/setenv (Makefile.am): Likewise.
109086         * modules/settime (Makefile.am): Likewise.
109087         * modules/sha1 (Makefile.am): Likewise.
109088         * modules/sig2str (Makefile.am): Likewise.
109089         * modules/snprintf (Makefile.am): Likewise.
109090         * modules/stdlib-safer (Makefile.am): Likewise.
109091         * modules/stpcpy (Makefile.am): Likewise.
109092         * modules/stpncpy (Makefile.am): Likewise.
109093         * modules/strcase (Makefile.am): Likewise.
109094         * modules/strcasestr (Makefile.am): Likewise.
109095         * modules/strchrnul (Makefile.am): Likewise.
109096         * modules/strcspn (Makefile.am): Likewise.
109097         * modules/strdup (Makefile.am): Likewise.
109098         * modules/strerror (Makefile.am): Likewise.
109099         * modules/strftime (Makefile.am): Likewise.
109100         * modules/strndup (Makefile.am): Likewise.
109101         * modules/strnlen (Makefile.am): Likewise.
109102         * modules/strpbrk (Makefile.am): Likewise.
109103         * modules/strsep (Makefile.am): Likewise.
109104         * modules/strstr (Makefile.am): Likewise.
109105         * modules/strtod (Makefile.am): Likewise.
109106         * modules/strtoimax (Makefile.am): Likewise.
109107         * modules/strtok_r (Makefile.am): Likewise.
109108         * modules/strtol (Makefile.am): Likewise.
109109         * modules/strtoll (Makefile.am): Likewise.
109110         * modules/strtoul (Makefile.am): Likewise.
109111         * modules/strtoull (Makefile.am): Likewise.
109112         * modules/strtoumax (Makefile.am): Likewise.
109113         * modules/strverscmp (Makefile.am): Likewise.
109114         * modules/time_r (Makefile.am): Likewise.
109115         * modules/timegm (Makefile.am): Likewise.
109116         * modules/tmpfile-safer (Makefile.am): Likewise.
109117         * modules/unistd-safer (Makefile.am): Likewise.
109118         * modules/unlinkdir (Makefile.am): Likewise.
109119         * modules/userspec (Makefile.am): Likewise.
109120         * modules/utime (Makefile.am): Likewise.
109121         * modules/utimecmp (Makefile.am): Likewise.
109122         * modules/utimens (Makefile.am): Likewise.
109123         * modules/vasnprintf (Makefile.am): Likewise.
109124         * modules/vasprintf (Makefile.am): Likewise.
109125         * modules/vsnprintf (Makefile.am): Likewise.
109126         * modules/xalloc (Makefile.am): Likewise.
109127         * modules/xgetcwd (Makefile.am): Likewise.
109128         * modules/xnanosleep (Makefile.am): Likewise.
109129         * modules/xreadlink (Makefile.am): Likewise.
109130         * modules/xstrtod (Makefile.am): Likewise.
109131         * modules/xstrtol (Makefile.am): Likewise.
109132         * modules/xstrtold (Makefile.am): Likewise.
109133         * modules/yesno (Makefile.am): Likewise.
109135 2006-10-12  Jim Meyering  <jim@meyering.net>
109137         * m4/getloadavg.m4: Revert the change below.
109139         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
109140         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
109141         fail with a symlink, which is what coreutils' ./bootstrap now
109142         creates by default.
109144 2006-10-12  Bruno Haible  <bruno@clisp.org>
109146         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
109147         mingw.
109148         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
109149         MSVC and mingw explicitly.
109151 2006-10-11  Simon Josefsson  <jas@extundo.com>
109152             Bruno Haible  <bruno@clisp.org>
109154         Add support for multiple gnulib-tool invocations in the scope of a
109155         single configure.ac file.
109156         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
109157         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
109158         with the same contents as the _LIBADD variable.
109159         (func_emit_initmacro_start, func_emit_initmacro_end,
109160         func_emit_initmacro_done): New functions.
109161         (func_import, func_create_testdir): Invoke them. Allow the identifiers
109162         gl_LIBOBJS and gl_LTLIBOBJS.
109164 2006-10-11  Bruno Haible  <bruno@clisp.org>
109166         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
109167         (func_create_testdir): Don't create po/Makefile.am, don't invoke
109168         autoreconf. Instead, invoke autopoint explicitly but move back the
109169         *.m4 files from gnulib.
109171 2006-10-11  Bruno Haible  <bruno@clisp.org>
109173         * gnulib-tool (func_usage): Make module names after --create-testdir
109174         optional.
109175         (func_create_testdir): If no module was specified, use nearly all
109176         modules.
109178 2006-10-12  Jim Meyering  <jim@meyering.net>
109180         Big performance improvement for fts-based tools that use FTS_NOSTAT.
109181         Avoid spurious inode-mismatch problems on non-POSIX file systems.
109182         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
109183         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
109184         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
109185         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
109186         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
109187         (fts_set_stat_required): New function.
109188         (fts_open): Defer the calls to fts_stat, if possible or requested.
109189         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
109190         into fts_stat itself.
109191         (fts_read): Perform any required (deferred) fts_stat call.
109192         (fts_build): Likewise, for the directory we're about to open and read.
109193         In the readdir loop, carefully decide whether each entry will require
109194         an eventual call to fts_stat, using dirent.d_type info if available.
109195         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
109196         a command line argument into this function.  Update all callers.
109197         Map a return value of FTS_DOT to FTS_D for a command line argument.
109198         * modules/fts (Depends-on): Add d-type.  Alphabetize.
109199         Thanks to Miklos Szeredi for his tenacity and for the initial
109200         bug report about "find" failing on a FUSE-based file system.
109202         * lib/fts.c (fts_open): Use consistent indentation.
109204 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
109206         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
109207         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
109208         reported by Jim Meyering.  All uses of cache variables renamed
109209         to match Autoconf's.
109210         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
109211         the other one.
109213         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
109214         Fix misspelling in diagnostic.
109216 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109218         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
109219         defined.  Problem reported by Matthew Woehlke.
109221         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
109222         Add support for Tandem NonStop R series.
109223         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
109224         Use new macro.
109226         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
109227         (has_trailing_slash): Omit size arg; all callers changed.
109228         Omit 'inline', since it doesn't help performance and we'd
109229         need to configure it.
109230         Don't count //, ///, etc. as having a trailing slash.
109231         As a side effect, this removes a C99ism reported by Matthew Woehlke.
109232         (rpl_rename_dest_slash): On failure, use rename's errno rather
109233         than (in some cases) an incorrect or junk errno.
109234         Simplify code by removing need to compute length; this does
109235         cause it to make two passes instead of one over the file name,
109236         but it's worth it.
109238         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
109239         change, since Autoconf's version may no longer be appropriate now
109240         that we are using CVS Autoconf's version.  Add support for Tandem.
109242 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
109243             Bruno Haible  <bruno@clisp.org>
109245         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
109246         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
109247         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
109248         gl_AC_TYPE_LONG_LONG.
109250         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
109251         instead of HAVE_LONG_LONG.
109252         * lib/printf-args.c (printf_fetchargs): Likewise.
109253         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
109254         * lib/vasnprintf.c (VASNPRINTF): Likewise.
109255         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
109256         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
109257         gl_AC_TYPE_LONG_LONG.
109259 2006-10-11  Bruno Haible  <bruno@clisp.org>
109261         * m4/longlong.m4: Add comments.
109262         * m4/ulonglong.m4: Likewise.
109264 2006-10-10  Bruno Haible  <bruno@clisp.org>
109266         Make it possible to #define stpcpy, strdup to aliases.
109267         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
109268         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
109270 2006-10-10  Bruno Haible  <bruno@clisp.org>
109272         Make it possible to #define gcd to an alias.
109273         * lib/gcd.c: Include config.h.
109275 2006-10-10  Bruno Haible  <bruno@clisp.org>
109277         Make it possible to #define c_isascii to an alias.
109278         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
109279         defined. Undefine the macros before defining them, to avoid gcc
109280         warnings.
109281         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
109282         define NO_C_CTYPE_MACROS early.
109284 2006-10-10  Bruno Haible  <bruno@clisp.org>
109286         Make it possible to #define set_program_name to an alias.
109287         * lib/progname.c: Don't undefine set_program_name; instead, undefine
109288         ENABLE_RELOCATABLE early.
109290 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
109292         Port to Tandem NSK OSS, which has 64-bit signed int but at most
109293         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
109294         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
109295         More generally, don't assume that 64-bit signed int is available
109296         if unsigned int is, and vice versa.
109297         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
109298         unsigned symbols, not on their signed counterparts.
109299         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
109300         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
109301         (UINT64_C, UINTMAX_C):
109302         Likewise.
109303         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
109304         unsigned counterparts.
109305         (Have_long_long, Unsigned): New macros.
109306         (Int): Renamed from INT.
109307         (strtoimax): Use the new macros.
109308         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
109309         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
109310         * modules/inttypes (inttypes.h): Substitute
109311         HAVE_UNSIGNED_LONG_LONG_INT.
109312         * modules/stdint (stdint.h): Likewise.
109313         (Files): Add m4/ulonglong.m4.
109315 2006-10-10  Bruno Haible  <bruno@clisp.org>
109317         Fix a gcc -Wshadow warning.
109318         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
109319         to 'bucket'.
109320         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
109321         gl_linked_indexof_from_to): Likewise.
109322         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
109323         Likewise.
109324         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
109325         Likewise.
109326         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
109327         Reported by Eric Blake.
109329 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
109331         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
109332         for NetBSD.  Problem reported by Bruno Haible.
109334 2006-10-09  Jim Meyering  <jim@meyering.net>
109336         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
109337         Patch from Bruno Haible.
109339 2006-10-09  Jim Meyering  <jim@meyering.net>
109341         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
109342         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
109343         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
109345 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109347         Don't include <config.h> twice; this doesn't work in some cases,
109348         e.g., when config.h has "#define intmax_t long long int" and
109349         we include <config.h>, <inttypes.h>, <config.h> in that order.
109350         Problem reported by Matthew Woehlke in:
109351         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
109352         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
109353         * lib/fts-cycle.c: Don't include config.h.
109354         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
109355         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
109356         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
109357         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
109358         inttypes.h.
109359         * lib/xstrtoumax.c: Likewise.
109360         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
109361         __strtol and the like, so that this module is more like its siblings.
109362         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
109363         Remove; no longer needed now that we assume gnulib inttypes.h.
109365 2006-10-08  Bruno Haible  <bruno@clisp.org>
109367         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
109368         option.
109370 2006-10-07  Jim Meyering  <jim@meyering.net>
109372         * modules/inttypes (inttypes.h): Revert what seems to have been
109373         an inadvertent part of today's change: use "|", not "/" in the
109374         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
109376 2006-10-07  Bruno Haible  <bruno@clisp.org>
109378         * modules/sublist: New file.
109380 2006-10-07  Bruno Haible  <bruno@clisp.org>
109382         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109383         * modules/argz (argz.h): Likewise.
109384         * modules/arpa_inet (arpa/inet.h): Likewise.
109385         * modules/byteswap (byteswap.h): Likewise.
109386         * modules/configmake (configmake.h): Likewise.
109387         * modules/fcntl (fcntl.h): Likewise.
109388         * modules/fnmatch (fnmatch.h): Likewise.
109389         * modules/getopt (getopt.h): Likewise.
109390         * modules/glob (glob.h): Likewise.
109391         * modules/inttypes (inttypes.h): Likewise.
109392         * modules/netinet_in (netinet/in.h): Likewise.
109393         * modules/poll (poll.h): Likewise.
109394         * modules/stdbool (stdbool.h): Likewise.
109395         * modules/stdint (stdint.h): Likewise.
109396         * modules/sys_select (sys/select.h): Likewise.
109397         * modules/sys_socket (sys/socket.h): Likewise.
109398         * modules/sys_stat (sys/stat.h): Likewise.
109399         * modules/sysexits (sysexits.h): Likewise.
109400         * modules/unistd (unistd.h): Likewise.
109401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
109402         Add a "DO NOT EDIT" comment to the generated file.
109403         (func_import): Likewise for gnulib-comp.m4.
109405 2006-10-07  Bruno Haible  <bruno@clisp.org>
109407         * lib/gl_sublist.h: New file.
109408         * lib/gl_sublist.c: New file.
109410 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109412         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
109413         name (relative to the original working directory) and the file
109414         name component (relative to the temporary working directory).  All
109415         callers changed.
109416         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
109417         * lib/mkdir-p.c (make_dir_parents): Likewise.
109418         * lib/mkdir-p.h (make_dir_parents): Likewise.
109420 2006-10-06  Eric Blake  <ebb9@byu.net>
109422         Define several macros for use by the clean-temp module.
109423         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
109424         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
109425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
109427         * lib/clean-temp.h (close_stream_temp): New declaration.
109428         * lib/clean-temp.c (includes): Pull in headers according to what
109429         other modules are in use.
109430         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
109432 2006-10-06  Bruno Haible  <bruno@clisp.org>
109434         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
109435         instead of fopen, fwriteerror.
109437 2006-10-06  Bruno Haible  <bruno@clisp.org>
109439         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
109440         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
109441         int.
109442         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
109443         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
109444         Return an error indicator.
109445         Suggested by Eric Blake.
109447 2006-10-06  Bruno Haible  <bruno@clisp.org>
109449         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
109450         Reported by Eric Blake.
109452 2006-10-06  Bruno Haible  <bruno@clisp.org>
109454         * modules/closeout (Description): Mention stderr too.
109456 2006-10-06  Bruno Haible  <bruno@clisp.org>
109457         and Paul Eggert  <eggert@cs.ucla.edu>
109459         * lib/closeout.c (close_stdout): Also close stderr.
109460         * lib/closeout.h: Update comment.
109462 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109464         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
109465         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
109466         * lib/dirchownmod.c: Include lchown.h.
109467         * lib/lchown.c: Don't include files that lchown.h now includes.
109468         Don't declare chown, since lchown.h now does that.
109469         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
109470         (lchown): Define to rpl_chown if lchown is declared but
109471         does not exist.  Declare using a prototype if lchown is not
109472         declared.  Add a copyright notice.
109473         * lib/mkstemp.h: Include <unistd.h>.
109474         * lib/openat.c: Include lchown.h.
109476         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
109477         we now test for that separately.
109478         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
109479         rather than O_NOFOLLOW, when testing whether it's possible to
109480         avoid a race condition reliably.
109481         * lib/savewd.c (savewd_chdir): Likewise.
109483         Remove macros that are no longer needed now that stdint.h is
109484         reliable.
109485         * lib/fsusage.c (UINTMAX_MAX): Remove.
109486         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
109487         * lib/utimecmp.c (SIZE_MAX): Remove.
109489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
109491         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
109492         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
109493         O_NOATIME works.
109495 2006-10-05  Bruno Haible  <bruno@clisp.org>
109497         * lib/gl_list.h (gl_sortedlist_search_from_to,
109498         gl_sortedlist_indexof_from_to): New declarations.
109499         (gl_list_implementation): New fields sortedlist_search_from_to,
109500         sortedlist_indexof_from_to.
109501         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
109502         inline functions.
109503         * lib/gl_list.c (gl_sortedlist_search_from_to,
109504         gl_sortedlist_indexof_from_to): New functions.
109505         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
109506         function.
109507         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
109508         (gl_array_sortedlist_search_from_to): New function.
109509         (gl_array_list_implementation): Update.
109510         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
109511         function.
109512         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
109513         (gl_carray_sortedlist_search_from_to): New function.
109514         (gl_carray_list_implementation): Update.
109515         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
109516         gl_linked_sortedlist_indexof_from_to): New functions.
109517         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109518         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109519         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
109520         gl_tree_sortedlist_indexof_from_to): New functions.
109521         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109522         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109523         Update.
109524         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109525         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
109526         Update.
109528 2006-10-05  Bruno Haible  <bruno@clisp.org>
109530         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
109531         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
109532         (struct gl_list_implementation): Add fields search_from_to,
109533         indexof_from_to. Remove fields search, indexof.
109534         (gl_list_search): Use the search_from_to method.
109535         (gl_list_search_from, gl_list_search_from_to): New functions.
109536         (gl_list_indexof): Use the indexof_from_to method.
109537         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109538         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
109539         (gl_list_search_from, gl_list_search_from_to): New functions.
109540         (gl_list_indexof): Use the indexof_from_to method.
109541         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
109542         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
109543         gl_array_indexof. Add start_index, end_index arguments.
109544         (gl_array_search_from_to): Renamed from gl_array_search. Add
109545         start_index, end_index arguments.
109546         (gl_array_remove, gl_array_list_implementation): Update.
109547         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
109548         gl_carray_indexof. Add start_index, end_index arguments.
109549         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
109550         start_index, end_index arguments.
109551         (gl_carray_remove, gl_carray_list_implementation): Update.
109552         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
109553         gl_linked_search. Add start_index, end_index arguments.
109554         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
109555         start_index, end_index arguments.
109556         (gl_linked_remove): Update.
109557         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
109558         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
109559         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
109560         field to 'size_t'.
109561         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
109562         gl_tree_search. Add start_index, end_index arguments.
109563         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109564         start_index, end_index arguments.
109565         (gl_tree_remove): Update.
109566         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
109567         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
109568         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
109569         function.
109570         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
109571         gl_tree_search. Add start_index, end_index arguments.
109572         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
109573         start_index, end_index arguments.
109574         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
109575         Update.
109576         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
109578 2006-10-05  Bruno Haible  <bruno@clisp.org>
109580         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
109582         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
109583         fwriteerror_temp): New declarations.
109584         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
109585         (descriptors): New variable.
109586         (cleanup): First, close the descriptors.
109587         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
109588         fclose_temp, fwriteerror_temp): New functions.
109590 2006-10-04  Jim Meyering  <jim@meyering.net>
109592         * lib/fts.c (fts_open): Tiny comment change.
109594 2006-10-04  Bruno Haible  <bruno@clisp.org>
109596         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
109597         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
109598         gl_LOCK_BODY.
109599         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
109600         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
109601         gl_LOCK_EARLY_BODY.
109602         (gl_LOCK): Require gl_LOCK_BODY.
109604 2006-10-04  Bruno Haible  <bruno@clisp.org>
109606         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
109607         (gl_oset_search_atleast): New declaration.
109608         (struct gl_oset_implementation): Add field 'search_atleast'.
109609         (gl_oset_search_atleast): New inline function.
109610         * lib/gl_oset.c (gl_oset_search_atleast): New function.
109611         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
109612         (gl_array_oset_implementation): Update.
109613         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
109614         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
109615         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
109617 2006-10-04  Bruno Haible  <bruno@clisp.org>
109619         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
109621 2006-10-03  Bruno Haible  <bruno@clisp.org>
109623         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
109624         from gl_avltreehash_list_implementation.
109626 2006-10-03  Bruno Haible  <bruno@clisp.org>
109628         * lib/gl_oset.c (gl_oset_add): Fix return type.
109630 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
109632         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
109634 2006-10-02  Eric Blake  <ebb9@byu.net>
109636         * modules/strnlen (Depends-on): Add extensions.
109638 2006-10-02  Eric Blake  <ebb9@byu.net>
109640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
109641         definition in 2.60+.
109643 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
109645         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
109646         checks.
109648 2006-10-02  Bruno Haible  <bruno@clisp.org>
109650         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
109651         to the AUTOMAKE_OPTIONS.
109652         Reported by Jim Meyering.
109654 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109656         Work around bug in Solaris 10 /proc file system:
109657         /proc/self/fd/NNN/.. isn't the parent directory of
109658         the directory whose file descriptor is NNN.  This needs to
109659         be worked around at run time, not compile time, since a
109660         program might be built on Solaris 8, where things work, and
109661         run on Solaris 10.
109662         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
109663         to use the following interface instead:
109664         (OPENAT_BUFFER_SIZE): New macro.
109665         (openat_proc_name): New function.
109666         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
109667         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
109668         Likewise.
109669         * lib/openat-proc.c: New file.
109670         * modules/openat (Files): Add lib/openat-proc.c.
109671         (Depends-on): Add same-inode, stdbool.
109672         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
109674 2006-09-29  Bruno Haible  <bruno@clisp.org>
109676         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
109677         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
109678         argument. Set stdout_closed before testing for ferror, not after.
109679         (fwriteerror, fwriteerror_no_ebadf): New functions.
109681 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109683         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
109685 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
109687         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
109688         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
109690 2006-09-28  Jim Meyering  <jim@meyering.net>
109692         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
109693         Include <unistd.h>.
109695 2006-09-28  Bruno Haible  <bruno@clisp.org>
109697         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
109698         * modules/linkedhash-list (Depends-on): Likewise.
109699         * modules/rbtreehash-list (Depends-on): Likewise.
109701 2006-09-28  Bruno Haible  <bruno@clisp.org>
109703         * lib/strndup.h: Simplify the redefinition of strndup.
109704         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
109705         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
109707 2006-09-28  Bruno Haible  <bruno@clisp.org>
109709         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
109710         * lib/gl_linkedhash_list.c: Likewise.
109711         * lib/gl_rbtreehash_list.c: Likewise.
109713 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109715         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
109716         getaddrinfo.
109718         * lib/__fpending.h: Don't include <stdio_ext.h> unless
109719         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
109720         it causes <stdio_ext.h> to cause a compile-time error.
109721         Problem reported by Nelson H. F. Beebe.
109722         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
109723         of HAVE_DECL___PENDING.
109725         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
109726         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
109727         declaration.
109729 2006-09-27  Jim Meyering  <jim@meyering.net>
109731         This file could end up with a definition for a function
109732         named __strndup, rather than rpl_strndup on a system with
109733         incomplete weak_alias support.
109734         * lib/strndup.c (strndup): Rename from __strndup.
109735         Remove #defines that used to map __strndup to strndup.
109736         Don't use K&R prototypes.
109737         Remove LIBC-related code, since this file is not sync'd with glibc.
109738         * lib/strndup.h: Revamp, accordingly.
109739         * m4/strndup.m4: Modernize.
109741 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109743         * modules/savewd (Depends-on): Add 'raise'.
109744         * lib/savewd.c: Include <signal.h>, for 'raise'.
109746 2006-09-26  Jim Meyering  <jim@meyering.net>
109748         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
109749         when we detect Darwin 8.7.0's acl_get_file bug.
109750         Rearrange to perform the new (below) run-test while $LIBS
109751         contains any acl-related library.  Set USE_ACL at the end.
109752         (gl_ACL_GET_FILE): New function.
109754 2006-09-26  Eric Blake  <ebb9@byu.net>
109756         * lib/verror.c: Include <config.h> unconditionally.
109758 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
109760         * modules/clock-time (Maintainer): Add self.
109761         * modules/getlogin_r (Depends-on): Add extensions.
109763 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109765         * modules/clock-time: New module.
109766         * modules/nanosleep (Depends-on): Add clock-time.
109767         * modules/gethrxtime (Depends-on): Likewise.
109768         * modules/gettime (Depends-on): Likewise.
109769         * modules/settime (Depends-on): Likewise.
109771         * modules/fts-lgpl: Depend on openat.
109772         * modules/mkancesdirs: Depend on savewd.
109773         * modules/mkdir-p: Likewise.
109775 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109777         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
109779         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
109780         `gl_have_arbitrary_file_name_length_limit' to
109781         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
109782         actually works between configure runs.
109784 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109785             Bruno Haible  <bruno@clisp.org>
109787         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
109789 2006-09-25  Jim Meyering  <jim@meyering.net>
109791         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
109792         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
109794 2006-09-25  Eric Blake  <ebb9@byu.net>
109796         * gnulib-tool (func_import, func_create_testdir): Fix typos in
109797         exec's in 2006-09-18 patch when shuffling fds.
109799 2006-09-25  Bruno Haible  <bruno@clisp.org>
109801         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
109802         Reported by Jim Meyering.
109804 2006-09-24  Jim Meyering  <jim@meyering.net>
109806         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
109807         compare a pointer against a literal "0".  That caused failures with
109808         at least HP-UX's hpcc.
109810 2006-09-22  Simon Josefsson  <jas@extundo.com>
109812         * modules/gc-sha1:
109813         * modules/gc-md4:
109814         * modules/gc-hmac-sha1:
109815         * modules/gc-hmac-md5:
109816         * modules/gc-des:
109817         * modules/gc-arcfour: Distribute more files.
109819 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109821         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
109822         (gl_linked_iterator_from_to): Initialize struct completely.
109823         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
109824         (gl_tree_iterator_from_to): Likewise
109825         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
109826         * lib/gl_array_list.c [lint] (gl_array_iterator)
109827         (gl_array_iterator_from_to): Likewise.
109828         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
109829         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
109830         (gl_carray_iterator_from_to): Likewise.
109832         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
109833         * lib/md4.c (md4_process_block): Remove unused variable.
109834         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
109835         parentheses for clarity.
109837 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109839         * modules/bison-i18n (Depends-on): Add gettext.
109841 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109843         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
109844         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
109845         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
109846         also add missing comma that caused broken test.
109847         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
109848         stdlib.h, for `abort'.
109849         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
109850         variables.
109851         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
109852         include unistd.h if present, for `rmdir'.
109853         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
109854         variables.
109855         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
109856         in the process include standard headers for prototypes.
109857         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
109858         gets declared on GNU/Linux.
109859         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
109860         unistd.h, for `rmdir'.
109861         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
109863         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
109864         always true.
109865         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
109867         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
109869 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109871         * gnulib-tool (func_version): Create output all at once.  This
109872         may help avoid triggering unnecessary SIGPIPEs, and at any
109873         rate it doesn't hurt.
109875 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109876             Bruno Haible  <bruno@clisp.org>
109878         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
109879         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109880         * m4/signed.m4 (bh_C_SIGNED): Likewise.
109882         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
109883         (gl_FUNC_VASPRINTF): Invoke it.
109885 2006-09-22  Bruno Haible  <bruno@clisp.org>
109887         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
109888         getloadavg.c as first argument.
109890 2006-09-22  Bruno Haible  <bruno@clisp.org>
109892         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
109893         at the beginning of the gl_INIT macro.
109894         * modules/getloadavg (configure.ac): Pass $gl_source_base to
109895         gl_GETLOADAVG.
109897 2006-09-22  Bruno Haible  <bruno@clisp.org>
109899         * gnulib-tool (func_create_megatestdir): Don't include the config-h
109900         module.
109901         Suggested by Ralf Wildenhues.
109903 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
109905         Import this patch from libc:
109907         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
109909         * lib/regex_internal.c (re_string_reconstruct): Handle
109910         offset < pstr->valid_raw_len && pstr->offsets_needed case.
109911         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
109912         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
109913         re_string_context_at.
109915         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
109916         now requires it.
109917         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
109918         gl_REGEX now does it for us.
109919         (gl_REGEX): Add test taken from
109920         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
109922         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
109923         Check that large offsets work.  Modernize Autoconf usages.
109924         Prefer "yes" to mean a good thing rather than a bad.
109925         Don't put "#define mkstemp" in config.h, as this might interfere
109926         with standard system headers that "#define mkstemp mkstemp64".
109928         * modules/mkstemp (Depends-on): Add extensions, so that
109929         mkstemp is visible on some platforms.
109930         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
109931         (Include): Change to "mkstemp.h" from <stdlib.h>.
109932         (Files): Add mkstemp.h.
109934         * lib/mkstemp.h: New file, since some standard headers
109935         #define mkstemp.
109936         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
109937         Include "mkstemp.h".
109938         Make the _LIBC code resemble glibc original more,
109939         e.g., use K&R style.
109940         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
109941         (mkstemp): Remove, since mkstemp.h does this for us.
109942         * lib/stdlib--.h: Include mkstemp.h.
109944         Import this patch from libc:
109946         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109948         * lib/tempname.c (__gen_tempname): Change attempts_min
109949         into a macro.  Use preprocessor to decide how to initialize
109950         attempts [Coverity CID 67].
109952 2006-09-20  Bruno Haible  <bruno@clisp.org>
109954         * lib/mkdtemp.c: Import from libc.
109955         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
109956                 * sysdeps/posix/tempname.c (__gen_tempname): Change
109957                 attempts_min into a macro.  Use preprocessor to decide how to
109958                 initialize attempts [Coverity CID 67].
109959         2001-11-27  Paul Eggert  <eggert@twinsun.com>
109960                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
109961                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
109963 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109965         * gnulib-tool (func_exit): New function, to allow to pass the
109966         exit status portably through the trap.  Use everywhere.
109967         (--help, --version): Signal a write error.
109968         (trap): catch SIGPIPE, for write errors.
109969         Exit at the end of the trap, with the correct exit status.
109971 2006-09-19  Karl Berry  <karl@gnu.org>
109973         * doc/gnulib.texi: note about the license texinfo files.
109975 2006-09-19  Eric Blake  <ebb9@byu.net>
109977         * gnulib-tool: Avoid space-tab.
109979 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109981         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
109982         that prevented coreutils 6.1 from building.  Problem reported
109983         by Petter Reinholdtsen.
109985 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
109987         * gnulib-tool (avoidlist): Fix typo that broke options like
109988         --avoid=lock that are used by coreutils bootstrap.
109990 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
109992         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
109993         more systematically.
109995 2006-09-18  Jim Meyering  <jim@meyering.net>
109997         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
109999 2006-09-18  Bruno Haible  <bruno@clisp.org>
110001         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
110003 2006-09-18  Bruno Haible  <bruno@clisp.org>
110005         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
110006         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
110007         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
110008         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
110009         * m4/gettext.m4: Require autoconf >= 2.52.
110010         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
110011         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
110012         of gl_cv_header_inttypes_h.
110014 2006-09-18  Bruno Haible  <bruno@clisp.org>
110016         * lib/javaversion.c: Include configmake.h.
110018 2006-09-18  Bruno Haible  <bruno@clisp.org>
110020         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
110021         avoid that the while loops be executed in a subshell.
110023 2006-09-18  Bruno Haible  <bruno@clisp.org>
110025         * MODULES.html.sh (func_module): Break long lines.
110026         Suggested by Bruce Korb <bkorb@gnu.org>.
110028 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110030         Speed up by a factor of 1.12.
110031         * gnulib-tool (nl): New variable.
110032         (func_import): Rewrite include directive extraction to only read each
110033         directive once.
110035 2006-09-17  Bruno Haible  <bruno@clisp.org>
110037         * modules/javaversion (Makefile.am): Remove DEFS setting.
110038         (Depends-on): Add configmake, for PKGDATADIR definition.
110040 2006-09-17  Bruno Haible  <bruno@clisp.org>
110042         * gnulib-tool (func_create_testdir): Rewrite all files at once.
110044 2006-09-17  Bruno Haible  <bruno@clisp.org>
110046         * gnulib-tool (func_append): New function, stolen from libtool.m4.
110047         (func_modules_transitive_closure, func_modules_add_dummy,
110048         func_modules_to_filelist, func_import, func_create_testdir,
110049         func_create_megatestdir, ...): Use it wherever possible.
110050         Suggested by Ralf Wildenhues.
110052 2006-09-16  Karl Berry  <karl@gnu.org>
110054         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
110055         to avoid sectioning errors.
110056         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
110057         [ifinfo]: blank line after @center-ed titles.
110058         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
110059         Spell FSF address consistently with others.
110060         (These changes approved by rms.)
110062 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110064         Speed up by a factor of 1.61.
110065         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
110066         already checked module names again.
110068 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110070         Speed up by a factor of 1.13.
110071         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
110072         for new_files, and the input to func_add_or_update.
110074 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110076         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
110077         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
110079 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110081         * modules/mkancesdirs (Depends-on): Add fcntl.
110082         * modules/savewd: New file.
110083         * MODULES.html.sh (File system functions): Add savewd.
110085         * modules/configmake (Makefile.am): Add support for the
110086         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
110088 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110090         * m4/savewd.m4: New file.
110092 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
110094         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
110095         (dirchownmod): New arg FD.  All callers changed.
110096         Use FD rather than opening the directory ourself, as opening is
110097         now the caller's responsibility.
110098         * lib/dirchownmod.h: Likewise.
110099         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
110100         hosts that require <sys/types.h> before <sys/stat.h>.  Include
110101         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
110102         (test_dir): Remove.
110103         (mkancesdirs): Return length of prefix of FILE that has already
110104         been made, or -2 if there is a child doing the work.  Redo
110105         algorithm so that it is O(N) rather than O(N**2).  Optimize away
110106         ".", and treat ".." specially since it might stray back into
110107         already-created areas.  Use a subprocess if necessary.  New arg
110108         WD; all users changed.  MAKE_DIR function should now return 1
110109         if it creates a directory that is not readable.  Return -2 if
110110         a child process is spun off.
110111         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
110112         Adjust signature to match code.
110113         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
110114         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
110115         all users changed.
110116         * lib/savewd.c, lib/savewd.h: New files.
110118 2006-09-15  Jim Meyering  <jim@meyering.net>
110120         * modules/rename-dest-slash: New module.
110121         * MODULES.html.sh (posix_compat): Add it here.
110123         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
110125 2006-09-15  Jim Meyering  <jim@meyering.net>
110127         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
110128         file.
110130         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
110132 2006-09-15  Jim Meyering  <jim@meyering.net>
110134         * lib/rename-dest-slash.c (has_trailing_slash): Use
110135         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
110136         (rpl_rename_dest_slash): Perform the cheaper trailing slash
110137         test before testing whether SRC is a directory.
110138         Suggestions from Bruno Haible.
110140         Avoid a warning about an unused variable.
110141         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
110142         into the #ifdef block where it's used.
110144         * lib/rename-dest-slash.c: New file.
110146 2006-09-14  Bruno Haible  <bruno@clisp.org>
110148         * lib/allocsa.c: Include <config.h> unconditionally.
110149         * lib/asnprintf.c: Likewise.
110150         * lib/asprintf.c: Likewise.
110151         * lib/c-strcasecmp.c: Likewise.
110152         * lib/c-strcasestr.c: Likewise.
110153         * lib/c-strncasecmp.c: Likewise.
110154         * lib/c-strstr.c: Likewise.
110155         * lib/classpath.c: Likewise.
110156         * lib/clean-temp.c: Likewise.
110157         * lib/concatpath.c: Likewise.
110158         * lib/copy-file.c: Likewise.
110159         * lib/csharpcomp.c: Likewise.
110160         * lib/csharpexec.c: Likewise.
110161         * lib/execute.c: Likewise.
110162         * lib/fatal-signal.c: Likewise.
110163         * lib/findprog.c: Likewise.
110164         * lib/fwriteerror.c: Likewise.
110165         * lib/gl_array_list.c: Likewise.
110166         * lib/gl_array_oset.c: Likewise.
110167         * lib/gl_avltree_list.c: Likewise.
110168         * lib/gl_avltree_oset.c: Likewise.
110169         * lib/gl_avltreehash_list.c: Likewise.
110170         * lib/gl_carray_list.c: Likewise.
110171         * lib/gl_linked_list.c: Likewise.
110172         * lib/gl_linkedhash_list.c: Likewise.
110173         * lib/gl_list.c: Likewise.
110174         * lib/gl_oset.c: Likewise.
110175         * lib/gl_rbtree_list.c: Likewise.
110176         * lib/gl_rbtree_oset.c: Likewise.
110177         * lib/gl_rbtreehash_list.c: Likewise.
110178         * lib/imaxabs.c: Likewise.
110179         * lib/imaxdiv.c: Likewise.
110180         * lib/javacomp.c: Likewise.
110181         * lib/javaexec.c: Likewise.
110182         * lib/javaversion.c: Likewise.
110183         * lib/linebreak.c: Likewise.
110184         * lib/localcharset.c: Likewise.
110185         * lib/lock.c: Likewise.
110186         * lib/mbchar.c: Likewise.
110187         * lib/mbswidth.c: Likewise.
110188         * lib/mkdtemp.c: Likewise.
110189         * lib/pipe.c: Likewise.
110190         * lib/printf-args.c: Likewise.
110191         * lib/printf-parse.c: Likewise.
110192         * lib/progname.c: Likewise.
110193         * lib/progreloc.c: Likewise.
110194         * lib/readlink.c: Likewise.
110195         * lib/sh-quote.c: Likewise.
110196         * lib/stpcpy.c: Likewise.
110197         * lib/stpncpy.c: Likewise.
110198         * lib/strcasecmp.c: Likewise.
110199         * lib/strcasestr.c: Likewise.
110200         * lib/strcspn.c: Likewise.
110201         * lib/striconv.c: Likewise.
110202         * lib/strncasecmp.c: Likewise.
110203         * lib/strnlen1.c: Likewise.
110204         * lib/strstr.c: Likewise.
110205         * lib/strtok_r.c: Likewise.
110206         * lib/tls.c: Likewise.
110207         * lib/tmpdir.c: Likewise.
110208         * lib/unicodeio.c: Likewise.
110209         * lib/unsetenv.c: Likewise.
110210         * lib/vasnprintf.c: Likewise.
110211         * lib/vasprintf.c: Likewise.
110212         * lib/wait-process.c: Likewise.
110213         * lib/xallocsa.c: Likewise.
110214         * lib/xsetenv.c: Likewise.
110215         * lib/xstriconv.c: Likewise.
110217 2006-09-13  Simon Josefsson  <jas@extundo.com>
110219         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
110220         that internally, suggested by Ralf Wildenhues
110221         <Ralf.Wildenhues@gmx.de>.
110223 2006-09-13  Simon Josefsson  <jas@extundo.com>
110225         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
110226         @LIBOBJS@.
110227         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
110229 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
110231         * lib/_fpending.c: Include <config.h> unconditionally, since we no
110232         longer worry about uses that don't define HAVE_CONFIG_H.
110233         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
110234         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
110235         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
110236         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
110237         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
110238         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
110239         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
110240         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
110241         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
110242         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
110243         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
110244         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
110245         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
110246         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
110247         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
110248         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
110249         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
110250         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
110251         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
110252         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
110253         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
110254         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
110255         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
110256         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
110257         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
110258         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
110259         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
110260         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
110261         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
110262         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
110263         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
110264         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
110265         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
110266         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
110267         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
110268         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
110269         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
110270         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
110271         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
110272         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
110273         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
110274         Likewise.
110276 2006-09-13  Eric Blake  <ebb9@byu.net>
110278         * lib/getopt.c: Fix typo in last commit.
110280 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
110282         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
110283         dgettext.
110285 2006-09-12  Jim Meyering  <jim@meyering.net>
110287         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
110288         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
110289         Reported by Nelson H. F. Beebe.
110291 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
110293         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
110294         program_invocation_name and program_invocation_short_name are
110295         initialized.
110296         * lib/argp-namefrob.h: Move declarations of program_invocation_name
110297         and program_invocation_short_name to argp.h, so they are visible
110298         to user programs.
110299         * lib/argp.h: Likewise
110301 2006-09-10  Bruno Haible  <bruno@clisp.org>
110303         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
110304         m4/inttypes_h.m4, m4/uintmax_t.m4.
110306 2006-09-10  Bruno Haible  <bruno@clisp.org>
110308         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
110309         gl_AC_TYPE_UINTMAX_T.
110311 2006-09-10  Bruno Haible  <bruno@clisp.org>
110313         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
110315 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
110317         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
110318         convention.  Text proposed by Bruno Haible.
110319         (struct argp_option): Document the use of N_() wrappers.
110321         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
110322         '\v', and translate the two parts separately, instead of feeding
110323         the whole string to gettext.  This allows to exclude
110324         '\v' from the strings visible to the translator by writing doc
110325         strings as N_("..") "\v" N_("..").
110327 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
110329         * config/srclist.txt: Undo latest change; the bug was fixed.
110331 2006-09-09  Bruno Haible  <bruno@clisp.org>
110333         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
110334         assignments if building a library without libtool.
110335         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
110336         in func_emit_lib_Makefile_am.
110337         (func_import): When building a static library libfoo.a, arrange to
110338         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
110339         (func_create_testdir): Likewise.
110340         * modules/gc (configure.ac, Makefile.am): If building statically,
110341         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
110342         * modules/iconvme (configure.ac, Makefile.am): Likewise.
110343         * modules/striconv (configure.ac, Makefile.am): Likewise.
110344         Based on a suggestion by Ralf Wildenhues.
110346 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110348         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110349         Check for unistd.h too, since Autoconf doesn't assume POSIX.
110350         Also:
110352         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110353         Add year_2050_test to catch glibc bug 2821
110354         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110356         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
110357         Prefer #ifdef to #if.
110359         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
110360         Return from 'main' instead of calling 'exit'.
110362 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110364         * lib/mktime.c (guess_time_tm): Fix bug where mktime
110365         returned the maximum time_t value rather than (time_t) -1.
110366         Problem originally reported by William Bardwell
110367         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
110369         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110370         Moved to here ...
110371         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
110372         ... from here.
110374 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
110376         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
110377         2821 is fixed.
110379 2006-09-08  Jim Meyering  <jim@meyering.net>
110381         Don't make generated files read-only.  That would bother too many
110382         people.  However, do retain the ability to work when targets are
110383         read-only: remove the destination and temporary files before writing
110384         them (when generated via sed or echo), or by using the -f option for
110385         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
110386         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110387         * modules/byteswap, modules/configmake, modules/fcntl:
110388         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110389         * modules/localcharset, modules/netinet_in, modules/poll:
110390         * modules/stdbool, modules/stdint, modules/sys_select:
110391         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110393 2006-09-08  Jim Meyering  <jim@meyering.net>
110395         Avoid new build failure on FreeBSD 6.0.
110396         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
110397         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
110398         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
110400 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110402         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
110404 2006-09-07  Jim Meyering  <jim@meyering.net>
110406         Fix global typo in last change: use chmod u-w, not chmod u-x.
110407         Spotted by Paul Eggert and Bruce Korb.
110408         * modules/alloca-opt, modules/argz, modules/arpa_inet:
110409         * modules/byteswap, modules/configmake, modules/fcntl:
110410         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
110411         * modules/localcharset, modules/netinet_in, modules/poll:
110412         * modules/stdbool, modules/stdint, modules/sys_select:
110413         * modules/sys_socket, modules/sys_stat, modules/sysexits:
110415 2006-09-06  Jim Meyering  <jim@meyering.net>
110417         Make generated files be read-only.
110418         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
110419         Ensure that each generated file is now read-only.
110420         * modules/argz: Likewise.
110421         * modules/arpa_inet: Likewise.
110422         * modules/byteswap: Likewise.
110423         * modules/configmake: Likewise.
110424         * modules/fcntl: Likewise.
110425         * modules/fnmatch: Likewise.
110426         * modules/getopt: Likewise.
110427         * modules/glob: Likewise.
110428         * modules/inttypes: Likewise.
110429         * modules/netinet_in: Likewise.
110430         * modules/poll: Likewise.
110431         * modules/stdbool: Likewise.
110432         * modules/stdint: Likewise.
110433         * modules/sys_select: Likewise.
110434         * modules/sys_socket: Likewise.
110435         * modules/sys_stat: Likewise.
110436         * modules/sysexits: Likewise.
110437         * modules/localcharset: Same as above, but continue using temporary
110438         file named "t-$@" (why different?) rather than the "$@-t" used
110439         everywhere else.
110441         * modules/sysexits (Makefile.am): Replace literal occurrences
110442         of "sysexit.h" more readable, and more consistent, "$@".
110444 2006-09-06  Bruno Haible  <bruno@clisp.org>
110446         * modules/striconv: New file.
110447         * modules/xstriconv: New file.
110448         * MODULES.html.sh (Internationalization functions): Add striconv,
110449         xstriconv.
110451 2006-09-06  Bruno Haible  <bruno@clisp.org>
110453         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
110454         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
110455         not using libtool correctly.
110457 2006-09-06  Bruno Haible  <bruno@clisp.org>
110459         * lib/striconv.h: New file.
110460         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
110461         iconvstring.c.
110462         * lib/xstriconv.h: New file.
110463         * lib/xstriconv.c: New file.
110465 2006-09-06  Bruno Haible  <bruno@clisp.org>
110467         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110468         lib_..._LDFLAGS.
110470 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110472         * lib/argz_.h: Sync from Libtool.
110474         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
110475                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
110477         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
110479 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110481         * modules/trim: New file.
110483 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
110485         * lib/trim.h: New file.
110486         * lib/trim.c: New file.
110488 2006-09-05  Bruno Haible  <bruno@clisp.org>
110490         * MODULES.html.sh (String handling): Add trim.
110492 2006-09-04  Karl Berry  <karl@gnu.org>
110494         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
110495         until next release.
110497 2006-09-03  Bruno Haible  <bruno@clisp.org>
110499         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
110500         correctly.
110502 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110504         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
110505         not gl_GETLOADAVG.  Omit unneeded semicolons.
110506         Problems reported by Ralf Wildenhues in
110507         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110508         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
110509         at the end, which is the usual gnulib style.
110511         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
110512         of doing all the work ourselves.
110513         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
110514         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
110516 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110518         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
110519         Problem reported by Ralf Wildenhues in
110520         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
110522         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
110523         HAVE_STRUCT_STATFS_F_FSTYPENAME.
110525 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110527         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
110528         yesterday's patch by changing test -n to test -z.
110530 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110532         * modules/getloadavg (Files): Add m4/getloadavg.m4.
110533         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
110534         the former is now obsolescent.
110536         * modules/chdir-long (Depends-on): Add fcntl.
110538 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110540         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
110541         obsolescent, and programs should use gnulib instead.
110542         * m4/getloadavg.m4: New file, with contents taken from Autoconf
110543         but with prefixes changed.
110545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110547         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
110548         or stdbool.h, because they might not exist while configuring.
110550         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
110551         Don't include unistd.h or limits.h; not needed, since chdir-long.h
110552         does that for us.
110553         (O_DIRECTORY): Remove.
110555 2006-08-31  Eric Blake  <ebb9@byu.net>
110557         * gnulib-tool: Don't let emacs change spaces to TAB.
110559 2006-08-31  Bruno Haible  <bruno@clisp.org>
110561         * gnulib-tool: When calling func_import more than once, do it in a
110562         subshell.
110563         Reported by Eric Blake <ebb9@byu.net>.
110565 2006-08-31  Bruno Haible  <bruno@clisp.org>
110567         * gnulib-tool (nl): Remove variable.
110568         (sed_transform_lib_file): Use more robust test for config-h module.
110569         (func_import): Fix typo in 2006-08-25 patch.
110571 2006-08-31  Bruno Haible  <bruno@clisp.org>
110573         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
110574         specified, augment Makefile.am variables instead of assigning them.
110576 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110578         Work around a bug in both the Linux and SunOS 64-bit kernels:
110579         nanosleep mishandles sleeps for longer than 2**31 seconds.
110580         Problem reported by Frank v Waveren in
110581         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110582         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
110583         Check for nanosleep bug.
110584         (LIB_NANOSLEEP): Append clock_gettime library if needed.
110586 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110588         Work around a bug in both the Linux and SunOS 64-bit kernels:
110589         nanosleep mishandles sleeps for longer than 2**31 seconds.
110590         Problem reported by Frank v Waveren in
110591         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
110592         * lib/nanosleep.c (BILLION): New constant.
110593         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
110594         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
110595         implementation.
110597 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110599         * modules/nanosleep (Depends-on): Add gettime.
110601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
110602         and Simon Josefsson  <jas@extundo.com>
110603         and Oskar Liljeblad  <oskar@osk.mine.nu>
110605         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
110606         * gnulib-tool (func_import): New license type 'unmodifiable license
110607         text'.
110608         * modules/fdl: Use it.  Longer description.
110609         * module/gpl, module/lgpl: New files.
110611 2006-08-30  Jim Meyering  <jim@meyering.net>
110613         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
110614         shadowing the parameter.
110616 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110618         Sync from Libtool:
110620         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110622         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
110623         sharing with gnulib.  Report by Eric Blake.
110625 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110627         * modules/isapipe: New file.
110628         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
110630 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110632         * modules/configmake (Makefile.am): Add a comment, and omit
110633         the CONFIGMAKE_ prefix from generated macro names.  Suggested
110634         by Bruno Haible.
110636 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110638         * m4/isapipe.m4: New file.
110640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
110642         * lib/isapipe.c, lib/isapipe.h: New files.
110644 2006-08-29  Jim Meyering  <jim@meyering.net>
110646         * modules/configmake (Makefile.am): Make configmake.h depend on
110647         Makefile.  Otherwise, a stale configmake.h could hang around.
110649 2006-08-29  Eric Blake  <ebb9@byu.net>
110651         * lib/error.c (error_at_line, print_errno_message): Match libc, after
110652         resolution of upstream bug 3044.
110654 2006-08-29  Bruno Haible  <bruno@clisp.org>
110656         * modules/localcharset (Depends-on): Add configmake.
110657         (Makefile.am): Remove setting of LIBDIR through DEFS.
110659 2006-08-29  Bruno Haible  <bruno@clisp.org>
110661         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
110662         defined.
110664 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110666         * modules/fcntl: New file.
110667         * modules/chdir-safer (Depends-on): Add fcntl.
110668         * modules/fts: Likewise.
110669         * modules/mkdir-p: Likewise.
110671         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
110672         This undoes the most recent change, since we're now addressing the
110673         problem in a different way.
110675         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
110676         into output, since the output might be called Makefile.am even
110677         if $makefile_name is something different.
110678         (func_import): Use $makefile_am rather than
110679         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
110680         empty.
110682         * modules/inttypes (Files): Add m4/inttypes-h.m4.
110684 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110686         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
110687         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
110688         recent change to stdint.m4, since we're now addressing the problem in a
110689         different way.
110691 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110693         * m4/fcntl_h.m4: New file.
110695 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
110697         * lib/fcntl_.h: New file.
110698         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
110699         the fcntl module.
110700         * lib/dirchownmod.c: Likewise.
110701         * lib/fts.c: Likewise.
110703         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
110704         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
110705         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
110706         just before including <inttypes.h>, to avoid circular inclusion.
110708 2006-08-28  Jim Meyering  <jim@meyering.net>
110710         * doc/visibility.texi: Actually read and correct the grammar of the
110711         sentence affected by yesterday's change.
110713 2006-08-28  Eric Blake  <ebb9@byu.net>
110715         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
110716         needs wrapper.
110718 2006-08-28  Eric Blake  <ebb9@byu.net>
110720         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
110722 2006-08-28  Eric Blake  <ebb9@byu.net>
110724         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
110726 2006-08-28  Bruno Haible  <bruno@clisp.org>
110728         * modules/c-strstr: New file, from GNU gettext.
110729         * MODULES.html.sh (String handling): Add c-strstr.
110731 2006-08-28  Bruno Haible  <bruno@clisp.org>
110733         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
110734         macros.
110735         Reported by Eric Blake.
110737 2006-08-28  Bruno Haible  <bruno@clisp.org>
110739         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
110740         (VASNPRINTF): Return a string of length > INT_MAX without failing.
110741         * lib/vasprintf.c: Include errno.h, limits.h.
110742         (EOVERFLOW): New fallback definition.
110743         (vasprintf): Test here whether the string length is > INT_MAX.
110744         * lib/vsnprintf.c: Include errno.h, limits.h.
110745         (EOVERFLOW): New fallback definition.
110746         (vsnprintf): Fix bug when generated string was too long for the buffer.
110747         Test here whether the string length is > INT_MAX.
110749 2006-08-28  Bruno Haible  <bruno@clisp.org>
110751         * lib/inttypes_.h (SCNX*): Remove definitions.
110752         Reported by Eric Blake.
110754 2006-08-28  Bruno Haible  <bruno@clisp.org>
110756         * lib/c-strstr.h: New file, from GNU gettext.
110757         * lib/c-strstr.c: New file, from GNU gettext.
110759 2006-08-28  Bruno Haible  <bruno@clisp.org>
110761         * gnulib-tool: Reorder some statements.
110763 2006-08-28  Bruno Haible  <bruno@clisp.org>
110765         * gnulib-tool: New option --makefile-name.
110766         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
110767         $makefile_name.
110768         (func_import): Write $makefile_name to the cache file, and read it from
110769         there unless explicitly specified. Use $makefile_name as file name
110770         instead of Makefile.am. Adjust the recommendations accordingly.
110772 2006-08-28  Bruno Haible  <bruno@clisp.org>
110774         * gnulib-tool (func_verify_module): Check against misapplying patch.
110776 2006-08-28  Bruno Haible  <bruno@clisp.org>
110778         * gnulib-tool (func_relativize, func_relconcat): New functions.
110779         Give an error if --local-dir is given with --update.
110780         Remove trailing slashes from $local_gnulib_dir.
110781         (func_import): Store the relativized $local_gnulib_dir in
110782         gnulib-cache.m4, and read it from there if not specified explicitly.
110784 2006-08-28  Bruno Haible  <bruno@clisp.org>
110786         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
110787         is the current directory. Respect also $local_gnulib_dir.
110789 2006-08-28  Bruno Haible  <bruno@clisp.org>
110790             Simon Josefsson  <jas@extundo.com>
110792         BeOS portability.
110793         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
110795 2006-08-27  Jim Meyering  <jim@meyering.net>
110797         * doc/visibility.texi: Remove duplicate word: "pointer".
110799 2006-08-26  Bruno Haible  <bruno@clisp.org>
110801         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
110802         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
110803         (Makefile.am): Create inttypes.h from inttypes_.h.
110804         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
110806         * modules/imaxabs: New file.
110808         * modules/imaxdiv: New file.
110810 2006-08-26  Bruno Haible  <bruno@clisp.org>
110812         * m4/inttypes.m4: New file.
110813         * m4/_inttypes_h.m4: Remove file.
110814         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
110815         PRI_MACROS_BROKEN.
110816         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
110818         * m4/imaxabs.m4: New file.
110820         * m4/imaxdiv.m4: New file.
110822 2006-08-26  Bruno Haible  <bruno@clisp.org>
110824         * lib/inttypes_.h: New file.
110825         * lib/inttypes.h: Remove file.
110826         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
110828         * lib/imaxabs.c: New file.
110830         * lib/imaxdiv.c: New file.
110832 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110834         New config-h module, so that "make" output needn't be cluttered
110835         by -DHAVE_CONFIG_H.
110836         * MODULES.html.sh (Support for building libraries and executables):
110837         Add config-h.
110838         * modules/config-h: New file.
110839         * gnulib-tool (nl, sed_transform_lib_file): New vars.
110840         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
110841         the config-h module is used.
110843         New configmake module, so that "make" output needn't be cluttered
110844         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
110845         * MODULES.html.sh (Support for building libraries and executables):
110846         Add configmake.
110847         * modules/configmake: New file.
110849 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110851         * m4/config-h.m4: New file.
110853 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110855         * config/srclist.txt: Add elisp-comp.
110857 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110859         * MODULES.html.sh (Support for building libraries and executables):
110860         Add elisp-comp.
110861         * build-aux/elisp-comp: New file.
110862         * modules/elisp-comp: New file.
110864 2006-08-24  Bruno Haible  <bruno@clisp.org>
110866         * gnulib-tool (func_create_testdir): Use non-default values of
110867         sourcebase and m4base.
110869 2006-08-24  Bruno Haible  <bruno@clisp.org>
110871         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
110872         HTML structure.
110874 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110876         * modules/openat (Depends-on): Add lchown.
110878 2006-08-23  Bruno Haible  <bruno@clisp.org>
110880         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
110881         of gl_LOCK_EARLY instead of gl_LOCK.
110883 2006-08-23  Bruno Haible  <bruno@clisp.org>
110885         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
110886         on OSF/1 to no.
110887         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
110889 2006-08-23  Bruno Haible  <bruno@clisp.org>
110891         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
110892         as unusable.
110894         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
110895         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
110896         (gl_LOCK): New macro.
110898 2006-08-22  Simon Josefsson  <jas@extundo.com>
110900         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
110901         to md5 module.
110903 2006-08-22  Simon Josefsson  <jas@extundo.com>
110905         * MODULES.html.sh: Add "Support for maintaining and release
110906         projects".
110908         * build-aux/gnupload: New file, from coreutils.
110910 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110912         Avoid the need for AC_LIBSOURCES in m4 macros.
110913         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
110914         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
110915         * modules/check-version (EXTRA_DIST): Add check-version.h.
110916         * modules/crc (EXTRA_DIST): Add crc.h.
110917         * modules/des (EXTRA_DIST): Add des.h.
110918         * modules/gc (EXTRA_DIST): Add gc.h.
110919         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
110920         * modules/getline (EXTRA_DIST): Add getline.h.
110921         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
110922         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
110923         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
110924         * modules/md2 (EXTRA_DIST): Add md2.h.
110925         * modules/md4 (EXTRA_DIST): Add md4.h.
110926         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
110927         * modules/read-file (EXTRA_DIST): Add read-file.h.
110928         * modules/readline (EXTRA_DIST): Add readline.h.
110929         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
110930         rijndael-api-fst.h.
110932 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110934         * m4/rijndael.m4 (gl_ARCFOUR):
110935         * m4/arctwo.m4 (gl_ARCTWO):
110936         * m4/check-version.m4 (gl_CHECK_VERSION):
110937         * m4/crc.m4 (gl_CRC):
110938         * m4/des.m4 (gl_DES):
110939         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
110940         * m4/gc.m4 (gl_GC):
110941         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
110942         * m4/getline.m4 (gl_FUNC_GETLINE):
110943         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
110944         * m4/hmac-md5.m4 (gl_HMAC_MD5):
110945         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
110946         * m4/md2.m4 (gl_MD2):
110947         * m4/md4.m4 (gl_MD4):
110948         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
110949         * m4/read-file.m4 (gl_FUNC_READ_FILE):
110950         * m4/readline.m4 (gl_FUNC_READLINE):
110951         * m4/rijndael.m4 (gl_RIJNDAEL):
110952         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
110953         to get the necessary .h files and whatnot.
110955 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
110957         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
110958         gnulib rather than the other way around.
110959         * config/srclistvars.sh (COREUTILS): Remove.
110961 2006-08-22  Jim Meyering  <jim@meyering.net>
110963         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
110965         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
110967 2006-08-22  Eric Blake  <ebb9@byu.net>
110969         * modules/regexprops-generic: New file.
110970         * MODULES.html.sh (Support for building documentation): List it.
110972 2006-08-22  Eric Blake  <ebb9@byu.net>
110974         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
110975         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
110976         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
110977         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
110979 2006-08-22  Bruno Haible  <bruno@clisp.org>
110981         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
110982         and lib_LTLIBRARIES like the other lib_* variables.
110984 2006-08-22  Bruno Haible  <bruno@clisp.org>
110986         * build-aux/x-to-1.in: New file, from GNU gettext.
110988 2006-08-22  Bruno Haible  <bruno@clisp.org>
110990         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
110991         <utmpx.h> exists.
110993 2006-08-22  Bruno Haible  <bruno@clisp.org>
110995         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
110996         <utmpx.h> exists.
110998 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111000         BeOS portability.
111001         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
111002         exist.
111003         Problem reported by Bruno Haible.
111005 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111007         Avoid the need for AC_LIBSOURCES in m4 macros.
111008         * modules/acl (EXTRA_DIST): Add acl.h.
111009         * modules/argmatch (Files): Add m4/argmatch.m4.
111010         (configure.ac): Add gl_ARGMATCH.
111011         (EXTRA_DIST): Renamed from lib_SOURCES, for
111012         consistency with the other modules.  Remove argmatch.c.
111013         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
111014         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
111015         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
111016         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
111017         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
111018         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
111019         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
111020         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
111021         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
111022         * modules/closeout (EXTRA_DIST): Add closeout.h.
111023         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
111024         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
111025         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
111026         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
111027         dirname.h; remove basename.c and stripslash.c.
111028         * modules/exclude (EXTRA_DIST): Add exclude.h.
111029         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
111030         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
111031         * modules/file-type (EXTRA_DIST): Add file-type.h.
111032         * modules/filemode (EXTRA_DIST): Add filemode.h.
111033         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
111034         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111035         * modules/fpending (EXTRA_DIST): Add __fpending.h.
111036         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
111037         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
111038         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
111039         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
111040         * modules/getdate (EXTRA_DIST): Add getdate.c.
111041         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
111042         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
111043         * modules/getpass (EXTRA_DIST): Add getpass.h.
111044         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
111045         * modules/group-member (EXTRA_DIST): Add group-member.h.
111046         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
111047         * modules/hash (EXTRA_DIST): Add hash.h.
111048         * modules/human (EXTRA_DIST): Add human.h.
111049         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
111050         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
111051         * modules/lchown (EXTRA_DIST): Add lchown.h.
111052         * modules/long-options (EXTRA_DIST): Add long-options.h.
111053         * modules/lstat (EXTRA_DIST): Add lstat.h.
111054         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
111055         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
111056         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
111057         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
111058         * modules/memxor (EXTRA_DIST): Add memxor.h.
111059         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
111060         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
111061         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
111062         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
111063         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
111064         * modules/physmem (EXTRA_DIST): Add physmem.h.
111065         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
111066         * modules/posixver (EXTRA_DIST): Add posixver.h.
111067         * modules/quote (EXTRA_DIST): Add quote.h.
111068         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
111069         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
111070         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
111071         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
111072         regex_internal.h regexec.c.
111073         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
111074         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
111075         * modules/same (EXTRA_DIST): Add same.h.
111076         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
111077         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
111078         * modules/savedir (EXTRA_DIST): Add savedir.h.
111079         * modules/sha1 (EXTRA_DIST): Add sha1.h.
111080         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
111081         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
111082         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
111083         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
111084         * modules/strdup (EXTRA_DIST): Add strdup.h.
111085         * modules/strftime (EXTRA_DIST): Add strftime.h.
111086         * modules/strndup (EXTRA_DIST): Add strndup.h.
111087         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
111088         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
111089         * modules/time_r (EXTRA_DIST): Add time_r.h.
111090         * modules/timespec (EXTRA_DIST): Add timespec.h.
111091         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
111092         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
111093         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
111094         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
111095         * modules/userspec (EXTRA_DIST): Add userspec.h.
111096         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
111097         * modules/utimens (EXTRA_DIST): Add utimens.h.
111098         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
111099         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
111100         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
111101         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
111102         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
111103         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
111104         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
111105         * modules/yesno (EXTRA_DIST): Add yesno.h.
111107 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
111109         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
111111         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
111112         * m4/dev-ino.m4, same-inode.m4: Remove.
111114         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
111115         * m4/acl.m4 (AC_FUNC_ACL):
111116         * m4/backupfile.m4 (gl_BACKUPFILE):
111117         * m4/c-strtod.m4 (gl_C99_STRTOLD):
111118         * m4/canon-host.m4 (gl_CANON_HOST):
111119         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111120         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
111121         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
111122         * m4/cloexec.m4 (gl_CLOEXEC):
111123         * m4/close-stream.m4 (gl_CLOSE_STREAM):
111124         * m4/closeout.m4 (gl_CLOSEOUT):
111125         * m4/dirfd.m4 (gl_FUNC_DIRFD):
111126         * m4/dirname.m4 (gl_DIRNAME):
111127         * m4/exclude.m4 (gl_EXCLUDE):
111128         * m4/exitfail.m4 (gl_EXITFAIL):
111129         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
111130         * m4/file-type.m4 (gl_FILE_TYPE):
111131         * m4/filemode.m4 (gl_FILEMODE):
111132         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
111133         * m4/fpending.m4 (gl_FUNC_FPENDING):
111134         * m4/fprintftime.m4 (gl_FPRINTFTIME):
111135         * m4/fts.m4 (gl_FUNC_FTS):
111136         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
111137         * m4/getdate.m4 (gl_GETDATE):
111138         * m4/gethrxtime.m4 (gl_GETHRXTIME):
111139         * m4/getpagesize.m4 (gl_GETPAGESIZE):
111140         * m4/getpass.m4 (gl_FUNC_GETPASS):
111141         * m4/gettime.m4 (gl_GETTIME):
111142         * m4/getugroups.m4 (gl_GETUGROUPS):
111143         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
111144         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
111145         * m4/hard-locale.m4 (gl_HARD_LOCALE):
111146         * m4/hash.m4 (gl_HASH):
111147         * m4/idcache.m4 (gl_IDCACHE):
111148         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
111149         * m4/lchown.m4 (gl_FUNC_LCHOWN):
111150         * m4/long-options.m4 (gl_LONG_OPTIONS):
111151         * m4/lstat.m4 (gl_FUNC_LSTAT):
111152         * m4/md5.m4 (gl_MD5):
111153         * m4/memcasecmp.m4 (gl_MEMCASECMP):
111154         * m4/memcoll.m4 (gl_MEMCOLL):
111155         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
111156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
111157         * m4/memxor.m4 (gl_MEMXOR):
111158         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
111159         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
111160         * m4/modechange.m4 (gl_MODECHANGE):
111161         * m4/mountlist.m4 (gl_MOUNTLIST):
111162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
111163         * m4/openat.m4 (gl_FUNC_OPENAT):
111164         * m4/pathmax.m4 (gl_PATHMAX):
111165         * m4/physmem.m4 (gl_PHYSMEM):
111166         * m4/posixtm.m4 (gl_POSIXTM):
111167         * m4/posixver.m4 (gl_POSIXVER):
111168         * m4/quote.m4 (gl_QUOTE):
111169         * m4/quotearg.m4 (gl_QUOTEARG):
111170         * m4/readtokens.m4 (gl_READTOKENS):
111171         * m4/readutmp.m4 (gl_READUTMP):
111172         * m4/regex.m4 (gl_REGEX):
111173         * m4/safe-read.m4 (gl_SAFE_READ):
111174         * m4/safe-write.m4 (gl_SAFE_WRITE):
111175         * m4/same.m4 (gl_SAME):
111176         * m4/save-cwd.m4 (gl_SAVE_CWD):
111177         * m4/savedir.m4 (gl_SAVEDIR):
111178         * m4/settime.m4 (gl_SETTIME):
111179         * m4/sha1.m4 (gl_SHA1):
111180         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
111181         * m4/stat-macros.m4 (gl_STAT_MACROS):
111182         * m4/stat-time.m4 (gl_STAT_TIME):
111183         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
111184         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
111185         * m4/strdup.m4 (gl_FUNC_STRDUP):
111186         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
111187         * m4/strndup.m4 (gl_FUNC_STRNDUP):
111188         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
111189         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
111190         * m4/time_r.m4 (gl_TIME_R):
111191         * m4/timespec.m4 (gl_TIMESPEC):
111192         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
111193         * m4/unlinkdir.m4 (gl_UNLINKDIR):
111194         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
111195         * m4/userspec.m4 (gl_USERSPEC):
111196         * m4/utimecmp.m4 (gl_UTIMECMP):
111197         * m4/utimens.m4 (gl_UTIMENS):
111198         * m4/xalloc.m4 (gl_XALLOC):
111199         * m4/xgetcwd.m4 (gl_XGETCWD):
111200         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
111201         * m4/xreadlink.m4 (gl_XREADLINK):
111202         * m4/xstrtod.m4 (gl_XSTRTOD):
111203         * m4/yesno.m4 (gl_YESNO):
111204         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
111205         to get the necessary .h files and whatnot.
111207 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
111208             Bruno Haible  <bruno@clisp.org>
111210         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
111211         /bin/sh understanding of '!' conditional negation.
111213 2006-08-21  Jim Meyering  <jim@meyering.net>
111215         * modules/openat (Depends-on): Really alphabetize.
111217         * modules/acl (Depends-on): Add error and quote.
111219         * check-module (find_included_lib_files): Add at-func.c to the
111220         ok-to-include-more-than-once white list.
111222         * modules/openat (Depends-on): Add lstat.  Alphabetize.
111224 2006-08-21  Bruno Haible  <bruno@clisp.org>
111226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111227         Emit a pkgdata_DATA variable only if some snippets add contents to it.
111228         Reported by Martin Lambers <marlam@marlam.de>.
111230 2006-08-21  Bruno Haible  <bruno@clisp.org>
111232         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
111233         specify an installation location, don't emit a noinst_LIBRARIES or
111234         noinst_LTLIBRARIES assignment.
111236 2006-08-21  Bruno Haible  <bruno@clisp.org>
111238         BeOS portability.
111239         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
111240         BeOS has mbrtowc() but no <wctype.h>.
111242 2006-08-21  Bruno Haible  <bruno@clisp.org>
111244         BeOS portability.
111245         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
111246         exist.
111248 2006-08-21  Bruno Haible  <bruno@clisp.org>
111250         BeOS portability.
111251         * lib/mbchar.h: Include <wctype.h> only if it exists.
111253 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111255         Remove files that are no longer needed by their respective modules.
111256         * m4/obstack.m4: Remove.
111257         * m4/strerror_r.m4: Remove.
111258         * m4/uint32_t.m4: Remove.
111259         * m4/uintptr_t.m4: Remove.
111260         * m4/ullong_max.m4: Remove.
111261         * m4/xstrtoimax.m4: Remove.
111262         * m4/xstrtoumax.m4: Remove.
111264         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
111265         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
111266         dependencies now capture this.
111268         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
111269         Do not use AC_LIBSOURCES, since gnulib modules now do this.
111270         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
111271         * m4/human.m4 (gl_HUMAN): Likewise.
111272         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
111273         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
111275         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
111277         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
111278         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
111279         stdint.
111280         * m4/human.m4 (gl_HUMAN): Likewise.
111281         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
111282         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
111283         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111284         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111285         * m4/xstrtol (gl_XSTRTOL): Likewise.
111287         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
111288         AC_TYPE_LONG_LONG_INT.
111289         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
111290         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
111291         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
111292         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
111294         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
111295         on stdbool.
111297         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
111298         (gl_PREREQ_XSTRTOUL): Remove.
111300         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
111302         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
111303         mode.
111305 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111307         Add and change modules to make it easier for coreutils to use
111308         gnulib-tool.
111309         * modules/backupfile (Files): Remove m4/d-ino.m4.
111310         (Depends-on): Add d-ino.
111311         * modules/cycle-check (Depends-on): Add stdint.
111312         (lib_SOURCES): Add cycle-check.h.
111313         * modules/d-ino: New module.
111314         * modules/d-type: New module.
111315         * modules/error (Files): Remove m4/strerror_r.m4.
111316         * modules/filemode (Files): Add m4/st_dm_mode.m4.
111317         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
111318         m4/inttypes_h.m4, m4/uintmax_t.m4.
111319         (Depends-on): Add stdint.
111320         (lib_SOURCES): Add fsusage.h.
111321         * modules/getcwd (Files): Remove d-ino.m4.
111322         (Depends-on): Add d-ino.
111323         * modules/getndelim2 (Depends-on): Add stdint.
111324         * modules/glob (Files): Remove m4/d-type.m4.
111325         (Depends-on): Add d-type.
111326         * modules/host-os: New module.
111327         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
111328         m4/inttypes_h.m4, m4/uintmax_t.m4.
111329         * Depends-on: Add stdint.
111330         (lib_SOURCES): Add human.h.
111331         * modules/inttostr (Files): Remove m4/intmax_t.m4,
111332         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
111333         m4/uintmax_t.m4, m4/ulonglong.m4.
111334         (Depends-on): Add stdint.
111335         (EXTRA_DIST): Add inttostr.h.
111336         * modules/lchmod: New module.
111337         * modules/link-follow: New module.
111338         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
111339         (Depends-on): Add lchmod.
111340         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
111341         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
111342         (Depends-on): Add stdint.
111343         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
111344         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
111345         (Depends-on): Add stdint.
111346         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
111347         * modules/perl: New module.
111348         * modules/regex (Depends-on): Add stdint.
111349         * modules/rmdir-errno: New module.
111350         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111351         m4/intmax_t.m4.
111352         (Depends-on): Add stdint.
111353         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
111354         m4/uintmax_t.m4.
111355         (Depends-on): Add stdint.
111356         * modules/unlink-busy: New module.
111357         * modules/utimecmp (Depends-on): Add stdint.
111358         * modules/uptime: New module.
111359         * modules/winsz-ioctl: New module.
111360         * modules/winsz-termios: New module.
111361         * modules/xnanosleep (Depends-on): Add nanosleep.
111362         * modules/ullong_max: Remove.
111363         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
111364         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
111365         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
111366         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
111367         (Depends-on): Add inttypes.
111368         (lib_SOURCES): Add xstrtol.h.
111369         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
111370         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
111371         * MODULES.html.sh: Move 'assert' into the assert section.
111372         Move 'dummy' into the linking section.
111373         Remove ullong_max.
111374         Add section for compatibility checks for POSIX:2001 functions,
111375         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
111376         winsz-ioctl, and winsz-termios into it.
111377         Add lchmod.
111378         Add top-level Misc section and put host-os, perl, and uptime
111379         into it.
111381 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
111383         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
111384         now assume the stdint module.  Do not include inttypes.h.
111385         * lib/fsusage.h: Likewise.
111386         * lib/getndelim2.c: Likewise.
111387         * lib/human.h: Likewise.
111388         * lib/inttostr.h: Likewise.
111389         * lib/obstack.c: Likewise.
111390         * lib/regex_internal.h: Likewise.
111391         * lib/tempname.c: Likewise.
111392         * lib/utimecmp.c: Likewise.
111393         * lib/xstrtol.h: Likewise.
111395         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
111397         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
111398         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
111399         * lib/xtime.h: Likewise.
111401 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111403         * modules/openat (Files): Add lib/fchmodat.c.
111404         Fixes problem reported by Jay Youngman.
111406 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111408         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
111409         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
111411 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
111412             Bruno Haible  <bruno@clisp.org>
111414         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
111415         and is a script that invokes bison. Tighten the code. Add comments.
111417 2006-08-18  Jim Meyering  <jim@meyering.net>
111419         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
111420         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
111421         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
111422         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
111424 2006-08-18  Bruno Haible  <bruno@clisp.org>
111426         * modules/bison-i18n: New file.
111427         * MODULES.html.sh (Internationalization functions): Add it.
111429 2006-08-18  Bruno Haible  <bruno@clisp.org>
111431         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
111432         sys/statvfs.h. When getmntinfo was found, check its declaration and
111433         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
111435 2006-08-18  Bruno Haible  <bruno@clisp.org>
111437         * m4/bison-i18n.m4: New file, from bison.
111439 2006-08-18  Bruno Haible  <bruno@clisp.org>
111441         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
111442         (ME_DUMMY): Treat "kernfs" as a dummy.
111443         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
111445 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111447         Update from coreutils.
111449         2006-08-15  Jim Meyering  <jim@meyering.net>
111451         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
111453         2006-01-17  Jim Meyering  <jim@meyering.net>
111455         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
111457         2006-01-11  Jim Meyering  <jim@meyering.net>
111459         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
111460         Check for the lchmod function.
111462 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111464         Update from coreutils.
111466         * lib/__fpending.h: Add copyright notice.
111467         * lib/fprintftime.h: Likewise.
111468         * lib/savedir.c: Use (C) in copyright notice.
111469         * lib/savedir.h: Likewise.
111471         2006-08-15  Jim Meyering  <jim@meyering.net>
111473         * lib/at-func.c: New file, with the logic of all emulated at-functions.
111474         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
111475         in support of the EXPECTED_ERRNO macro.
111476         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
111477         definitions.  Instead, define the appropriate symbols and include
111478         "at-func.c".
111479         * lib/mkdirat.c (mkdirat): Likewise.
111480         * lib/fchmodat.c (fchmodat): Likewise.
111481         (ENOSYS): Remove definition.
111482         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
111483         it.  Don't include "unistd--.h" -- it wasn't ever used.
111485         2006-01-17  Jim Meyering  <jim@meyering.net>
111487         Rewrite fts.c not to change the current working directory,
111488         by using openat, fstatat, fdopendir, etc..
111490         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
111491         (HAVE_OPENAT_SUPPORT): Define.
111492         [_LIBC] (fchdir): Don't undef or define; no longer used.
111493         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
111494         Now, this `function' always succeeds, and consumes its file descriptor
111495         parameter -- so callers must not close such FDs.  Update callers.
111496         (diropen_fd, opendirat, cwd_advance_fd): New functions.
111497         (diropen): Add parameter, SP.  Adjust all callers.
111498         Implement using diropen_fd, rather than open.
111499         (fts_open): Initialize new member, fts_cwd_fd.
111500         Remove fts_rft-setting code.
111501         (fts_close): Close fts_cwd_fd, if necessary.
111502         (__opendir2): Define in terms of opendir or opendirat,
111503         depending on whether the FST_NOCHDIR flag is set.
111504         (fts_build): Since fts_safe_changedir consumes its FD, and since
111505         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
111506         and close the dup'd file descriptor upon failure.
111507         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
111508         (fts_safe_changedir): Tweak semantics to reflect that this function
111509         now calls cwd_advance_fd and hence consumes its FD argument.
111510         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
111511         [struct FTS] (fts_rft): Remove now-unused member.
111512         [struct FTS] (fts_cycle.state): Improve comment.
111514         * lib/openat.c (openat_needs_fchdir): New function.
111515         * lib/openat.h (openat_needs_fchdir): Declare it.
111517 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111519         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
111520         Problem and fix reported by Pádraig Brady in
111521         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
111523 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111525         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
111527 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111529         * lib/memcoll.c (memcoll): Optimize for the common case where the
111530         arguments are bytewise equal.
111532 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111534         * doc/regexprops-generic.texi: Add a copyright notice.
111536 2006-08-15  Bruno Haible  <bruno@clisp.org>
111538         * modules/tmpdir (License): Change to LGPL.
111540 2006-08-15  Bruno Haible  <bruno@clisp.org>
111542         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
111543         module.
111545 2006-08-14  Simon Josefsson  <jas@extundo.com>
111547         * config/srclist.txt: Add gnupload.
111549 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111551         Change copyright notice from LGPL 2 to GPL 2, since that's the
111552         standard form used in the gnulib repository.
111553         * tests/test-lock.c: Likewise.
111554         * tests/test-stdint.c: Likewise.
111555         * tests/test-tls.c: Likewise.
111557         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
111558         prelude-manager.  User shorter URLs for GNU projects, without '?'.
111559         Add copyright notice.
111561         * check-module: Add copyright notice.  Output a copyright
111562         notice if "--version" is specified.
111563         * modules/COPYING: New file.
111564         * tests/test-getaddrinfo.c: Add copyright notice.
111565         * tests/test-verify.c: Likewise.
111567 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111569         Change copyright notice from LGPL 2 to GPL 2, since that's the
111570         standard form used in the gnulib repository.
111571         * lib/lock.c: LGPL -> GPL.
111572         * lib/lock.h: Likewise.
111573         * lib/strnlen1.c: Likewise.
111574         * lib/strnlen1.h: Likewise.
111575         * lib/tls.c: Likewise.
111576         * lib/tls.h: Likewise.
111577         * lib/tmpdir.c: Likewise.
111579         * lib/TODO: Remove; this belongs only in coreutils.
111581 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111583         Add copyright notices to long-enough files that lack them, since
111584         otherwise the files aren't clearly free.  Use the same notice that
111585         getdate.texi already uses.
111586         * doc/alloca-opt.texi: Add copyright notice.
111587         * doc/alloca.texi: Likewise.
111588         * doc/ctime.texi: Likewise.
111589         * doc/functions.texi: Likewise.
111590         * doc/gcd.texi: Likewise.
111591         * doc/gnulib-tool.texi: Likewise.
111592         * doc/inet_ntoa.texi: Likewise.
111593         * doc/visibility.texi: Likewise.
111595         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
111596         * doc/quote.texi: Add copyright notice.
111598         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
111599         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
111600         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
111601         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
111602         is now obsolete, and give a pointer to the Sun list.
111603         Add copyright notice.
111605 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
111607         * config/srclistvars.sh: Add copyright notice.
111609 2006-08-14  Eric Blake  <ebb9@byu.net>
111611         Import the following change from libc:
111613         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
111615         Upstream bug 2997.
111616         * lib/misc/error.c: Add space between program name and message if file
111617         name is missing.
111619 2006-08-12  Karl Berry  <karl@gnu.org>
111621         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
111622         remove, these originate in gnulib now.
111624 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111626         * doc/Makefile (standards.info standards.html standards.dvi):
111627         Also depend on make-stds.texi.
111629 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
111631         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
111632         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
111634         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
111635         in wchar_t.  Problem reported by Eric Blake.
111637         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
111638         LEN is smaller than SIZE.  Suggested by Bruno Haible.
111639         Also, help the compiler to keep LEN in a register.
111641 2006-08-11  Eric Blake  <ebb9@byu.net>
111643         * users.txt: Sort.  Add tar.
111645 2006-08-11  Bruno Haible  <bruno@clisp.org>
111647         * users.txt: New file.
111649 2006-08-11  Bruno Haible  <bruno@clisp.org>
111651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
111652         before <wchar.h>. Needed for OSF/1 and BSD/OS.
111654 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111656         * modules/snprintf (Depends-on): Remove minmax.
111657         (Maintainer): Add self and Bruno.
111659 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
111661         * lib/.cppi-disable: Add snprintf.h, socket_.h.
111662         * lib/snprintf.c: Include <errno.h> and <limits.h>.
111663         (EOVERFLOW): Define if the system does not.
111664         Do not include "minmax.h"; it wasn't used.
111665         (snprintf): Don't assume size_t promotes to an unsigned type.
111666         Fix bug when generated string was too long for the buffer: the
111667         buffer's contents are supposed to be the initial prefix of the
111668         output.  Don't assume vasnprintf returns EOVERFLOW if the size
111669         exceeds INT_MAX; do the check ourselves.
111671         Import the following changes from libc:
111673         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
111675         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
111676         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
111677         set wc to the byte which couldn't be converted.
111678         (re_string_reconstruct): Don't clear valid_raw_len before calling
111679         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
111680         tip_context using re_string_context_at.
111682         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
111684         * lib/posix/regex.h: g++ still cannot handled [restrict].
111686         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
111688         * lib/posix/regex.h: Remove special handling for VMS.
111690 2006-08-10  Jim Meyering  <jim@meyering.net>
111692         * modules/same-inode: New module.
111693         * modules/dev-ino: New module.
111694         * modules/cycle-check: Depend on these modules, rather than simply
111695         including their .h files.
111696         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
111697         required via m4/cycle-check.m4.
111698         * modules/same: Depend on new same-inode module, rather than
111699         including same-inode.h.
111700         * modules/chdir-safer: New file.
111702         * modules/chown (Depends-on): Add stat-macros.
111704 2006-08-10  Jim Meyering  <jim@meyering.net>
111706         * m4/cycle-check.m4: New file.
111707         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
111708         * m4/dev-ino.m4, m4/same-inode.m4: New files.
111710 2006-08-10  Eric Blake  <ebb9@byu.net>
111712         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
111713         in from original proposal.
111715 2006-08-10  Eric Blake  <ebb9@byu.net>
111716         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
111718         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
111719         namespace.
111721 2006-08-10  Bruno Haible  <bruno@clisp.org>
111723         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
111724         as well.
111726 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111728         Sync from coreutils.
111730         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
111732         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
111733         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
111735 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111737         * modules/restrict: Remove; no longer needed now that we assume
111738         Autoconf 2.59 or later.
111739         * MODULES.html.sh: Remove 'restrict'.
111740         * modules/argp (Depends-on): Remove 'restrict'.
111741         * modules/base64 (Depends-on): Likewise.
111742         * modules/gc (Depends-on): Likewise.
111743         * modules/getaddrinfo (Depends-on): Likewise.
111744         * modules/glob (Depends-on): Likewise.
111745         * modules/inet_ntop (Depends-on): Likewise.
111746         * modules/inet_pton (Depends-on): Likewise.
111747         * modules/memxor (Depends-on): Likewise.
111748         * modules/regex (Depends-on): Likewise.
111749         * modules/strtok_r (Depends-on): Likewise.
111750         * modules/time_r (Depends-on): Likewise.
111752 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
111754         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
111755         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
111756         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
111757         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
111758         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
111759         * m4/memxor.m4 (gl_MEMXOR): Likewise.
111760         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
111761         gl_C_RESTRICT replaced by AC_C_RESTRICT.
111763         Merge from coreutils.
111764         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
111765         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
111766         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
111767         * m4/time_r.m4 (gl_TIME_R): Likewise.
111769 2006-08-09  Karl Berry  <karl@gnu.org>
111771         * config/srclist.txt: no more gettext-tools, per Bruno.
111773 2006-08-08  Eric Blake  <ebb9@byu.net>
111775         * modules/verror: New module.
111776         * MODULES.html.sh: Document it.
111778 2006-08-08  Eric Blake  <ebb9@byu.net>
111780         * lib/verror.h, lib/verror.c: New files.
111782 2006-08-08  Eric Blake  <ebb9@byu.net>
111784         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
111785         verror_at_line output complies with GNU Coding Standards even when
111786         file is NULL.
111788 2006-08-07  Bruno Haible  <bruno@clisp.org>
111790         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
111791         versions of AIX.
111792         Reported by Ralf Wildenhues.
111794 2006-08-07  Bruno Haible  <bruno@clisp.org>
111796         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
111797         in an AC_DEFUN. Needed so that the autoconf snippets can use
111798         AC_REQUIRE.
111800 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111802         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111803         Initialize pkgdata_DATA.
111804         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
111805         overriding it.
111807 2006-08-06  Eric Blake  <ebb9@byu.net>
111809         * lib/error.h: Fold in some upstream changes from glibc.
111810         * lib/error.c: Likewise.
111812 2006-08-04  Bruno Haible  <bruno@clisp.org>
111814         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111815         Make the mostlyclean-local rule depend on mostlyclean-generic.
111816         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
111818 2006-07-31  Bruno Haible  <bruno@clisp.org>
111820         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
111821         <stdlib.h>, <string.h>.
111823 2006-07-30  Bruno Haible  <bruno@clisp.org>
111825         * modules/readlink (License): Change to LGPL.
111827 2006-07-30  Bruno Haible  <bruno@clisp.org>
111829         * modules/javaversion (Makefile.am): Distribute javaversion.java and
111830         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
111831         set PKGDATADIR to point to it.
111833 2006-07-30  Bruno Haible  <bruno@clisp.org>
111835         * modules/csharpexec (configure.ac): Comment out macro invocation.
111836         * modules/javaexec (configure.ac): Likewise.
111837         * modules/javacomp-script (configure.ac): Likewise.
111839         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
111841 2006-07-30  Bruno Haible  <bruno@clisp.org>
111843         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
111844         linked-list.
111846 2006-07-30  Bruno Haible  <bruno@clisp.org>
111848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
111850 2006-07-30  Bruno Haible  <bruno@clisp.org>
111852         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111853         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
111854         get removed.
111856 2006-07-29  Bruno Haible  <bruno@clisp.org>
111858         Make it possible for gnulib-tool to work with locally modified or
111859         augmented gnulib repositories.
111860         * gnulib-tool (func_usage): Document --local-dir option.
111861         (local_gnulib_dir): New variable.
111862         Handle --local-dir option.
111863         (func_lookup_file): New function.
111864         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
111865         (func_get_description, func_get_filelist, func_get_description,
111866         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
111867         func_get_automake_snippet, func_get_include_directive,
111868         func_get_license, func_get_maintainer): Use func_lookup_file.
111869         (func_import, func_create_testdir): Use func_lookup_file.
111871 2006-07-29  Bruno Haible  <bruno@clisp.org>
111873         * modules/setenv (Depends-on): Add unistd.
111875 2006-07-29  Bruno Haible  <bruno@clisp.org>
111877         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
111879 2006-07-29  Bruno Haible  <bruno@clisp.org>
111881         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
111883 2006-07-29  Bruno Haible  <bruno@clisp.org>
111885         * gnulib-tool (import, update): If there is no Makefile.am, look at
111886         aclocal.m4, instead of bailing out.
111888 2006-07-29  Bruno Haible  <bruno@clisp.org>
111890         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
111891         Categorize the options by when they are useful.
111893 2006-07-29  Bruno Haible  <bruno@clisp.org>
111895         * gnulib-tool (func_usage): Document option --no-libtool.
111896         Handle option --no-libtool.
111897         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
111898         for changed semantics of $libtool variable.
111899         (func_import): Likewise. If libtool is not used, show this through
111900         an option --no-libtool.
111901         (func_create_testdir): Update.
111903 2006-07-29  Bruno Haible  <bruno@clisp.org>
111905         * gnulib-tool (func_import): Extend error message about missing
111906         --doc-base.
111908 2006-07-29  Bruno Haible  <bruno@clisp.org>
111910         * gnulib-tool (func_import): Don't create the $docbase directory if
111911         there is no file to store there.
111913 2006-07-29  Bruno Haible  <bruno@clisp.org>
111915         * gnulib-tool (autoconf_minversion): If a --dir option is given and
111916         relevant, look for configure.ac there, not in the current directory.
111917         Also use a simple search for AC_PREREQ, not "autoconf --trace".
111919 2006-07-29  Bruno Haible  <bruno@clisp.org>
111921         * gnulib-tool (SORT): New variable.
111922         (func_usage): Undocument --assume-autoconf option.
111923         Remove --assume-autoconf option handling.
111924         (autoconf_minversion): Determine from the contents of configure.ac.
111925         (func_import): Remove autoconf_minversion handling.
111926         Suggested by Eric Blake.
111928 2006-07-29  Bruno Haible  <bruno@clisp.org>
111930         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
111932 2006-07-29  Bruno Haible  <bruno@clisp.org>
111934         * config/srclist.txt (*setenv.[ch]): Remove rules.
111936 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111938         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
111940 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111942         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
111943         arpa/inet.h.
111945 2006-07-28  Simon Josefsson  <jas@extundo.com>
111947         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
111948         * modules/inet_pton (Depends-on): Likewise.
111950 2006-07-28  Simon Josefsson  <jas@extundo.com>
111952         * m4/netinet_in_h.m4: New file.
111954 2006-07-28  Simon Josefsson  <jas@extundo.com>
111956         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
111957         #include's.
111959 2006-07-28  Simon Josefsson  <jas@extundo.com>
111961         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
111962         #include's.
111964 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
111966         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
111967         setgid on directories only if they set these bits.
111968         * lib/modechange.h: Remove obsolete comment about masks.
111970 2006-07-28  Eric Blake  <ebb9@byu.net>
111972         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
111973         macro expansion.
111975 2006-07-28  Bruno Haible  <bruno@clisp.org>
111977         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
111979 2006-07-28  Bruno Haible  <bruno@clisp.org>
111981         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
111983 2006-07-28  Bruno Haible  <bruno@clisp.org>
111985         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
111986         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
111987         Define fallbacks.
111988         Avoids link error on FreeBSD 4.x.
111989         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
111991         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
111992         encoding.
111993         * lib/mbswidth.c (iswcntrl): Likewise.
111995 2006-07-27  Bruno Haible  <bruno@clisp.org>
111997         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
111998         test.
112000 2006-07-27  Bruno Haible  <bruno@clisp.org>
112002         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
112003         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
112004         defined.
112006 2006-07-26  Eric Blake  <ebb9@byu.net>
112008         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
112010 2006-07-26  Eric Blake  <ebb9@byu.net>
112012         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
112013         like mingw that lack mkstemp.
112014         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
112015         avoid compilation warning on mingw.
112017 2006-07-26  Bruno Haible  <bruno@clisp.org>
112019         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
112020         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
112021         INT_FAST*_MIN, INTPTR_MIN.
112023 2006-07-25  Bruno Haible  <bruno@clisp.org>
112025         * modules/version-etc (Depends-on): Add stdarg.
112027 2006-07-25  Bruno Haible  <bruno@clisp.org>
112029         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
112030         complex commands.
112032 2006-07-25  Bruno Haible  <bruno@clisp.org>
112034         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
112035         defined in <stdarg.h> or config.h.
112037 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112039         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
112040         (gl_STDIO_SAFER): Remove.
112042 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
112044         * MODULES.html.sh (File stream based Input/Output):
112045         Add fopen-safer, tmpfile-safer; remove stdio-safer.
112046         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
112047         * modules/fopen-safer, modules/tmpfile-safer: New files.
112048         * modules/stdio-safer: Remove.
112050 2006-07-24  Bruno Haible  <bruno@clisp.org>
112052         * modules/tmpdir: New file.
112053         * MODULES.html.sh (File system functions): Add it.
112055 2006-07-24  Bruno Haible  <bruno@clisp.org>
112057         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
112058         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
112060 2006-07-24  Bruno Haible  <bruno@clisp.org>
112062         * modules/clean-temp: New file.
112064 2006-07-24  Bruno Haible  <bruno@clisp.org>
112066         * m4/tmpdir.m4: New file, from GNU gettext.
112068 2006-07-24  Bruno Haible  <bruno@clisp.org>
112070         * lib/tmpdir.h: New file, from GNU gettext.
112071         * lib/tmpdir.c: New file, from GNU gettext.
112073 2006-07-24  Bruno Haible  <bruno@clisp.org>
112075         * lib/clean-temp.h: New file, from GNU gettext.
112076         * lib/clean-temp.c: New file, from GNU gettext.
112078 2006-07-23  Eric Blake  <ebb9@byu.net>
112080         * modules/stdio-safer (Files): Add tmpfile-safer.c.
112081         (Depends-on): Add binary-io.
112083 2006-07-23  Eric Blake  <ebb9@byu.net>
112085         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
112087 2006-07-23  Eric Blake  <ebb9@byu.net>
112089         * lib/tmpfile-safer.c: New file.
112090         * lib/stdio-safer.h (fopen_safer): Add prototype.
112091         * lib/stdio--.h (tmpfile): Make safer.
112093 2006-07-23  Bruno Haible  <bruno@clisp.org>
112095         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
112096         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
112097         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
112098         gl_linked_remove_at): Use it.
112100 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112101         and Simon Josefsson <jas@extundo.com>
112103         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
112105         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
112107 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112109         * modules/close-stream: New file.
112110         * modules/closeout (Description): Make it clear that it exits
112111         with a diagnostic on error.
112112         (Depends-on): Add close-stream.  Remove fpending, stdbool.
112113         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
112115 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112117         * m4/close-stream.m4: New file.
112119 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
112121         * lib/close-stream.c, lib/close-stream.h: New files.
112123 2006-07-22  Bruno Haible  <bruno@clisp.org>
112125         Merge from GNU gettext 0.15.
112127         2006-05-01  Bruno Haible  <bruno@clisp.org>
112129                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
112131         2006-07-22  Bruno Haible  <bruno@clisp.org>
112133                 * modules/javaversion: New file.
112134                 * MODULES.html.sh (Java): Add javaversion.
112136         2006-03-12  Bruno Haible  <bruno@clisp.org>
112138                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
112140         2005-12-04  Bruno Haible  <bruno@clisp.org>
112142                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
112143                 (untested).
112145         2006-06-21  Bruno Haible  <bruno@clisp.org>
112147                 Avoid warnings from recent versions of mcs.
112148                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
112149                 -o, -L, -r any more. Use options documented since mcs-1.0
112150                 instead. Similarly for -g.
112152         2005-12-04  Bruno Haible  <bruno@clisp.org>
112154                 * build-aux/csharpcomp.sh.in: Suffix for resources is
112155                 .resources, not .resource.
112157         2005-07-09  Bruno Haible  <bruno@clisp.org>
112159                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
112160                 add a .dll suffix.
112161                 Reported by Mark Junker <mjscod@gmx.de>.
112163         2006-07-22  Bruno Haible  <bruno@clisp.org>
112165                 * modules/gettext: Upgrade to gettext-0.15.
112166                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
112167                 m4/visibility.m4.
112168                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
112170 2006-07-22  Bruno Haible  <bruno@clisp.org>
112172         Merge from GNU gettext 0.15.
112174         2006-03-25  Bruno Haible  <bruno@clisp.org>
112176                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
112178         2006-07-21  Bruno Haible  <bruno@clisp.org>
112180                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
112181                 "1.1".
112183         2006-05-09  Bruno Haible  <bruno@clisp.org>
112185                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
112186                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
112187                 for the conftestver execution.
112189         2006-05-01  Bruno Haible  <bruno@clisp.org>
112191                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
112192                 optional target-version argument. Verify that the compiler
112193                 groks source of the specified source-version, or add -source
112194                 option as necessary. Verify that the compiler produces
112195                 bytecode in the specified target-version, or add -target and
112196                 -source options as necessary. Make the result of the test
112197                 available as variable CONF_JAVAC. Also log error output in
112198                 config.log.
112200         2006-03-11  Bruno Haible  <bruno@clisp.org>
112202                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
112204         2006-05-09  Bruno Haible  <bruno@clisp.org>
112206                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
112207                 CLASSPATH_SEPARATOR to a semicolon.
112209         2006-03-12  Bruno Haible  <bruno@clisp.org>
112211                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
112212                 available as variable CONF_JAVA, for subsequent autoconf
112213                 tests. Also log error output in config.log.
112215         2006-07-19  Bruno Haible  <bruno@clisp.org>
112217                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
112218                 that getline works on glibc2 systems. Needed to avoid trouble
112219                 in relocatable.c.
112220                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
112222         2005-12-04  Bruno Haible  <bruno@clisp.org>
112224                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
112225                 launcher (untested).
112227         2005-12-04  Bruno Haible  <bruno@clisp.org>
112229                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
112231         2006-07-22  Bruno Haible  <bruno@clisp.org>
112233                 * gettext.m4: Update from GNU gettext-0.15.
112234                 * nls.m4: Likewise.
112235                 * po.m4: Likewise.
112236                 * inttypes-pri.m4: Likewise.
112237                 * inttypes-h.m4: Renamed from inttypes.m4.
112238                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
112240 2006-07-22  Bruno Haible  <bruno@clisp.org>
112242         Merge from GNU gettext 0.15.
112244         2005-07-05  Bruno Haible  <bruno@clisp.org>
112246                 * printf-args.c (printf_fetchargs): Work around broken
112247                 definition of wint_t on mingw.
112249         2005-02-12  Bruno Haible  <bruno@clisp.org>
112251                 * xallocsa.h: Add extern "C" for C++.
112253         2006-05-17  Bruno Haible  <bruno@clisp.org>
112255                 Cygwin portability.
112256                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
112258         2006-04-30  Bruno Haible  <bruno@clisp.org>
112260                 * progreloc.c: Include <mach-o/dyld.h> if available.
112261                 (find_executable): Use _NSGetExecutablePath when possible.
112263         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
112265                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
112266                 function.
112268         2005-12-29  Bruno Haible  <bruno@clisp.org>
112270                 * progreloc.c (set_program_name_and_installdir): Fix
112271                 compilation error.
112273         2005-12-04  Bruno Haible  <bruno@clisp.org>
112275                 Cygwin portability.
112276                 * progreloc.c: Include <windows.h> also on Cygwin.
112277                 (find_executable): Add support for Cygwin.
112278                 (set_program_name_and_installdir): Handle also platforms with
112279                 nonempty EXEEXT.
112281         2006-07-11  Bruno Haible  <bruno@clisp.org>
112283                 * javacomp.c: Fix a comment.
112284                 Reported by Jim Meyering.
112286         2006-04-30  Bruno Haible  <bruno@clisp.org>
112288                 * javacomp.h (compile_java_class): Add source_version,
112289                 target_version arguments.
112290                 * javacomp.c: Rewritten to choose only a compiler that
112291                 respects the specified source_version and target_version.
112293         2006-06-27  Bruno Haible  <bruno@clisp.org>
112295                 Assume correct S_ISDIR macro.
112296                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
112298         2006-07-22  Bruno Haible  <bruno@clisp.org>
112300                 * javaversion.h: New file, from GNU gettext.
112301                 * javaversion.c: New file, from GNU gettext.
112302                 * javaversion.java: New file, from GNU gettext.
112303                 * javaversion.class: New file, from GNU gettext.
112305         2006-05-17  Bruno Haible  <bruno@clisp.org>
112307                 Cygwin portability.
112308                 * javaexec.c (execute_java_class): Test for jview program
112309                 also on Cygwin.
112311         2006-04-09  Bruno Haible  <bruno@clisp.org>
112313                 * fatal-signal.c: Don't include string.h.
112314                 (at_fatal_signal): Use a copying loop instead of memcpy.
112316         2005-12-04  Bruno Haible  <bruno@clisp.org>
112318                 * csharpexec.c: Add support for 'clix' launcher (untested).
112319                 (execute_csharp_using_sscli): New function.
112320                 (execute_csharp_program): Call it.
112322         2006-06-21  Bruno Haible  <bruno@clisp.org>
112324                 Avoid warnings from recent versions of mcs.
112325                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
112326                 -o, -L, -r any more. Use options documented since mcs-1.0
112327                 instead. Similarly for -g.
112329         2005-07-09  Bruno Haible  <bruno@clisp.org>
112331                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
112332                 add a .dll suffix.
112333                 Reported by Mark Junker <mjscod@gmx.de>.
112335         2006-06-17  Bruno Haible  <bruno@clisp.org>
112337                 * config.charset: Update for NetBSD 3.0.
112339         2006-05-17  Bruno Haible  <bruno@clisp.org>
112341                 Cygwin portability.
112342                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
112344         2006-05-16  Bruno Haible  <bruno@clisp.org>
112346                 * localcharset.c [CYGWIN]: Include <windows.h>.
112347                 (get_charset_aliases): For Cygwin, return the same CPxxx
112348                 aliases list as under WIN32.
112349                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
112350                 the environment variables. Fall back to GetACP().
112352         2006-04-05  Bruno Haible  <bruno@clisp.org>
112354                 * config.charset: Update Juan Manuel Guerrero's address.
112356         2005-02-12  Bruno Haible  <bruno@clisp.org>
112358                 * allocsa.h: Add extern "C" for C++.
112360         2005-02-10  Bruno Haible  <bruno@clisp.org>
112362                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
112363                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
112365         2006-07-22  Bruno Haible  <bruno@clisp.org>
112367                 * gettext.h: Update to GNU gettext-0.15.
112369 2006-07-22  Bruno Haible  <bruno@clisp.org>
112371         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
112372         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
112373         lib-prefix.m4, longdouble.m4, ssize_t.m4.
112375 2006-07-21  Eric Blake  <ebb9@byu.net>
112377         * modules/stdlib-safer: New file.
112378         * MODULES.html.sh (File stream based Input/Output): Add
112379         stdlib-safer.
112381 2006-07-21  Eric Blake  <ebb9@byu.net>
112383         * lib/stdlib-safer.h: New file from coreutils, required by
112384         stdlib--.h.
112386 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
112388         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
112390 2006-07-20  Bruno Haible  <bruno@clisp.org>
112392         * gnulib-tool: Recognize new option --assume-autoconf.
112393         (autoconf_minversion): New variable.
112394         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
112396 2006-07-20  Bruno Haible  <bruno@clisp.org>
112398         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
112400 2006-07-19  Derek R. Price  <derek@ximbiot.com>
112402         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
112403         Reindent and repaginate.
112405 2006-07-19  Derek Price  <derek@ximbiot.com>
112407         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
112408         Correct grammar.
112410 2006-07-17  Bruno Haible  <bruno@clisp.org>
112412         * modules/list: New file.
112413         * modules/array-list: New file.
112414         * modules/carray-list, modules/carray-list-tests: New files.
112415         * modules/linked-list, modules/linked-list-tests: New files.
112416         * modules/avltree-list, modules/avltree-list-tests: New files.
112417         * modules/rbtree-list, modules/rbtree-list-tests: New files.
112418         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
112419         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
112420         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
112421         * modules/oset: New file.
112422         * modules/array-oset: New file.
112423         * modules/avltree-oset, modules/avltree-oset-tests: New files.
112424         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
112425         * tests/test-carray_list.c: New file.
112426         * tests/test-linked_list.c: New file.
112427         * tests/test-avltree_list.c: New file.
112428         * tests/test-rbtree_list.c: New file.
112429         * tests/test-linkedhash_list.c: New file.
112430         * tests/test-avltreehash_list.c: New file.
112431         * tests/test-rbtreehash_list.c: New file.
112432         * tests/test-avltree_oset.c: New file.
112433         * tests/test-rbtree_oset.c: New file.
112434         * MODULES.html.sh (Container data structures): New section.
112436 2006-07-17  Bruno Haible  <bruno@clisp.org>
112438         * m4/gl_list.m4: New file.
112440 2006-07-17  Bruno Haible  <bruno@clisp.org>
112442         * lib/gl_list.h: New file.
112443         * lib/gl_list.c: New file.
112444         * lib/gl_array_list.h: New file.
112445         * lib/gl_array_list.c: New file.
112446         * lib/gl_carray_list.h: New file.
112447         * lib/gl_carray_list.c: New file.
112448         * lib/gl_linked_list.h: New file.
112449         * lib/gl_linked_list.c: New file.
112450         * lib/gl_anylinked_list1.h: New file.
112451         * lib/gl_anylinked_list2.h: New file.
112452         * lib/gl_avltree_list.h: New file.
112453         * lib/gl_avltree_list.c: New file.
112454         * lib/gl_anyavltree_list1.h: New file.
112455         * lib/gl_anyavltree_list2.h: New file.
112456         * lib/gl_rbtree_list.h: New file.
112457         * lib/gl_rbtree_list.c: New file.
112458         * lib/gl_anyrbtree_list1.h: New file.
112459         * lib/gl_anyrbtree_list2.h: New file.
112460         * lib/gl_anytree_list1.h: New file.
112461         * lib/gl_anytree_list2.h: New file.
112462         * lib/gl_linkedhash_list.h: New file.
112463         * lib/gl_linkedhash_list.c: New file.
112464         * lib/gl_anyhash_list1.h: New file.
112465         * lib/gl_anyhash_list2.h: New file.
112466         * lib/gl_avltreehash_list.h: New file.
112467         * lib/gl_avltreehash_list.c: New file.
112468         * lib/gl_rbtreehash_list.h: New file.
112469         * lib/gl_rbtreehash_list.c: New file.
112470         * lib/gl_anytreehash_list1.h: New file.
112471         * lib/gl_anytreehash_list2.h: New file.
112473         * lib/gl_oset.h: New file.
112474         * lib/gl_oset.c: New file.
112475         * lib/gl_array_oset.h: New file.
112476         * lib/gl_array_oset.c: New file.
112477         * lib/gl_avltree_oset.h: New file.
112478         * lib/gl_avltree_oset.c: New file.
112479         * lib/gl_rbtree_oset.h: New file.
112480         * lib/gl_rbtree_oset.c: New file.
112481         * lib/gl_anytree_oset.h: New file.
112483 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112485         * m4/mkancesdirs.m4: New file.
112486         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
112487         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
112488         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
112489         it.
112491 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112493         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
112494         * lib/mkancesdirs.h: New files.
112495         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
112496         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
112497         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
112498         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
112499         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
112500         callers changed.  Revamp internals significantly, by not
112501         attempting to create directories that are temporarily more
112502         permissive than the final results.  Do not attempt to use
112503         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
112504         This removes some race conditions, fixes some bugs, and simplifies
112505         things.  Use new dirchownmod function to do owner and mode changes.
112506         * lib/mkdir-p.h: Likewise.
112507         * lib/modechange.c (octal_to_mode): New function.
112508         (struct mode_change): New member mentioned.
112509         (make_node_op_equals): New arg mentioned.  All callers changed.
112510         (mode_compile): Keep track of which mode bits the user has explicitly
112511         mentioned.
112512         (mode_adjust): New arg DIR, so that we implement the X op correctly.
112513         New arg PMODE_BITS, to keep track of which mode bits the user
112514         mentioned; it treats S_ISUID and S_ISGID speciall.
112515         All callers changed.
112516         * lib/modechange.h: Likewise.
112518 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
112520         * MODULES.html.sh: Add mkancestors.
112521         * modules/mkancesdirs: New module.
112522         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
112523         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
112524         The chdir-safer and afs files are now orphans; I'll remove them
112525         unless someone speaks up.
112526         Add lib/dirchownmod.c, lib/dirchownmod.h.
112527         (Depends-on): Remove alloca, chown, save-cwd, dirname.
112528         Add lchown, mkancesdirs.
112529         (Maintainer): Add self.
112531 2006-07-15  Karl Berry  <karl@gnu.org>
112533         * gnulib-tool: help message wording/arrangement.
112535 2006-07-14  Simon Josefsson  <jas@extundo.com>
112537         * doc/gnulib.texi (Libtool and Windows): New section.
112539 2006-07-12  Simon Josefsson  <jas@extundo.com>
112541         * modules/gendocs (License): Fix license, approved by Karl.
112543 2006-07-12  Eric Blake  <ebb9@byu.net>
112545         * MODULES.html.sh: Add gendocs.
112547 2006-07-11  Eric Blake  <ebb9@byu.net>
112549         * modules/fdl: New module, to install doc/fdl.texi.
112550         * MODULES.html.sh: Add new section for documentation modules.
112551         * gnulib-tool: Avoid space-tab.
112552         (--doc-base): New option, to manage files from doc.
112554 2006-07-11  Eric Blake  <ebb9@byu.net>
112556         * m4/absolute-header.m4: Fix comments to match recent change.
112558 2006-07-11  Eric Blake  <ebb9@byu.net>
112560         * gnulib-tool: List --doc-base before --tests-base.
112562 2006-07-11  Derek R. Price  <derek@ximbiot.com>
112564         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
112566 2006-07-11  Bruno Haible  <bruno@clisp.org>
112568         * README: Mention where to put documentation.
112570 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112572         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
112574 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112576         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
112577         to stdint.m4.
112579 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
112581         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
112582         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
112583         "no/such/file/stdint.h" when there is no such file, so that
112584         the resulting C code can be parsed by dodgy compilers.
112585         Problems reported by Bob Proulx.
112587 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112589         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
112590         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112591         macros into the GNU _D_EXACT_NAMLEN.
112592         * lib/savedir.c:  Likewise.
112593         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
112595 2006-07-10  Derek R. Price  <derek@ximbiot.com>
112596         and Paul Eggert  <eggert@cs.ucla.edu>
112598         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
112599         * m4/savedir.m4:
112600         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
112601         macros into the GNU _D_EXACT_NAMLEN.
112603 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112605         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
112606         around the absolute name, to work around a problem with the HP-UX
112607         11.23 native C compiler, reported by Bob Proulx.
112609 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112611         * doc/maintain.texi, make-stds.texi: Sync from
112612         <http://savannah.gnu.org/projects/gnustandards>.
112614 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
112616         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
112618 2006-07-09  Jim Meyering  <jim@meyering.net>
112620         * m4/glob.m4: Remove a doubled word in a comment.
112622 2006-07-09  Jim Meyering  <jim@meyering.net>
112624         * lib/argp-pv.c: Remove a doubled word in a comment.
112625         * lib/check-version.c (check_version): Likewise.
112626         * lib/javacomp.c (compile_java_class): Likewise.
112628 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
112630         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
112631         for the benefit of people using Autoconf 2.60.  If you want to
112632         support older Autoconf versions you can copy m4/onceonly_2_57.m4
112633         (or m4/onceonly.m4, if pre-2.57) manually.
112635 2006-07-08  Jim Meyering  <jim@meyering.net>
112637         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
112638         comment.
112639         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
112640         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
112641         comment.
112643 2006-07-08  Jim Meyering  <jim@meyering.net>
112645         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
112647 2006-07-07  Simon Josefsson  <jas@extundo.com>
112649         * tests/test-crc.c: Change expected crc value, the test vector
112650         were probably computed using the old broken crc.c?
112652 2006-07-06  Simon Josefsson  <jas@extundo.com>
112654         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
112655         now the canonical place for the M4 file).
112657         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
112658         from the sys_socket dependency now.
112660         * modules/inet_pton (Files): Ditto.
112662         * modules/inet_ntop (Files): Ditto.
112664 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
112666         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
112667         not gl_PREREQ_GETUSERSHELL.
112669 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112671         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
112672         with only one argument, for Autoconf 2.60.
112673         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
112674         expand to nothing, so add a shell command to avoid syntax error.
112675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
112677 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112679         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
112681 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112683         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
112684         no longer needed.  Check for isblank decl.
112685         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
112686         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
112687         of existence.
112689 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112691         * lib/getloadavg.c: Use __VMS, not VMS.
112692         * lib/getopt.c: Likewise.
112693         * lib/getpagesize.h: Likewise.
112694         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
112695         and probably does not work.
112697 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
112699         * lib/.cppi-disable: Add wcwidth.
112700         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
112701         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
112702         (ISGRAPH): Remove.  All uses changed to isgraph.
112703         (FOLD) [!defined _LIBC]: Remove special case.
112704         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
112705         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
112706         HAVE_ISBLANK.
112707         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
112708         case.
112710 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
112712         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
112713         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
112714         brackets.  Other minor changes to suppress some compiler
112715         warnings.
112717 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112718         and Paul Eggert  <eggert@cs.ucla.edu>
112720         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
112721         of invoking obsolescent AC_HEADER_DIRENT macro.
112722         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
112723         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
112724         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
112725         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
112726         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
112727         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
112728         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
112729         * m4/readdir.m4: Remove; no longer needed.
112731 2006-07-06  Derek R. Price  <derek@ximbiot.com>
112732         and Paul Eggert  <eggert@cs.ucla.edu>
112734         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
112735         Don't worry about this obsolete case any more.
112736         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
112737         directories.
112738         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
112739         worry about this obsolete case any more.
112740         * lib/fts.c: Likewise.
112741         * lib/getcwd.c: Likewise.
112742         * lib/glob.h: Likewise.
112743         * lib/savedir.c: Likewise.
112745 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
112748         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
112749         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
112750         needed.
112751         All uses removed.
112752         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112753         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112754         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
112755         needed.
112756         * m4/getdate.m4 (gl_GETDATE): Likewise.
112757         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112758         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112759         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112760         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112761         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
112762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112763         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
112764         needed.
112766 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
112768         * lib/memcasecmp.c: Include <limits.h>.
112769         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
112770         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
112771         Don't assume isdigit succeeds only on '0' through '9'.
112773 2006-07-05  Eric Blake  <ebb9@byu.net>
112775         * modules/getaddrinfo (Depends-on): Add snprintf.
112777 2006-07-05  Eric Blake  <ebb9@byu.net>
112779         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
112780         to avoid 'header present but could not be compiled' on cygwin.
112782 2006-07-05  Eric Blake  <ebb9@byu.net>
112784         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
112785         missing from netdb.h.
112786         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
112788 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
112791         no longer needed.
112792         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
112793         * m4/getdate.m4 (gl_GETDATE): Likewise.
112794         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
112795         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
112796         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
112797         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
112798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
112800 2006-07-05  Derek R. Price  <derek@ximbiot.com>
112802         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
112803         All uses of is_space replaced by isspace.
112804         * lib/exit.h: Don't talk about STDC_HEADERS.
112805         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
112806         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
112807         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
112808         replaced by isprint etc.
112809         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
112810         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112811         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
112812         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
112813         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
112814         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
112816 2006-07-05  Bruno Haible  <bruno@clisp.org>
112818         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
112819         the function exists, before testing against AIX.
112820         Reported by Martin Lambers <marlam@marlam.de>.
112822 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112824         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
112825         From Mark D. Baushke.
112827 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
112829         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
112830         to the absolute name, not just one, to bypass Sun C 5.8's
112831         "warning: #include of /usr/include/... may be non-portable".
112833 2006-07-04  Eric Blake  <ebb9@byu.net>
112835         * modules/dirname-tests: New test module.
112836         * tests/test-dirname.c: New file, replacing dirname.c
112837         TEST_DIRNAME section that was recently deleted.
112839 2006-07-04  Bruno Haible  <bruno@clisp.org>
112841         Assume ANSI C header files and <ctype.h> functions.
112842         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
112843         (mbsnwidth): Use isprint, iscntrl instead.
112845 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112847         Merge from coreutils.
112848         * MODULES.html.sh: Add xstrtold.
112849         * modules/xstrtold: New file.
112850         * modules/cycle-check (Files): Add lib/same-inode.h.
112851         * modules/dirname (Files): Add m4/double-slash-root.m4.
112852         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
112853         * modules/mkdir-p (Files): Add lib/same-inode.h.
112854         * modules/same (Files): Add lib/same-inode.h.
112856 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112858         * m4/absolute-header.m4: Renamed from full-header-path.m4.
112859         This is to keep the terminology clean; POSIX talks about
112860         "absolute pathnames", not "full pathnames", but the GNU
112861         Coding Standards say to use "path" for something else;
112862         so use "absolute" to keep both sides happy.
112863         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
112864         Set gl_absolute_header, not gl_full_header_path.
112865         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
112866         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
112867         All uses changed.
112869         Merge from coreutils.
112871         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112873         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
112874         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
112875         want to require the building of c-strtod.o.
112876         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
112877         needs -lm directly.
112878         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
112880         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
112882         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
112883         --as-needed option if available.  Problem reported by Albert Chin in
112884         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
112885         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
112886         cc merely issues a bunch of annoying warnings for --as-needed
112887         (this problem was reported by Bob Proulx).  Also, try linking with
112888         -lm to detect a bug in binutils 2.16 (this problem was reported
112889         by Ralf Wildenhues).
112891         2006-06-18  Jim Meyering  <jim@meyering.net>
112893         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
112894         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
112895         macro.
112896         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
112897         also check for glibc-2.4's abort-inducing bug.
112899         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
112900         Low-probability clean-up should be to use rmdir to get rid of
112901         the just-created directory, not unlink.
112903         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
112904         configure fail, and request a bug report to inform us about it.
112905         Add a comment that, barring reports to the contrary, in 2007 we'll
112906         assume ftruncate is universally available.
112908         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112910         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
112912         2006-03-12  Jim Meyering  <jim@meyering.net>
112914         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
112915         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
112916         * m4/same.m4 (gl_SAME): Likewise.
112917         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
112919         2006-03-11  Eric Blake  <ebb9@byu.net>
112921         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
112922         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
112923         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
112924         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
112926 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
112928         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
112929         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
112930         reported by Mark D. Baushke, one in
112931         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
112933         Merge from coreutils.
112935         * lib/.cppi-disable: Add stdint_.h.
112936         * lib/.cvsignore: Add stdint.h.
112938         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
112940         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
112941         both double and long double versions.
112942         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
112943         * lib/xstrtold.c: New file.
112944         * lib/xstrtod.h (xstrtold): New decl.
112946         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
112948         * lib/filemode.c (setst): Remove.
112949         (strmode): Rewrite to avoid setst.  This makes the code shorter,
112950         (arguably) clearer, and the generated code is a bit smaller on my
112951         Debian GNU/Linux stable x86 host.
112953         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
112955         * lib/filemode.c: Include "filemode.h" first, to test the interface.
112956         Assume that filemode.h includes sys/types.h and sys/stat.h.
112957         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
112958         (ftypelet): Reorder to put common cases first, for efficiency.
112959         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
112960         to do 'M'.
112961         (strmode): Renamed from mode_string, and now stores 12 bytes instead
112962         of 10, for compatibility with FreeBSD.  All callers changed.
112963         (filemodestring): Now stores 12 bytes instead of 10, and sets file
112964         types that can't be deduced solely from st_mode.  First arg is now a
112965         const pointer.
112966         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
112967         (strmode): Renamed from mode_string.
112968         (filemodestring): New decl.
112969         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
112970         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
112971         needed.
112972         (S_ISPORT, S_ISWHT): New macros, if not already defined.
112974         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112976         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
112977         fsusage.h now does that.  Include fsusage.h first, to test interface.
112978         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
112979         at most one method (the old code could have generated decls that
112980         didn't conform to C89, not that this was ever exercised).
112981         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
112983         2006-03-19  Jim Meyering  <jim@meyering.net>
112985         Work even in a chroot where d_ino values for entries in "/"
112986         don't match the stat.st_ino values for the same names.
112987         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
112988         number, iterate through all entries again, using lstat instead.
112989         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
112990         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
112992         * lib/getcwd.c (__getcwd): Clarify a comment.
112993         Use memcpy in place of a call to strcpy.
112995         2006-03-12  Jim Meyering  <jim@meyering.net>
112997         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
112998         matches that of the current directory (which we're about to chdir ".."
112999         out of), then save the dev-ino of the parent, instead.
113001         * lib/same-inode.h (SAME_INODE): New file/macro.
113002         * lib/chdir-safer.c (SAME_INODE): Remove definition.
113003         Include "same-inode.h", instead.
113004         * lib/same.c: Likewise.
113005         * lib/cycle-check.h: Include "same-inode.h".
113006         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
113007         * lib/cycle-check.c (SAME_INODE): Remove definition.
113008         * lib/root-dev-ino.h: Include "same-inode.h".
113010         2006-03-11  Eric Blake  <ebb9@byu.net>
113012         * lib/same.c (same_name): s/base_name/last_component/
113013         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
113014         * lib/filenamecat.c (file_name_concat): Likewise.
113016         2006-03-11  Eric Blake  <ebb9@byu.net>,
113017                     Paul Eggert  <eggert@cs.ucla.edu>
113019         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
113020         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
113021         drive prefix.
113022         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
113023         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
113024         (last_component): New method.
113025         * lib/dirname.c (dir_len): Determine when drive letters need a
113026         subsequent slash.  Preserve // when it is special.
113027         (dir_name): Don't append dot when drive letter is absolute.
113028         [TEST_DIRNAME]: Move into a full-blown gnulib test.
113029         * lib/basename.c (base_name): New semantics - malloc the result.
113030         Preserve // when it is special.  Preserve relative files that look
113031         like drive letters.
113032         (base_len): Preserve // when it is special.
113033         (last_component): New method, similar to old base_name semantics.
113034         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
113035         base_name.  Strip redundant slashes from ///.
113037 2006-07-03  Jim Meyering  <jim@meyering.net>
113039         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
113040         macro is used before the first cycle_check call.
113042 2006-07-03  Eric Blake  <ebb9@byu.net>
113044         * modules/dirname (Depends-on): Add xstrndup.
113046 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113048         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
113049         test cases, so that config.log is a bit easier to follow.
113051 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
113053         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
113054         both are 64 bits, since this seems to be the tradition, and this
113055         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
113056         we ever run into a host that prefers long long to long in this
113057         case, we'll need another configure-time test.  Problem reported by
113058         Jim Meyering.
113060 2006-07-02  Eric Blake  <ebb9@byu.net>
113062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
113064 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113066         * modules/inttypes (Depends-on): No longer depends on stdint.
113067         * modules/stdint (Description): Say more about assumptions.
113068         Say that the fast types might differ.  Say macros are used.
113069         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
113070         (Makefile.am): Revise list of substituted symbols to match
113071         new stdint.m4.
113072         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
113073         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
113074         * tests/test-stdint.c (verify_same_types)
113075         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
113076         the code conforms to C99/C89.
113077         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
113078         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
113080 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113082         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
113083         but fix a bug, by requiring at least 64 bits.
113084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
113085         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
113086         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
113087         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113089         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
113090         changes.  Make 2.59 a prerequisite.  Check and substitute for
113091         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
113092         inttypes.h.  Do not use special include files; just use the
113093         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
113094         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
113095         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
113096         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
113097         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
113098         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
113099         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
113100         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
113101         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
113102         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
113103         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
113104         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
113105         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
113106         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
113107         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
113108         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
113109         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
113110         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
113111         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
113112         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
113113         WINT_MAX.  Check for C99 conformance more strictly, by detecting
113114         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
113115         not check for things that C99 does not require, e.g., int8_t.  If
113116         a test isn't needed unless <stdint.h> isn't working, and is
113117         unlikely to be needed for any other reason, then don't do it
113118         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
113119         size_t, since we assume C89 freestanding at least.  Do not check
113120         for sig_atomic_t, wchar_t, or wint_t, since the code now does
113121         the right thing even if the types are not defined.  Instead use:
113122         (gl_STDINT_TYPE_PROPERTIES): New macro.
113123         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
113124         testing whether <sys/types.h> clashes, as Autoconf does this for
113125         us now.  All uses removed.
113126         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
113127         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
113128         (gl_CHECK_TYPE_SAME):
113129         Remove; no longer needed.
113130         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
113131         exists, since we'll return 0 anyway in that case.
113132         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
113134 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
113136         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
113137         possible collision with system files.
113138         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
113139         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
113140         WCHAR_MIN and WCHAR_MAX in this case.
113141         (<stddef.h>): Do not include; no longer needed.
113142         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
113143         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
113144         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
113145         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
113146         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
113147         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
113148         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
113149         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
113150         !defined(__c99))]: Include in this case too, since it's harmless
113151         now.
113152         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
113153         dangerous to do so.
113154         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
113155         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
113156         (_STDINT_MIN, _STDINT_MAX): New macros.
113157         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
113158         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
113159         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
113160         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
113161         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
113162         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
113163         macros, not typedefs; this simplifies things quite a bit.
113164         Use long int for all types narrower than int64_t.
113165         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
113166         Define in terms of long long int or int64_t or long int,
113167         not int64_t or int32_t.  This saves some compile-time testing.
113168         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
113169         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
113170         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
113171         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
113172         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
113173         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
113174         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
113175         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
113176         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
113177         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
113178         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113179         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113180         undef any previous version and define our own version, for
113181         simplicity and consistency with the new macros for types.
113182         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
113183         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
113184         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
113185         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
113186         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
113187         @WINT_T_SUFFIX@ to keep things simple here.
113188         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
113189         Simplify by assuming typical 8/16/32/64 host, since we're
113190         already doing that elsewhere anyway.
113191         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
113192         and assume long long int is 64 bits if available.  This
113193         speeds up 'configure'.
113195 2006-07-01  Eric Blake  <ebb9@byu.net>
113197         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
113198         Reported by Andreas Buening.
113200 2006-07-01  Eric Blake  <ebb9@byu.net>
113202         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
113204 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
113206         * lib/getaddrinfo.c: fixed typo
113208 2006-06-29  Jim Meyering  <jim@meyering.net>
113210         * modules/strftime (Maintainer): Add my name, since with the
113211         FPRINTFTIME changes strftime.c has forked from glibc.
113213 2006-06-29  Eric Blake  <ebb9@byu.net>
113215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
113217 2006-06-29  Eric Blake  <ebb9@byu.net>
113219         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
113221 2006-06-29  Eric Blake  <ebb9@byu.net>
113223         * lib/stat_.h: New file.
113225 2006-06-29  Eric Blake  <ebb9@byu.net>
113227         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
113228         unused static function.
113230 2006-06-29  Eric Blake  <ebb9@byu.net>
113232         * doc/functions.texi (Function Portability): Document missing lstat
113233         on mingw.
113235 2006-06-29  Eric Blake  <ebb9@byu.net>
113237         * MODULES.html.sh: Add sys_stat.
113238         * modules/sys_stat: New module.
113239         * modules/mkstemp (Depends-on): Add sys_stat.
113241 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113243         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
113245 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113247         * m4/c-bs-a.m4: Removed.
113249 2006-06-29  Derek R. Price  <derek@ximbiot.com>
113251         * lib/strftime.c: Assume strftime() exists.
113253 2006-06-29  Derek Price  <derek@ximbiot.com>
113255         * modules/c-bs-a: Removed - \a is C89.
113256         * MODULES.html.sh: Remove c-bs-a.
113258 2006-06-29  Bruno Haible  <bruno@clisp.org>
113260         * modules/wcwidth (License): Change to LGPL.
113262 2006-06-28  Simon Josefsson  <jas@extundo.com>
113264         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
113265         on _WIN32.
113267         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
113268         getnameinfo.
113270 2006-06-28  Simon Josefsson  <jas@extundo.com>
113272         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
113274 2006-06-28  Simon Josefsson  <jas@extundo.com>
113276         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
113277         functions there.  It will succeed on Windows XP, but on Windows
113278         2000 and (presumably) earlier, it will fail, and use the internal
113279         re-implementation.
113280         (use_win32_p): New function.
113281         (getaddrinfo): Use strtoul on servname, to support numeric ports.
113282         Support AI_NUMERICSERV to disable getservbyname.
113283         (getnameinfo): New function, only supports
113284         NI_NUMERICHOST|NI_NUMERICSERV for now.
113286         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
113287         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
113288         getnameinfo.
113290 2006-06-28  Eric Blake  <ebb9@byu.net>
113292         * modules/wcwidth: New file.
113293         * modules/mbchar (Depends-on): Add wcwidth.
113294         * modules/mbswidth (Depends-on): Add wcwidth.
113295         * MODULES.html.sh: Add wcwidth.
113297 2006-06-28  Eric Blake  <ebb9@byu.net>
113299         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
113300         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
113302 2006-06-28  Eric Blake  <ebb9@byu.net>
113304         * lib/xvasprintf.h: Fix comments.
113306 2006-06-28  Eric Blake  <ebb9@byu.net>
113308         * lib/mbchar.h (wcwidth): Include wcwidth.h.
113309         * lib/mbswidth.c (wcwidth): Move from here...
113310         * lib/wcwidth.h: ...to this new file.
113312 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113314         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
113316         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
113317         it's obsolete.
113318         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
113320 2006-06-28  Derek R. Price  <derek@ximbiot.com>
113322         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
113323         Autoconf 2.60 says this stuff was obsolete.
113325 2006-06-28  Bruno Haible  <bruno@clisp.org>
113327         * modules/wcwidth (Files): Add m4/wchar_t.m4.
113329 2006-06-28  Bruno Haible  <bruno@clisp.org>
113331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
113332         gt_TYPE_WCHAR_T.
113334 2006-06-28  Bruno Haible  <bruno@clisp.org>
113336         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
113337         declaration for wcwidth.
113338         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
113340 2006-06-28  Bruno Haible  <bruno@clisp.org>
113342         * lib/mkdtemp.c [MINGW]: Include <io.h>.
113343         (mkdir): Define using _mkdir.
113345 2006-06-28  Bruno Haible  <bruno@clisp.org>
113347         * lib/getaddrinfo.h: Fix POSIX URL.
113348         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
113349         _WIN32.
113350         (use_win32_p): Make static.
113351         (getaddrinfo): Reject service name if it is empty or does not consist
113352         solely of decimal digits, or if its value is > 65535.
113353         (getnameinfo): Remove useless casts.
113355 2006-06-27  Simon Josefsson  <jas@extundo.com>
113357         * modules/sys_select: New file, suggested by Bruno Haible, Paul
113358         Eggert and Martin Lambers.
113360 2006-06-27  Simon Josefsson  <jas@extundo.com>
113362         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
113363         Eggert and Martin Lambers.
113365 2006-06-27  Bruno Haible  <bruno@clisp.org>
113367         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
113368         result to 0, not to empty.
113369         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
113371 2006-06-27  Bruno Haible  <bruno@clisp.org>
113373         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
113375 2006-06-26  Simon Josefsson  <jas@extundo.com>
113377         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
113378         present.
113380 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
113382         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
113383         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
113384         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
113386 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
113388         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
113390 2006-06-26  Bruno Haible  <bruno@clisp.org>
113392         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
113394 2006-06-26  Bruno Haible  <bruno@clisp.org>
113396         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
113398 2006-06-26  Bruno Haible  <bruno@clisp.org>
113400         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
113401         SGI C compiler in pre-C99 mode.
113402         Suggested by Mark D. Baushke and Larry Jones.
113404 2006-06-26  Bruno Haible  <bruno@clisp.org>
113406         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
113407         WCHAR_MAX.
113408         Reported by Mark D. Baushke and Larry Jones.
113410 2006-06-26  Bruno Haible  <bruno@clisp.org>
113412         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
113413         in pre-C99 mode.
113414         Suggested by Mark D. Baushke and Larry Jones.
113416 2006-06-23  Simon Josefsson  <jas@extundo.com>
113417             Bruno Haible  <bruno@clisp.org>
113419         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
113420         Emit mostlyclean-local rule.
113421         (func_emit_tests_Makefile_am): Likewise.
113422         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
113424 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
113426         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
113428 2006-06-23  Bruno Haible  <bruno@clisp.org>
113430         * tests/test-stdint.c: Update to match ISO C 99 Technical
113431         Corrigendum 1.
113433 2006-06-23  Bruno Haible  <bruno@clisp.org>
113435         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
113437 2006-06-23  Bruno Haible  <bruno@clisp.org>
113439         * lib/stdint_.h: Treat IRIX like OpenBSD.
113441 2006-06-23  Bruno Haible  <bruno@clisp.org>
113443         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
113444         ISO C 99 Technical Corrigendum 1.
113446 2006-06-22  Simon Josefsson  <jas@extundo.com>
113448         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
113449         MinGW.
113451 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
113453         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
113454         needed.  Some compiler complained about some of them.  Problem reported
113455         by Larry Jones in
113456         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
113458 2006-06-21  Simon Josefsson  <jas@extundo.com>
113460         * tests/test-getaddrinfo.c: New file.
113462         * modules/getaddrinfo-tests: New file.
113464         * MODULES.html.sh: Add inet_pton.
113466         * modules/inet_pton: New file.
113468 2006-06-21  Simon Josefsson  <jas@extundo.com>
113470         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
113471         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
113472         of using the (limited) gnulib implementation on Windows XP.
113474         * m4/inet_pton.m4: New file.
113476 2006-06-21  Simon Josefsson  <jas@extundo.com>
113478         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
113479         variable.
113481         * lib/socket_.h: Don't define WINVER.
113483         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
113484         slightly modified to work in gnulib.
113486 2006-06-21  Simon Josefsson  <jas@extundo.com>
113488         * doc/gnulib.texi (Windows sockets): Add.
113490 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
113492         * lib/read-file.c (fread_file): Start with buffer allocation of
113493         0 bytes rather than 1 byte; this simplifies the code.
113494         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
113495         code to free buffer and save/restore errno.
113496         (internal_read_file): Remove unused local.
113498 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
113500         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
113501         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
113502         Problem reported by Denis Excoffier in
113503         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
113505 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113507         * modules/sys_socket, modules/socklen: Include sys/types since
113508         FreeBSD 4.x's sys/socket.h needs it.
113510 2006-06-19  Simon Josefsson  <jas@extundo.com>
113512         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
113514 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
113516         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
113518 2006-06-19  Bruno Haible  <bruno@clisp.org>
113520         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
113521         and FULL_PATH_INTTYPES_H in angle brackets.
113522         Reported by Mark D. Baushke <mdb@gnu.org>.
113524 2006-06-17  Eric Blake  <ebb9@byu.net>
113526         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
113527         errno.
113529 2006-06-17  Bruno Haible  <bruno@clisp.org>
113531         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
113532         <sys/inttypes.h>.
113534 2006-06-17  Bruno Haible  <bruno@clisp.org>
113536         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
113537         whether errno is declared. Assume <errno.h> declares errno.
113539 2006-06-17  Bruno Haible  <bruno@clisp.org>
113541         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
113543 2006-06-17  Bruno Haible  <bruno@clisp.org>
113545         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
113546         problem on Solaris 2.5.1.
113548 2006-06-16  Eric Blake  <ebb9@byu.net>
113550         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
113551         * lib/unicodeio.c [!defined errno]: Likewise.
113552         * lib/strtol.c [!defined errno]: Likewise.
113553         * lib/strtod.c [!defined errno]: Likewise.
113555 2006-06-15  Eric Blake  <ebb9@byu.net>
113557         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
113559 2006-06-15  Eric Blake  <ebb9@byu.net>
113561         * config/srclist.txt (ssize_t.m4): Lose sync.
113563 2006-06-15  Bruno Haible  <bruno@clisp.org>
113565         * modules/stdint (Files): Include m4/full-header-path.m4,
113566         m4/size_max.m4, m4/wchar_t.m4.
113567         (Makefile.am): Many more substitutions.
113568         * modules/stdint-tests: New file.
113569         * tests/test-stdint.c: New file.
113571 2006-06-15  Bruno Haible  <bruno@clisp.org>
113573         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
113574         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
113575         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
113576         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
113577         gl_CHECK_TYPE_SAME): New macros.
113579 2006-06-15  Bruno Haible  <bruno@clisp.org>
113581         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
113583 2006-06-15  Bruno Haible  <bruno@clisp.org>
113585         * lib/stdint_.h: Rewritten to be fully auto-configured.
113586         Fixes bug on HP-UX/IA64.
113588 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
113590         * lib/getdate.y (__attribute__): Don't define if already defined.
113591         Problem reported by Larry Jones.
113592         * lib/utimens.c (__attribute__): Likewise.
113594 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
113596         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
113597         reported by Andreas Schwab.
113599 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113600             Bruno Haible  <bruno@clisp.org>
113602         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
113603         check for the declaration of strnlen and a run test that exposes the
113604         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
113605         rpl_strndup.
113607 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113608             Bruno Haible  <bruno@clisp.org>
113610         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
113612 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113614         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
113615         compile test, for Tru64 4.0D.
113617 2006-05-28  Karl Berry  <karl@gnu.org>
113619         * config/srclist.txt (printf-args.c): lose sync.
113621 2006-05-26  Martin Lambers  <marlam@marlam.de>
113623         * lib/getpass.c: Updates the test for the native W32 API, and adds
113624         missing includes, thus fixing compilation warnings.
113626 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
113628         * lib/exclude.c (exclude_fnmatch): New function.
113629         (excluded_file_name): Call exclude_fnmatch.
113630         * lib/exclude.h (excluded_file_name): New prototype
113632 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
113634         * lib/tempname.c (small_open, large_open): New macros.
113635         (__open, __open64) [!_LIBC]: Remove.
113636         (__gen_tempname): Use small_open and large_open instead of __open
113637         and __open64.  This fixes a portability bug on HP-UX 11.11i
113638         reported by Simon Wing-Tang in
113639         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
113641 2006-05-24  Bruno Haible  <bruno@clisp.org>
113643         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
113644         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
113645         Reported by Thorsten Maerz <torte@netztorte.de> via
113646         Aaron Stone <aaron@serendipity.cx>.
113648 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113650         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
113651         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
113652         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
113653         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
113654         not really conditional on the cache.
113655         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
113657 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
113659         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
113660         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
113661         (my_usleep): Don't mishandle maximum value.
113663 2006-05-19  Jim Meyering  <jim@meyering.net>
113665         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
113667 2006-05-17  Bruno Haible  <bruno@clisp.org>
113669         Cygwin portability.
113670         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
113672 2006-05-17  Bruno Haible  <bruno@clisp.org>
113674         * lib/stdint_.h: Fix recognition of Cygwin.
113676 2006-05-15  Bruno Haible  <bruno@clisp.org>
113678         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
113679         on libtool patch by Ralf Wildenhues.
113681 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
113683         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
113684         test for C99 conformance; (bool) 0.5 is an integer constant
113685         expression, but (bool) -0.5 is not.  Problem reported by Fedor
113686         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
113688 2006-05-11  Simon Josefsson  <jas@extundo.com>
113690         * m4/xvasprintf.m4: Fix obvious typo.
113692 2006-05-11  Jim Meyering  <jim@meyering.net>
113694         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
113695         James Lemley.
113697 2006-05-10  Simon Josefsson  <jas@extundo.com>
113699         * lib/md4.c: Typo fix, update copyright years.
113700         (K1, K2): Don't use L because it turn computations into 64-bit on
113701         64-bit platforms.
113703 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
113705         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
113706         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
113707         unwanted sign propagation, e.g., on hosts with 64-bit int.
113708         There still are some problems with reeelly weird theoretical hosts
113709         (e.g., 33-bit int) but it's not worth worrying about now.
113710         * lib/sha1.c (rol): Likewise.
113711         (K1, K2, K3, K4): Remove unnecessary L suffix.
113713 2006-05-10  Bruno Haible  <bruno@clisp.org>
113715         * lib/des.c: Cast to avoid warnings.
113717 2006-05-09  Bruno Haible  <bruno@clisp.org>
113719         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
113720         (Depends-on): Depend also on xsize, stdarg.
113721         (configure.ac): Add gl_XVASPRINTF.
113723 2006-05-09  Bruno Haible  <bruno@clisp.org>
113725         * m4/xvasprintf.m4: New file.
113727 2006-05-09  Bruno Haible  <bruno@clisp.org>
113729         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
113730         (EOVERFLOW): Define fallback value.
113731         (xstrcat): New function.
113732         (xvasprintf): Recognize the special case of a string concatenation.
113734 2006-05-08  Eric Blake  <ebb9@byu.net>
113736         * gnulib-tool (func_version): Base copyright year on CVS date.
113737         (func_emit_copyright_notice): New function.
113738         (func_emit_lib_Makefile_am): Use it.
113739         (func_emit_tests_Makefile_am): Likewise.
113740         (func_import): Likewise.
113742 2006-05-08  Bruno Haible  <bruno@clisp.org>
113744         * modules/stdarg: New file.
113745         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
113747 2006-05-08  Bruno Haible  <bruno@clisp.org>
113749         * m4/stdarg.m4: New file, from GNU gettext.
113751 2006-05-08  Bruno Haible  <bruno@clisp.org>
113753         * config/srclist.txt (build-aux/config.rpath): different from latest
113754         release.
113756 2006-05-08  Bruno Haible  <bruno@clisp.org>
113758         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
113760 2006-05-05  Jim Meyering  <jim@meyering.net>
113762         * m4/warning.m4: New file, derived from bison's file by the same name.
113764 2006-05-03  Bruno Haible  <bruno@clisp.org>
113766         * lib/stdint_.h: Shorter URL.
113767         * lib/inttypes.h: Likewise.
113769 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113771         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
113773 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113775         * lib/verify.h: Document the internals better.  Most of this change
113776         was written by Bruno Haible.
113778 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
113780         * doc/verify.texi: New file, partly based on a proposal by
113781         Bruno Haible.
113783 2006-05-02  Bruno Haible  <bruno@clisp.org>
113785         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
113786         test from here...
113787         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
113789 2006-04-29  Bruno Haible  <bruno@clisp.org>
113791         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
113792         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
113794 2006-04-29  Bruno Haible  <bruno@clisp.org>
113796         * gnulib-tool: Make --update option actually work.
113798 2006-04-29  Bruno Haible  <bruno@clisp.org>
113800         * doc/gcd.texi: New file.
113801         * doc/gnulib.texi: Include it.
113803 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
113805         * lib/getdate.y (get_date): When adding relative date, start with the
113806         initial time, not with the result of the first mktime call.
113808 2006-04-25  Bruno Haible  <bruno@clisp.org>
113810         * gnulib-tool (func_import): Output the include directives in three
113811         blocks, sorted separately.
113812         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113814 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113816         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
113817         to define main with arguments, for C++.  Reported by Eric Blake.
113818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
113819         Prefer 'int main ()' to 'int main (void)', for C++.
113820         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
113821         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
113822         for 'main', for C99 and C++.
113824 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
113826         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
113827         Don't assume that exit status -1 is valid.
113828         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
113829         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
113830         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
113831         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
113832         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
113833         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
113834         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
113835         functions can be used without declaring them, or that you can
113836         exit with status -1.
113837         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
113839 2006-04-24  Karl Berry  <karl@gnu.org>
113841         * config/srclist.txt (longdouble.m4): sync lost.
113843 2006-04-24  Eric Blake  <ebb9@byu.net>
113845         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
113847 2006-04-24  Bruno Haible  <bruno@clisp.org>
113849         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
113850         poll() implementation in AIX.
113851         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113853 2006-04-24  Bruno Haible  <bruno@clisp.org>
113855         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
113856         assigned exactly once.
113858 2006-04-23  Claudio Fontana  <claudio@gnu.org>
113859             Bruno Haible  <bruno@clisp.org>
113861         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
113862         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
113863         for AM_CPPFLAGS.
113865 2006-04-23  Bruno Haible  <bruno@clisp.org>
113867         * modules/copy-file: Depend on unistd.
113868         * modules/execute: Likewise.
113869         * modules/fatal-signal: Likewise.
113870         * modules/findprog: Likewise.
113871         * modules/mkdtemp : Likewise.
113872         * modules/pipe: Likewise.
113873         * modules/wait-process: Likewise.
113875 2006-04-23  Bruno Haible  <bruno@clisp.org>
113877         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
113878         condition was already detected.
113879         Reported by Ben Pfaff <blp@cs.stanford.edu>.
113881 2006-04-23  Bruno Haible  <bruno@clisp.org>
113883         * lib/copy-file.c: Include <unistd.h> unconditionally.
113884         * lib/execute.c: Likewise.
113885         * lib/fatal-signal.c: Likewise.
113886         * lib/findprog.c: Likewise.
113887         * lib/mkdtemp.c: Likewise.
113888         * lib/pipe.h: Likewise.
113889         * lib/pipe.c: Likewise.
113890         * lib/wait-process.h: Likewise.
113892 2006-04-23  Bruno Haible  <bruno@clisp.org>
113894         * gnulib-tool (func_usage): Fix --import description. Document
113895         --update.
113896         (func_import): Create temporary file in a temporary directory, if
113897         --dry-run is specified. Silence errors from 'grep' when there are no
113898         m4 files in $m4dir.
113899         (func_create_testdir): Silence errors from 'grep' when there are no
113900         m4 files in $m4dir.
113901         Reported by Karl Berry <karl@freefriends.org>.
113903 2006-04-20  Bruno Haible  <bruno@clisp.org>
113905         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
113906         one argument, so that the code will be portable to Autoconf 2.60.
113907         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
113908         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
113909         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
113911 2006-04-19  Derek Price  <derek@ximbiot.com>
113912             Eric Blake  <ebb9@byu.net>
113914         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
113915         rather than "/full/path.h".  Update comment to match.  Shorten &
113916         generalize m4_translit call via AS_TR_CPP.
113918 2006-04-19  Derek Price  <derek@ximbiot.com>
113919             Eric Blake  <ebb9@byu.net>
113921         * lib/inttypes.h: Correct grammar in comment.
113923 2006-04-18  Derek Price  <derek@ximbiot.com>
113924             Paul Eggert  <eggert@cs.ucla.edu>
113926         * modules/inttypes: New file.
113927         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
113929 2006-04-18  Derek Price  <derek@ximbiot.com>
113930             Paul Eggert  <eggert@cs.ucla.edu>
113932         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
113933         New files.
113935 2006-04-18  Derek Price  <derek@ximbiot.com>
113936             Paul Eggert  <eggert@cs.ucla.edu>
113938         * lib/inttypes.h: New file.
113939         * lib/strtoimax.c: Assume <inttypes.h>.
113941 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
113943         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
113944         isn't mounted.  Problem reported by Kir Kolyshkin.
113946 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
113948         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
113949         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
113950         Derek R. Price.
113951         * lib/regex.h (RE_DUP_MAX): Update comment to match current
113952         implementation.
113954 2006-04-12  Eric Blake  <ebb9@byu.net>
113956         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
113957         is now done automatically by the corresponding Autoconf macro.
113959 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
113961         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
113962         time_r.h.
113964 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
113966         Merge regex changes from libc, removing some of our
113967         POSIX-conformance changes that were rejected and redoing them in a
113968         less-intrusive way.
113970         * lib/regcomp.c (re_compile_internal, init_dfa):
113971         Length arg is now size_t, not Idx.  All uses changed.
113972         (peek_token): Forward decl now says internal_function.
113973         (__re_error_msgid, __re_error_msgid_idx):
113974         Now static rather than extern with attribute_hidden.
113975         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
113976         For some reason libc prefers K&R style defns for external functions.
113977         (regerror) [!defined _LIBC]: Likewise.
113978         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
113979         (seek_collating_symbol_entry, lookup_collation_sequence_value):
113980         (build_range_exp, build_collating_symbol):
113981         Use K&R-style defn.
113982         (re_compile_fastmap): Use '\0' to memset, not 0.
113983         (utf8_sb_map): Make the calculations more obvious.
113984         (init_dfa, parse_bracket_exp, build_charclass_op):
113985         Call calloc and cast result, as glibc does.
113986         (init_word_char, fetch_token, peek_token, peek_token_bracket):
113987         (build_range_exp, build_collating_symbol):
113988         Now internal functions.
113990         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
113992         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
113993         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
113994         Don't depend on VMS; depend on __VMS instead, for POSIX
113995         namespace cleanness.
113996         (regoff_t): Define to ssize_t, not long int.
113998         Remove the REG_ macros named below.  Instead, make the old names
113999         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
114000         __USE_GNU_REGEX.
114001         (REG_BACKSLASH_ESCAPE_IN_LISTS):
114002         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
114003         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
114004         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
114005         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
114006         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
114007         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
114008         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
114009         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
114010         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
114011         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
114012         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
114013         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
114014         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
114015         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
114016         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
114017         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
114018         (REG_NREGS):
114019         Remove.  All uses replaced by the old RE_* names.
114020         (RE_BACKSLASH_ESCAPE_IN_LISTS):
114021         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
114022         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
114023         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
114024         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
114025         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
114026         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
114027         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
114028         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
114029         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
114030         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
114031         Don't bother having these macros be independent of each others'
114032         values, since they no longer exist in the POSIX name space.
114034         Rename the following member names back to their old names,
114035         unless !__USE_GNU_REGEX.  All uses changed back.
114036         (buffer): Renamed from re_buffer.
114037         (allocated): Renamed from re_allocated.
114038         (used): Renamed from re_used.
114039         (syntax): Renamed from re_syntax.
114040         (fastmap): Renamed from re_fastmap.
114041         (translate): Renamed from re_translate.
114042         (can_be_null): Renamed from re_can_be_null.
114043         (regs_allocated): Renamed from re_regs_allocated.
114044         (fastmap_accurate): Renamed from re_fastmap_accurate.
114045         (no_sub): Renamed from re_no_sub.
114046         (not_bol): Renamed from re_not_bol.
114047         (not_eol): Renamed from re_not_eol.
114048         (newline_anchor): Renamed from re_newline_anchor.
114049         (num_regs): Renamed from rm_num_regs.
114050         (start): Renamed from rm_start.
114051         (end): Renamed from rm_end.
114053         (free_state): Move up a bit.
114055         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
114056         #define to be empty.
114057         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
114058         when that is what is intended.
114059         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
114060         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
114061         (MAX): New macro.
114062         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
114063         All uses changed back to re_malloc, etc.  It's now the caller's
114064         responsibility to check for overflow; all callers changed.
114065         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
114066         (re_x2nrealloc): Remove.
114067         (free_state): Remove decl.
114069         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
114070         (re_set_registers, re_exec):
114071         Use K&R-style defn.
114073         2006-01-31  Roland McGrath  <roland@redhat.com>
114075         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
114076         Reported by Mike Frysinger <vapier@gentoo.org>.
114078         2006-01-15  Andreas Jaeger  <aj@suse.de>
114080         [BZ #1950]
114081         * lib/regex_internal.c (re_string_reconstruct): Adjust for
114082         build_wcs_upper_buffer change.
114083         (build_wcs_upper_buffer): Change return type.
114085         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
114087         * lib/regex_internal.h: Include <stdint.h> if available.
114089         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
114091         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
114093         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
114095         * lib/regcomp.c: Adjust for changed secondary hash function.
114097         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
114099         * lib/regex.h: Pretty printing.
114100         Clean up namespace a bit.
114102         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
114104         * lib/regexec.c (update_cur_sifted_state, check_arrival,
114105         check_arrival_add_next_nodes): Avoid using uninitialized variable.
114107         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
114108                     Ulrich Drepper  <drepper@redhat.com>
114110         [BZ #1302]
114111         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
114112         changed.
114113         (bitset_word_t): Renamed from bitset_word.  All uses changed.
114115         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
114117         [BZ #281]
114118         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
114119         * lib/regcomp.c: Remove unnecessary uses of
114120         unsigned RE_TRANSLATE_TYPE.
114121         * lib/regex_internal.h: Likewise.
114122         * lib/regex_internal.c: Likewise.
114123         * lib/regexec.c: Likewise.
114124         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
114126         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
114128         * lib/regexec.c (find_recover_state): Remove unnecessary
114129         initialization.
114130         (transit_state_bkref): Make DFA a const pointer.
114131         (get_subexp): Likewise.
114132         (check_arrival): Likewise.
114133         (update_cur_sifted_state): Likewise.
114134         (re_search_internal): Likewise.
114135         (prune_impossible_nodes): Likewise.
114136         (acquire_init_state_context): Likewise.
114137         (proceed_next_node): Likewise.
114138         (set_regs): Likewise.
114139         (free_fail_stack_return): Likewise.
114140         (check_arrival_expand_ecl): Mark DFA parameter as const.
114141         (check_arrival_expand_ecl_sub): Likewise.
114142         (check_subexp_limits): Likewise.
114143         (sub_epsilon_src_nodes):  Likewise.
114144         (add_epsilon_src_nodes):  Likewise.
114145         (merge_state_array): Likewise.
114146         (update_regs): Likewise.
114147         (build_trtable): Likewise.
114148         (sift_states_backward): Mark MCTX parameter as const.
114149         (build_sifted_states): Likewise.
114150         (update_cur_sifted_state): Likewise.
114151         (sift_states_mkref): Likewise.
114152         (check_arrival_expand_ecl): Mark eclosure as const.
114153         (check_dst_limits_calc_pos_1): Likewise.
114154         * lib/regex_internal.h (re_match_context_t): Make dfa a const
114155         pointer.
114157         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
114159         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
114160         (transit_state_sb): Likewise.
114161         (transit_state_mb): Likewise.
114162         (sift_states_iter_mb): Likewise.
114163         (check_arrival_add_next_nodes): Likewise.
114164         (check_node_accept_bytes): Change first parameter to pointer-to-const.
114165         [_LIBC] (re_search_2_stub): Use mempcpy.
114167         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
114168         mbrtowc for very simple UTF-8 case.
114170         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
114171         a pointer-to-const.
114172         (re_acquire_state_context): Likewise.
114173         * lib/regex_internal.h: Adjust prototypes.
114175         * lib/regex.c: Prevent using C++ compilers.
114177         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
114178         (re_acquire_state_context): Likewise.
114180 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114182         * modules/regex (Depends-on): Add ssize_t.
114184 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114186         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
114187         translation table.
114189 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
114191         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
114193 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
114194             Bruno Haible  <bruno@clisp.org>
114196         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
114197         <sys/types.h> and <inttypes.h>.
114199 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114201         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
114202         `__error_t_defined', so argp.h will not typedef the former.
114204 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
114206         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
114207         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
114208         glibc names.  Even if glibc is changed to conform to POSIX, the
114209         traditional names will be available anyway, since regex depends on
114210         the extensions module.  Also, fix a longstanding typo in the
114211         implementation of Spencer ERE test #75 from grep 2.3.  Problems
114212         reported by Emanuele Giaquinta.  Also, change sense of cached
114213         variable, so that the message makes sense.
114215 2006-03-24  Simon Josefsson  <jas@extundo.com>
114217         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
114218         including some doc fixes.
114219         (base64_encode_alloc): Fix +1 bug on allocation failures.
114221 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114223         * lib/base64.c (base64_encode): Do not read past end of array with
114224         unsanitized input on systems with CHAR_BIT > 8.
114226 2006-03-24  Eric Blake  <ebb9@byu.net>
114228         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
114230 2006-03-22  Karl Berry  <karl@gnu.org>
114232         * config/srclist.txt (*setenv.[ch]): get from coreutils.
114233         * config/srclistvars.sh (COREUTILS): new var.
114235 2006-03-17  Jim Meyering  <jim@meyering.net>
114237         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
114238         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
114240 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114242         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
114243         no longer needs it.  Instead, check that regoff_t is as least
114244         as wide as ptrdiff_t.
114246         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
114247         so that our regex.h stays compatible with the installed regex.
114248         This is helpful for installers who configure --without-included-regex.
114249         Problem reported by Emanuele Giaquinta.
114251 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
114253         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
114254         Typedef to long int, not to off_, as POSIX will likely change
114255         in that direction.
114257 2006-03-15  Eric Blake  <ebb9@byu.net>
114259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
114261 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114263         * lib/argp-help.c (validate_uparams): Fix typo
114264         * lib/argp-parse.c (argp_default_options): Consistently begin help
114265         messages with a lowercase letter.
114267 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
114269         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
114270         overrun buffers and shouldn't be used (much as gets shouldn't be
114271         used).
114272         * lib/time_r.c (asctime_r, ctime_r): Likewise.
114274 2006-03-08  Simon Josefsson  <jas@extundo.com>
114276         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
114277         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114279 2006-03-08  Simon Josefsson  <jas@extundo.com>
114281         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
114282         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114284 2006-03-08  Simon Josefsson  <jas@extundo.com>
114286         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
114287         signal that configure disabled the device.
114289 2006-03-08  Simon Josefsson  <jas@extundo.com>
114291         * build-aux/maint.mk: Fix refresh-po, to handle no translated
114292         languages.
114294 2006-03-07  Simon Josefsson  <jas@extundo.com>
114296         * modules/getopt (Depends-on): Add unistd.
114298         * modules/unistd: New file.
114300 2006-03-07  Simon Josefsson  <jas@extundo.com>
114302         * modules/gc-random: New file.
114304 2006-03-07  Simon Josefsson  <jas@extundo.com>
114306         * m4/unistd_h.m4: New file.
114308 2006-03-07  Simon Josefsson  <jas@extundo.com>
114310         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
114311         test to be side-effect free by storing the result in the cache
114312         variable gl_cv_lib_readline, and moving the assignment of
114313         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
114314         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114316 2006-03-07  Simon Josefsson  <jas@extundo.com>
114318         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
114319         error on missing devices (the functions will return an error).
114321         * m4/gc.m4: Move random stuff to gc-random.m4
114323 2006-03-07  Simon Josefsson  <jas@extundo.com>
114325         * lib/unistd_.h: New file.
114327 2006-03-07  Simon Josefsson  <jas@extundo.com>
114329         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
114331 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114333         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
114334         Problem reported by Juan Manuel Guerrero.
114336 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114338         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
114339         the unistd module.
114340         * lib/getlogin_r.c: Likewise.
114341         * lib/getlogin_r.h: Likewise.
114342         * lib/glob.c: Likewise.
114343         * lib/pagealign_alloc.c: Likewise.
114344         * lib/unistd_.h: Remove; no longer needed.
114346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
114348         * MODULES.html.sh (Support for systems lacking POSIX:2001):
114349         Add unistd.
114350         * modules/c-stack (Depends-on): Add unistd.
114351         * modules/getlogin_r: Likewise.
114352         * modules/glob: Likewise.
114353         * modules/pagealign_alloc: Likewise.
114354         * modules/unistd (Files): Remove lib/unistd_.h.
114355         (EXTRA_DIST): Remove.
114356         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
114357         need unistd_.h.
114358         (MOSTLYCLEANFILES): Remove unistd.h-t.
114360 2006-03-03  Simon Josefsson  <jas@extundo.com>
114362         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
114364 2006-03-03  Simon Josefsson  <jas@extundo.com>
114366         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
114367         libidn and bison.
114369 2006-03-03  Simon Josefsson  <jas@extundo.com>
114371         * build-aux/maint.mk: Add indent target.
114373 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
114375         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
114376         our replacement poll.h in any case, to avoid a differing
114377         declaration from a system header.  Seen on AIX.
114379 2006-03-01  Simon Josefsson  <jas@extundo.com>
114381         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
114382         <kasal@ucw.cz>.
114384 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114386         * modules/gettime (Depends-on): Add extensions module.
114387         * modules/nanosleep (Depends-on): Likewise.
114388         * modules/settime (Depends-on): Likewise.
114390 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
114392         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
114393         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
114394         pedantically.
114395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
114396         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
114398         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
114399         not "==".  Reported by Ralf Wildenhues.
114401 2006-03-01  Karl Berry  <karl@gnu.org>
114403         * doc/Copyright/request-*: new files, synced from gnuorg.
114405 2006-03-01  Karl Berry  <karl@gnu.org>
114407         * config/srclist.txt (Copyright/*): new entries.
114409 2006-02-28  Simon Josefsson  <jas@extundo.com>
114411         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
114413 2006-02-27  Simon Josefsson  <jas@extundo.com>
114415         * lib/base64.h: Indent #define's.  From Jim Meyering
114416         <jim@meyering.net>.
114418 2006-02-27  Jim Meyering  <jim@meyering.net>
114420         Revert the change of 2006-02-24, so these files can continue
114421         to be sync'd from gettext.
114422         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
114423         of `config.h'.
114425 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
114427         * modules/intprops: New file.
114428         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
114429         Add intprops.
114430         * modules/getloadavg (Files): Remove lib/intprops.h.
114431         (Depends-on): Add intprops.
114432         * modules/human: Likewise.
114433         * modules/inttostr: Likewise.
114434         * modules/openat: Likewise.
114435         * modules/sig2str: Likewise.
114436         * modules/userspec: Likewise.
114437         * modules/utimecmp: Likewise.
114438         * modules/xnanosleep: Likewise.
114439         * modules/xstrtol: Likewise.
114441 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
114443         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
114444         * modules/lock-tests (TESTS): Use $(EXEEXT).
114445         * modules/tls-tests: Likewise.
114446         * modules/argp-tests: Likewise.
114447         (check_PROGRAMS): New var, replacing...
114448         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
114450 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114452         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
114453         `config.h'.
114455 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
114457         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
114459 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114461         Sync from coreutils.
114462         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
114463         gl_CHDIR_SAFER.
114465 2006-02-22  Jim Meyering  <jim@meyering.net>
114467         Sync from coreutils.
114468         * m4/chdir-safer.m4: New file.
114470 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
114472         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
114473         AT_FDCWD exceeds INT_MAX.
114474         * lib/openat.h (AT_FDCWD): Likewise.
114476 2006-02-17  Eric Blake  <address@hidden>
114478         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
114480 2006-02-16  Simon Josefsson  <jas@extundo.com>
114482         * modules/getaddrinfo (Depends-on): Add sys_socket.
114484 2006-02-15  Simon Josefsson  <jas@extundo.com>
114486         * build-aux/maint.mk: Add dsyntax-check rule.
114488 2006-02-15  Eric Blake  <ebb9@byu.net>
114490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
114491         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
114492         'present but cannot compile' warnings on cygwin.
114493         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
114494         use ws2tcpip.h if sys/socket.h works.
114495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
114496         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
114498 2006-02-14  Simon Josefsson  <jas@extundo.com>
114500         * modules/maintainer-makefile (Files): Rename.
114502         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
114503         and (the local) Makefile.cfg to maint-cfg.mk.
114505         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
114506         to the latter.
114508         * modules/maintainer-makefile: New module.
114510         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
114511         severaly stripped to make it possible to build it up from scratch
114512         with reliable tests.
114514         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
114515         fixes to permit overriding the default actions when configure and
114516         makefile are not available.
114518 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
114520         Sync from coreutils.
114521         * modules/lstat (Depends-on): Don't depend on xalloc.
114522         (License): Change from GPL to LGPL, since this is now simply a
114523         replacement for a libc function.
114525 2006-02-14  Jim Meyering  <jim@meyering.net>
114527         Sync from coreutils.
114529         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
114530         failure on deficient systems, and simplify gnulib lgpl dependencies.
114531         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
114532         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
114534         * lib/xalloc-die.c: Remove unused definition of N_.
114536 2006-02-14  Jim Meyering  <jim@meyering.net>
114538         Sync from coreutils.
114539         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
114540         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
114541         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
114542         double-quote uses of that variable, to accommodate the rare case in
114543         which getmntent is available in none of the libraries checked.  This
114544         happens at least on FreeBSD 5.0.
114546 2006-02-13  Simon Josefsson  <jas@extundo.com>
114548         * gnulib-tool (Usage): Fix --import, from
114549         karl@freefriends.org (Karl Berry).
114551 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
114553         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
114555 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
114557         * lib/argp-namefrob.h: Restore changes accidentally lost during the
114558         "autoupdate" on 2005-12-12.
114560 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114562         * modules/closeout (Depends-on): Remove atexit.
114564 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
114566         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
114567         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
114569 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
114571         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
114572         __EXTENSIONS__ if this causes compilation to fail.  Problem
114573         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
114574         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
114576 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
114578         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
114579         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
114580         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
114581         All uses changed.
114583 2006-01-26  Simon Josefsson  <jas@extundo.com>
114585         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
114586         prototype is visible on mingw32.
114588         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
114589         for mingw32.
114591         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
114592         mingw32).
114594 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
114596         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
114597         attempt to open for write; this always fails, at least on POSIX
114598         hosts.  This reinstates the 2006-01-09 change, which was
114599         inadvertently removed.
114601 2006-01-26  Bruno Haible  <bruno@clisp.org>
114603         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
114604         Reported by Paul Eggert.
114606 2006-01-26  Bruno Haible  <bruno@clisp.org>
114607             Paul Eggert  <eggert@cs.ucla.edu>
114609         * lib/stdbool_.h (_Bool)
114610         [(! (defined __cplusplus || defined __BEOS__)
114611           && !defined __GNUC__
114612           && !(defined __HP_cc || defined __xlc__
114613                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
114614                || defined __sgi))]:
114615         #define to signed char in these cases too; this simplifies
114616         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
114617         etc., separately) and makes it more conservative.
114619 2006-01-25  Simon Josefsson  <jas@extundo.com>
114621         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
114622         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
114623         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
114625 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
114627         * lib/argp-namefrob.h: Bugfix. Remove stray #
114629 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
114631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
114632         so that we test the test.
114633         Check for yet another HP-UX cc bug involving *bool |= bool.
114635 2006-01-25  Karl Berry  <karl@gnu.org>
114637         * config/srclist.txt (vasnprintf.c): sync lost.
114639 2006-01-25  Jim Meyering  <jim@meyering.net>
114641         Sync from the stable (b5) branch of coreutils:
114643         * lib/fts.c (fts_children): Don't let close() clobber errno from
114644         failed fchdir().
114646         * lib/fts.c (fts_stat): When following a symlink-to-directory,
114647         don't necessarily interpret stat-fails+lstat-succeeds as indicating
114648         a dangling symlink.  That can also happen at least for ELOOP.
114649         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
114650         FYI, this bug predates the inclusion of fts.c in coreutils.
114652         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
114653         in their own block, so pre-c99 compilers don't object.
114655         Avoid the double-free (first in fts_read, second in fts_close) that
114656         would occur when an `active' directory is made inaccessible (e.g.,
114657         via chmod a-x) during a traversal.
114658         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114659         before returning.  Reproduce this failure by
114660         mkdir -p a/b; cd a; chmod a-x . b
114661         Reported by Stavros Passas.
114663 2006-01-25  Jim Meyering  <jim@meyering.net>
114665         * lib/fileblocks.c: Remove more useless parentheses.
114666         * lib/readutmp.h: Likewise.
114668 2006-01-25  Bruno Haible  <bruno@clisp.org>
114670         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
114671         warnings.
114672         Reported by Paul Eggert.
114674 2006-01-25  Bruno Haible  <bruno@clisp.org>
114676         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
114677         rid of a trap command. For Solaris sh.
114678         Reported by Mark D. Baushke <mdb@gnu.org>.
114680 2006-01-24  Simon Josefsson  <jas@extundo.com>
114682         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
114683         Bruno.
114685 2006-01-24  Karl Berry  <karl@gnu.org>
114687         * config/srclist.txt (argp-namefrob.h): sync lost.
114689 2006-01-24  Jim Meyering  <jim@meyering.net>
114691         * modules/openat (Files): Add lib/intprops.h.
114692         From Mark D. Baushke.
114694 2006-01-24  Jim Meyering  <jim@meyering.net>
114696         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
114697         Reported by Mark D. Baushke.
114699 2006-01-24  Jim Meyering  <jim@meyering.net>
114701         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
114703 2006-01-24  Bruno Haible  <bruno@clisp.org>
114705         * modules/strnlen (Maintainer): Change from glibc to all.
114707 2006-01-24  Bruno Haible  <bruno@clisp.org>
114709         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
114710         Patch by Paul Eggert.
114712 2006-01-24  Bruno Haible  <bruno@clisp.org>
114714         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
114715         already has it.
114716         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
114717         2005-11-26.
114719         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
114720         'signed char' to avoid problems with the built-in _Bool type.
114721         Reported by Paul Eggert on 2005-11-26.
114723 2006-01-24  Bruno Haible  <bruno@clisp.org>
114725         * gnulib-tool (func_import): Avoid constructing complicated sed
114726         expressions inside backquote.
114727         Report and solution by Mark D. Baushke <mdb@gnu.org>.
114729 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
114731         These changes imported from libc.
114732         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
114733         test and two separate function calls.
114734         * lib/strndup.c (__strndup): Add libc_hidden_def.
114736 2006-01-23  Simon Josefsson  <jas@extundo.com>
114738         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
114739         Remove the test_*_SOURCES variable: automake infers it by default.
114740         * modules/tls-tests: Likewise.
114742 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114744         Work around porting bugs reported by Dieter in
114745         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
114746         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
114747         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
114748         Include "getopt.h" first, to check interface.
114749         (getenv): Declare only if defined HAVE_DECL_GETENV &&
114750         !HAVE_DECL_GETENV.
114751         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
114752         (__strndup): Revert to K&R-style function dfns, the glibc style.
114753         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
114754         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
114755         Include strnlen.h first, to get prototype properly.
114756         (strnlen): Renamed from __strnlen.
114757         Remove weak alias.
114759 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114761         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
114763 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
114765         * config/srclist.txt: Adjust to reflect glibc reorganization.
114766         This affects only comments.
114768 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114770          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
114771          Reported by Bruce Korb <bkorb@gnu.org>.
114773 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
114775         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
114776         to pacify gcc -Wswitch-default.
114778 2006-01-22  Bruno Haible  <bruno@clisp.org>
114780         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
114781         temporary buffer for sprintf, take into account the precision also
114782         for 'd', 'i', 'u', 'o', 'x', 'X'.
114784 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114786         * modules/argp-tests: New module
114787         * tests/test-argp.c: New file
114788         * tests/test-argp-2.sh: New file
114790 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
114792         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
114793         (__argp_base_name): Removed
114794         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
114795         typo.
114796         (__argp_base_name): Provide macro definition or extern declaration
114797         depending on the configuration
114799 2006-01-20  Simon Josefsson  <jas@extundo.com>
114801         * modules/inet_ntop (Depends-on): Depend on sys_socket.
114803 2006-01-20  Simon Josefsson  <jas@extundo.com>
114805         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
114807 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
114809         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
114810         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
114811         Suggested by Bruno Haible.
114813 2006-01-20  Karl Berry  <karl@gnu.org>
114815         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
114816         until changes propagate, I guess.
114818 2006-01-19  Simon Josefsson  <jas@extundo.com>
114820         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
114822 2006-01-19  Simon Josefsson  <jas@extundo.com>
114824         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
114826 2006-01-19  Simon Josefsson  <jas@extundo.com>
114828         * gnulib-tool: Set check_PROGRAMS.
114830         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114831         modules/des-tests, modules/gc-arcfour-tests,
114832         modules/gc-arctwo-tests, modules/gc-des-tests,
114833         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114834         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114835         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114836         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114837         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114838         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
114839         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
114840         test_*_SOURCES.
114842 2006-01-18  Simon Josefsson  <jas@extundo.com>
114844         * modules/socklen (Depends-on): Depend on sys_socket.
114846 2006-01-18  Simon Josefsson  <jas@extundo.com>
114848         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
114849         modules/des-tests, modules/gc-arcfour-tests,
114850         modules/gc-arctwo-tests, modules/gc-des-tests,
114851         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
114852         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
114853         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
114854         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
114855         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
114856         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
114857         $(EXEEXT) to automake TESTS variable, for mingw32.
114859 2006-01-17  Simon Josefsson  <jas@extundo.com>
114861         * modules/socklen (Include): Need sys/socket.h.
114863 2006-01-17  Bruno Haible  <bruno@clisp.org>
114865         * modules/ssize_t (Include): Add <sys/types.h>.
114867 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
114869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
114870         it's not portable and it doesn't work with cross-compiles.
114871         Problem reported by Bruno Haible.  Fix missing-$ typo in
114872         'test "gl_cv_ignore_unused_libraries" ...' that prevented
114873         -zignore from being used with Sun's C compiler.
114875 2006-01-12  Simon Josefsson  <jas@extundo.com>
114877         * lib/base64.c: Fix warning, reported by Bruno Haible
114878         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
114880 2006-01-12  Bruno Haible  <bruno@clisp.org>
114882         * modules/ldd: New file.
114883         * build-aux/ldd.sh.in: New file.
114884         * MODULES.html.sh (Support for building libraries and executables): Add
114885         ldd.
114887 2006-01-12  Bruno Haible  <bruno@clisp.org>
114889         * m4/ldd.m4: New file.
114891 2006-01-12  Bruno Haible  <bruno@clisp.org>
114893         * gnulib-tool (func_import, func_create_testdir): Don't go into an
114894         endless loop while replacing $auxdir with build-aux.
114896 2006-01-11  Simon Josefsson  <jas@extundo.com>
114898         * lib/stdint_.h (SIZE_MAX): Add missing (.
114900 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
114902         Sync from coreutils.
114903         * lib/md5.c: Fix commentary typos.
114904         (alignof, UNALIGNED_P): No need for a GCC-specific version.
114905         * lib/md5.h (__attribute__): Remove; unused.
114906         * lib/sha1.c: Fix commentary to match md5 better.
114907         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
114908         so that we don't need to worry about alignment.  All uses changed.
114909         This merges the 2005-10-28 md5 change into sha1.
114911 2006-01-11  Jim Meyering  <jim@meyering.net>
114913         Sync from coreutils.
114914         * lib/md5.c (OP): Fix spacing.
114916 2006-01-11  Bruno Haible  <bruno@clisp.org>
114918         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114919         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
114920         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
114922 2006-01-11  Bruno Haible  <bruno@clisp.org>
114924         Ensure automatic ordering between gl_LOCK and gl_ARGP.
114925         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
114926         the "early" section as well.
114928 2006-01-11  Bruno Haible  <bruno@clisp.org>
114930         Avoid "ar: no archive members specified" error on MacOS X.
114931         * gnulib-tool (func_modules_add_dummy): New function.
114932         (func_import, func_create_testdir): Invoke it.
114934 2006-01-11  Bruno Haible  <bruno@clisp.org>
114936         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
114937         with $auxdir in AC_CONFIG_FILES statements.
114939 2006-01-11  Bruno Haible  <bruno@clisp.org>
114941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114942         Initialize also noinst_HEADERS to empty.
114944 2006-01-11  Bruno Haible  <bruno@clisp.org>
114946         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
114947         variables.
114948         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
114949         autoreconf.
114951 2006-01-11  Bruno Haible  <bruno@clisp.org>
114953         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
114954         overridable by the user.
114955         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
114957 2006-01-10  Simon Josefsson  <jas@extundo.com>
114959         * modules/sys_socket: New file.
114961 2006-01-10  Simon Josefsson  <jas@extundo.com>
114963         * m4/sys_socket_h.m4: New file.
114965 2006-01-10  Simon Josefsson  <jas@extundo.com>
114967         * lib/socket_.h: New file.
114969 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114971         * modules/readutmp (Maintainer): Add myself.
114973 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114975         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
114976         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
114977         People who are still concerned with buggy memcmp implementations
114978         can invoke gl_FUNC_MEMCMP themselves.
114980 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
114982         * lib/regex_internal.h (BITSET_WORD_BITS):
114983         Work around a bug in 64-bit PGC (before version 6.1-2), where the
114984         preprocessor mishandles large unsigned values as if they were signed.
114985         Problem reported by Claudio Fontana in
114986         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
114988 2006-01-10  Jim Meyering  <jim@meyering.net>
114990         Avoid the double-free (first in fts_read, second in fts_close) that
114991         would occur when an `active' directory is made inaccessible (e.g.,
114992         via chmod a-x) during a traversal.
114993         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
114994         before returning.  Reproduce this failure by
114995         mkdir -p a/b; cd a; chmod a-x . b
114996         Reported by Stavros Passas.
114998         Sync from coreutils.
114999         * lib/sha1.c: Tweak grammar in a comment.
115001 2006-01-10  Jim Meyering  <jim@meyering.net>
115003         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
115004         Patch by Joerg Sonnenberger.
115006 2006-01-10  Bruno Haible  <bruno@clisp.org>
115008         * modules/readutmp: Depend on module free.
115009         * modules/strtok_r: Depend on module restrict.
115011 2006-01-10  Bruno Haible  <bruno@clisp.org>
115013         * modules/gettext (configure.ac): Add an invocation of
115014         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
115016 2006-01-10  Bruno Haible  <bruno@clisp.org>
115018         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
115019         Reported by Werner Lemberg <wl@gnu.org>.
115021 2006-01-10  Bruno Haible  <bruno@clisp.org>
115023         * lib/localcharset.c: Update from GNU gettext.
115025 2006-01-10  Bruno Haible  <bruno@clisp.org>
115027         * lib/argp.h (__const): Remove macro. Use const instead.
115028         * lib/argp-fmtstream.h (__const): Likewise.
115029         * lib/glob_.h (__const): Remove macro.
115030         * lib/glob-libc.h: Use const instead of __const.
115032 2006-01-10  Bruno Haible  <bruno@clisp.org>
115034         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
115035         variable.
115036         Needed to avoid an automake error regarding the 'gettext' module.
115038 2006-01-09  Simon Josefsson  <jas@extundo.com>
115040         * modules/inet_ntop (Depends-on): Add restrict.
115042 2006-01-09  Simon Josefsson  <jas@extundo.com>
115044         * modules/gc-rijndael-tests (License): Put under LGPL.
115046         * modules/gc-des-tests (License): Likewise.
115048         * modules/gc-arcfour-tests (License): Likewise.
115050         * modules/gc-arctwo-tests (License): Likewise.
115052         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
115054         * modules/gc-hmac-sha1-tests (Files): Likewise.
115056         * modules/gc-hmac-md5-tests (License): Likewise.
115058         * modules/gc-sha1-tests (License): Likewise.
115060         * modules/gc-md5-tests (License): Likewise.
115062         * modules/gc-md4-tests (License): Likewise.
115064         * modules/gc-md2-tests (License): Likewise.
115066         * modules/gc-tests (License): Likewise.
115068         * modules/des-tests (License): Likewise.
115070         * modules/md4-tests (License): Likewise.
115072         * modules/md2-tests (License): Likewise.
115074 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115076         Sync from coreutils:
115078         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
115079         * modules/lib-ignore: New file.
115080         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
115081         chdir-safer.m4, lchmod.m4.
115082         * modules/openat: Add mkdirat.c, openat-priv.h.
115084 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115086         Sync from coreutils.
115087         * m4/lib-ignore.m4: New file.
115088         * m4/lchmod.m4: New file.
115090 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115092         Sync from coreutils.
115093         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
115094         for write access: POSIX says that must fail.
115095         * lib/fts.c (diropen): Likewise.
115096         * lib/save-cwd.c (save_cwd): Likewise.
115097         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
115098         well, for minor improvements on hosts that lack O_DIRECTORY.
115099         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
115100         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
115101         Fall back on chown if open failed with EACCES.
115103         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
115104         Report an error at compile-time if only a 1-second nominal clock
115105         resolution is found.
115107         * lib/lchmod.h: New file.
115108         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
115109         (make_dir_parents): Use lchown rather than chown, and
115110         lchmod rather than chmod.
115112         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
115113         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
115114         "proc" reported by n0dalus.
115116         * lib/mountlist.c: Include <limits.h>.
115117         (dev_from_mount_options)
115118         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
115119         New function.  It no longer assumes "dev=" has the System V meaning
115120         on Linux (since it doesn't).  It also parses "dev=" more carefully.
115121         (read_file_system_list)
115122         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
115123         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
115124         dev= in that case.
115126         * lib/posixtm.h (PDS_PRE_2000): New macro.
115127         * lib/posixtm.c (year): Arg is now syntax_bits rather than
115128         allow_century.  All usages changed.  Reject dates outside the range
115129         1969-1999 if PDS_PRE_2000 is used.
115131 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
115133         Sync from coreutils.
115134         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
115135         (Time of day items): Mention the possibility of leap seconds.
115136         Problem reported by Dr. David Alan Gilbert.
115138 2006-01-09  Jim Meyering  <jim@meyering.net>
115140         Sync from coreutils.
115142         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
115144         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
115146         * lib/modechange.c (mode_compile): Reject an invalid mode string
115147         that starts with an octal digit.  From Andreas Gruenbacher.
115149         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
115150         and dup to open_safer and dup_safer, respectively.
115151         (openat_permissive): Fix typo in comment.
115153         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
115154         "gettext.h"; either no longer needed or are guaranteed by openat.h.
115155         (_): Remove; no longer needed.
115156         (openat): Renamed from rpl_openat; no need for rpl_openat
115157         since openat.h renames openat for us.
115158         Replace most of the body with a call to openat_permissive,
115159         to avoid duplicate code.
115160         Port to (probably hypothetical) environments were mode_t is
115161         wider than int.
115162         (openat_permissive): Require mode arg, so that we can check
115163         types better.  Put it just after flags.  Change cwd failure
115164         indicator from pointer-to-bool to pointer-to-errno-value.
115165         All callers changed.
115166         Invoke openat_save_fail and/or openat_restore_fail if
115167         cwd_errno is null, so that openat can call us.
115168         (openat_permissive, fdopendir, fstatat, unlinkat):
115169         Simplify errno handling to avoid some duplicate code,
115170         as it's OK to set errno on success.
115171         * lib/openat.h: Revamp code so that function macros depend on
115172         __OPENAT_PREFIX only, not also on AT_FDCWD.
115173         (openat_ro): Remove.  Caller changed to use openat_permissive.
115174         (openat_permissive): Now a macro, if not a function.
115175         (openat_restore_fail, openat_save_fail): Now always functions,
115176         since mkdirat needs them even if __OPENAT_PREFIX is defined.
115178         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
115179         and openat.c.
115180         * lib/mkdirat.c: Include openat-priv.h.
115181         Remove definitions of macros defined therein.
115182         * lib/openat.c: Likewise.
115184         * lib/mkdirat.c (mkdirat): New file and function.
115185         * lib/openat.h (mkdirat): Declare.
115187         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
115189         * lib/openat.h (openat_permissive): Declare.
115190         (openat_ro): Define.
115192         * lib/openat.c (EXPECTED_ERRNO): New macro.
115193         (openat_permissive): New function -- used in remove.c rewrite.
115194         (all functions): Set errno just before returning, only if there
115195         was an actual failure.
115196         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
115198         Emulate openat-family functions using Linux's procfs, if possible.
115199         Idea and some code based on Ulrich Drepper's glibc changes.
115201         * lib/openat.c: (BUILD_PROC_NAME): New macro.
115202         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
115203         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
115204         before falling back on save_cwd and restore_cwd.
115205         (fdopendir, fstatat, unlinkat): Likewise.
115207         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
115208         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
115210         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
115211         as second argument to va_arg.  Otherwise, some versions of gcc
115212         warn that `if this code is reached, the program will abort'.
115214 2006-01-09  Jim Meyering  <jim@meyering.net>
115216         Sync from coreutils.
115217         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
115218         Require openat-priv.h.
115220 2006-01-09  Bruno Haible  <bruno@clisp.org>
115222         * modules/strnlen (Include): Use strnlen.h.
115224 2006-01-09  Bruno Haible  <bruno@clisp.org>
115226         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
115228 2006-01-09  Bruno Haible  <bruno@clisp.org>
115230         * lib/sysexit_.h (EX_OK): New macro.
115231         Suggested by Martin Lambers <marlam@marlam.de>.
115233 2006-01-09  Bruno Haible  <bruno@clisp.org>
115235         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
115236         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
115238 2006-01-09  Bruno Haible  <bruno@clisp.org>
115240         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
115241         numbers.
115243 2006-01-09  Bruno Haible  <bruno@clisp.org>
115245         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
115246         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
115247         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
115248         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
115250 2006-01-09  Bruno Haible  <bruno@clisp.org>
115252         * build-aux/javacomp.sh.in: New file, moved from lib/.
115253         * modules/javacomp-script (Files): Update.
115254         (configure.ac): Add AC_CONFIG_FILES invocation.
115255         (EXTRA_DIST): Remove variable.
115257         * build-aux/javaexec.sh.in: New file, moved from lib/.
115258         * modules/javaexec (Files): Update.
115259         (configure.ac): Add AC_CONFIG_FILES invocation.
115260         (EXTRA_DIST): Remove javaexec.sh.in.
115262         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
115263         * modules/csharpcomp-script (Files): Update.
115264         (configure.ac): Add AC_CONFIG_FILES invocation.
115265         (EXTRA_DIST): Remove variable.
115267         * build-aux/csharpexec.sh.in: New file, moved from lib/.
115268         * modules/csharpexec (Files): Update.
115269         (configure.ac): Add AC_CONFIG_FILES invocation.
115270         (EXTRA_DIST): Remove csharpexec.sh.in.
115272 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115274         Sync from coreutils.
115276         Add POSIX ACL support
115277         * lib/acl.h (copy_acl, set_acl): Add declarations.
115278         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
115279         systems other than Linux.
115280         (chmod_or_fchmod): New function: use fchmod when possible,
115281         and chmod otherwise.
115282         (file_has_acl): Add a POSIX ACL implementation, with a
115283         Linux-specific subcase.
115284         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
115285         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
115286         acls are unsupported.
115287         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
115288         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
115289         are unsupported.
115291 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
115293         Sync from coreutils.
115294         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
115296 2006-01-07  Bruno Haible  <bruno@clisp.org>
115298         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
115299         gl_EARLY.
115301 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115303         * lib/strftime.c (tzname): Don't declare if it is already #defined.
115304         Problem reported for Mingw by Mark Junker.
115306 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
115308         * README: Gnulib normally doesn't generate a tarball.
115310 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
115312         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
115313         long int, not int, for nanosecond counts, so that people who are
115314         used to POSIX struct timespec won't be surprised.  Reported by Jim
115315         Meyering.
115317 2005-12-28  Bruno Haible  <bruno@clisp.org>
115319         * build-aux/config.rpath: Update from GNU gettext.
115321 2005-12-16  Jim Meyering  <jim@meyering.net>
115323         * modules/fprintftime: New module.
115324         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
115326 2005-12-16  Jim Meyering  <jim@meyering.net>
115328         * m4/fprintftime.m4: New file.
115330 2005-12-16  Jim Meyering  <jim@meyering.net>
115332         * lib/fprintftime.c, lib/fprintftime.h: New files.
115334 2005-12-15  Simon Josefsson  <jas@extundo.com>
115336         * modules/socklen (configure.ac): Fix M4 macro name, to align with
115337         new m4/socklen.m4.
115339 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115341         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
115342         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
115344 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
115346         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
115347         * lib/argp-help.c (fill_in_uparams): Check if the constructed
115348         struct uparams is valid. Fall back to the default values if it is
115349         not.
115351 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115353         * modules/argp (Files): Add argp-pin.c
115354         (Depends-on): dirname
115355         (lib_SOURCES): Add argp-pin.c
115357 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115359         * m4/argp.m4:  Check if program_invocation_name and
115360         program_invocation_short_name are declared and define appropriate
115361         macros if they are not.
115363 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
115365         * lib/argp-help.c (__argp_base_name): New function
115366         (__argp_short_program_name): Rewrite using __argp_base_name
115367         * lib/argp-namefrob.h: Define program_invocation_name and
115368         program_invocation_short_name if requested
115369         (__argp_base_name): Add prototype
115370         * lib/argp-parse.c (argp_def): Use gettext wrappers
115371         (argp_default_parser): Use __argp_base_name
115372         * lib/argp-pin.c: New file. Defines program_invocation_name and
115373         program_invocation_short_name on systems that lack them.
115375 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115377         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
115378         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115379         porting problem reported by Georg Schwarz in
115380         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115382 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
115384         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
115385         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
115386         porting problem reported by Georg Schwarz in
115387         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
115389 2005-12-05  Bruno Haible  <bruno@clisp.org>
115391         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
115392         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
115393         Reported by Mark Junker <mjscod@gmx.de>.
115395 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
115397         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
115398         Use implementation from Albert Chin, with some
115399         comments/corrections by Stepan Kasal and myself.
115401 2005-12-02  Bruno Haible  <bruno@clisp.org>
115403         * gnulib-tool (func_import): Accept GPLed build tool modules when
115404         --lgpl is given.
115405         * modules/csharpcomp-script: New file.
115406         * modules/csharpcomp: Depend on it.
115407         * modules/javacomp-script: New file.
115408         * modules/javacomp: Depend on it.
115409         Suggested by Simon Josefsson.
115411 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
115413         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
115414         statement, to work around an HP-UX 10.20 compiler bug reported by
115415         Peter O'Gorman.
115417 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115419         * modules/savedir (Depends-on): Add openat.
115421 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
115423         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
115424         (uintmax_t) [defined uintmax_t]: Do not declare.
115425         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
115426         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
115427         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
115428         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
115429         sake of portability to weird hosts that C allows (though we don't
115430         know of any practical examples).
115432         * lib/savedir.h (fdsavedir): New decl.
115433         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
115434         contains most of the former guts of savedir.
115435         (savedir): Use savedirstream.
115436         Include "openat.h".
115438 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
115440         * modules/obstack (Files): Add m4/ulonglong.m4.
115441         Problem reported by Davide Angelocola.
115443 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
115445         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
115446         coreutils no longer futzes with rounding modes.
115448 2005-11-14  Jim Meyering  <jim@meyering.net>
115450         * lib/mkstemp-safer.c: Include <config.h>, required for possible
115451         replacement of mkstemp.
115453 2005-11-10  Simon Josefsson  <jas@extundo.com>
115455         * lib/readline.c: Remove EOL.
115457 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115459         * modules/gethrxtime (Depends-on): Add gettime.
115461 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115463         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
115464         or gettimeofday; no longer needed.
115466 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
115468         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
115469         time business.
115470         (gethrxtime) [! (HAVE_NANOUPTIME
115471         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
115472         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
115473         our own approximation.
115475 2005-11-08  Eric Blake  <ebb9@byu.net>
115477         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115479 2005-11-08  Eric Blake  <ebb9@byu.net>
115481         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
115483 2005-11-04  Bruno Haible  <bruno@clisp.org>
115485         * gnulib-tool: Implement --update mode.
115487 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115489         Fix porting problem reported by Theodoros V. Kalamatianos.
115490         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
115491         Don't assume that futimes failing means we must fail.
115493 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
115495         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
115496         variables to suggest the intended function of the PATH_MAX check.
115498 2005-10-30  Kean Johnston  <jkj@sco.com>
115500         Trivial changes to support SCO systems.
115501         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
115502         as PATH_MAX.
115503         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
115504         where __ptr is null when no I/O is pending.
115506 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
115508         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
115509         leave errno alone.  Problem reported by Dmitry V. Levin.
115511 2005-10-28  Simon Josefsson  <jas@extundo.com>
115513         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
115514         Test more.
115516         * tests/test-gc-md2.c, tests/test-md2.c: New files.
115518         * modules/md2, modules/md2-tests: New files.
115520 2005-10-28  Simon Josefsson  <jas@extundo.com>
115522         * m4/inet_ntop.m4: More tests.
115524         * m4/gc-md2.m4, md2.m4: New file.
115526 2005-10-28  Simon Josefsson  <jas@extundo.com>
115528         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
115529         "restrict" keywords, as per POSIX.  Protect the function
115530         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
115531         Don't use K&R prototypes.  Check the sprintf return values.
115532         Re-define EAFNOSUPPORT if not present.  Indent.
115534         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
115535         suggested by Bruno Haible <bruno@clisp.org>.
115537         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
115539         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
115541         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
115542         libgcrypt).
115544         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
115546         * lib/md2.h, lib/md2.c: New files.
115548 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
115550         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
115551         errno alone.  Problem reported by Frederic Jolliton.
115553 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
115555         * modules/verify (License): Change from GPL to LGPL.  This is a
115556         tiny module and there are apparently near-equivalents that are
115557         under the BSD license.
115559 2005-10-24  Simon Josefsson  <jas@extundo.com>
115561         * modules/sha1: Relicense to LGPL.
115563 2005-10-24  Simon Josefsson  <jas@extundo.com>
115565         * lib/md4.h: Shrink buffer size, now that we changed the type.
115567 2005-10-23  Simon Josefsson  <jas@extundo.com>
115569         * gnulib-tool (func_import): Fix --tests-base.
115571 2005-10-22  Simon Josefsson  <jas@extundo.com>
115573         * modules/arcfour (Depends-on): Need stdint.
115575 2005-10-22  Simon Josefsson  <jas@extundo.com>
115577         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
115578         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
115580 2005-10-22  Simon Josefsson  <jas@extundo.com>
115582         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
115583         suggested by Bruno Haible <bruno@clisp.org>.
115585 2005-10-22  Simon Josefsson  <jas@extundo.com>
115587         * lib/crc.h: Include stddef.h, for size_t.
115589 2005-10-22  Simon Josefsson  <jas@extundo.com>
115591         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
115592         arcfour_context struct (simplify test vector testing in GNU
115593         Shishi).
115595 2005-10-21  Simon Josefsson  <jas@extundo.com>
115597         * modules/des, modules/des-tests: New files.
115599         * modules/gc-des, modules/gc-des-tests: New files.
115601         * tests/test-des.c, tests/test-gc-des.c: New file.
115603 2005-10-21  Simon Josefsson  <jas@extundo.com>
115605         * modules/arctwo, modules/arctwo-tests: New files.
115607         * tests/test-arctwo.c: New file.
115609         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
115611         * tests/test-gc-arctwo.c: New file.
115613 2005-10-21  Simon Josefsson  <jas@extundo.com>
115615         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
115616         Bruno Haible <bruno@clisp.org>.
115618         * m4/gc-des.m4: New file.
115620 2005-10-21  Simon Josefsson  <jas@extundo.com>
115622         * m4/arctwo.m4: New file.
115624         * m4/gc-arctwo.m4: New file.
115626 2005-10-21  Simon Josefsson  <jas@extundo.com>
115628         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
115629         block.
115631 2005-10-21  Simon Josefsson  <jas@extundo.com>
115633         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
115634         <bruno@clisp.org>.
115636         * lib/hmac-sha1.c (hmac_sha1): Likewise.
115638         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
115639         Bruno Haible <bruno@clisp.org>.
115641         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
115642         <bruno@clisp.org>.
115644 2005-10-21  Simon Josefsson  <jas@extundo.com>
115646         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
115648 2005-10-21  Simon Josefsson  <jas@extundo.com>
115650         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
115652 2005-10-21  Simon Josefsson  <jas@extundo.com>
115654         * lib/des.h, lib/des.c: New files.
115656         * lib/gc-gnulib.c: Support DES.c
115658 2005-10-21  Simon Josefsson  <jas@extundo.com>
115660         * lib/arctwo.h, lib/arctwo.c: New files.
115662         * lib/gc-gnulib.c: Support ARCTWO.
115664 2005-10-21  Simon Josefsson  <jas@extundo.com>
115666         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
115667         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115669 2005-10-21  Simon Josefsson  <jas@extundo.com>
115671         * gnulib-tool (func_import, func_create_testdir): Define automake
115672         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
115673         Makefile.am snippet),
115674         suggested by Bruno Haible <bruno@clisp.org>.
115676         * modules/gc (Makefile.am): Use it.
115678 2005-10-21  Bruno Haible  <bruno@clisp.org>
115680         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
115681         patch.
115683 2005-10-19  Simon Josefsson  <jas@extundo.com>
115685         * tests/test-gc-rijndael.c: New file.
115687         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
115689 2005-10-19  Simon Josefsson  <jas@extundo.com>
115691         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
115692         interface too.
115694 2005-10-19  Simon Josefsson  <jas@extundo.com>
115696         * tests/test-gc-arcfour.c: New file.
115698         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
115700 2005-10-19  Simon Josefsson  <jas@extundo.com>
115702         * modules/gc-md4, modules/gc-md4-tests: New file.
115704         * tests/test-gc-md4.c: New file.
115706 2005-10-19  Simon Josefsson  <jas@extundo.com>
115708         * m4/gc-md4.m4: New file.
115710 2005-10-19  Simon Josefsson  <jas@extundo.com>
115712         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
115713         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
115714         <kasal@ucw.cz>.
115716 2005-10-19  Simon Josefsson  <jas@extundo.com>
115718         * m4/gc-arcfour.m4: New file.
115720         * m4/gc-rijndael.m4: New file.
115722 2005-10-19  Simon Josefsson  <jas@extundo.com>
115724         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
115726 2005-10-19  Simon Josefsson  <jas@extundo.com>
115728         * lib/gc-gnulib.c: Support ARCFOUR.
115730 2005-10-19  Simon Josefsson  <jas@extundo.com>
115732         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
115733         support.
115735         * lib/gc.h: Add ECB enum type.
115737         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
115739 2005-10-18  Simon Josefsson  <jas@extundo.com>
115741         * tests/test-md5.c: New file.
115743         * modules/md5-tests: New file.
115745 2005-10-18  Simon Josefsson  <jas@extundo.com>
115747         * tests/test-md4.c: New file.
115749         * modules/md4, modules/md4-tests: New files.
115751 2005-10-18  Simon Josefsson  <jas@extundo.com>
115753         * m4/md4.m4: New file.
115755 2005-10-18  Simon Josefsson  <jas@extundo.com>
115757         * lib/md4.h, lib/md4.c: New files, based on md5.?.
115759 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
115761         * gnulib-tool (func_create_testdir): Omit the second check whether
115762         BUILT_SOURCES in nonempty.
115764 2005-10-17  Simon Josefsson  <jas@extundo.com>
115766         * tests/test-rijndael.c: New file.
115768 2005-10-17  Simon Josefsson  <jas@extundo.com>
115770         * modules/sha1: Depend on stdint instead of md5.
115772         * modules/md5: Depend on stdint, remove uint32_t.
115774 2005-10-17  Simon Josefsson  <jas@extundo.com>
115776         * modules/gc-sha1-tests: New file.
115778         * tests/test-gc-sha1.c: New file.
115780 2005-10-17  Simon Josefsson  <jas@extundo.com>
115782         * m4/md5.m4: Remove call to uint32_t.m4.
115784 2005-10-17  Simon Josefsson  <jas@extundo.com>
115786         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
115788         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
115789         md5.h.
115791         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
115793         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
115795 2005-10-17  Simon Josefsson  <jas@extundo.com>
115797         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
115799 2005-10-17  Simon Josefsson  <jas@extundo.com>
115801         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
115803 2005-10-17  Simon Josefsson  <jas@extundo.com>
115805         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
115807         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
115809 2005-10-17  Bruno Haible  <bruno@clisp.org>
115811         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
115812         that it can also be used in a test.
115814 2005-10-16  Bruno Haible  <bruno@clisp.org>
115816         * gnulib-tool (func_emit_tests_Makefile_am): Also define
115817         TESTS_ENVIRONMENT, so that individual tests can augment it.
115819         * gnulib-tool (func_create_testdir): Use an intermediate target for
115820         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
115821         macros, like $(ALLOCA_H), which cannot be passed through the command
115822         line.
115824 2005-10-15  Simon Josefsson  <jas@extundo.com>
115826         * modules/rijndael-tests: New file.
115828         * modules/rijndael: New file.
115830 2005-10-15  Simon Josefsson  <jas@extundo.com>
115832         * m4/rijndael.m4: New file.
115834 2005-10-15  Simon Josefsson  <jas@extundo.com>
115836         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
115838         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
115840 2005-10-14  Simon Josefsson  <jas@extundo.com>
115842         * tests/test-arcfour.c: New file.
115844         * modules/arcfour, modules/arcfour-tests: New files.
115846 2005-10-14  Simon Josefsson  <jas@extundo.com>
115848         * m4/arcfour.m4: New file.
115850 2005-10-14  Simon Josefsson  <jas@extundo.com>
115852         * lib/arcfour.h, lib/arcfour.c: New files.
115854 2005-10-14  Roland McGrath  <roland@redhat.com>
115856         Import from libc.  [BZ #1331]
115857         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
115858         macro argument.
115859         Reported by Matej Vela <vela@debian.org>.
115861 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115863         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
115864         include <wchar.h>; no longer needed.
115866 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
115868         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
115870 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
115871         and  Ulrich Drepper  <drepper@redhat.com>
115873         Import from libc.
115874         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
115875         instead of inline stream orientation test and two separate
115876         function calls.  Pay no attention to USE_IN_LIBIO.
115878 2005-10-13  Simon Josefsson  <jas@extundo.com>
115880         * modules/gc-hmac-md5-tests: New file.
115882         * tests/test-gc-hmac-sha1.c: New file.
115884         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
115886         * modules/gc-hmac-md5-tests: New file.
115888         * tests/test-gc-md5.c: New file.
115890         * modules/gc-md5-tests: New file.
115892 2005-10-13  Simon Josefsson  <jas@extundo.com>
115894         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
115895         Move memory allocation outside of loop.
115897 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
115899         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
115900         intermediate directory is in a read-only file system.  Problem
115901         reported by Eric Blake.
115903 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
115905         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
115907 2005-10-12  Simon Josefsson  <jas@extundo.com>
115909         * tests/test-hmac-sha1.c: New file.
115911         * modules/hmac-sha1-tests: New file.
115913         * modules/hmac-sha1: New file.
115915 2005-10-12  Simon Josefsson  <jas@extundo.com>
115917         * modules/gc-sha1: New file.
115919 2005-10-12  Simon Josefsson  <jas@extundo.com>
115921         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
115923         * tests/test-gc-pbkdf2-sha1.c: New file.
115925 2005-10-12  Simon Josefsson  <jas@extundo.com>
115927         * modules/gc-md5, modules/gc-hmac-md5: New files.
115929         * modules/gc (Files): Remove md5, memxor and hmac files.
115931 2005-10-12  Simon Josefsson  <jas@extundo.com>
115933         * m4/gc-pbkdf2-sha1.m4: New file.
115935         * m4/gc-hmac-sha1.m4: New file.
115937         * m4/gc-sha1: New file.
115939         * m4/hmac-sha1.m4: New file.
115941 2005-10-12  Simon Josefsson  <jas@extundo.com>
115943         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
115945         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
115947 2005-10-12  Simon Josefsson  <jas@extundo.com>
115949         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
115950         suggested by Bruno Haible <bruno@clisp.org>.
115952 2005-10-12  Simon Josefsson  <jas@extundo.com>
115954         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
115956 2005-10-12  Simon Josefsson  <jas@extundo.com>
115958         * lib/gc-pbkdf2-sha1.c: New file.
115960         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
115962 2005-10-12  Simon Josefsson  <jas@extundo.com>
115964         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
115966         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
115968 2005-10-12  Simon Josefsson  <jas@extundo.com>
115970         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
115971         GC_USE_HMAC_MD5, respectively.
115973         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
115974         (gc_md5): Fix typo.
115976         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
115978         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
115980         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
115982 2005-10-12  Bruno Haible  <bruno@clisp.org>
115984         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
115985         Reported by Stepan Kasal <kasal@ucw.cz>.
115987 2005-10-11  Simon Josefsson  <jas@extundo.com>
115989         * tests/test-crc.c: New file.
115991         * modules/crc, modules/crc-tests: New files.
115993 2005-10-11  Simon Josefsson  <jas@extundo.com>
115995         * m4/crc.m4: New file.
115997 2005-10-11  Simon Josefsson  <jas@extundo.com>
115999         * lib/gc.h: Add gc_hash and gc_hash_buffer.
116001         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
116003         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
116005 2005-10-11  Simon Josefsson  <jas@extundo.com>
116007         * lib/crc.h, lib/crc.c: New files.
116009         * lib/gc.h (gc_hash_buffer): Add doc.
116011 2005-10-11  Bruno Haible  <bruno@clisp.org>
116013         * modules/c-strcasestr: New file.
116014         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
116016 2005-10-11  Bruno Haible  <bruno@clisp.org>
116018         * modules/c-strcase: New file.
116019         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
116021 2005-10-11  Bruno Haible  <bruno@clisp.org>
116023         * lib/strcasecmp.c: Include limits.h.
116024         (strcasecmp): Avoid integer overflow on exotic platforms.
116025         * lib/strncasecmp.c: Include limits.h.
116026         (strncasecmp): Avoid integer overflow on exotic platforms.
116027         Reported by Paul Eggert.
116029 2005-10-11  Bruno Haible  <bruno@clisp.org>
116031         * lib/c-strcasestr.h: New file, from GNU gettext.
116032         * lib/c-strcasestr.c: New file, from GNU gettext.
116034 2005-10-11  Bruno Haible  <bruno@clisp.org>
116036         * lib/c-strcase.h: New file, from GNU gettext.
116037         * lib/c-strcasecmp.c: New file, from GNU gettext.
116038         * lib/c-strncasecmp.c: New file, from GNU gettext.
116040 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
116042         * modules/mempcpy (License): GPL -> LGPL.
116043         * modules/strchrnul (License): Likewise.
116044         * modules/sysexits (License): Likewise.
116046 2005-10-08  Simon Josefsson  <jas@extundo.com>
116048         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
116050 2005-10-07  Simon Josefsson  <jas@extundo.com>
116052         * m4/memxor.m4: Remove gl_C_RESTRICT call.
116054 2005-10-06  Simon Josefsson  <jas@extundo.com>
116056         * tests/test-hmac-md5.c: New file.
116058         * modules/hmac-md5-tests: New file.
116060         * modules/hmac-md5: New file.
116062 2005-10-06  Simon Josefsson  <jas@extundo.com>
116064         * m4/hmac-md5.m4: New file.
116066         * m4/memxor.m4: Require gl_C_RESTRICT.
116068 2005-10-06  Simon Josefsson  <jas@extundo.com>
116070         * lib/memxor.c (memxor): Avoid casts and warnings.
116072 2005-10-06  Simon Josefsson  <jas@extundo.com>
116074         * lib/hmac-md5.c: New file.
116076         * lib/hmac.h: New file.
116078 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
116080         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
116081         promotes to int, not unsigned int, to catch the AIX 5.3
116082         compiler bug.
116084 2005-10-05  Simon Josefsson  <jas@extundo.com>
116086         * modules/memxor: New file.
116088         * modules/iconv (Files): Move config.rpath to havelib, it is used
116089         there.
116091         * modules/havelib (Files): Add config.rpath.
116093 2005-10-05  Simon Josefsson  <jas@extundo.com>
116095         * m4/memxor.m4: New file.
116097 2005-10-05  Simon Josefsson  <jas@extundo.com>
116099         * lib/memxor.c (memxor): Fix compiler error.
116101         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
116102         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
116104         * lib/memxor.h, lib/memxor.c: New files.
116106         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
116107         we assume all systems have it, suggested by Jim Meyering
116108         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
116109         any systems lack sys/socket.h; mingw32 is known to lack it, but we
116110         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
116111         same reasons.
116113 2005-10-05  Simon Josefsson  <jas@extundo.com>
116115         * config/srclist.txt: Add glibc bug 1423 for md5.h.
116117 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
116119         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
116120         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
116121         needed, since the source code now assumes these .h files.
116123 2005-10-05  Derek Price  <derek@ximbiot.com>
116125         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
116127 2005-10-05  Bruno Haible  <bruno@clisp.org>
116129         * modules/stdint (License): Change to LGPL.
116131 2005-10-04  Simon Josefsson  <jas@extundo.com>
116133         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
116134         D. Baushke" <mdb@gnu.org>.
116136 2005-10-04  Bruno Haible  <bruno@clisp.org>
116138         * lib/verify.h (verify_true): Provide alternative definition for C++.
116140 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
116142         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
116143         (SSIZE_MAX): New macro, if not already defined.
116144         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
116145         than 2 GiB.
116147 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116149         Sync from coreutils.
116150         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
116151         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
116152         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
116153         ULLONG_MAX doesn't work with 2.7.2.1.
116155 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116157         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
116158         From Ben Pfaff.
116160         * modules/exclude (Depends-on): Depend on verify.
116161         * modules/strtoimax (Depends-on): Likewise.
116162         * modules/utimecmp (Depends-on): Likewise.
116164 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
116166         * lib/exclude.c: Include verify.h.
116167         (verify): Remove.  All callers changed to use verify.h's version.
116168         * lib/strtoimax.c: Likewise.
116169         * lib/utimecmp.c: Likewis.e
116171         Sync from coreutils.
116172         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
116173         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
116174         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
116175         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
116176         bother returning ENOSYS if settimeofday or stime fails; just let
116177         them return whatever errno they want to return.
116178         * lib/utimens.c: Include unistd.h, for dup2.
116179         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
116180         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
116182 2005-10-02  Jim Meyering  <jim@meyering.net>
116184         Sync from coreutils.
116185         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
116186         from glibc-2.2.5 that fails for read-only files.
116188 2005-10-02  Jim Meyering  <jim@meyering.net>
116190         Sync from coreutils.
116191         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
116192         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
116193         `#if HAVE_CONFIG_H'.
116194         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
116195         Remove AT_FDCWD test.
116196         Do not consume the fd unless successful.
116197         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
116198         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
116199         block, so that we don't even try to compile it if settimeofday is
116200         available.  This works around a compilation failure on OSF1 V5.1,
116201         due to stime requiring a `long int*' while tv_sec is `int'.
116203 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
116205         Sync from coreutils.
116206         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
116207         against `yes', rather than just testing for nonempty.
116209 2005-10-01  Simon Josefsson  <jas@extundo.com>
116211         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
116212         and Darwin.
116214         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
116215         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
116216         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
116217         freeaddrinfo and gai_strerror are declared by the POSIX headers.
116218         Check if struct addrinfo is declared.
116220 2005-10-01  Simon Josefsson  <jas@extundo.com>
116222         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
116223         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
116224         AI_* and EAI_* definitions.  Protect function declarations.
116226 2005-10-01  Jim Meyering  <jim@meyering.net>
116228         Sync from coreutils.
116230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
116231         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
116232         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
116233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116234         in the inet and nsl libraries.  Required on Solaris 5.7.
116236 2005-10-01  Jim Meyering  <jim@meyering.net>
116238         Sync from coreutils.
116239         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
116240         in the inet and nsl libraries.  Required on Solaris 5.7.
116242 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
116244         * lib/getdelim.c (getdelim): Remove unused variables.
116246 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
116248         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
116249         so that the code works even with ancient cpp.  Portability problem
116250         with GCC 2.7.2.1 reported by Thomas M.Ott.
116252 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
116254         * modules/regex (Depends-on): Add strcase.
116256         * modules/gethostname (Licence): Change from GPL to LGPL, since
116257         gethostname.c is a trivial implementation of a standard library
116258         function.
116259         * modules/poll (License): Change from GPL to LGPL, since it's
116260         derived from LGPL code.
116262 2005-09-27  Jim Meyering  <jim@meyering.net>
116264         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
116265         HAVE_CONFIG_H.
116267         * lib/intprops.h (signed_type_or_expr__): Define.
116268         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
116269         for unsigned types.
116271 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
116273         * lib/verify.h (verify_expr): Remove, replacing with:
116274         (verify_true): New macro that returns true instead of void.
116275         (verify_type__): Remove.
116276         (verify): Use verify_true rather than verify_type__.
116278 2005-09-26  Bruno Haible  <bruno@clisp.org>
116280         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
116281         is necessary.
116282         (lib_SOURCES): Remove mbchar.c.
116283         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
116284         (Files): Add m4/mbrtowc.m4.
116285         * modules/mbiter: Likewise.
116286         * modules/mbuiter: Likewise.
116288 2005-09-26  Bruno Haible  <bruno@clisp.org>
116290         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
116291         compile mbchar.c if they are not both present.
116292         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
116293         * m4/mbiter.m4 (gl_MBITER): Likewise.
116294         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
116295         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
116296         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
116298 2005-09-25  Jim Meyering  <jim@meyering.net>
116300         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
116301         also uses socklen_t.
116303 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
116305         * lib/utimens.c (ENOSYS): Define if not already defined.
116306         (futimens): Support having a null PATH if the file descriptor
116307         is nonnegative.
116309         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
116310         Remove.
116311         (__attribute): Define to empty unless GCC 3.1 or later.
116312         This works around a core dump on OpenBSD 3.4, which has GCC
116313         2.95.3, which dumps core when given __attribute__(()).  It also
116314         simplifies other tests, since we really don't want to bother with
116315         worrying about which ancient version of GCC supported what.
116316         Original problem reported by Yoann Vandoorselaere, with part of
116317         the fix suggested by Derek Price.
116319 2005-09-24  Jim Meyering  <jim@meyering.net>
116321         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
116322         so we can once again use a positive bitfield width of 1 -- now we
116323         don't have to explain why we were using a bitfield width of 2.
116325 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116327         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
116328         and similarly for the other external symbols.  Problem reported
116329         by James Gallager.
116331         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
116332         bug reported by Jim Meyering.
116334         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
116335         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
116336         not needed, since socklen is a prerequisite module.
116338 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
116340         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
116341         Problem reported by Eric Blake.
116342         (getaddrinfo): Initialize se so that it's not garbage.
116343         Redo internal storage allocation so that it doesn't make unportable
116344         assumptions about alignment.
116345         Fix a memory leak.
116347         * lib/utimens.c (futimens): Use futimesat if available.
116348         Prefer it to futimes since it doesn't have the futimes bug.
116350         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
116351         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
116352         Instead, declare a function that returns a pointer to an array,
116353         and use verify_type__ to declare the size of the array.
116354         Problem and germ of a solution reported by Bruno Haible.
116355         (verify_type__): Use 2, not 1, for bitfield size, to avoid
116356         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
116358 2005-09-23  Jim Meyering  <jim@meyering.net>
116360         Sync from coreutils.
116361         Correct build failure (socklen_t not defined) on at least
116362         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
116363         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
116365 2005-09-23  Jim Meyering  <jim@meyering.net>
116367         * modules/getaddrinfo (Depends-on): Add socklen.
116369 2005-09-23  Bruno Haible  <bruno@clisp.org>
116371         * tests/test-verify.c: New file.
116373 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116375         Sync from coreutils.
116377         * modules/argmatch (Depends-on): Add verify.
116378         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
116379         unistd-safer.
116380         * modules/save-cwd (Depends-on): Likewise.
116382         * modules/openat (Files): Add lib/openat-die.c.
116383         (Depends-on): Remove error, exitfail.
116384         Add dirname.
116386         * modules/verify: New file.
116387         * MODULES.html.sh (Diagnostics <assert.h>): New section,
116388         with "verify" module.
116390 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116392         Sync from coreutils.
116394         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
116395         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
116396         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
116397         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
116398         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
116399         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
116400         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
116401         Don't bother checking for string.h, stdlib.h, unistd.h.
116402         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
116403         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
116404         module's job.
116405         * m4/jm-macros.m4 (gl_MACROS): Likewise.
116406         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
116408         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
116409         (gl_GETDATE): Use it.
116411         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
116413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116415         Sync from coreutils.
116417         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
116418         stat-time.h.
116419         * lib/argmatch.h: Include verify.h
116420         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
116421         (ARGMATCH_ASSERT): Remove; unused.
116422         * lib/canonicalize.c: Assume STDC_HEADERS.
116423         * lib/exclude.c: Include "strcase.h".
116424         * lib/regex_internal.h [!defined _LIBC]: Likewise.
116425         * lib/getusershell.c: Include stdio--.h rather than stdio.h
116426         and stdio-safer.h.
116427         (getusershell): Call fopen, not fopen_safer.
116428         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
116429         Do not include unistd-safer.h.
116430         (save_cwd): Don't call fd_safer; no longer needed
116431         now that we include fcntl--.h.
116433         * lib/getdate.y (relative_time): New type.
116434         (RELATIVE_TIME_0): New constant.
116435         (parser_control): Use relative_time instead of doing it ourselves.
116436         (%union): Add new relative_time rel member.
116437         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
116438         Now typeless.
116439         (relunit, relunit_snumber): Now of type rel.
116440         (zone, rel, relunit, get_date): Adjust to above changes.
116442         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
116443         Do not include unistd-safer.h.
116444         (getloadavg): Don't call fd_safer; no longer needed
116445         now that we include fcntl--.h.
116447         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
116448         (make_dir_parents): Treat ENOSYS like EEXIST.
116450         Improve quality of diagnostics on restore_cwd failure.
116451         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
116452         (make_dir_parents): Last arg is now int * (for errno), not bool *.
116453         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
116454         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
116455         each time through the loop.  Do not diagnose restore_cwd failure;
116456         that is the caller's job (and perhaps the caller does not care).
116458         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
116459         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
116460         If the file already exists but is not a directory, don't bother
116461         to try to make its parents.
116462         Close potential file descriptor leak if we can't chdir("/") (!).
116463         Don't always return true if chdir($PWD) fails; return true only
116464         if the requested action was done successfully (except for the
116465         chdir($PWD)).
116466         Don't log final directory unless we actually made it.
116467         Refactor to avoid duplicate code to fix up permissions.
116468         Don't attempt to fix up parent permissions if chdir($PWD) fails.
116470         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
116471         to make it a bit faster and (I hope) clearer.
116472         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
116473         Fix bug in formats like %2N.
116475         * lib/verify.h: New file.
116477 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
116479         Sync from coreutils.
116480         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
116482 2005-09-22  Jim Meyering  <jim@meyering.net>
116484         Sync from coreutils.
116486         * m4/lstat.m4 (gl_FUNC_LSTAT):
116487         Use AC_LIBSOURCES to require lstat.c and lstat.h.
116488         Remove obsolete comment.
116489         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
116490         * m4/xstrtod.m4: Likewise.
116492         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
116494 2005-09-22  Jim Meyering  <jim@meyering.net>
116496         Sync from coreutils.
116498         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
116500         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
116501         the .tm_year member, since otherwise gcc-4.0 would now warn about
116502         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
116504         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
116505         order to avoid an unsuppressible warning from gcc on 64-bit systems.
116507         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
116508         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
116509         when run in a time zone for which daylight savings time is in effect
116510         for the starting date.
116512         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
116513         stop us from restricting permissions of just-created absolute-named
116514         directories.
116515         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
116516         to restore initial working directory.
116517         * lib/mkdir-p.c (make_dir_parents): New parameter:
116518         different_working_dir, to tell caller if/when we change the working
116519         directory and are unable to return to the initial one.
116520         * lib/mkdir-p.h (make_dir_parents): Update prototype.
116521         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
116522         `return false'.  This fixes a bug introduced on 2004-07-30.
116524         * lib/openat.c (fdopendir): Be sure to close the supplied
116525         file descriptor before returning.  This makes our replacement
116526         implementation a little closer to Solaris's, where fdopendir
116527         ties the file descriptor to the returned DIR* pointer.
116528         * lib/openat.c (unlinkat): New function.
116529         * lib/openat.h (unlinkat): Add prototype.
116530         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
116531         (openat_restore_fail): Rename from openat_restore_die.
116532         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
116534         Provide an alternative to exiting immediately upon save_cwd or
116535         restore_cwd failure.  Now, an application can arrange e.g.,
116536         to perform a longjump in that case.
116537         * lib/openat.c: Include dirname.h.
116538         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
116539         (rpl_openat, fdopendir, fstatat): Call openat_save_die
116540         and openat_restore_die rather than calling error directly.
116541         Don't include "error.h" or "exitfail.h"; they're no longer needed.
116543         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
116544         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
116545         define.
116547         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
116548         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
116549                             int utc, int nanoseconds);
116550         Background:
116551         date should not have to allocate a megabyte of virtual memory to
116552         handle a format argument like +%1048575T.  When implemented with
116553         strftime, it must allocate such a buffer, use strftime to fill it
116554         in, print it, then free it.
116555         With fprintftime, it simply prints everything and exits.
116556         With no need for memory allocation, that's one fewer way to fail.
116557         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
116558         optional field width, not before, so we accept %9:z, not %:9z.
116559         (my_strftime): Be sure to use L_('x') for literals.
116561         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
116562         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
116563         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
116564         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
116565         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
116566         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
116567         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
116568         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
116569         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
116570         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
116571         * lib/xgethostname.c, lib/xreadlink.c:
116572         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
116574         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
116575         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
116576         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
116577         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
116578         and don't include <sys/file.h>).
116580 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
116582         Sync from coreutils.
116584         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
116585         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
116586         [!LDAV_DONE]: Avoid unused variable warning.
116588 2005-09-21  Bruno Haible  <bruno@clisp.org>
116590         * lib/unicodeio.h (unicode_to_mb): New declaration.
116592 2005-09-20  Derek Price  <derek@ximbiot.com>
116594         * lib/getaddrinfo.c: Don't include <netdb.h> included from
116595         getaddrinfo.h.
116597 2005-09-20  Bruno Haible  <bruno@clisp.org>
116599         * gnulib-tool: Remove trailing slashes from the values specified for
116600         --source-base, --m4-base, --tests-base, --aux-dir.
116601         Suggested by Simon Josefsson <jas@extundo.com>.
116603 2005-09-20  Bruno Haible  <bruno@clisp.org>
116605         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
116606         func_modules_to_filelist, func_import, func_create_testdir): Make all
116607         sorting results locale-independent, so that gnulib-cache.m4 doesn't
116608         change when gnulib-tool is invoked in a different locale.
116610 2005-09-19  Simon Josefsson  <jas@extundo.com>
116612         * m4/socklen.m4: Fix typo.
116614 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116616         Use a consistent style for including <config.h>.
116617         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
116618         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
116619         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
116620         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
116621         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
116622         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
116623         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
116624         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
116625         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
116626         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
116627         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
116628         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
116629         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
116630         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
116631         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
116632         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
116633         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
116634         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
116635         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
116636         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
116637         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
116638         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
116639         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
116640         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
116641         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
116642         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
116643         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
116644         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
116645         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
116646         lib/xstrtoumax.c, lib/yesno.c:
116647         Standardize inclusion of config.h.
116648         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
116649         lib/inttostr.h:  Removed inclusion of config.h from header files.
116650         * lib/inttostr.c:  Adjusted in-tree users.
116651         * lib/timespec.h: Remove superfluous warning to include config.h.
116652         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
116653         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
116654         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
116655         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
116656         config.h with HAVE_CONFIG_H.
116658 2005-09-19  Jim Meyering  <jim@meyering.net>
116660         * modules/pathmax (License): Change to LGPL.
116662 2005-09-19  Derek Price  <derek@ximbiot.com>
116664         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
116666 2005-09-19  Bruno Haible  <bruno@clisp.org>
116668         * gnulib-tool (import): Provide default for --tests-base.
116670 2005-09-19  Bruno Haible  <bruno@clisp.org>
116672         * doc/quote.texi: New file, extracted from gnulib.texi.
116673         * doc/ctime.texi: New file, extracted from gnulib.texi.
116674         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
116675         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
116676         * doc/gnulib.texi: Include them.
116678 2005-09-18  Bruno Haible  <bruno@clisp.org>
116680         Portability fix.
116681         * gnulib-tool (func_readlink): New function.
116682         (func_ln_if_changed): Use it.
116684 2005-09-18  Bruno Haible  <bruno@clisp.org>
116686         * gnulib-tool: Support --with-tests also with --import.
116687         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
116688         (func_import): Use variables $testsbase and $inctests. Emit a
116689         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
116690         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
116691         SUBDIRS += $testsdir.
116692         (func_create_testdir): Update.
116694 2005-09-18  Bruno Haible  <bruno@clisp.org>
116696         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
116697         instead of $dry_run.
116698         (func_cp_if_changed, func_mv_if_changed): Remove functions.
116699         (func_ln_if_changed): Don't handle dry-run here.
116700         (func_import): In dry-run mode, detect more precisely which actions
116701         would be performed, and don't use "...ing" verbs.
116703 2005-09-18  Bruno Haible  <bruno@clisp.org>
116705         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
116706         (func_import): Use join on two temporary files instead of three nested
116707         loops, in order to determine which files are new or old.
116709 2005-09-18  Bruno Haible  <bruno@clisp.org>
116711         * gnulib-tool (func_import): Comment out code that spits out the
116712         new files with --dry-run.
116714 2005-09-18  Bruno Haible  <bruno@clisp.org>
116716         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
116718 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116720         * lib/stat-time.h: New file.
116721         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
116722         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
116723         in a different way.
116724         (timespec_cmp): New function.
116725         * lib/utimecmp.c: Include stat-time.h.
116726         (SYSCALL_RESOLUTION): Depend on whether various struct stat
116727         members exist, not on the obsolescent ST_MTIM_NSEC.
116728         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
116730 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116732         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
116734 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
116736         * MODULES.html.sh (File system functions): Add stat-time.
116737         * modules/stat-time: New file.
116738         * modules/timespec (Files): Remove m4/st_mtim.m4; this
116739         is now done in a different way, by the stat-time module.
116740         * modules/utimecmp (Depends-on): Add stat-time.
116742 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
116744         * m4/st_mtim.m4: Remove.  Superseded by...
116745         * m4/stat-time.m4: New file.
116746         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
116747         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
116749 2005-09-15  Derek Price  <derek@ximbiot.com>
116751         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
116753 2005-09-15  Derek Price  <derek@ximbiot.com>
116755         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
116756         * lib/regex_internal.c: Ditto, using this...
116757         (__GNUC_PREREQ): ...new macro.
116758         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
116759         using...
116760         (__GNUC_PREREQ): ...this new macro.
116762         * lib/strstr.h: Include string.h. Define strstr as a macro here.
116764 2005-09-15  Derek Price  <derek@ximbiot.com>
116765             Paul Eggert  <eggert@cs.ucla.edu>
116767         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
116768         changes, consolidating in...
116769         * lib/regex_internal.h: ...this file.
116771 2005-09-13  Jim Meyering  <jim@meyering.net>
116773         * lib/canon-host.c: Filter through gnu indent and reword comments
116774         slightly.
116775         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
116777 2005-09-13  Derek Price  <derek@ximbiot.com>
116779         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
116780         failure.
116781         Reported by Jim Meyering  <jim@meyering.net>.
116783 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116785         * lib/base64.c: Typo.
116786         (base64_encode): Put b64str in initialized data section.
116788 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
116790         Merge glibc and coreutils changes into gnulib, plus a few
116791         extra fixes.
116792         * lib/md5.c: Use #error rather than a string.
116793         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
116794         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
116795         (__attribute__): Define to empty for non recent-GCC.
116796         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
116797         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
116798         Renamed from their non-__ counterparts, with new macros replacing
116799         them if not _LIBC.  Add __THROW attribute.
116800         (rol): Remove.
116801         (struct md5_ctx): Align buffer if using GCC.
116802         * lib/sha1.h (struct sha1_ctx): Likewise.
116803         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
116804         The old name was backwards.
116805         (NOTSWAP): Remove; not used.
116806         (rol): New macro, moved here from md5.h.
116807         (sha1_process_block): Remove a FIXME that doesn't make sense.
116809 2005-09-12  Derek Price  <derek@ximbiot.com>
116811         Return usable errors from canon-host.
116812         * lib/canon-host.h: New file.
116813         * lib/canon-host.c (canon_host): Wrap...
116814         (canon_host_r): ...this new function, which now relies exclusively on
116815         getaddrinfo.
116816         (ch_strerror): New function.
116817         (last_cherror): New global.
116818         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
116819         interface.
116820         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
116821         void *.
116822         (freeaddrinfo): Free ai->ai_canonname when set.
116824 2005-09-12  Derek Price  <derek@ximbiot.com>
116826         Make canon-host require getaddrinfo.
116827         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
116828         AC_LIBSOURCE canon-host.h.  Call...
116829         (gl_PREREQ_CANON_HOST): ...this new function, which requires
116830         gl_GETADDRINFO.
116831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
116833 2005-09-12  Derek Price  <derek@ximbiot.com>
116835         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
116836         LGPL.
116837         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
116839 2005-09-12  Derek Price  <derek@ximbiot.com>
116841         * lib/gai_strerror.c: Include config.h when available.  Include
116842         getaddrinfo.h before other headers to test interface.
116843         Reported by Larry Jones <lawrence.jones@ugs.com>.
116845 2005-09-12  Derek Price  <derek@ximbiot.com>
116846             Paul Eggert  <eggert@cs.ucla.edu>
116848         * modules/glob (Files): Add glob-libc.h.
116850 2005-09-12  Derek Price  <derek@ximbiot.com>
116851             Paul Eggert  <eggert@cs.ucla.edu>
116853         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
116854         glob_.h, glob-libc.h.
116855         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
116857 2005-09-12  Derek Price  <derek@ximbiot.com>
116858             Paul Eggert  <eggert@cs.ucla.edu>
116860         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
116861         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
116862         protecting things that should be done only in gnulib contexts.
116863         * lib/glob_.h: New file, containing only the glob things needed for
116864         gnulib.
116865         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
116866         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
116867         (glob, globfree, glob_pattern_p): Now defined simply in terms of
116868         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
116869         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
116870         and to respect the namespace rules better.
116872 2005-09-08  Simon Josefsson  <jas@extundo.com>
116874         * modules/socklen: New file.
116876 2005-09-08  Simon Josefsson  <jas@extundo.com>
116878         * m4/socklen.m4: New file.
116880 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116882         * modules/utimens (Files): Add m4/utimbuf.m4, since
116883         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
116884         Reported by Sergey Poznyakoff.
116886 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116888         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
116889         definitions, since that's the preferred style in glibc.
116890         Fix a minor spacing issue, and update copyright notice to match
116891         glibc's.
116893 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
116895         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
116897 2005-09-06  Simon Josefsson  <jas@extundo.com>
116899         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
116900         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
116902 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116904         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
116905         warning.
116907 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116909         * config/srclist.txt: Add glibc bug 1302.
116911 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
116913         Change bitset word type from unsigned int to unsigned long int,
116914         as this has better performance on typical 64-bit hosts.
116915         Port bitset code to hosts with unusual word sizes.
116916         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
116917         (build_collating_symbol):
116918         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
116919         argument is a bitset.  This is merely a style issue, but it makes
116920         it clearer that an entire array is expected.
116921         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
116922         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
116923         Port to the case where bitset_word is not the same as unsigned int.
116924         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
116925         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
116926         Likewise.
116927         * lib/regexec.c (check_dst_limits_calc_pos_1,
116928         check_subexp_matching_top):
116929         (build_trtable, group_nodes_into_DFAstates):
116930         Likewise.
116931         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
116932         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
116933         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
116934         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
116935         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
116936         * lib/regcomp.c (optimize_subexps, lower_subexp):
116937         Work even if bitset_word has holes in its bitwise representation.
116938         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
116939         * lib/regexec.c (check_dst_limits_calc_pos_1,
116940         check_subexp_matching_top):
116941         Likewise.
116942         * lib/regex_internal.c (re_string_reconstruct):
116943         Don't assume UCHAR_MAX == 255.
116944         * lib/regex_internal.h (bitset_set_all): Likewise.
116945         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
116946         All uses changed.
116947         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
116948         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
116949         All uses changed.
116950         (BITSET_WORD_MAX): New macro.
116951         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
116952         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
116953         (bitset_empty, bitset_copy):
116954         Prefer sizeof (bitset) to multiplying it out ourselves.
116955         (bitset_not_merge): Remove; unused.
116956         (bitset_contain): Return bool, not unsigned int with one bit on.
116957         All callers changed.
116958         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
116959         alignment than re_node_set; do this by defining a new internal
116960         type struct dests_alloc and using it to allocate memory.
116962 2005-09-05  Bruno Haible  <bruno@clisp.org>
116964         * gnulib-tool (func_import): Fix comparison in handling of symbolic
116965         links.
116967 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
116969         * modules/size_max (Makefile.am): Add size_max.h
116971 2005-09-04  Derek Price  <derek@ximbiot.com>
116973         * gnulib-tool (func_import): Fix reversed $symbolic logic.
116975 2005-09-03  Simon Josefsson  <jas@extundo.com>
116977         * gnulib-tool: Fix typo.
116979 2005-09-03  Simon Josefsson  <jas@extundo.com>
116981         * config/srclist.txt: Add glibc bug 1293.
116983 2005-09-03  Derek Price  <derek@ximbiot.com>
116985         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
116986         From Larry Jones <lawrence.jones@ugs.com>.
116988 2005-09-02  Simon Josefsson  <jas@extundo.com>
116990         * modules/socklen: New file.
116992 2005-09-02  Simon Josefsson  <jas@extundo.com>
116994         * modules/havelib: New module.
116996         * modules/gettext, modules/iconv, modules/lock, modules/readline:
116997         Use havelib.
116999 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117001         Check for arithmetic overflow when calculating sizes, to prevent
117002         some buffer-overflow issues.  These patches are conservative, in the
117003         sense that when I couldn't determine whether an overflow was possible,
117004         I inserted a run-time check.
117005         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
117006         macros.
117007         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
117008         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
117009         (re_xnrealloc, re_x2nrealloc): New inline functions.
117010         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
117011         parse_bracket_exp):
117012         (build_equiv_class, build_charclass): Check for arithmetic overflow
117013         in size expression calculations.
117014         * lib/regex_internal.c (re_string_realloc_buffers):
117015         (build_wcs_upper_buffer, re_node_set_add_intersect):
117016         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
117017         (re_dfa_add_node, register_state): Likewise.
117018         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
117019         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
117020         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
117021         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
117023 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
117025         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
117026         m4/ulonglong.m4.  Problem reported by Martin Lambers.
117028 2005-09-02  Bruno Haible  <bruno@clisp.org>
117030         Support for lib vs. lib64 distinction on biarch platforms.
117031         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
117032         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
117033         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
117035 2005-09-02  Bruno Haible  <bruno@clisp.org>
117037         * gnulib-tool (import): In the other first-use case, provide defaults
117038         as well.
117040 2005-09-02  Bruno Haible  <bruno@clisp.org>
117042         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
117043         patches not yet found in the latest gettext release.
117045 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117047         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
117048         to avoid a collision with bits/local_lim.h in glibc.
117049         All uses changed.  Problem reported by Dmitry V. Levin in
117050         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
117052         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
117053         bugs in int versus size_t comparisons.
117054         (re_string_context_at): Fix bug where the code assumed that
117055         Idx is signed.
117057         Use bool where appropriate.
117058         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
117059         All callers changed.
117060         (calc_eclosure_iter): Likewise, for ROOT arg.
117061         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
117062         (build_charclass_op): Likewise, for NON_MATCH arg.
117063         * lib/regex_internal.c (re_string_allocate, re_string_construct):
117064         (re_string_construct_common): Likewise, for ICASE arg.
117065         * lib/regexec.c (re_search_2_stub, re_search_stub):
117066         Likewise, for RET_LEN arg.
117067         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
117068         (set_regs): Likewise, for FL_BACKTRACK arg.
117069         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
117070         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
117071         (calc_eclosure_iter, parse_bracket_exp):
117072         Use bool for internal variables that are booleans.
117073         * lib/regexec.c (re_search_internal, check_matching,
117074         proceed_next_node):
117075         (set_regs, build_sifted_states, sift_states_bkref):
117076         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
117077         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117078         (find_collation_sequence_value):
117079         Likewise.
117080         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
117081         (re_node_set_compare):
117082         Return bool, not int. All callers changed.
117083         * lib/regexec.c (check_halt_node_context, check_dst_limits):
117084         (build_trtable, check_node_accept): Likewise.
117085         * lib/regex_internal.h: Include stdbool.h.
117087         Fix bugs uncovered when converting to bool.
117088         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
117089         failure instead of charging ahead blindly.
117090         * lib/regex_internal.c (register_state): Likewise.
117091         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
117092         for freeing internal storage.
117093         (group_nodes_into_DFA_states): Use unsigned int, not int, for
117094         bitset pieces used as boolean, to avoid undefined behavior
117095         on hosts that do int overflow checking.
117097 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
117099         * config/srclist.txt: Add glibc bugs 1285-1287.
117101 2005-09-01  Jim Meyering  <jim@meyering.net>
117103         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
117104         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
117105         Require gl_STAT_MACROS, too.
117107 2005-09-01  Bruno Haible  <bruno@clisp.org>
117109         * gnulib-tool (import): In the first-use case, provide defaults.
117111 2005-09-01  Bruno Haible  <bruno@clisp.org>
117113         * gnulib-tool (func_import): Remove the .tmp files.
117115 2005-09-01  Bruno Haible  <bruno@clisp.org>
117117         * gnulib-tool (func_import): Fix handling of symbolic links.
117119 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117121         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
117122         old glibc regex code mishandles strings longer than 2**31 bytes.
117123         This patch fixes this when the regex code is used in gnulib
117124         (i.e., outside glibc).
117126         This patch should not affect the use of the regex code inside
117127         glibc.  No doubt this problem also needs to be handled for glibc
117128         as well, but the result will be an incompatible change to the
117129         glibc ABI, and the old ABI will have to be supported too.  That
117130         can be the subject for another patch.
117132         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
117133         governing whether the rest of this patch is active.  By default,
117134         the macro is disabled and the patch has no effect.
117135         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
117136         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
117137         (struct re_pattern_buffer, re_search, re_search_2, re_match):
117138         (re_match_2, re_set_registers): Use the new types.
117139         * lib/regex_internal.h (Idx, re_hashval_t): New types.
117140         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
117141         New macros.
117142         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
117143         (re_string_context_at, bin_tree_t, re_dfastate_t):
117144         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
117145         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
117146         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
117147         (re_string_char_size_at, re_string_wchar_at):
117148         (re_string_elem_size_at):
117149         Use the new types and macros to port to 64-bit hosts.
117150         Use unsigned types for internal values, so that the code
117151         mostly works even for arrays larger than SSIZE_MAX.
117152         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
117153         (search_duplicated_node, calc_eclosure_iter, fetch_number):
117154         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
117155         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
117156         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
117157         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
117158         (calc_inveclosure, parse_dup_op, build_range_exp):
117159         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
117160         (fetch_number, create_token_tree, mark_opt_subexp):
117161         Likewise.
117162         * lib/regex_internal.c (re_string_construct_common,
117163         create_ci_newstate):
117164         (create_cd_newstate, re_string_allocate, re_string_construct):
117165         (re_string_realloc_buffers, build_wcs_upper_buffer):
117166         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117167         (re_string_reconstruct, re_string_peek_byte_case):
117168         (re_string_fetch_byte_case, re_string_context_at):
117169         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117170         (re_node_set_init_copy, re_node_set_add_intersect):
117171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117173         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117174         (re_acquire_state, re_acquire_state_context, register_state):
117175         Likewise.
117176         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
117177         search_cur_bkref_entry):
117178         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
117179         (re_search_internal, re_search_2_stub, re_search_stub)
117180         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
117181         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
117182         (update_cur_sifted_state, check_dst_limits):
117183         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117184         (check_subexp_limits, sift_states_bkref, merge_state_array):
117185         (check_subexp_matching_top, get_subexp, get_subexp_sub):
117186         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
117187         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117188         (expand_bkref_cache, check_node_accept_bytes):
117189         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
117190         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
117191         (acquire_init_state_context, check_halt_node_context):
117192         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
117193         (sift_states_backward, clean_state_log_if_needed):
117194         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
117195         (find_recover_state, transit_state_sb, transit_state_mb):
117196         (transit_state_bkref, build_trtable, match_ctx_clean):
117197         Likewise.
117198         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
117199         to work around an assumption that REG_MISSING is negative.
117201         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
117202         (seek_collating_symbol_entry) [defined _LIBC]:
117203         (lookup_collation_sequence_value) [defined _LIBC]:
117204         (build_range_exp, build_collating_symbol) [defined _LIBC]:
117205         Use prototypes rather than old-style function definitions.
117206         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
117207         (transit_state_sb) [0]:
117208         (find_collation_sequence_value) [defined _LIBC]: Likewise.
117210         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
117211         rm_eo.
117213         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
117214         (optimize_subexps, lower_subexp):
117215         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
117216         since the signed shift might overflow.  Use 1u<<31 instead.
117217         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
117218         Likewise.
117219         * lib/regexec.c (check_dst_limits_calc_pos_1,
117220         check_subexp_matching_top): Likewise.
117222         * lib/regcomp.c (optimize_subexps, lower_subexp):
117223         Use CHAR_BIT rather than 8, for clarity.
117224         * lib/regexec.c (check_dst_limits_calc_pos_1):
117225         (check_subexp_matching_top): Likewise.
117226         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
117227         have to worry about portability issues when shifting it left.
117228         Remove no-longer-needed test for table_size > 0.
117229         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
117230         in a word, as the resulting behavior is undefined.
117231         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
117232         in one case, a <= should have been an <, and in another case the
117233         whole test was missing.
117234         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
117235         the standard name CHAR_BIT.
117236         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
117237         this is not true on one's complement and signed-magnitude hosts.
117239         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
117240         next_last_offset.
117241         (struct re_dfa_t): Remove unused member states_alloc.
117242         * lib/regcomp.c (init_dfa): Don't initialize unused members.
117244 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117246         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
117247         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
117248         and large-file glibc and in 32-bit large-file Solaris.
117250 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117252         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
117253         lengths fit in regoff_t; this isn't true if regoff_t is the same
117254         width as size_t.
117255         * lib/regex.c (re_search_internal): 5th arg is LAST_START
117256         (= START + RANGE) instead of RANGE.  This avoids overflow
117257         problems when regoff_t is the same width as size_t.
117258         All callers changed.
117259         (re_search_2_stub): Check for overflow when adding the
117260         sizes of the two strings.
117261         (re_search_stub): Check for overflow when adding START
117262         to RANGE; if it occurs, substitute the extreme value.
117264 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
117266         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
117268 2005-08-31  Jim Meyering  <jim@meyering.net>
117270         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
117271         a pointer-to-const.
117272         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
117273         (register_state): Likewise.
117274         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
117275         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
117276         (group_nodes_into_DFAstates): Likewise.
117278 2005-08-31  Jim Meyering  <jim@meyering.net>
117280         * check-module: Add a FIXME comment.
117282 2005-08-31  Eric Blake  <ebb9@byu.net>
117284         * modules/unistd-safer (Files): Add unistd--.h.
117285         * modules/stdio-safer (Files): Add stdio--.h.
117287 2005-08-31  Derek Price  <derek@ximbiot.com>
117289         * lib/getdelim.c (getdelim): Return EOF on EOF.
117290         Reported by Larry Jones <lawrence.jones@ugs.com>.
117292 2005-08-31  Bruno Haible  <bruno@clisp.org>
117294         Avoid unnecessary diffs in the generated lib/Makefile.am.
117295         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
117296         the generated files.
117297         (func_import): Don't set cmd.
117299 2005-08-31  Bruno Haible  <bruno@clisp.org>
117301         * lib/strstr.c: Include <stddef.h>, for NULL.
117302         * lib/strcasestr.c: Likewise.
117303         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
117305 2005-08-31  Bruno Haible  <bruno@clisp.org>
117307         * gnulib-tool: New option --macro-prefix.
117308         (func_import): Use macro_prefix.
117309         (import): Handle option --macro-prefix.
117311 2005-08-31  Bruno Haible  <bruno@clisp.org>
117313         * gnulib-tool (import): Rename most ac_* variables to cached_*.
117314         Also use new variables cached_lgpl, cached_libtool.
117316 2005-08-31  Bruno Haible  <bruno@clisp.org>
117318         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
117319         always instantiating them.
117321 2005-08-31  Bruno Haible  <bruno@clisp.org>
117323         * gnulib-tool (func_import): Read the previous cached settings
117324         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
117325         earlier added by gnulib but are now dropped. Warn when a gnulib file
117326         overwrites a non-gnulib file.
117328 2005-08-31  Bruno Haible  <bruno@clisp.org>
117330         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
117331         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
117332         projects that don't keep autogenerated files in CVS. Put into
117333         actioncmd only the specified modules, not the transitive closure.
117335 2005-08-31  Bruno Haible  <bruno@clisp.org>
117337         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
117338         Create directories that shall be filled.
117339         (import): Don't look for gl_* macros in configure.ac. Recurse across
117340         all directories containing a gnulib-cache.m4 files, if meaningful.
117342 2005-08-31  Bruno Haible  <bruno@clisp.org>
117344         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
117345         (import): Set seen_libtool when we see gl_LIBTOOL.
117347 2005-08-31  Bruno Haible  <bruno@clisp.org>
117349         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
117350         declaration macro definitions from generated gnulib.m4.
117352 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
117354         * lib/iconvme.h: Add prototype for iconv_alloc.
117356 2005-08-29  Simon Josefsson  <jas@extundo.com>
117358         * lib/iconvme.c: Fix errno.
117360 2005-08-29  Bruno Haible  <bruno@clisp.org>
117362         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
117363         that it works when the directory contains spaces.
117365 2005-08-29  Bruno Haible  <bruno@clisp.org>
117367         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
117369 2005-08-29  Bruno Haible  <bruno@clisp.org>
117371         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
117372         Emit more advice.
117374 2005-08-29  Bruno Haible  <bruno@clisp.org>
117375         and Stepan Kasal  <kasal@ucw.cz>
117377         * check-module: If more parameters are given, check each of them
117378         separately; add more exceptions, as noted by Jim Meyering.
117379         (check_module): New procedure.
117380         (%exempt_header): Now contains all exceptions.
117382 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
117384         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
117386 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
117388         * lib/iconvme.c: Split iconv_string into iconv_alloc.
117390 2005-08-28  Bruno Haible  <bruno@clisp.org>
117392         * m4/gnulib-tool.m4: New file.
117394 2005-08-27  Jim Meyering  <jim@meyering.net>
117396         * modules/unistd-safer (Files): Add pipe-safer.c.
117397         * modules/fcntl-safer (Files): Add creat-safer.c.
117399 2005-08-27  Jim Meyering  <jim@meyering.net>
117401         * m4/stdlib-safer.m4: New file.  From coreutils.
117402         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
117403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
117404         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
117405         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
117406         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
117408 2005-08-27  Jim Meyering  <jim@meyering.net>
117410         * lib/fopen-safer.c: Merge minor changes from coreutils.
117411         * lib/dup-safer.c: Likewise.
117412         * lib/fd-safer.c: Likewise.
117414         Merge from coreutils.
117415         * lib/stdio--.h: New file.
117416         * lib/stdlib--.h: New file.
117417         * lib/mkstemp-safer.c: New file.
117419         GNU tar needs these.
117420         * lib/pipe-safer.c: New file.
117421         * lib/creat-safer.c: New file.
117422         * lib/fcntl--.h (creat): Define to creat_safer.
117423         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
117424         * lib/unistd--.h (pipe): Define to pipe_safer.
117425         * lib/unistd-safer.h: Declare pipe_safer.
117427 2005-08-26  Simon Josefsson  <jas@extundo.com>
117429         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
117430         Haible <bruno@clisp.org>.
117432 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
117434         * lib/regex_internal.h: Remove all references to
117435         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
117436         or better.
117437         (bitset_not, bitset_merge, bitset_not_merge):
117438         (bitset_mask, re_string_allocate, re_string_construct):
117439         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
117440         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
117441         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
117442         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
117443         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117444         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117445         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
117446         (re_acquire_state_context):
117447         Remove unnecessary forward decls.
117448         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
117449         Put __attribute at function definition,
117450         now that the function decl has been removed.
117451         * lib/regex_internal.c (re_string_peek_byte_case):
117452         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
117453         Likewise.
117455 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
117457         * m4/regex.m4: Add AC_PREREQ(2.50).
117458         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
117460 2005-08-25  Simon Josefsson  <jas@extundo.com>
117462         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
117463         __fsetlocking.
117465 2005-08-25  Simon Josefsson  <jas@extundo.com>
117467         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
117468         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
117469         GLIBC specific code.
117471 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117473         Make regex safe for g++.  This fixes one real bug (an "err"
117474         that should have been "*err").  g++ problem reported by
117475         Sam Steingold.
117476         * lib/regex_internal.h (re_calloc): New macro, consistent with
117477         re_malloc etc.  All callers of calloc changed to use re_calloc.
117478         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
117479         not int.  All callers changed.
117480         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
117481         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
117482         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
117483         (find_recover_state): Change "err" to "*err"; this fixes what
117484         appears to be a real bug.
117485         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
117486         versus int.
117488 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117490         * modules/regex (Depends-on): Add malloc, since the code
117491         assumes that !malloc(0) means failure.
117493 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117495         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
117497         alloca modernization/simplification for regex.
117498         * lib/regex.c: Remove portability cruft for alloca.  This no longer
117499         needs to be at the start of the file, and can be moved into
117500         regex_internal.h and simplified.
117501         * lib/regex_internal.h: Include <alloca.h>.
117502         (__libc_use_alloca) [!defined _LIBC]: New macro.
117503         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
117504         now works outside glibc.
117506 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
117508         * config/srclist.txt: Add glibc bugs 1241, 1245.
117510 2005-08-25  Jim Meyering  <jim@meyering.net>
117512         * lib/open-safer.c: Include <config.h>.
117513         Otherwise, we'd lose LARGEFILE support in any file using
117514         e.g. "fcntl--.h"
117516 2005-08-25  Bruno Haible  <bruno@clisp.org>
117518         * m4/minmax.m4: Require autoconf 2.52.
117519         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
117520         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
117521         alternatives of translit over the alphabet.
117522         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
117524 2005-08-24  Simon Josefsson  <jas@extundo.com>
117526         * tests/test-getpass.c: New file.
117528 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117530         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
117531         for GNU regex features.
117533 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117535         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
117536         * lib/regex.h (regerror): Likewise.
117538         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
117539         requires this.  (The code never needed it.)
117541         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
117542         All uses of recently-renamed identifiers changed to use the new,
117543         POSIX-compliant names.  The code will build and run just fine
117544         without these changes, but it's better to eat our own dog food
117545         and use the standard-conforming names.
117547         * lib/regex.h: Fix a multitude of POSIX name space violations.
117548         These changes have an effect only for programs that define
117549         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
117550         do not change anything for programs compiled in the normal way.
117551         Also, there is no effect on the ABI.
117553         (_REGEX_SOURCE): New macro.
117554         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
117555         defined and _GNU_SOURCE is not; this fixes a name space violation.
117557         Rename the following macros to obey POSIX requirements.
117558         The old names are still visible as macros if _REGEX_SOURCE is defined.
117559         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
117560         RE_BACKSLASH_ESCAPE_IN_LISTS.
117561         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
117562         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
117563         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
117564         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
117565         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
117566         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
117567         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
117568         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
117569         (REG_INTERVALS): renamed from RE_INTERVALS.
117570         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
117571         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
117572         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
117573         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
117574         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
117575         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
117576         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
117577         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
117578         RE_UNMATCHED_RIGHT_PAREN_ORD.
117579         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
117580         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
117581         (REG_DEBUG): renamed from RE_DEBUG.
117582         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
117583         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
117584         unusual, since we can't clash with the POSIX REG_ICASE.
117585         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
117586         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
117587         (REG_NO_SUB): renamed from RE_NO_SUB.
117588         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
117589         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
117590         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
117591         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
117592         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
117593         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
117594         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
117595         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
117596         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
117597         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
117598         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
117599         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
117600         RE_SYNTAX_POSIX_MINIMAL_BASIC.
117601         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
117602         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
117603         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
117604         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
117605         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
117606         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
117607         (REG_FIXED): Renamed from REGS_FIXED.
117608         (REG_NREGS): Renamed from RE_NREGS.
117610         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
117611         of other REG_* macros, since POSIX says the user is allowed to
117612         #undef these macros selectively.
117614         (reg_errcode_t): Update comment stating what other tables need
117615         to be consistent.
117617         Rename the following enum values to obey POSIX requirements.
117618         The old names are still visible as macros.
117619         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
117620         is not defined, since GNU is supposed to be a superset of POSIX as
117621         much as possible, and since we want reg_errcode_t to be a signed
117622         type for implementation consistency.
117623         (_REG_NOERROR): Renamed from REG_NOERROR.
117624         (_REG_NOMATCH): Renamed from REG_NOMATCH.
117625         (_REG_BADPAT): Renamed from REG_BADPAT.
117626         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
117627         (_REG_ECTYPE): Renamed from REG_ECTYPE.
117628         (_REG_EESCAPE): Renamed from REG_EESCAPE.
117629         (_REG_ESUBREG): Renamed from REG_ESUBREG.
117630         (_REG_EBRACK): Renamed from REG_EBRACK.
117631         (_REG_EPAREN): Renamed from REG_EPAREN.
117632         (_REG_EBRACE): Renamed from REG_EBRACE.
117633         (_REG_BADBR): Renamed from REG_BADBR.
117634         (_REG_ERANGE): Renamed from REG_ERANGE.
117635         (_REG_ESPACE): Renamed from REG_ESPACE.
117636         (_REG_BADRPT): Renamed from REG_BADRPT.
117637         (_REG_EEND): Renamed from REG_EEND.
117638         (_REG_ESIZE): Renamed from REG_ESIZE.
117639         (_REG_ERPAREN): Renamed from REG_ERPAREN.
117640         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
117641         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
117642         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
117643         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
117645         (_REG_RE_NAME, _REG_RM_NAME): New macros.
117646         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
117647         changed.  But support the old name if the new one is not defined
117648         and if _REGEX_SOURCE.
117650         Change the following member names in struct re_pattern_buffer.
117651         The old names are still supported if !_REGEX_SOURCE.
117652         The new names are always supported, regardless of _REGEX_SOURCE.
117653         (re_buffer): Renamed from buffer.
117654         (re_allocated): Renamed from allocated.
117655         (re_used): Renamed from used.
117656         (re_syntax): Renamed from syntax.
117657         (re_fastmap): Renamed from fastmap.
117658         (re_translate): Renamed from translate.
117659         (re_can_be_null): Renamed from can_be_null.
117660         (re_regs_allocated): Renamed from regs_allocated.
117661         (re_fastmap_accurate): Renamed from fastmap_accurate.
117662         (re_no_sub): Renamed from no_sub.
117663         (re_not_bol): Renamed from not_bol.
117664         (re_not_eol): Renamed from not_eol.
117665         (re_newline_anchor): Renamed from newline_anchor.
117667         Change the following member names in struct re_registers.
117668         The old names are still supported if !_REGEX_SOURCE.
117669         The new names are always supported, regardless of _REGEX_SOURCE.
117670         (rm_num_regs): Renamed from num_regs.
117671         (rm_start): Renamed from start.
117672         (rm_end): Renamed from end.
117674         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
117675         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
117676         Prepend __ to parameter names.
117678         Undo yesterday's changes.
117680 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
117682         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
117683         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
117684         lib/regex.c.
117686 2005-08-24  Jim Meyering  <jim@meyering.net>
117688         Sync from coreutils.
117689         * m4/fcntl-safer.m4: New file.
117691         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
117692         and object files for this module.
117694 2005-08-24  Jim Meyering  <jim@meyering.net>
117696         Sync from coreutils.
117697         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
117699 2005-08-24  Jim Meyering  <jim@meyering.net>
117701         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
117702         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
117704 2005-08-24  Jim Meyering  <jim@meyering.net>
117706         * modules/fcntl-safer: New module.
117707         * modules/fts (Depends-on): Add fcntl-safer.
117708         * MODULES.html.sh (File descriptor based Input/Output):
117709         Add fcntl-safer.
117711 2005-08-24  Bruno Haible  <bruno@clisp.org>
117713         Support for unit test modules.
117714         * modules/README: Mention tests modules.
117715         * modules/TEMPLATE-TESTS: New file.
117716         * gnulib-tool: New options --extract-tests-module, --with-tests and
117717         --tests-base (unused for the moment).
117718         (testsbase, inctests): New variables.
117719         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
117720         (func_verify_module): Exclude TEMPLATE-TESTS.
117721         (func_verify_nontests_module, func_verify_tests_module): New functions.
117722         (func_get_dependencies): Add implicit dependency for tests modules.
117723         (func_get_tests_module): New function.
117724         (func_modules_transitive_closure): When --with-tests was specified,
117725         include the unit tests as well, unless explicitly avoided.
117726         (func_emit_lib_Makefile_am): Ignore the tests modules here.
117727         (func_emit_tests_Makefile_am): New function.
117728         (func_create_testdir): When --with-tests was specified, emit a
117729         tests/ directory.
117730         * MODULES.html.sh (Future developments): Update.
117732 2005-08-24  Bruno Haible  <bruno@clisp.org>
117734         * modules/tls-tests: New file.
117735         * tests/test-tls.c: New file, from GNU gettext.
117737 2005-08-24  Bruno Haible  <bruno@clisp.org>
117739         * modules/lock-tests: New file.
117740         * tests/test-lock.c: New file, from GNU gettext.
117742 2005-08-24  Bruno Haible  <bruno@clisp.org>
117744         * lib/lock.h: Add multiple inclusion guard.
117745         * lib/tls.h: Add multiple inclusion guard.
117747 2005-08-24  Bruno Haible  <bruno@clisp.org>
117749         * gnulib-tool: Add support for the --aux-dir option to
117750         --create-testdir, --create-megatestdir, --test, --megatest.
117751         (func_create_testdir, func_create_megatestdir): Optionally emit a
117752         AC_CONFIG_AUX_DIR directive.
117753         (create-testdir, create-megatestdir, test, megatest): Provide a
117754         default value for $auxdir.
117756 2005-08-24  Bruno Haible  <bruno@clisp.org>
117758         * gnulib-tool (import): Use compound statement instead of subshell
117759         where possible.
117761 2005-08-24  Bruno Haible  <bruno@clisp.org>
117763         * gnulib-tool (import): Change --aux-dir default to "build-aux".
117765 2005-08-24  Bruno Haible  <bruno@clisp.org>
117767         * gnulib-tool (func_version): Update.
117769 2005-08-24  Bruno Haible  <bruno@clisp.org>
117771         * gnulib-tool (func_import, func_create_testdir,
117772         func_create_megatestdir): Quote all autoconf macro arguments.
117774 2005-08-24  Bruno Haible  <bruno@clisp.org>
117776         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
117777         option --force, because --force causes the aclocal.m4 of each
117778         subdirectory to be newer than the corresponding config.h.in.
117780 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117782         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
117783         All contents moved to gl_REGEX.
117784         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
117785         assume that it does.
117787 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117789         * lib/regex.h (REG_NOSYS)
117790         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
117791         Define, since POSIX requires it as of 2001.
117792         (_REG_ENOSYS)
117793         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
117794         New private symbol, used to keep the enum signed in all cases.
117795         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
117796         Youngman in
117797         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
117799         * lib/regex_internal.c (re_string_skip_chars, register_state):
117800         (calc_state_hash):
117801         Remove forward decls; no longer needed now that we use prototypes.
117802         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
117803         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
117804         (clean_state_log_if_needed): Likewise.
117806 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
117808         * config/srclist.txt: Add glibc bugs 1231-1233.
117810 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117812         Fix problems reported by Sam Steingold in
117813         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
117814         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
117815         assumed that reg_errcode_t is a signed type, which is not
117816         necessarily true if _XOPEN_SOURCE is not defined.
117817         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
117818         since some compilers warn about it otherwise.
117820 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117822         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
117823         (init_word_char, create_initial_state, duplicate_node_closure):
117824         (fetch_token, peek_token_bracket, build_range_exp):
117825         (build_collating_symbol): Remove forward decls; no longer needed
117826         now that we use prototypes.
117828         * lib/regcomp.c:
117829         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
117830         (re_compile_fastmap_iter, regcomp, regerror, regfree):
117831         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
117832         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
117833         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
117834         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
117835         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
117836         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
117837         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
117838         (build_range_exp, build_collating_symbol, parse_bracket_exp):
117839         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
117840         (build_charclass, build_charclass_op, fetch_number, create_tree):
117841         (create_token_tree, mark_opt_subexp, duplicate_tree):
117842         Use prototypes rather than old-style definitions.
117844         * lib/regex_internal.c:
117845         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
117846         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
117847         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
117848         (re_string_reconstruct, re_string_peek_byte_case):
117849         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
117850         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
117851         (re_node_set_init_copy, re_node_set_add_intersect):
117852         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
117853         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
117854         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
117855         (re_acquire_state, re_acquire_state_context, register_state):
117856         (create_ci_newstate, create_cd_newstate, free_state):
117857         Likewise.
117858         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
117859         re_search_2):
117860         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
117861         (re_search_internal, prune_impossible_nodes):
117862         (acquire_init_state_context, check_matching, static):
117863         (check_halt_node_context, check_halt_state_context, proceed_next_node):
117864         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
117865         (update_regs, sift_states_backward, build_sifted_states):
117866         (clean_state_log_if_needed, merge_state_array):
117867         (update_cur_sifted_state, add_epsilon_src_nodes):
117868         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
117869         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
117870         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
117871         (find_recover_state, check_subexp_matching_top, transit_state_mb):
117872         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
117873         (check_arrival, check_arrival_add_next_nodes):
117874         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
117875         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
117876         (check_node_accept_bytes, check_node_accept, extend_buffers):
117877         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
117878         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
117879         (sift_ctx_init):
117880         Likewise.
117882         * lib/regex_internal.h:
117883         (re_string_allocate, re_string_construct, re_string_reconstruct):
117884         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
117885         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
117886         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
117887         (re_string_context_at, re_string_peek_byte_case):
117888         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
117889         is defined, since we now use prototypes always.
117891         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
117892         C89 or better.  All uses removed.
117894 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
117896         * config/srclist.txt: Add glibc bugs 1220-1227.
117898 2005-08-20  Jim Meyering  <jim@meyering.net>
117900         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
117901         of unused local, dfa.
117903 2005-08-20  Bruno Haible  <bruno@clisp.org>
117905         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
117907 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117909         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
117910         (re_node_set_insert_last, re_dfa_add_node):
117911         Rename local variables to avoid GCC shadowing warnings.
117913 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117915         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
117916         [defined lint]: Suppress bogus uninitialized-variable warnings.
117918         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
117919         and let the caller return REG_ESPACE if out of space.  This
117920         removes an uninitialied-variable warning with GCC 4.0.1, and also
117921         avoids taking the address of a local variable.  All callers
117922         changed.
117924 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
117926         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
117927         $LIBCSRC/posix/regexec.c.
117928         Add glibc bug 1217 for regcomp.c.
117930 2005-08-19  Jim Meyering  <jim@meyering.net>
117932         * lib/regexec.c (proceed_next_node): Redo local variables to
117933         avoid GCC shadowing warnings.
117935 2005-08-18  Bruno Haible  <bruno@clisp.org>
117937         * lib/strstr.c (strstr): Fix return value in multibyte case.
117938         * lib/strcasestr.c (strcasestr): Likewise.
117940 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
117942         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
117944 2005-08-17  Jim Meyering  <jim@meyering.net>
117946         Make the %s format (seconds since the epoch) work for a negative
117947         number and when used with a zero-padded field width, e.g. %015s.
117949         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
117950         label so that it precedes the code to set `digits'.  Otherwise,
117951         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
117952         print `00-22'.  Now, it prints `-0022', as it should.
117954 2005-08-17  Bruno Haible  <bruno@clisp.org>
117956         * modules/strstr (Files): Add m4/mbrtowc.m4.
117957         (Depends-on): Add mbuiter.
117959 2005-08-17  Bruno Haible  <bruno@clisp.org>
117961         * modules/strcasestr: New file.
117962         * MODULES.html.sh (String handling, based on ANSI C 89): Add
117963         strcasestr.
117965 2005-08-17  Bruno Haible  <bruno@clisp.org>
117967         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
117969 2005-08-17  Bruno Haible  <bruno@clisp.org>
117971         * modules/mbuiter: New file.
117972         * MODULES.html.sh (Extended multibyte and wide character utilities):
117973         Add mbuiter.
117975 2005-08-17  Bruno Haible  <bruno@clisp.org>
117977         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
117978         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
117980 2005-08-17  Bruno Haible  <bruno@clisp.org>
117982         * m4/strcasestr.m4: New file.
117984 2005-08-17  Bruno Haible  <bruno@clisp.org>
117986         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
117987         * lib/strstr.c: Completely rewritten, with multibyte locale support.
117989 2005-08-17  Bruno Haible  <bruno@clisp.org>
117991         * lib/strcasestr.h: New file.
117992         * lib/strcasestr.c: New file.
117994 2005-08-17  Bruno Haible  <bruno@clisp.org>
117996         * lib/strcasecmp.c: Use mbuiter.h.
117998 2005-08-17  Bruno Haible  <bruno@clisp.org>
118000         * lib/mbuiter.h: New file.
118002 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
118004         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
118005         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
118006         and gl_GETOPT are both invoked via different paths (as happens
118007         with GNU tar CVS because it uses both argp and getopt), the former
118008         wins.
118010 2005-08-16  Bruno Haible  <bruno@clisp.org>
118012         * modules/tls: New file.
118013         * MODULES.html.sh (Multithreading): Add tls.
118015 2005-08-16  Bruno Haible  <bruno@clisp.org>
118017         * modules/strnlen1: New file.
118018         * MODULES.html.sh (String handling): Add strnlen1.
118020 2005-08-16  Bruno Haible  <bruno@clisp.org>
118022         * modules/strcase (Files): Add m4/mbrtowc.m4.
118023         (Depends-on): Add strnlen1, mbchar.
118025 2005-08-16  Bruno Haible  <bruno@clisp.org>
118027         * modules/mbiter: New file.
118028         * MODULES.html.sh (Extended multibyte and wide character utilities):
118029         Add mbiter.
118031 2005-08-16  Bruno Haible  <bruno@clisp.org>
118033         * modules/mbfile: New file.
118034         * MODULES.html.sh (Extended multibyte and wide character utilities):
118035         Add mbfile.
118037 2005-08-16  Bruno Haible  <bruno@clisp.org>
118039         * modules/mbchar: New file.
118040         * MODULES.html.sh (Extended multibyte and wide character utilities):
118041         New section.
118043 2005-08-16  Bruno Haible  <bruno@clisp.org>
118045         * m4/tls.m4: New file, from GNU gettext.
118047 2005-08-16  Bruno Haible  <bruno@clisp.org>
118049         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
118050         always.
118051         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
118053 2005-08-16  Bruno Haible  <bruno@clisp.org>
118055         * m4/mbiter.m4: New file.
118057 2005-08-16  Bruno Haible  <bruno@clisp.org>
118059         * m4/mbfile.m4: New file.
118061 2005-08-16  Bruno Haible  <bruno@clisp.org>
118063         * m4/mbchar.m4: New file.
118065 2005-08-16  Bruno Haible  <bruno@clisp.org>
118067         * lib/tls.h: New file, from GNU gettext.
118068         * lib/tls.c: New file, from GNU gettext.
118070 2005-08-16  Bruno Haible  <bruno@clisp.org>
118072         * lib/strnlen1.h: New file.
118073         * lib/strnlen1.c: New file.
118075 2005-08-16  Bruno Haible  <bruno@clisp.org>
118077         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
118078         (mbi_init): Update.
118079         (mbi_avail, mbi_advance): Let the iteration end before the terminating
118080         NUL byte, not after it.
118082 2005-08-16  Bruno Haible  <bruno@clisp.org>
118084         * lib/strcase.h (strcasecmp): Add note in comments.
118085         * lib/strncasecmp.c: Use code from strcasecmp.c.
118086         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
118087         (strcasecmp): Work correctly in multibyte locales.
118089 2005-08-16  Bruno Haible  <bruno@clisp.org>
118091         * lib/mbiter.h: New file.
118093 2005-08-16  Bruno Haible  <bruno@clisp.org>
118095         * lib/mbfile.h: New file.
118097 2005-08-16  Bruno Haible  <bruno@clisp.org>
118099         * lib/mbchar.h: New file.
118100         * lib/mbchar.c: New file.
118102 2005-08-16  Bruno Haible  <bruno@clisp.org>
118104         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
118105         the valid ones. Makes the comparison operations transitive:
118106         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
118107         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
118109 2005-08-15  Simon Josefsson  <jas@extundo.com>
118111         * modules/ssize_t (License): Change to 'unlimited'.
118113         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
118115 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
118117         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
118118         Add comments for each pending glibc patch.
118120 2005-08-15  Bruno Haible  <bruno@clisp.org>
118122         * lib/regex.h (__restrict_arr): Don't define to __restrict if
118123         __cplusplus is defined.
118125 2005-08-14  Jim Meyering  <jim@meyering.net>
118127         Sync from coreutils.
118129         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
118130         Use the hash-table-based cycle-detection code not just when
118131         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
118132         Reported by James Youngman in
118133         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
118134         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
118135         FTS_TIGHT_CYCLE_CHECK.
118136         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
118137         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
118138         once again.
118139         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
118140         * lib/fts.c (fd_safer): Remove decl.
118141         Include fcntl--.h rather than unistd-safer.h
118142         (fts_safe_changedir): Don't call fd_safer; no longer needed
118143         now that we include fcntl--.h.
118145 2005-08-12  Simon Josefsson  <jas@extundo.com>
118147         * modules/getndelim2: Use ssize_t module.
118148         * modules/getnline: Likewise.
118149         * modules/safe-read: Likewise.
118150         * modules/xreadlink: Likewise.
118152         * modules/ssize_t: New file.
118154 2005-08-12  Simon Josefsson  <jas@extundo.com>
118156         * m4/readline.m4: Look for termcap, curses or ncurses if required.
118158 2005-08-12  Simon Josefsson  <jas@extundo.com>
118160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
118161         ssize_t.
118163 2005-08-12  Simon Josefsson  <jas@extundo.com>
118165         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
118166         readline, getdelim and check_version.
118167         (Support for systems lacking ISO C 99: Sizes of integer types):
118168         Add size_max.
118170 2005-08-12  Bruno Haible  <bruno@clisp.org>
118172         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
118174 2005-08-11  Simon Josefsson  <jas@extundo.com>
118176         * modules/readline: New file.
118178         * modules/strnlen (Files): Add strnlen.h.
118180 2005-08-11  Simon Josefsson  <jas@extundo.com>
118182         * m4/readline.m4: New file.
118184 2005-08-11  Simon Josefsson  <jas@extundo.com>
118186         * lib/readline.h, readline.c: New file.
118188 2005-08-11  Simon Josefsson  <jas@extundo.com>
118190         * doc/gnulib.texi (Initial import, Finishing touches): Mention
118191         gl_AVOID.
118193 2005-08-11  Bruno Haible  <bruno@clisp.org>
118195         * lib/strnlen.h (strnlen): Change parameter name to match comment.
118197 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
118199         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
118201 2005-08-10  Simon Josefsson  <jas@extundo.com>
118203         * tests/test-iconvme.c: New file.
118205 2005-08-10  Simon Josefsson  <jas@extundo.com>
118207         * m4/strnlen.m4: New file.
118209         * m4/strndup.m4: Don't check for strnlen declaration, done in
118210         strnlen.m4.
118212 2005-08-10  Simon Josefsson  <jas@extundo.com>
118214         * lib/strndup.c: Use strnlen.h.
118216         * lib/strnlen.h: New file.
118218 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118220         * README: Typos.
118222 2005-08-02  Simon Josefsson  <jas@extundo.com>
118224         * modules/readline: New file.
118226 2005-08-02  Simon Josefsson  <jas@extundo.com>
118228         * modules/getdelim: New file.
118230         * modules/getline: Rewrite, don't use getndelim2.
118232 2005-08-02  Simon Josefsson  <jas@extundo.com>
118234         * m4/getline.m4: Separate out getdelim stuff into separate module.
118236         * m4/getdelim.m4: New file.
118238 2005-08-02  Simon Josefsson  <jas@extundo.com>
118240         * lib/getline.h, getline.c: Rewrite.
118242         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
118244 2005-07-31  Bruno Haible  <bruno@clisp.org>
118246         * lib/lock.h (gl_lock_initializer): New macro.
118247         (gl_lock_define_initialized): Use it.
118248         (gl_rwlock_initializer): New macro.
118249         (gl_rwlock_define_initialized): Use it.
118250         (gl_recursive_lock_initializer): New macro.
118251         (gl_recursive_lock_define_initialized): Use it.
118253 2005-07-30  Karl Berry  <karl@gnu.org>
118255         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
118256         Report from Ben Pfaff, regarding getopt.
118258 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
118260         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
118261         normal way.
118262         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
118263         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
118264         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
118265         (gl_GETOPT): Use the new macros.  Most of the implementation
118266         is moved to the new macros.  This is for programs like Emacs
118267         that don't want all the functionality of gl_GETOPT.
118269 2005-07-26  Bruno Haible  <bruno@clisp.org>
118271         * m4/lock.m4: Update from GNU gettext.
118273 2005-07-26  Bruno Haible  <bruno@clisp.org>
118275         * lib/lock.h: Update from GNU gettext.
118276         * lib/lock.c: Update from GNU gettext.
118278 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
118280         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
118281         obsolescent AC_TRY_RUN.  Include the default includes files, for
118282         'exit'.
118284 2005-07-24  Bruno Haible  <bruno@clisp.org>
118286         * modules/visibility: New file.
118287         * MODULES.html.sh (Misc): Add visibility.
118289 2005-07-24  Bruno Haible  <bruno@clisp.org>
118291         * m4/visibility.m4: New file.
118293 2005-07-24  Bruno Haible  <bruno@clisp.org>
118295         * doc/visibility.texi: New file.
118297 2005-07-22  Bruno Haible  <bruno@clisp.org>
118299         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
118300         $(ALLOCA_H), redundant through BUILT_SOURCES.
118301         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
118302         redundant through BUILT_SOURCES.
118303         * modules/byteswap (Makefile.am): Remove explicit dependency on
118304         $(BYTESWAP_H), redundant through BUILT_SOURCES.
118305         * modules/fnmatch (Makefile.am): Remove explicit dependency on
118306         $(FNMATCH_H), redundant through BUILT_SOURCES.
118307         * modules/getopt (Makefile.am): Remove explicit dependency on
118308         $(GETOPT_H), redundant through BUILT_SOURCES.
118309         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
118310         redundant through BUILT_SOURCES.
118311         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
118312         redundant through BUILT_SOURCES.
118313         * modules/stdbool (Makefile.am): Remove explicit dependency on
118314         $(STDBOOL_H), redundant through BUILT_SOURCES.
118315         * modules/stdint (Makefile.am): Remove explicit dependency on
118316         $(STDINT_H), redundant through BUILT_SOURCES.
118317         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
118318         Remove explicit dependency on $(SYSEXITS_H).
118319         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
118321 2005-07-18  Simon Josefsson  <jas@extundo.com>
118323         * lib/check-version.c (check_version): Accept identical versions too.
118325 2005-07-18  Bruno Haible  <bruno@clisp.org>
118327         * modules/lock: New file.
118328         * MODULES.html.sh (Multithreading): New section.
118330 2005-07-18  Bruno Haible  <bruno@clisp.org>
118332         * m4/lock.m4: New file, from GNU gettext.
118334 2005-07-18  Bruno Haible  <bruno@clisp.org>
118336         * lib/lock.h: New file, from GNU gettext.
118337         * lib/lock.c: New file, from GNU gettext.
118339 2005-07-18  Bruno Haible  <bruno@clisp.org>
118341         * lib/lock.h (gl_once_t): New type.
118342         (gl_once_define, gl_once): New macros.
118343         * lib/lock.c (fresh_once): New variable.
118344         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
118345         functions.
118347 2005-07-16  Simon Josefsson  <jas@extundo.com>
118349         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
118350         workaround, suggested by Bruno.
118352 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118354         * modules/xalloc (Depends-on): Add xalloc-die.
118355         * modules/xvasprintf (Depends-on): Add xalloc-die.
118357 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
118359         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
118360         with a minor change.
118362 2005-07-15  Bruno Haible  <bruno@clisp.org>
118364         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
118365         When using lib/poll.c, define poll as rpl_poll.
118367 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
118369         * modules/argp (Depends-on): Remove unlocked-io.
118371 2005-07-14  Derek Price  <derek@ximbiot.com>
118373         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
118374         for glob symlink bug.
118376 2005-07-14  Bruno Haible  <bruno@clisp.org>
118378         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
118379         Instead, test for *_unlocked function declarations directly.
118381 2005-07-11  Simon Josefsson  <jas@extundo.com>
118383         * modules/size_max: New file.
118385         * modules/xsize: Depend on size_max module for size_max.m4.
118387 2005-07-11  Simon Josefsson  <jas@extundo.com>
118389         * lib/size_max.h: New file.
118391 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
118393         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
118394         copyright symbol and the year.
118395         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
118396         (version_etc_va): Use parameterized copyright notice.
118397         Reword to conform to the current GNU coding standards.
118399 2005-07-11  Karl Berry  <karl@gnu.org>
118401         * doc/gnulib.texi (Quoting): new node.
118402         (Initial import): more info, from Patrice.
118404 2005-07-11  Bruno Haible  <bruno@clisp.org>
118406         * gnulib-tool (func_usage): Document option --avoid.
118407         (Command line options): Handle --avoid.
118408         (func_acceptable): New function.
118409         (func_modules_transitive_closure): Use it.
118411 2005-07-11  Bruno Haible  <bruno@clisp.org>
118413         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
118414         Reported by Jim Meyering.
118416 2005-07-10  Bruno Haible  <bruno@clisp.org>
118418         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
118419         Needed when size_t is smaller than 'unsigned int'.
118420         Reported by Paul Eggert.
118422 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118424         * modules/argp (Depends-on): Add unlocked-io
118426 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118428         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
118429         block of defines.
118431 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
118433         * config/srclist.txt: Comment out regcomp.c, since we have a porting
118434         fix now.
118436 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
118437         and Paul Eggert  <eggert@cs.ucla.edu>
118439         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
118440         in wint_t, not wchar_t.  Remove now-unnecessary cast.
118442 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118444         * modules/regex (Files): Add lib/regex_internal.c,
118445         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
118446         (Depends-on): Add extensions.
118447         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
118449 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118451         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
118452         pathconf.
118453         * m4/same.m4 (gl_SAME): Likewise.
118454         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
118456         * m4/regex.m4: Adjust to new libc regex implementation.
118457         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
118458         all the .c and .h parts of (the new) regex.
118459         Quote the m4 stuff better.
118460         Check for RE_ICASE bug of old gnulib.
118461         Check for REG_STARTEND of recent libc.
118462         Rename local variables from jm_* to gl_*.
118463         Quote operand of "test -f".
118464         Say "recent enough" version of libc, not "version 2".
118465         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
118466         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
118467         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
118468         Remove check for btowc, isascii.
118469         Require AM_LANGINFO_CODESET.
118471 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118473         * lib/regex.c, regex.h: Sync from libc.
118474         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
118475         * lib/regexec.c:
118476         New files, synced from libc, except that regex_internal.h
118477         currently has a small porting fix.
118479 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
118481         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
118482         regex_internal.c, regexec.c.
118483         Add regex_internal.h too, but as a comment, since the libc version
118484         is currently broken in gnulib mode.
118486 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
118488         Support programs like Emacs that use gnulib but not gettext.
118489         * MODULES.html.sh (Internationalization functions): Add gettext-h.
118490         * modules/gettext-h: New file.
118491         * modules/gettext (Files): Remove lib/gettext.h.
118492         (Depends-on): Add gettext-h.
118493         (Makefile.am): Remove lib_SOURCES.
118494         * modules/argmatch, modules/c-stack, modules/closeout:
118495         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
118496         * modules/execute, modules/file-type, modules/getaddrinfo:
118497         * modules/getopt, modules/human, modules/javacomp:
118498         * modules/javaexec, modules/mkdir-p, modules/obstack:
118499         * modules/openat, modules/pagealign_alloc, modules/pipe:
118500         * modules/quotearg, modules/regex, modules/rpmatch:
118501         * modules/unicodeio, modules/userspec, modules/version-etc:
118502         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
118503         * modules/xsetenv:
118504         Depend on gettext-h, not gettext.
118506 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
118508         * gnulib-tool (func_import): Add support for 'public domain' license.
118509         * modules/alloca, modules/atexit, modules/memmove:
118510         Now public domain, not GPL.
118511         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
118512         * modules/realloc, modules/strerror, modules/strtod:
118513         Now LGPL, not GPL.
118515 2005-07-05  Bruno Haible  <bruno@clisp.org>
118517         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
118518         autoconf CVS. Needed for mingw.
118520 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118522         Remove the dependency of the strftime module on the tzset module.
118523         * modules/strftime (Depends-on): Remove dependency on tzset.
118525 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118527         Remove the dependency of the strftime module on the tzset module.
118528         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
118529         gl_FUNC_TZSET_CLOBBER.
118531 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
118533         Remove the dependency of the strftime module on the tzset module.
118534         * lib/strftime.c (my_strftime)
118535         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
118536         Copy the input structure, to work around some of the bug with
118537         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
118538         Solaris releases, you should also use the tzset module, but we won't
118539         require it as a dependency any more since we don't want LGPLed code
118540         to depend on GPLed code.
118542 2005-07-02  Jim Meyering  <jim@meyering.net>
118544         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
118545         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
118546         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
118547         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
118549 2005-07-02  Jim Meyering  <jim@meyering.net>
118551         * lib/backupfile.c (backup_args): Change a `0' to NULL.
118553 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
118555         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
118556         declares only 'struct timespec;' (!).
118558 2005-07-01  Jim Meyering  <jim@meyering.net>
118560         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
118561         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
118562         * lib/save-cwd.c, tempname.c:
118563         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118564         and don't include <sys/file.h>).
118566 2005-06-29  Jim Meyering  <jim@meyering.net>
118568         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
118569         type name.  Use the variable name instead.
118570         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
118571         Likewise.
118573 2005-06-28  Simon Josefsson  <jas@extundo.com>
118575         * modules/check-version (Files): Add check-version.m4.
118577 2005-06-28  Simon Josefsson  <jas@extundo.com>
118579         * m4/check-version.m4: New file, suggested by Jim Meyering
118580         <jim@meyering.net>.
118582 2005-06-28  Simon Josefsson  <jas@extundo.com>
118584         * lib/check-version.h, lib/check-version.c: New files.
118586 2005-06-28  Simon Josefsson  <jas@extundo.com>
118588         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
118589         collision with global variable.  Better indentation.  Don't
118590         increment buffer pointer beyond buffer end.  Based on comments
118591         from Paul Eggert <eggert@cs.ucla.edu>.
118593         * lib/base64.h: Indent.
118595 2005-06-28  Simon Josefsson  <jas@extundo.com>
118597         * doc/gnulib.texi (Library version handling): New section.
118599 2005-06-28  Jim Meyering  <jim@meyering.net>
118601         * check-module (find_included_lib_files): Hard-code another
118602         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
118603         but modules/fts-lgpl (correctly) does not list those files.
118605         * modules/canonicalize (Files): Add lib/pathmax.h.
118607 2005-06-25  Simon Josefsson  <jas@extundo.com>
118609         * modules/check-version: New file.
118611 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
118613         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
118614         initializer of struct addrinfo, as an indication that we don't
118615         care how many members the structure has.
118617 2005-06-24  Derek Price  <derek@ximbiot.com>
118618         and Bruno Haible  <bruno@clisp.org>
118620         Remove stat module & update lstat.
118621         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
118622         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118623         * m4/stat.m4: Remove this file.
118625 2005-06-24  Derek Price  <derek@ximbiot.com>
118626         and Bruno Haible  <bruno@clisp.org>
118628         Remove stat module & update lstat.
118629         * lib/stat.c: Remove this file...
118630         (slash_aware_lstat): ...moving this content and its support...
118631         * lib/lstat.c (rpl_lstat): ...into here.
118632         * lib/lstat.h: New file.
118634 2005-06-24  Derek Price  <derek@ximbiot.com>
118635         and Bruno Haible  <bruno@clisp.org>
118637         Remove stat module & update lstat.
118638         * config/srclist.txt (libc sources): Remove stat.
118640 2005-06-24  Derek Price  <derek@ximbiot.com>
118641         and Bruno Haible  <bruno@clisp.org>
118643         Remove stat module & update lstat.
118644         * MODULES.html.sh (stat): Remove.
118645         * MODULES.html: Regenerated.
118646         * modules/lstat (Description): Correct function name.
118647         (Files): Add "lstat.h".
118648         (Depends-on): Remove stat, add xalloc, stat-macros.
118649         * modules/stat: Remove this file.
118650         (Include): Add "lstat.h", remove <sys/stat.h>.
118652 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
118654         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
118655         (ranged_convert): Don't save conversion in a temporary struct.
118656         This causes a warning with GCC 4.0.0, and anyway in the typical
118657         case it's not worth the extra 100 bytes or so of code.
118658         (ranged_convert, __mktime_internal): When calling a function via a
118659         pointer P, use P () rather than (*P) (), as we now assume C89 or
118660         better.
118662 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
118664         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
118665         "who -r" failed to give output.  Problem reported by Tim Waugh.
118667         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
118668         (xcalloc): Use it to avoid needless tests.
118669         Problem reported by Jim Meyering.
118671 2005-06-20  Derek Price  <derek@ximbiot.com>
118673         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
118674         unnecessary for Autoconfs > 2.59c.
118676 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
118678         * lib/argp.h (__option_is_short): Check upper limit of
118679         __key. Isprint() requires its argument to have the value
118680         of an unsigned char or EOF.
118682 2005-06-16  Jim Meyering  <jim@meyering.net>
118684         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
118685         when either N or S is zero.
118687 2005-06-16  Derek Price  <derek@ximbiot.com>
118689         * m4/bison.m4: Declare YACC & YFLAGS precious.
118691 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
118693         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
118694         multibyte string or pattern, fall back on unibyte matching.
118695         Problem reported by James Youngman.
118697 2005-06-08  Bruno Haible  <bruno@clisp.org>
118699         * modules/csharpcomp: New file.
118700         * MODULES.html.sh (C#): Add csharpcomp.
118702 2005-06-08  Bruno Haible  <bruno@clisp.org>
118704         * m4/csharpcomp.m4: New file, from GNU gettext.
118706 2005-06-08  Bruno Haible  <bruno@clisp.org>
118708         * lib/csharpcomp.h: New file, from GNU gettext.
118709         * lib/csharpcomp.c: New file, from GNU gettext.
118710         * lib/csharpcomp.sh.in: New file, from GNU gettext.
118712 2005-06-08  Bruno Haible  <bruno@clisp.org>
118714         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
118715         warning on mingw.
118717 2005-06-07  Derek Price  <derek@ximbiot.com>
118719         Sync from CVS.
118720         * lib/glob_.h: Indent nested #ifdef.
118722 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118724         Sync from coreutils.
118725         Use "file name" when talking about file names, instead of "filename"
118726         or "path", as per the GNU coding standards.
118727         * lib/mkdir-p.c: Renamed from makepath.c.
118728         (make_dir_parents): Renamed from make_path.  All callers changed.
118729         * lib/mkdir-p.h: Likewise.  All includers changed.
118730         * lib/filenamecat.c: Renamed from path-concat.c.
118731         (file_name_concat): Renamed from path_concat.  All callers changed.
118732         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
118733         * lib/filenamecat.h: Likewise.  All includers changed.
118734         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
118735         in comments or local variable names.
118736         * lib/basename.c: Likewise.
118737         * lib/canonicalize.c, canonicalize.h: Likewise.
118738         * lib/dirname.c, dirname.h: Likewise.
118739         * lib/euidaccess.c: Likewise.
118740         * lib/exclude.c: Likewise
118741         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
118742         * lib/fsusage.c, fsuage.h: Likewise.
118743         * lib/fts.c, fts_.h: Likewise.
118744         * lib/getcwd.c: Likewise.
118745         * lib/getloadavg.c: Likewise.
118746         * lib/mkstemp.c: Likewise.
118747         * lib/mountlist.c, mountlist.h: Likewise.
118748         * lib/openat.c, openat.h: Likewise.
118749         * lib/readlink-stub.c: Likewise.
118750         * lib/readutmp.c, readutmp.h: Likewise.
118751         * lib/rename.c: Likewise.
118752         * lib/rmdir.c: Likewise.
118753         * lib/same.c: Likewise.
118754         * lib/savedir.c: Likewise.
118755         * lib/stripslash.c: Likewise.
118756         * lib/tempname.c: Likewise.
118757         * lib/xreadlink.c: Likewise.
118758         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
118759         All uses changed.
118760         * lib/exclude.h: Likewise.
118762         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
118763         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118764         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
118765         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118766         * lib/pathmax.h: Include <limits.h> unconditionally, since other
118767         files have been getting away with it for years (MORE/BSD 4.3
118768         is extinct now).
118769         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
118770         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
118772         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
118773         Define to 256, not 255, as per modern POSIX.
118775 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118777         Sync from coreutils.
118778         Use "file name" when talking about file names, instead of "filename"
118779         or "path", as per the GNU coding standards.
118780         * MODULES.html.sh: mkdir-p renamed from makepath.
118781         filenamecat renamed from path-concat.
118782         * modules/filenamecat: Renamed from modules/path-concat.
118783         (Files): filenamecat.h and filenamecat.c renamed from
118784         path-concat.h and path-concat.c.
118785         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
118786         (Include): filenamecat.h, not path-concat.h.
118787         * modules/mkdir-p: Renamed from modules/makepath.
118788         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
118789         makepath.c.
118790         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
118791         (Include): mkdir-p.h, not makepath.h.
118793 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
118795         Sync from coreutils.
118796         * m4/mkdir-p.m4: Renamed from makepath.m4.
118797         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
118798         Rename files from makepath.c to mkdir-p.c, and from
118799         makepath.h to mkdir-p.h.
118800         * m4/filenamecat.m4: Renamed from path-concat.m4.
118801         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
118802         Rename files from path-concat.c to filenamecat.c,
118803         and from path-concat.h to filenamecat.h.
118804         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
118805         "file name" in local variables or comments.
118806         * m4/rename.m4: Likewise.
118808 2005-06-01  Bruno Haible  <bruno@clisp.org>
118810         * modules/csharpexec: New file.
118811         * MODULES.html.sh (C#): New section.
118813 2005-06-01  Bruno Haible  <bruno@clisp.org>
118815         * m4/csharp.m4: New file, from GNU gettext.
118816         * m4/csharpexec.m4: New file, from GNU gettext.
118818 2005-06-01  Bruno Haible  <bruno@clisp.org>
118820         * lib/csharpexec.h: New file, from GNU gettext.
118821         * lib/csharpexec.c: New file, from GNU gettext.
118822         * lib/csharpexec.sh.in: New file, from GNU gettext.
118824 2005-05-31  Derek Price  <derek@ximbiot.com>
118825             Paul Eggert  <eggert@cs.ucla.edu>
118827         Sync from cvs.
118828         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118830 2005-05-31  Derek Price  <derek@ximbiot.com>
118831             Paul Eggert  <eggert@cs.ucla.edu>
118833         Sync from cvs.
118834         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
118836 2005-05-29  Derek Price  <derek@ximbiot.com>
118838         * config/srclist.txt (glob_.h, glob.c): Add these files.
118840 2005-05-29  Derek Price  <derek@ximbiot.com>
118842         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
118843         * modules/glob: New file.
118844         * modules/getlogin_r: Add link to POSIX spec in description.
118846 2005-05-29  Derek Price  <derek@ximbiot.com>
118847             Paul Eggert  <eggert@cs.ucla.edu>
118849         * m4/glob.m4: New file.
118851 2005-05-29  Derek Price  <derek@ximbiot.com>
118852             Paul Eggert  <eggert@cs.ucla.edu>
118854         * lib/glob_.h, lib/glob.c: New files.
118856 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118858         * modules/fts (Files): Remove m4/inttypes-pri.m4.
118859         * modules/fts-lgpl (Depends-on): Remove gettext.
118861 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118863         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
118864         and don't require gt_INTTYPES_PRI.
118866 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
118868         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
118870         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
118871         the configuration hassle isn't worth it.
118872         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
118873         (LONGEST_MODIFIER, PRIuMAX): Remove.
118875 2005-05-27  Bruno Haible  <bruno@clisp.org>
118877         * lib/getlogin_r.h: Remove second include of <stddef.h>.
118879 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
118881         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
118882         _POSIX_PTHREAD_SEMANTICS for Solaris.
118884 2005-05-25  Derek Price  <derek@ximbiot.com>
118886         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
118888 2005-05-25  Derek Price  <derek@ximbiot.com>
118889             Paul Eggert  <eggert@cs.ucla.edu>
118891         * modules/getlogin_r, m4/getlogin_r.m4: New files.
118892         * lib/getlogin_r.c, getlogin_r.h: New files.
118894 2005-05-25  Bruno Haible  <bruno@clisp.org>
118895             Derek Price  <derek@ximbiot.com>
118897         * lib/getlogin_r.h: Simplify API documentation.
118899 2005-05-23  Derek Price  <derek@ximbiot.com>
118901         * modules/minmax (Files): Add m4/minmax.m4.
118902         (configure.ac): Add gl_MINMAX.
118904 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
118906         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
118907         so that unistd-safer.h (GPL'ed code) need not be included.
118909 2005-05-22  Bruno Haible  <bruno@clisp.org>
118911         * m4/minmax.m4: New file.
118912         Based on a patch by Derek Price <derek@ximbiot.com>.
118914 2005-05-22  Bruno Haible  <bruno@clisp.org>
118916         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
118917         (INT64_MIN): Fix definition.
118918         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
118920         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
118921         NEED_SIGNED_INT_TYPES.
118923         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
118924         HAVE_SYSTEM_INTTYPES.
118926 2005-05-22  Bruno Haible  <bruno@clisp.org>
118928         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
118929         Also include <sys/param.h> if it defines MIN, MAX.
118930         Based on a patch by Derek Price <derek@ximbiot.com>.
118932 2005-05-21  Jim Meyering  <jim@meyering.net>
118934         * modules/fts (Files): Add m4/inttypes-pri.m4.
118935         (Depends-on): Add lstat and remove gettext.  Alphabetize.
118937 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118939         New fts module.
118940         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
118941         (setup_dir, free_dir): New functions.
118942         (enter_dir, leave_dir): Define trivial
118943         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
118944         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
118945         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
118946         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
118947         Move to fts-cycle.c.
118948         (fts_open): Use setup_dir.
118949         (fts_close): Use free_dir.
118950         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
118951         This adds a label and some gotos, but the alternatives were messier.
118952         Check for memory allocation failure when entering a dir.
118953         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
118954         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
118955         (FTS): New member fts_cycle, that is a union that contains the
118956         old active_dir_ht and cycle_state.  All uses changed to mention
118957         fts_cycle.ht and fts_cycle.state.
118958         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
118959         fts.c, with the following changes:
118960         (setup_dir, free_dir): New functions.
118961         (enter_dir): Now returns bool.  Return true if successful, false
118962         if memory exhausted.  All callers changed.
118963         Do not bother partly cleaning up on
118964         memory allocation failure; that is free_dir's job.
118965         However, free ad if hash_insert fails, to avoid memory leak.
118966         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
118967         fts->fts_options to see which union member to use.
118969 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118971         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
118972         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
118974 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
118976         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
118978 2005-05-20  Jim Meyering  <jim@meyering.net>
118980         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
118981         Now a macro, to pacify GCC.
118983 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118985         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
118986         of -1.
118988 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
118990         * lib/chown.c (rpl_chown): Return -1 on failure.
118992 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
118994         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
118995         Don't check for stddef.h.
118996         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
118997         don't use its results.
118998         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
118999         since we include them unconditionally.  Don't require
119000         AM_STDBOOL_H, since stdbool is a prerequisite.
119001         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
119002         since we assume C89 or better.
119003         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
119004         as we don't use their results.
119005         Don't check for fchdir, memmove, memset, strrchr, as we use
119006         them unconditionally.
119007         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
119008         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
119010 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
119012         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
119013         Include <stddef.h> unconditionally, since we assume C89 now.
119014         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
119015         * lib/fts.c: Include fts_.h first, to check interface.
119016         Do not include intprops.h; no longer needed.
119017         Include cycle-check.h and hash.h, since fts_.h no longer does.
119018         Remove unnecessary casts of closedir to void.
119019         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
119020         decide whether to decrement nlinks.
119021         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
119022         (FTS): Use struct hash_table * instead of Hash_table, so that
119023         we no longer need to include hash.h here.
119025 2005-05-18  Jim Meyering  <jim@meyering.net>
119027         * modules/dirfd (License): Change to LGPL.  Most of the code
119028         is already in the public domain.
119030 2005-05-18  Jim Meyering  <jim@meyering.net>
119032         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
119033         Reported by Yoann Vandoorselaere.
119035 2005-05-17  Jim Meyering  <jim@meyering.net>
119037         * m4/fts.m4: New file, from coreutils.
119039 2005-05-17  Jim Meyering  <jim@meyering.net>
119041         * lib/fts.c, lib/fts_.h: New files, from coreutils.
119043 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119045         Sync from coreutils.
119046         * m4/unlinkdir.m4: New file.
119048 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119050         Sync from coreutils.
119051         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
119052         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
119053         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
119054         White space changes only.
119055         * lib/makepath.c (make_path): Port to hosts where leading "//" is
119056         special.
119057         * lib/yesno.c: Include getline.h, not ctype.h.
119058         (yesno): Don't remove leading white space; POSIX doesn't allow it.
119059         Use getline to remove arbitrary restriction on response length.
119061 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
119063         * config/srclist-update: Spell out "Street" in FSF postal
119064         mail address; this is the style the FSF seems to prefer.
119066         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
119067         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
119068         this updates FSF postal mail address.
119070         Sync from coreutils.
119071         * modules/unlinkdir: New file.
119072         * modules/yesno (Depends-on): Add getline.
119073         * MODULES.html.sh (File system functions): Add unlinkdir.
119075 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119077         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
119078         lib/strsep.h:
119079         Change the initial comment to refer to GPL, not LGPL.
119080         gnulib-tool will change it to LGPL as needed.
119082         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
119083         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
119084         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
119085         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
119086         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
119087         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
119088         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
119089         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
119090         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
119091         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
119092         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
119093         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
119094         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
119095         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
119096         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
119097         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
119098         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
119099         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
119100         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
119101         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
119102         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
119103         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
119104         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
119105         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
119106         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
119107         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
119108         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
119109         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
119110         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
119111         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
119112         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
119113         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
119114         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
119115         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
119116         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
119117         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
119118         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
119119         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
119120         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
119121         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
119122         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
119123         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
119124         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
119125         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
119126         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
119127         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
119128         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
119129         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
119130         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
119131         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
119132         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
119133         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
119134         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
119135         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
119136         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
119137         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
119138         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
119139         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
119140         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
119141         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
119142         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
119143         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
119144         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
119145         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
119146         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
119147         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
119148         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
119149         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
119150         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
119151         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
119152         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
119153         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
119154         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
119155         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
119156         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
119157         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
119158         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
119159         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
119160         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
119161         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
119162         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
119163         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
119164         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
119165         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
119166         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
119167         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
119168         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
119169         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
119170         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
119171         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
119172         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
119173         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
119174         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
119175         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
119176         lib/yesno.c, lib/yesno.h:
119177         Update FSF postal mail address.
119179 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
119181         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
119182         tests/test-memmem.c, tests/test-stpncpy.c:
119183         Update FSF postal mail address.
119185 2005-05-13  Bruno Haible  <bruno@clisp.org>
119187         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
119188         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
119189         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
119190         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
119191         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
119192         Add support for 64-bit integers in the MSVC compiler.
119194 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
119196         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
119198 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
119200         * gnulib-tool (func_import): Sort and uniquify recommended includes.
119202 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
119204         * doc/getdate.texi (General date syntax): Don't say that date
119205         date --iso-8601=ns generates acceptable dates; it doesn't yet.
119206         Problem reported by Nic Ferrier.
119208 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119210         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
119211         specified in ai_socktype. Fix invalid ai_protocol
119212         check. ai_protocol is usually set to 0 or depending on
119213         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
119214         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
119215         ai_socktype / ai_protocol in the returned addrinfo structure.
119217 2005-05-10  Simon Josefsson  <jas@extundo.com>
119219         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
119220         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119222 2005-05-10  Karl Berry  <karl@gnu.org>
119224         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
119225         (from http://www.gnu.org/licenses).
119226         * doc/COPYING.LIB: also rename to COPYING.LESSER.
119227         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
119228         fdl.texi suffices.
119230 2005-05-10  Karl Berry  <karl@gnu.org>
119232         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
119233         (COPYING.DOC): remove.
119235         * config/srclist-update: new FSF address.
119237 2005-05-10  Derek Price  <derek@ximbiot.com>
119239         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
119240         possible.
119242 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119243             Bruno Haible  <bruno@clisp.org>
119245         * modules/inet_ntop: New file.
119246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
119247         inet_ntop.
119249 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119250             Bruno Haible  <bruno@clisp.org>
119252         * m4/inet_ntop.m4: New file.
119254 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
119255             Bruno Haible  <bruno@clisp.org>
119257         * lib/inet_ntop.h: New file.
119258         * lib/inet_ntop.c: New file, from glibc with modifications.
119260 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
119262         * modules/time_r (License): Change to LGPL.
119263         * modules/extensions (License): Change to LGPL.  Actually,
119264         the license is more permissive than that, but currently gnulib-tool
119265         doesn't know how to handle more-permissive licenses.
119267         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
119268         Problem reported by Dave Love.
119270 2005-05-08  Jim Meyering  <jim@meyering.net>
119272         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
119273         blank.
119275 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
119277         * modules/argmatch (Depends-on): Add stdbool.
119278         * modules/backupfile (Depends-on): Likewise.
119279         * modules/chdir-long (Depends-on): Likewise.
119280         * modules/closeout (Depends-on): Likewise.
119281         * modules/cycle-check (Depends-on): Likewise.
119282         * modules/dirname (Depends-on): Likewise.
119283         * modules/fnmatch (Depends-on): Likewise.
119284         * modules/fsusage (Depends-on): Likewise.
119285         * modules/fwriteerror (Depends-on): Likewise.
119286         * modules/getcwd (Depends-on): Likewise.
119287         * modules/getloadavg (Depends-on): Likewise.
119288         * modules/hard-locale (Depends-on): Likewise.
119289         * modules/makepath (Depends-on): Likewise.
119290         * modules/mountlist (Depends-on): Likewise.
119291         * modules/nanosleep (Depends-on): Likewise.
119292         * modules/posixtm (Depends-on): Likewise.
119293         * modules/quotearg (Depends-on): Likewise.
119294         * modules/readtokens (Depends-on): Likewise.
119295         * modules/readtokens0 (Depends-on): Likewise.
119296         * modules/readutmp (Depends-on): Likewise.
119297         * modules/save-cwd (Depends-on): Likewise.
119298         * modules/strftime (Depends-on): Likewise.
119299         * modules/userspec (Depends-on): Likewise.
119300         * modules/utimecmp (Depends-on): Likewise.
119301         * modules/xgetcwd (Depends-on): Likewise.
119302         * modules/xnanosleep (Depends-on): Likewise.
119303         * modules/xstrtod (Depends-on): Likewise.
119304         * modules/yesno (Depends-on): Likewise.
119306 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
119308         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
119309         needless checks.
119311 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119313         Merge from coreutils.  Among other things,
119314         add bulletproofing for cases where stdin, stdout, or stderr are closed.
119315         * lib/fd-safer.c: New file.
119316         * lib/fcntl-safer.h, open-safer.c: Remove.
119317         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
119318         * lib/dup-safer.c: Include unistd-safer.h first.
119319         Don't include errno.h.
119320         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
119321         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
119322         * lib/file-type.c: Rely on file-type.h change.
119323         * lib/getloadavg.c: Include unistd-safer.h.
119324         (getloadavg): Use safer open.
119325         * lib/getusershell.c: Include "stdio-safer.h".
119326         (getusershell): Use safer fopen.
119327         * lib/long-options.c (long_options): Use NULL rather than 0.
119328         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
119329         'free'.
119330         * lib/modechange.c: Likewise.
119331         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
119332         (MODE_DONE): New constant.
119333         (struct mode_change): Remove 'next' member.
119334         (make_node_op_equals): New function; like the old one of the
119335         same name, except it allocates an array.
119336         (mode_compile, mode_create_from_ref): Use it.
119337         (mode_compile): Allocate result as an array, not a linked list.
119338         Parse octal string ourself, so that we catch mistakes like "+0".
119339         (mode_adjust): Arg is an array, not a linked list.
119340         * lib/modechange.c: Include stat-macros.h, xalloc.h.
119341         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
119342         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
119343         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
119344         Remove.  This is now stat-macros.h's job.
119345         (talloc): Remove.  All callers replaced by xalloc, so that
119346         our invokers don't have to worry about reporting memory failures.
119347         (make_node_op_equals): Remove.
119348         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119349         New constants.
119350         (struct mode_change): Moved here from modechange.h.
119351         (mode_append_entry): Remove.
119352         (mode_compile): Remove MASKED_OPS arg, since it encouraged
119353         apps to have incorrect behavior.  Use simpler algorithm for head
119354         and tail.  Don't futz with umask; that's now the job of mode_adjust.
119355         Detect more invalid usages rather than having somewhat-random behavior.
119356         Don't insert an "a=" action, as that leads to incorrect behavior.
119357         (mode_compile, mode_create_from_ref): Return NULL on error instead
119358         of an enum, since now there's only one way to have an error.  All
119359         callers changed.
119360         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
119361         at the correct time.  Simplify calculation of "+u" and its ilk.
119362         Don't mishandle "+X".
119363         (mode_free): Remove "register" and localize decls.
119364         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
119365         (struct mode_change): Move to modechange.c; callers don't
119366         need to see this stuff.
119367         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
119368         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
119369         (mode_change, mode_adjust): Reflect the new signatures noted above.
119370         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
119371         that might redefine system include files.
119372         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
119373         (my_usleep): Use NULL rather than (void *) 0.
119374         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
119375         Use siginterrupt to specify that system calls should be interrupted.
119376         (rpl_nanosleep): Move initialization of suspended closer to call of
119377         my_usleep.
119378         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
119379         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
119380         (desirable_utmp_entry): New function.
119381         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
119382         using x2nrealloc, to simplify logic.
119383         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
119384         size calculation.  Do not assume utmp file is a regular file.
119385         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
119386         (READ_UTMP_CHECK_PIDS): New constant.
119387         * lib/save-cwd.c: Include unistd-safer.h.
119388         (save_cwd): Use fd_safer.
119389         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
119390         [!_LIBC] Include "stat-macros.h" instead.
119391         * lib/unistd-safer.h (fd_safer): New decl.
119393 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119395         * modules/getloadavg (Depends-on): Add unistd-safer.
119396         * modules/getusershell (Depends-on): Add stdio-safer.
119397         * modules/lstat (Depends-on): Remove xalloc.
119398         * modules/mkstemp (Depends-on): Add stat-macros.
119399         * modules/modechange (Depends-on): Remove xstrtol.
119400         Add stat-macros, xalloc.
119401         * modules/save-cwd (Depends-on): Add unistd-safer.
119402         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
119403         * modules/unistd-safer (Files): Add lib/fd-safer.c
119404         (Makefile.am): Remove lib_SOURCES.
119406         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
119407         Remove fcntl-safer; unistd-safer supersedes it.
119409 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119411         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
119412         AC_HEADER_STAT.
119413         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
119414         (gl_PREREQ_CHOWN): Remove.
119415         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
119416         it.  Don't require AC_HEADER_STAT.
119417         (gl_PREREQ_LSTAT): Remove.
119418         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
119419         Don't require AC_HEADER_STAT.
119420         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
119421         (gl_PREREQ_RMDIR): Remove.
119422         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
119423         mention stat-macros.h or AC_HEADER_STAT, since we'll make
119424         the stat-macros module a prerequisite.
119425         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
119426         * m4/filemode.m4 (gl_FILEMODE): Likewise.
119427         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
119428         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
119429         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
119430         variable names.
119431         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
119432         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
119433         variable prefixes.
119434         * m4/fcntl-safer.m4: Remove.
119435         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
119436         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
119437         Invoke gl_PREREQ_FD_SAFER.
119438         (gl_PREREQ_FD_SAFER): New macro.
119439         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
119440         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
119441         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
119442         Remove duplicate call to AC_LIBOBJ(readutmp).
119443         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
119445         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
119446         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
119448 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
119450         * MODULES.html.sh (Misc): Add byteswap.
119452 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119454         * modules/getcwd (Depends-on): Add extensions.
119455         * modules/openat (Depends-on): Likewise.
119457 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119459         * modules/byteswap: New file.
119461 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119463         * m4/byteswap.m4: New file.
119465 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
119467         * lib/byteswap_.h: New file.
119469 2005-04-25  Karl Berry  <karl@gnu.org>
119471         * m4/gettext.m4: Update from GNU gettext 0.14.4.
119473 2005-04-25  Albert Chin  <china@thewrittenword.com>
119475         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
119476         Toolkit C bug.
119478 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
119480         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
119481         (func_ln_if_changed): Remove forcibly for no error message
119482         in case file does not exist.
119484 2005-04-19  Simon Josefsson  <jas@extundo.com>
119486         * gnulib-tool (Options): Make --symlink mean --symbolic.
119488 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
119490         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
119492 2005-04-16  Simon Josefsson  <jas@extundo.com>
119494         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
119496 2005-04-15  Simon Josefsson  <jas@extundo.com>
119498         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
119500 2005-04-15  Simon Josefsson  <jas@extundo.com>
119502         * gnulib-tool: Rename --symlink to --symbolic.
119504 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
119506         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
119507         symbolic links to files instead of copying/moving.  Add --aux-dir,
119508         specifying directory relative --dir where auxiliary build tools
119509         are placed.
119511 2005-04-14  Bruno Haible  <bruno@clisp.org>
119513         * modules/allocsa (License): Change to LGPL.
119514         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
119516 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
119518         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
119519         that "UTC +1 second" continues to work.  Problem reported
119520         by Dmitry V. Levin.
119521         (relunit_snumber): New rule.
119522         (relunit): Use it.
119524 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
119526         * lib/getdate.y (universal_time_zone_table): New constant.
119527         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
119528         universal_time_zone_table.
119529         (lookup_zone): Prefer universal_time_zone_table to
119530         local_time_zone_table, so that "GMT" time stamps are allowed in
119531         London during the summer.  Problem reported by Ian Abbott.
119533 2005-04-12  Jim Meyering  <jim@meyering.net>
119535         * lib/human.c (humblock): Set *options even when returning due to
119536         xstrtoumax conversion failure.  Thanks to a used-uninitialized
119537         warning from gcc-4.
119539 2005-04-09  Jim Meyering  <jim@meyering.net>
119541         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
119542         -Wuninitialized: initialize tm0.tm_year.
119544 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
119546         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
119547         count, since there's no maximum.  All uses changed.
119548         Add member dsts_seen.
119549         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
119550         not being INT_MAX.
119551         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
119552         Use pc_rels_seen to decide whether a date is absolute.
119554         * lib/getdate.y (number): Don't overwrite year.
119555         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
119556         check.
119558 2005-04-02  Simon Josefsson  <jas@extundo.com>
119560         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
119561         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
119563 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
119565         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
119566         where no absolute path name can be longer than PATH_MAX.
119568 2005-03-27  Jim Meyering  <jim@meyering.net>
119570         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
119572 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
119574         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
119575         "one's complement" -> "ones' complement" in comment, as per Knuth.
119576         "value of type" -> "type or expression" in comment.
119577         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
119579 2005-03-26  Jim Meyering  <jim@meyering.net>
119581         Comment nits.
119582         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
119583         Correct typos: s/or/of/.
119585 2005-03-26  Jim Meyering  <jim@meyering.net>
119587         * modules/check-include-files: Move to ../ and rename to...
119588         * check-module: ...this.
119590 2005-03-25  Jim Meyering  <jim@meyering.net>
119592         * modules/xvasprintf (Files): Add xalloc.h.
119594 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
119596         * modules/gettext (Files): config/config.rpath ->
119597         build-aux/config.rpath
119598         * modules/iconv (Files): Likewise.
119599         Problem reported by Oskar Liljeblad.
119601 2005-03-23  Jim Meyering  <jim@meyering.net>
119603         * modules/check-include-files: New script to check for
119604         missing dependencies, multiple includes, etc.
119606         * modules/c-strtold (Depends-on): Add xalloc.
119607         * modules/c-strtod (Depends-on): Add xalloc.
119608         * modules/hash (Depends-on): Add xalloc.
119609         (Files): Remove lib/xalloc.h.
119611         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
119612         * modules/userspec (Files): Add lib/inttostr.h.
119614 2005-03-23  Jim Meyering  <jim@meyering.net>
119616         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
119618 2005-03-22  Jim Meyering  <jim@meyering.net>
119620         * modules/stat-macros: New module.
119621         * modules/canonicalize, modules/euidaccess, modules/file-type,
119622         * modules/filemode, modules/lchown, modules/makepath,
119623         * modules/rmdir, modules/stat: Depend on new stat-macros module
119624         rather than listing lib/stat-macros.h manually.
119625         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
119627 2005-03-22  Jim Meyering  <jim@meyering.net>
119629         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
119631 2005-03-22  Bruno Haible  <bruno@clisp.org>
119633         * config/srclist.txt: Replace target directory 'config' with
119634         'build-aux'.
119635         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
119636         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
119637         ../build-aux/.
119639 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
119641         * modules/chdir-long (Depends-on): Add mempcpy.
119643         * modules/acl, modules/backupfile, modules/c-strtod,
119644         modules/c-strtold, modules/canon-host, modules/canonicalize,
119645         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
119646         modules/exclude, modules/exitfail, modules/file-type,
119647         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
119648         modules/getdate, modules/getline, modules/getpagesize,
119649         modules/getpass, modules/getugroups, modules/group-member,
119650         modules/hard-locale, modules/hash, modules/human, modules/idcache,
119651         modules/inttostr, modules/long-options, modules/makepath,
119652         modules/md5, modules/memcasecmp, modules/memcoll,
119653         modules/modechange, modules/mountlist, modules/path-concat,
119654         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
119655         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
119656         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
119657         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
119658         modules/strftime, modules/strndup, modules/strverscmp,
119659         modules/timespec, modules/unlocked-io, modules/userspec,
119660         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
119661         modules/yesno:
119662         Remove lib_SOURCES line from Makefile.am section, as this is now
119663         done automatically by the corresponding Autoconf macro.
119665 2005-03-21  Jim Meyering  <jim@meyering.net>
119667         Changes imported from coreutils.
119669         * lib/cycle-check.c: Don't include xalloc.h.
119671         * lib/path-concat.c: Don't include assert.h.
119672         (path_concat): Remove assertion that would have triggered
119673         for ABASE starting with more than one slash.
119674         Reported by Andreas Schwab.
119676         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
119677         properly when ABASE is an absolute file name.
119678         Correct the description of this function.
119679         Include <assert.h>.
119680         Add an assertion and a test driver.
119681         This fixes a bug introduced on 2004-07-02.
119682         Andreas Schwab reported the resulting failure of cp --parents:
119683         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
119685 2005-03-21  Jim Meyering  <jim@meyering.net>
119687         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
119688         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
119690 2005-03-21  Jim Meyering  <jim@meyering.net>
119691         and  Paul Eggert  <eggert@cs.ucla.edu>
119693         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
119694         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
119695         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
119696         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
119697         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
119698         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
119699         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
119700         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
119701         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
119702         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
119703         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
119704         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
119705         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
119706         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
119707         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
119708         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
119709         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
119710         for these modules.
119712 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
119714         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
119715         (which shouldn't happen), generate nothing instead of returning 0
119716         immediately, so that nstrftime (NULL, ...) doesn't return 0.
119718 2005-03-16  Bruno Haible  <bruno@clisp.org>
119720         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
119721         HAVE_LONGLONG_64BIT.
119723 2005-03-16  Bruno Haible  <bruno@clisp.org>
119725         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
119726         HAVE_LONGLONG_64BIT.
119728 2005-03-16  Bruno Haible  <bruno@clisp.org>
119730         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
119731         HAVE_LONGLONG_64BIT.
119733 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119735         * lib/strftime.c (my_strftime): Prepend space to format so that we can
119736         reliably distinguish strftime failure from empty output on POSIX
119737         hosts.
119739 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
119741         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
119742         (iconv_string): Don't guess a size-zero buffer, as that might cause
119743         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
119744         result would be 'too large', where 'too large' is (heuristically)
119745         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
119746         overflow concerns.  This will prevent some unwanted malloc failures
119747         when the inputs are very large.
119749 2005-03-15  Karl Berry  <karl@gnu.org>
119751         * config/srclist.txt (config.rpath): from gettext.
119752         * config/config.rpath: update.
119754 2005-03-15  Bruno Haible  <bruno@clisp.org>
119756         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
119757         to 'negate'.
119759         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
119760         variable.
119762         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
119763         results.
119765 2005-03-14  Simon Josefsson  <jas@extundo.com>
119767         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
119768         <fx@gnu.org>.
119770 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
119772         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
119773         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
119774         intprops.h.
119775         * lib/strtol.c: Likewise.
119777 2005-03-14  Jim Meyering  <jim@meyering.net>
119779         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
119780         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
119781         to be nonzero so that we (and caller) can detect the difference
119782         between a valid zero-length expansion and an error return, even
119783         when the underlying strftime fails before writing anything into
119784         that location.
119786 2005-03-14  Bruno Haible  <bruno@clisp.org>
119788         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
119789         Update from GNU gettext 0.14.3.
119791 2005-03-10  Jim Meyering  <jim@meyering.net>
119793         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
119795 2005-03-10  Jim Meyering  <jim@meyering.net>
119797         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
119798         so that this module works on systems without fchdir.
119800 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
119802         Factor int-properties macros into a single file, except for
119803         glibc-related files.
119804         * lib/intprops.h: New file.
119805         * lib/getloadavg.c: Include it instead of limits.h.
119806         (INT_STRLEN_BOUND): Remove.
119807         * lib/human.c: Include intprops.h.
119808         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
119809         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
119810         302/1000.
119811         * lib/inttostr.h: Include intprops.h instead of limits.h.
119812         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
119813         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
119814         for consistency with intprops.h.
119815         (time_t_is_integer, twos_complement_arithmetic): Use them.
119816         * lib/sig2str.h: Include <signal.h>, intprops.h.
119817         (INT_STRLEN_BOUND): Remove.
119818         * lib/strftime.c (TYPE_SIGNED): Remove.
119819         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
119820         * lib/strtol.c: Adjust comments to match intprops.h.
119821         * lib/userspec.c: Include intprops.h.
119822         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
119823         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
119824         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
119825         instead of rolling our own expressions.
119826         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
119828         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
119829         instead of int.
119830         (my_strftime): Do not mishandle years close to INT_MAX, by doing
119831         the right thing even if adding 1900 would overflow.  Similarly
119832         for tm_mon + 1 and tm_yday + 1.
119833         Make %Y always equivalent to %C%y, and similarly for %G and %g.
119834         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
119835         (DO_SIGNED_NUMBER): New macro.
119836         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
119838 2005-03-07  Bruno Haible  <bruno@clisp.org>
119840         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
119842 2005-03-07  Bruno Haible  <bruno@clisp.org>
119844         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
119846 2005-03-04  Derek R. Price  <derek@ximbiot.com>
119848         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
119849         (func_import): Only replace files via --import when they have actually
119850         changed.
119852 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119854         * m4/mmap-anon.m4: New file.
119855         * m4/pagealign_alloc.m4: New file.
119857 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119858             Bruno Haible  <bruno@clisp.org>
119860         * modules/pagealign_alloc: New file.
119861         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
119863 2005-03-03  Derek R. Price  <derek@ximbiot.com>
119864             Bruno Haible  <bruno@clisp.org>
119866         * lib/pagealign_alloc.h: New file.
119867         * lib/pagealign_alloc.c: New file.
119869 2005-03-03  Bruno Haible  <bruno@clisp.org>
119871         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
119872         Use an all-permissive copyright notice, recommended by RMS.
119874 2005-03-02  Bruno Haible  <bruno@clisp.org>
119876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
119877         of AIX, the replacement has to be done only after <string.h> is
119878         included, therefore not in config.h. stpncpy.h does the replacement,
119879         and stpncpy.c uses it.
119881 2005-03-02  Bruno Haible  <bruno@clisp.org>
119883         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
119884         stpncpy.c uses it.
119886 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119888         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
119889         The workaround isn't strictly needed for POSIX conformance, and
119890         it's too much of a pain to configure and maintain.  We'll ask
119891         people to fix their kernels instead.
119892         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
119893         (NANOSLEEP_BUG_WORKAROUND): Remove.
119894         (xnanosleep): Remove the workaround.
119896 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119898         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
119899         Reported by Derek Price.
119900         (Include): Add "timespec.h".
119902         * modules/xnanosleep (Depends-on): Remove gethrxtime.
119904 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
119906         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
119907         to detect nanosleep bug.
119909 2005-03-01  Bruno Haible  <bruno@clisp.org>
119911         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
119913 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
119915         * modules/gethrxtime: New file.
119916         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
119917         (Depends-on): Add gethrxtime.
119918         (configure.ac): Add gl_XNANOSLEEP.
119919         (Makefile.am): Remove lib_SOURCES line.
119921 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119923         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
119924         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
119926 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
119928         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
119929         * lib/timespec.h (gettime): Return void, since it always
119930         succeeds now.  All uses changed.
119931         * lib/gettime.c (gettime): Likewise.
119932         [HAVE_NANOTIME]: Prefer nanotime.
119933         Assume gettimeofday succeeds, as POSIX requires.
119934         Assime time () succeeds, since other code already does.
119935         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
119936         (timespec_subtract): Remove.
119937         (NANOSLEEP_BUG_WORKAROUND): New constant.
119938         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
119939         things considerably.  Use it only on GNU/Linux hosts, since the
119940         workaround shouldn't be needed elsewhere.
119942 2005-02-24  Bruno Haible  <bruno@clisp.org>
119944         * modules/gettext (Files): Add m4/glibc2.m4.
119946 2005-02-24  Bruno Haible  <bruno@clisp.org>
119948         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
119949         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
119950         * m4/progtest.m4:
119951         Update from GNU gettext 0.14.2.
119952         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
119954 2005-02-24  Bruno Haible  <bruno@clisp.org>
119956         * lib/localcharset.c: Update from GNU gettext 0.14.2.
119957         * lib/config.charset: Update from GNU gettext 0.14.2.
119959 2005-02-24  Bruno Haible  <bruno@clisp.org>
119961         * lib/gettext.h: Update from GNU gettext 0.14.2.
119963 2005-02-23  Simon Josefsson  <jas@extundo.com>
119965         * m4/iconvme.m4: New file.
119967 2005-02-23  Jim Meyering  <jim@meyering.net>
119969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
119970         change.
119971         Thanks to Bruno Haible for catching it.
119973 2005-02-22  Simon Josefsson  <jas@extundo.com>
119975         * modules/iconvme: New file.
119977         * MODULES.html.sh: Add iconvme.
119979 2005-02-22  Simon Josefsson  <jas@extundo.com>
119981         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
119983 2005-02-22  Simon Josefsson  <jas@extundo.com>
119985         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
119987 2005-02-22  Jim Meyering  <jim@meyering.net>
119989         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
119990         s/ifndef/ifdef/.
119992 2005-02-20  Neil Conway  <neilc@samurai.com>
119994         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
119995         returned by OSX/Darwin if the specified buffer is not large
119996         enough for the hostname.
119998 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120000         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
120001         pass it to _help, otherwise the latter coredumps trying to
120002         dereference state.root_argp.
120004 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120006         * modules/chdir-long (Depends-on): Add memrchr.
120007         * modules/memrchr (Files): Add lib/memrchr.h.
120008         (Include): "memrchr.h".
120010 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120012         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
120014 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
120016         * lib/memrchr.h: New file.
120017         * lib/chdir-long.c: Include it.
120018         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
120019         Don't bother including stddef.h.
120021 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
120023         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
120024         inclusion.
120025         Include <sys/types.h>, for dev_t.
120026         (ME_DUMMY, ME_REMOTE): Move from here....
120027         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
120028         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
120029         Dmitry V. Levin.
120030         Include mountlist.h first, to test the interface.
120032 2005-01-29  Bruno Haible  <bruno@clisp.org>
120034         * lib/progname.c (program_name): Initialize.
120035         Needed when linking statically on MacOS X.
120037 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120039         Sync from coreutils.
120040         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
120041         (Depends-on): Add c-strtod.
120042         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
120044 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
120046         Sync from coreutils.
120047         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
120049         Remove files that are specific to coreutils.
120050         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
120052 2005-01-28  Bruno Haible  <bruno@clisp.org>
120054         * modules/javacomp: New file.
120055         * MODULES.html.sh (Java): Add javacomp.
120057 2005-01-28  Bruno Haible  <bruno@clisp.org>
120059         * m4/javacomp.m4: New file, from GNU gettext.
120061 2005-01-28  Bruno Haible  <bruno@clisp.org>
120063         * lib/javacomp.sh.in: New file, from GNU gettext.
120064         * lib/javacomp.h: New file, from GNU gettext.
120065         * lib/javacomp.c: New file, from GNU gettext.
120067 2005-01-26  Simon Josefsson  <jas@extundo.com>
120069         * lib/gai_strerror.c: Use GPL in header.
120071 2005-01-26  Bruno Haible  <bruno@clisp.org>
120073         * modules/javaexec: New file.
120074         * MODULES.html.sh (Java): Add javaexec.
120076 2005-01-26  Bruno Haible  <bruno@clisp.org>
120078         * m4/javaexec.m4: New file, from GNU gettext.
120080 2005-01-26  Bruno Haible  <bruno@clisp.org>
120082         * lib/javaexec.sh.in: New file, from GNU gettext.
120083         * lib/javaexec.h: New file, from GNU gettext.
120084         * lib/javaexec.c: New file, from GNU gettext.
120086 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120088         * modules/lchown (Depends-on): Remove lchown.h
120090 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120092         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
120093         must be defined if the header file was not found, in order
120094         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
120096 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120098         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
120099         initializers for struct pentry_state.
120100         (__argp_error): Check return value of __asprintf
120101         (__argp_failure): Translate error message
120103         * lib/argp-parse.c: Removed braces around the expansion of N_()
120105 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
120107         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
120108         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
120109         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
120110         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
120111         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
120112         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
120113         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
120114         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
120115         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
120116         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
120117         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
120118         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
120119         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
120120         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
120121         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
120122         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
120123         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
120124         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
120125         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
120126         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
120127         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
120128         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
120129         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
120130         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
120131         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
120132         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
120133         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
120134         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
120135         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
120136         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
120137         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
120138         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
120139         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
120140         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
120141         xstrtol.m4, xstrtoumax.m4, yesno.m4:
120142         Use an all-permissive copyright notice, recommended by RMS.
120144 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
120146         * modules/chdir-long (Depends-on): Remove mempcpy.
120148 2005-01-21  Jim Meyering  <jim@meyering.net>
120150         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
120151         same value as for Solaris 9.
120153         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
120154         component length.  This included changing the parameter to be
120155         of type `char *' rather than `char const *'.
120156         * lib/chdir-long.h (chdir_long): Update prototype.
120158         * lib/openat.c (fdopendir, fstatat): New functions.
120159         * lib/openat.h: Include headers required for use of DIR and struct
120160         stat.
120161         [AT_SYMLINK_NOFOLLOW]: Define.
120162         (fdopendir, fstatat): Add prototypes.
120164 2005-01-21  Bruno Haible  <bruno@clisp.org>
120166         * modules/classpath: New file.
120167         * MODULES.html.sh (Java): Add classpath.
120169 2005-01-21  Bruno Haible  <bruno@clisp.org>
120171         * lib/classpath.h: New file, from GNU gettext.
120172         * lib/classpath.c: New file, from GNU gettext.
120174 2005-01-20  Simon Josefsson  <jas@extundo.com>
120176         * modules/version-etc-fsf: New file.
120178 2005-01-20  Simon Josefsson  <jas@extundo.com>
120180         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
120181         * lib/version-etc.c: Remove version_etc_copyright.
120182         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
120183         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
120185 2005-01-20  Simon Josefsson  <jas@extundo.com>
120187         * lib/base64.h (isbase64): Add.
120189         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
120190         using a unsigned prototype, don't inline.
120191         (base64_decode): Use it.
120193 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120195         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
120196         it.
120198 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120200         * lib/save-cwd.c (save_cwd): Remove code to support the case
120201         where fchdir is missing or flaky.
120203 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
120205         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
120207 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
120209         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
120210         AC_LIBSOURCES now does this.
120211         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
120212         with new ullong_max module.
120214 2005-01-19  Bruno Haible  <bruno@clisp.org>
120216         * modules/sh-quote: New file.
120217         * MODULES.html.sh (Executing programs): Add sh-quote.
120219 2005-01-19  Bruno Haible  <bruno@clisp.org>
120221         * lib/sh-quote.h: New file, from GNU gettext.
120222         * lib/sh-quote.c: New file, from GNU gettext.
120224 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120226         Merge from coreutils.
120227         * m4/ullong_max.m4: New file.
120228         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
120229         (gl_MACROS): Assume localeconv exists.
120231 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120233         Merge changes from coreutils, as described below in several
120234         changelogs dated today.
120236         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
120237         (O_DIRECTORY): Remove; not needed here, since "." must be
120238         a directory.  All uses removed.
120239         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
120240         universal on Suns, and we also need to test for IRIX.
120241         Revamp code to use 'if' rather than '#if'.
120242         Avoid unnecessary comparison of cwd->desc to 0.
120244         * lib/utimens.c (futimens): Robustify the previous patch, by checking
120245         for known valid error numbers rather than observed invalid ones.
120247 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
120249         * modules/ullong_max: New file.
120251         * modules/chdir-long, modules/openat: New files.
120252         * modules/save-cwd (Depends-on): Depend on chdir-long.
120253         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
120255 2005-01-18  Jim Meyering  <jim@meyering.net>
120257         Merge from coreutils.
120258         * m4/chdir-long.m4, m4/openat.m4: New files.
120259         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
120260         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
120261         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
120262         is sane and DOES follow symlinks.  Besides, testing 20 different
120263         systems found no broken chown implementations.
120264         Prompted by a change in rsync's copy of this macro.
120265         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
120267         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
120269         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
120270         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
120271         NULL-means-set-to-current-time semantics.
120272         Remove temporary file immediately, rather than waiting
120273         for configure's at-exit trap code to do it.
120275 2005-01-18  Jim Meyering  <jim@meyering.net>
120277         * lib/version-etc.c (version_etc_copyright): Update copyright date.
120279         * lib/utimens.c (futimens): Account for the fact that futimes
120280         can also fail with errno == ENOSYS or errno == ENOENT.
120281         Patch from Dmitry V. Levin.
120283         Change the name of the robust chdir function from chdir to chdir_long.
120284         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
120285         (restore_cwd): Use chdir_long, not chdir.
120286         * lib/chdir-long.c: Renamed from chdir.c.
120287         * lib/chdir-long.h: Renamed from chdir.h.
120288         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
120289         Hurd.
120291 2005-01-18  Bruno Haible  <bruno@clisp.org>
120293         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
120294         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
120295         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
120296         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
120297         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
120298         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
120299         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
120300         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
120301         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
120302         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
120303         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
120304         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
120305         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
120306         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
120307         Use an all-permissive copyright notice, recommended by RMS.
120309 2005-01-18  Bob Proulx  <bob@proulx.com>
120311         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
120312         simplify offsetof() macro construct to avoid compile failure with
120313         native HP-UX 11.0 ANSI C compiler.
120315 2005-01-17  Bruno Haible  <bruno@clisp.org>
120317         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
120318         redundant because stpncpy.m4 takes care of it.
120320 2005-01-17  Bruno Haible  <bruno@clisp.org>
120322         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
120324 2005-01-17  Bruno Haible  <bruno@clisp.org>
120326         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
120327         used.
120329 2005-01-17  Bruno Haible  <bruno@clisp.org>
120331         * lib/fwriteerror.h (fwriteerror): Change specification to include
120332         fclose.
120333         * lib/fwriteerror.c: Include <stdbool.h>.
120334         (fwriteerror): At the end, close the file stream. Record whether
120335         stdout was already closed.
120337 2005-01-17  Bruno Haible  <bruno@clisp.org>
120339         * lib/execute.c (environ): Declare if needed.
120340         * lib/pipe.c (environ): Likewise.
120341         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
120343 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120345         * modules/argp: Depend on vsnprintf
120347 2005-01-10  Jim Meyering  <jim@meyering.net>
120349         * modules/closeout (Depends-on): Add atexit.
120351 2005-01-06  Bruno Haible  <bruno@clisp.org>
120353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
120355 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
120357         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
120358         definitions to be after all include files, to avoid collisions.
120359         Problem reported by Bob Proulx.
120361 2005-01-04  Jim Meyering  <jim@meyering.net>
120363         Changes imported from coreutils.
120364         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
120365         as the mkstemp template, use a temporary directory and an
120366         8.3-friendly template to avoid trouble on systems like DJGPP.
120367         Reported by Juan M. Guerrero via Stepan Kasal.
120368         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
120369         close. Remove the temporary directory right away, rather than waiting
120370         for configure's at-exit trap code to do it.
120371         Suggestion from Stepan Kasal.
120373 2005-01-01  Simon Josefsson  <jas@extundo.com>
120375         * gnulib-tool: Print #include directives when --import'ing.
120377 2004-12-28  Simon Josefsson  <jas@extundo.com>
120379         * tests/test-base64.c: Include required header files.  Remove
120380         unused variables.
120382 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120384         * modules/error (Depends-on): Remove gettext.
120386 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
120388         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
120389         not needed.  This removes a dependency on the gettext module.
120390         [defined _LIBC]: Do not include <libintl.h>; not needed.
120392 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120394         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
120395         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
120397 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
120399         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
120400         HAVE_DECL_STRTOLD.
120402 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120404         * modules/getdate (Depends-on): Remove alloca-opt.
120406 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120408         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
120410 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
120412         * lib/argp-parse.c: Include <stddef.h>.
120413         (alignof, alignto): New macros.
120414         (parser_init): Don't assume that void * is aligned sufficiently
120415         for struct option.
120417         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
120418         need to extend the stack.
120419         (YYINITDEPTH): New macro, so that the initial stack isn't overly
120420         large.
120422 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120424         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
120426 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120428         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
120429         (2004-10-24) change.  Apparently this was a false alarm.
120431         * modules/getdate: Depend on alloca-opt, not alloca.
120433 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
120435         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
120436         Remove now-obsolete comment about AIX.
120437         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
120438         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
120439         (YYMAXDEPTH): New macro.
120441 2004-12-18  Simon Josefsson  <jas@extundo.com>
120443         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
120445 2004-12-18  Bruno Haible  <bruno@clisp.org>
120447         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
120449 2004-12-18  Bruno Haible  <bruno@clisp.org>
120451         * lib/fatal-signal.c (fatal_signals): Make non-const.
120452         (init_fatal_signals): New function.
120453         (uninstall_handlers, install_handlers): Ignore signals that were set to
120454         SIG_IGN.
120455         (at_fatal_signal): Call init_fatal_signals.
120456         (init_fatal_signal_set): Likewise. Ignore signals that were set to
120457         SIG_IGN.
120458         Reported by Paul Eggert.
120460 2004-12-18  Bruno Haible  <bruno@clisp.org>
120462         * doc/alloca.texi: New file.
120463         * doc/alloca-opt.texi: New file.
120465 2004-12-17  Jim Meyering  <jim@meyering.net>
120467         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
120468         Otherwise, install-sh could exit with improper exit status when
120469         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
120471 2004-12-16  Simon Josefsson  <jas@extundo.com>
120473         * tests/test-base64.c: Add license.
120475 2004-12-15  Stepan Kasal  <address@hidden>
120477         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
120479 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
120481         * modules/getcwd (Files): Add m4/d-ino.m4.
120482         Suggested by Mark D. Baushke.
120484 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120486         * lib/getdate.y (textint): New member "negative".
120487         (time_zone_hhmm): New function.
120488         Expect 14 shift-reduce conflicts, not 13.
120489         (o_colon_minutes): New rule.
120490         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
120491         (yylex): Set the "negative" member of signed numbers.
120493 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
120495         * doc/getdate.texi (Time of day items, Time zone items):
120496         Describe new formats +00:00, UTC+00:00.
120498 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
120500         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
120501         spurious "-l"s.  Problem reported by Stepan Kasal.
120503 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
120505         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
120506         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
120508 2004-12-04  Simon Josefsson  <jas@extundo.com>
120510         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
120511         Vandoorselaere <yoann@prelude-ids.org>.
120513 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120515         Changes imported from coreutils.
120516         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
120517         exist.
120518         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
120520 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120522         Changes imported from coreutils.
120523         * lib/hard-locale.c: Assume <locale.h> exists.
120524         Include "strdup.h".
120525         (GLIBC_VERSION): New macro.
120526         (hard_locale): Assume setlocale exists.
120527         Rewrite to avoid #ifdef.
120528         Use strdup rather than malloc + strcpy.
120529         * lib/human.c: Assume <locale.h> exists.
120530         (human_readable): Assume localeconv exists.
120532 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
120534         * modules/hard-locale (Depends-on): Add strdup.
120536 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
120538         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
120539         convert T2, not T.  (Imported from libc.)
120541 2004-11-30  Simon Josefsson  <jas@extundo.com>
120543         * modules/restrict (License): Change to LGPL.
120545 2004-11-30  Simon Josefsson  <jas@extundo.com>
120547         * m4/restrict.m4: Add copyright and copying conditions.
120549 2004-11-30  Simon Josefsson  <jas@extundo.com>
120551         * m4/base64.m4: New file.
120553 2004-11-30  Simon Josefsson  <jas@extundo.com>
120555         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
120556         base64.
120558         * tests/test-base64.c: New file.
120560         * modules/base64: New file.
120562 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120564         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
120565         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
120567         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
120569 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
120571         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
120572         (__getcwd.c): Don't restore errno; glibc doesn't.
120573         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
120574         first, falling back to our code only if its results look suspicious.
120575         Ensure that the resulting buffer is only as large as necessary.
120577         * lib/readutmp.c: Include readutmp.h first.
120578         Include <errno.h>, since readutmp.h no longer does that.
120579         * lib/readutmp.h: Don't include <errno.h>,
120580         <sys/param.h>, <time.h>; not needed to establish interface.
120581         (errno): Remove decl.
120582         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
120583         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
120584         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
120586 2004-11-28  Simon Josefsson  <jas@extundo.com>
120588         * lib/base64.h, base64.c: New file.
120590 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
120592         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
120594 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
120596         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
120597         (Depends-on): Remove pathmax, same.  Add mempcpy.
120598         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
120599         (Makefile.am): Append getcwd.h to lib_SOURCES.
120600         (Include): Add getcwd.h.
120601         (Maintainer): Change from Jim Meyering to "all, glibc",
120602         since getdate now uses intended-for-glibc code.
120603         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
120604         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
120606 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120608         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
120609         HP's ANSI C compiler.
120610         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
120611         Declaring int functions causes warnings on some modern systems and
120612         shouldn't be needed to compile on ancient ones.
120613         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
120614         defined.
120616         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
120617         with the following changes.
120618         (__set_errno): Parenthesize properly.
120619         Include <stdbool.h>.
120620         (MIN, MAX, MATCHING_INO): New macros.
120621         (__getcwd): Define with prototype, not K&R form.
120622         Use heuristics to allocate default buffer on stack if possible.
120623         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
120624         behavior, and to avoid the PATH_MAX limit when computing
120625         ../../../../...
120626         Use MATCHING_INO to compare inode number to file.
120627         Check for arithmetic overflow in size calculations.
120628         Fix bug in reallocation of dot array that caused getcwd to fail
120629         on directories nested deeper than 75.
120630         Be more careful about saving errno on error.
120631         Do not use realloc; use only free+malloc, as this is a bit
120632         more flexible and avoids a needless copy operation.
120633         Do not inspect st_dev and st_ino for symbolic links; POSIX
120634         doesn't specify the latter.
120635         Check for closedir errors.
120636         Avoid needless casts.
120637         Use "#ifdef weak_alias" around weak_alias, to be like other
120638         glibc code.
120639         The following changes to getcwd.c have effect only when used in
120640         gnulib; they have no effect inside glibc proper.
120641         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
120642         as alloca isn't used.
120643         (alloca, __alloca): Likewise.
120644         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
120645         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
120646         unconditionally, as gnulib assumes C89 or better.
120647         Do not include <sys/param.h>.
120648         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
120649         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
120650         better.
120651         (NULL) [!defined NULL]: Remove; we assume C89 or better.
120652         Include <dirent.h> in a way that is compatible with modern Autoconf.
120653         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
120654         New macros, if not already defined.
120655         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
120656         Use "_LIBC", not "defined _LIBC", for consistency.
120657         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
120658         a mempcpy module.
120659         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
120660         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
120661         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
120662         credit only to Jim Meyering and adjust the copyright dates.
120663         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
120664         <stdlib.h>, <unistd.h>, "pathmax.h".
120665         Instead, include "xgetcwd.h" (first) and "getcwd.h".
120666         (INITIAL_BUFFER_SIZE): Remove.
120667         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
120669 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
120671         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
120672         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
120673         Use the _ONCE methods, for efficiency.
120674         Check for fcntl.h.  In test program, include <errno.h>
120675         and <fcntl.h> if available.  Remove old K&R cruft from
120676         test program.  Check for common errors in GNU/Linux,
120677         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
120678         don't do AC_LIBOBJ, as that's getcwd.m4's job.
120679         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
120680         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
120681         name accordingly.
120682         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
120683         accommodate new getcwd.c.
120684         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
120685         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
120686         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
120687         that's all we need now.
120689 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120691         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
120692         argp-parse.c depends on getopt internals, that means we should
120693         always use our getopt, to be on the safe side.
120694         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
120695         order not to spoil the result of an eventual previous invocation
120696         of gl_GETOPT_SUBSTITUTE.
120698 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120700         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
120701         redefinition warnings. To avoid them, include the defines
120702         in `#if !defined __need_getopt ... #endif'. The only place
120703         where __getopt_argv_const is used is in definitions
120704         of getopt_long and getopt_long_only below, which are as well
120705         protected by `#ifndef __need_getopt'.
120706         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
120707         __need_getopt after including <stdio.h> and <unistd.h> These
120708         headers might have defined it.
120710 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120712         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
120714 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
120716         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
120717         (futimens): New function, which uses futimes if available.
120718         (futimens, utimens): Support timespec==NULL, with same semantics
120719         as utime and utimens.
120720         * lib/utimens.h (futimens): New decl.
120722 2004-11-23  Jim Meyering  <jim@meyering.net>
120724         * lib/getopt_.h: Remove trailing blanks.
120726 2004-11-23  Jim Meyering  <jim@meyering.net>
120728         * lib/__fpending.c: Add comment.
120730 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
120732         * modules/canonicalize (Depends-on): Add xreadlink.
120733         Problem reported by James Youngman.
120735 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
120737         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
120738         New macros.
120739         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
120740         optopt): Use them instead of invoking ## directly; otherwise, the
120741         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
120743 2004-11-19  Bruno Haible  <bruno@clisp.org>
120745         * lib/strtok_r.c: Move comments from here...
120746         * lib/strtok_r.h: ... to here.
120748 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120750         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
120751         implementations that mishandle size_t overflow.
120753 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
120755         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
120756         might fail.  Problem reported by Yoann Vandoorselaere.
120757         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
120758         implementations that mishandle size_t overflow.
120760 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120762         * modules/canon-host (Depends-on): Add strdup.
120764 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120766         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
120768 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120770         * lib/canon-host.c: Include "strdup.h".
120771         (canon_host): Use getaddrinfo if available, so that IPv6 works.
120772         Use strdup instead of malloc/strcpy to duplicate strings.
120774         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
120775         (human_space_before_unit): New constant.
120776         * lib/human.c (human_readable): Support it.
120778         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
120779         (xgetcwd): Set errno correctly when failing.
120780         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
120781         the failure is actually due to a PATH_MAX problem.
120783         Further getopt changes to make it more likely that glibc will
120784         buy the changes back.
120785         * lib/getopt.c (POSIXLY_CORRECT): New constant.
120786         (getopt): Use it, so to preserve glibc semantic
120787         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
120788         when compiling for libc.
120789         * lib/getopt_.h (__getopt_argv_const): Bring it back.
120790         (getopt_long, getopt_long_only): Use it.
120792         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120793         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
120794         (getopt): Argv is now char * const *, as per standard.
120795         (_getopt_internal_r, _getopt_internal): Argv is now char **,
120796         not char *__getopt_argv_const *.
120797         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120798         _getopt_long_only_r): Likewise.
120799         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
120800         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120801         _getopt_long_r, _getopt_long_only_r): Likewise.
120802         * lib/getopt_.h (__getopt_argv_const): Remove.
120803         (getopt): Argv is now char * const *, as per standard.
120805         * lib/getdate.y (tORDINAL): New token.
120806         (day, relunit): Allow it for relative times.
120807         (relative_time_table): Use tORDINAL for ordinals.
120809 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
120811         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
120812         Document that "second" isn't allowed as an ordinal number.
120814 2004-11-16  Jim Meyering  <jim@meyering.net>
120816         * modules/closeout (Depends-on): Add fpending.
120818 2004-11-15  Jim Meyering  <jim@meyering.net>
120820         * lib/closeout.c: Include "__fpending.h" once again.
120821         Include <stdbool.h>.
120822         (close_stdout): Don't fail just because stdout was closed initially,
120823         since some programs don't write to stdout in the normal course of
120824         operation (other than --version and --help), and we don't want this
120825         function to make e.g. `touch file >&-' fail.
120826         But do fail if it was closed and someone has tried to write to it.
120827         E.g., `printf foo >&-' must fail.
120829 2004-11-13  Jim Meyering  <jim@meyering.net>
120831         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
120833 2004-11-12  Simon Josefsson  <jas@extundo.com>
120835         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
120836         small doc fix is still pending.
120838 2004-11-11  Simon Josefsson  <jas@extundo.com>
120840         * modules/strtok_r: New file.
120842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120843         strtok_r.
120845 2004-11-11  Simon Josefsson  <jas@extundo.com>
120847         * m4/strtok_r.m4: New file.
120849         * m4/getopt.m4: Replace opterr.
120851 2004-11-11  Simon Josefsson  <jas@extundo.com>
120853         * lib/strtok_r.h, strtok_r.c: New file.
120855 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120857         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
120858         of replacing opterr, getopt, etc.  This should handle the
120859         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
120861 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
120863         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
120864         we can stop lying to compilers about the constness of argv when we
120865         are compiled outside glibc.
120866         (getopt, getopt_long, getopt_long_only): Use it.
120867         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
120868         _getopt_internal, getopt): Likewise.
120869         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
120870         _getopt_long_only_r): Likewise.
120871         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
120872         _getopt_long_r, _getopt_long_only_r): Likewise.
120874         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
120875         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
120876         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
120877         the other external symbols.
120878         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
120879         declaration, since the above renaming now works around collisions.
120881 2004-11-11  Jim Meyering  <jim@meyering.net>
120883         * lib/linebreak.c: Remove trailing blanks.
120884         * lib/alloca_.h: Likewise.
120885         * lib/acosl.c: Likewise.
120886         * lib/euidaccess.c: Likewise.
120887         * lib/allocsa.h: Likewise.
120889 2004-11-10  Simon Josefsson  <jas@extundo.com>
120891         * m4/getaddrinfo.m4: New file.
120893 2004-11-10  Simon Josefsson  <jas@extundo.com>
120895         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
120897 2004-11-10  Simon Josefsson  <jas@extundo.com>
120899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120900         getaddrinfo.
120902         * modules/getaddrinfo: New file.
120904 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120906         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
120908 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
120910         * lib/mktime.c (SHR): New macro, which is a portable
120911         substitute for >> that should work even on Crays.
120912         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
120913         Problem reported by Mark D. Baushke in
120914         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
120915         * lib/getdate.y (SHR): Likewise.
120916         (tm_diff): Use it.
120917         * lib/strftime.c (SHR): Likewise.
120918         (tm_diff): Use it.
120919         * lib/quotearg.c (struct quoting_options): Use unsigned int for
120920         quote_these_too, so that right shifts are well defined.  All uses
120921         changed.
120923 2004-11-10  Jim Meyering  <jim@meyering.net>
120925         Ensure that no close failure goes unreported.
120926         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
120927         return early when it seems there's nothing to flush.
120928         Don't include __fpending.h.
120930 2004-11-10  Jim Meyering  <jim@meyering.net>
120932         * modules/closeout (Depends-on): Remove fpending.
120934 2004-11-10  Jim Meyering  <jim@meyering.net>
120936         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
120938 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120940         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
120941         gl_FUNC_STRFTIME.
120942         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
120943         and AC_REQUIRE when possible, to avoid duplicate checks.
120944         Check for <wchar.h>.
120946 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
120948         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
120950 2004-11-09  Bruno Haible  <bruno@clisp.org>
120952         * m4/sockpfaf.m4: New file.
120954 2004-11-05  Bruno Haible  <bruno@clisp.org>
120956         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
120957         Reported by Mark D. Baushke <mdb@cvshome.org>.
120959 2004-11-04  Bruno Haible  <bruno@clisp.org>
120961         2004-09-11  Bruno Haible  <bruno@clisp.org>
120962                 * allocsa.valgrind: New file.
120963         2004-02-06  Bruno Haible  <bruno@clisp.org>
120964                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
120965                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
120966                 Reported by Christopher Seip <chris.seip@hp.com>.
120968 2004-11-04  Bruno Haible  <bruno@clisp.org>
120970         * modules/allocsa (Files): Add lib/allocsa.valgrind.
120971         (Makefile.am): Distribute it.
120973 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
120975         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
120976         with errno == ERANGE if the buffer is too small.
120977         Problem reported by Mark D. Baushke.
120979 2004-11-03  Albert Chin  <china@thewrittenword.com>
120980             Paul Eggert  <eggert@cs.ucla.edu>
120982         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
120983         equivalent, substitute $ac_type for equivalent type rather than
120984         blindly using uint32_t *always* which won't work if uint32_t is not
120985         available.  Define _UINT32_T to work around typedef of uint32_t if
120986         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
120987         2.5.1.
120989 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120991         * m4/jm-macros.m4: Sync from coreutils.
120992         (gl_MACROS): Check for mbrlen, for pathchk.
120993         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
120995 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
120997         * lib/xreadlink.c (MAXSIZE): New macro.
120998         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
120999         size does not exceed MAXSIZE.  Avoid cast.
121000         As suggested by Mark D. Baushke in
121001         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
121002         if readlink fails with buffer size just under MAXSIZE, try again
121003         with MAXSIZE.
121005 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
121007         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
121009 2004-11-02  Derek R. Price  <derek@ximbiot.com>
121010         and  Paul Eggert  <eggert@cs.ucla.edu>
121012         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
121013         (get_date): Overparenthesize to avoid GCC warning.
121015 2004-11-02  Bruno Haible  <bruno@clisp.org>
121017         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
121018         returns void.
121020 2004-11-02  Bruno Haible  <bruno@clisp.org>
121022         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
121023         function returns void.
121025 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121027         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
121028         fflush_unlocked, flockfile, funlockfile, funlockfile,
121029         fputs_unlocked, putc_unlocked.
121031 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
121033         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121034         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
121035         already declared.
121037 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121039         * modules/getdate (Files): Add doc/getdate.texi.
121040         (Depends-on): Add setenv, xalloc.
121042 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121044         * lib/getdate.y: Add support for TZ="foo" within a date string.
121045         Fix some bugs near time_t boundaries.  Reject dates with
121046         out-of-range components, e.g., "Sept 31".
121047         Include <stdlib.h>, "setenv.h", "xalloc.h".
121048         (ISDIGIT_LOCALE): Remove; unused.
121049         Note that the TZ and time functions used here are not reentrant.
121050         (mktime_ok, get_tz): New functions.
121051         (TZBUFSIZE): New constant.
121052         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
121053         This requires that we sometimes generate our own TZ="XXX..." setting.
121055 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
121057         * doc/getdate.texi: New file, from coreutils with modifications for
121058         the new TZ parsing.
121060 2004-10-27  Derek R. Price  <derek@ximbiot.com>
121062         * lib/mktime.c (not_equal_tm): Remove redundant check.
121064 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121066         * modules/regex (lib_SOURCES): Add regex.c.
121067         Reported by James Youngman in
121068         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
121070 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
121072         * lib/getdate.y: Use Bison 1.875 features, and some minor
121073         code cleanups.  This change does not affect semantics.
121074         Don't include <stdlib.h>; no longer needed.
121075         Don't include unlocked-io.h; only the "#if TEST" code uses
121076         stdio, and performance isn't crucial there.
121077         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
121078         Bison 1.875 features as described below.
121079         All uses of "PC." replaced by "pc->".
121080         (YYSTYPE): Add a forward declaration.
121081         (yylex, yyerror): Use full prototypes in forward decls.
121082         Use "%pure-parser" rather than obsolescent "%pure_parser".
121083         Use %parse-param and %lex-param instead of obsolescent
121084         YYPARSE_PARAM and YYLEX_PARAM.
121085         (meridian_table, month_and_day_table, time_units_table,
121086         relative_time_table, time_zone_table, military_table,
121087         lookup_zone, lookup_word, get_date):
121088         Use NULL instead of 0 where appropriate.
121089         (to_hour): Avoid abort (), to avoid a dependency on
121090         stdlib.h.
121091         (yyerror, yylex): Now accepts parser_control * arg.
121092         (main) [TEST]: Use '\0' rather than 0 for char.
121094 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121096         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
121098 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
121100         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
121101         It's now the caller's responsibility to handle the case where
121102         !HAVE_GETPAGESIZE && !defined getpagesize.
121104         * lib/mktime.c (leapyear): Arg is long int, not int.
121106 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
121108         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
121110 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
121112         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
121113         missing.  Problem reported by James Youngman.
121115 2004-10-16  Simon Josefsson  <jas@extundo.com>
121117         * gnulib-tool: Fix comments.  Fix parse problem.
121118         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
121120 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
121122         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
121123         implementation of getopt_long.  Problem reported by Alexander Taler in:
121124         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
121126 2004-10-15  Bruno Haible  <bruno@clisp.org>
121128         * gnulib-tool: Untabify. Initialize supplied_libname.
121129         (func_usage): More homogenous output.
121130         (func_modules_transitive_closure, func_modules_to_filelist,
121131         func_emit_lib_Makefile_am): New functions.
121132         (func_import): New function, extracted from big case statement. Use
121133         func_get_license, func_modules_transitive_closure,
121134         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
121135         opt_lgpl. Don't use test -a, as it's not portable.
121136         (func_create_testdir): Use func_modules_transitive_closure,
121137         func_modules_to_filelist, func_emit_lib_Makefile_am.
121139 2004-10-15  Bruno Haible  <bruno@clisp.org>
121141         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
121143 2004-10-15  Bruno Haible  <bruno@clisp.org>
121145         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
121146         the portions belonging to each module.
121147         Suggested by Derek Robert Price <derek@ximbiot.com>.
121149 2004-10-12  Simon Josefsson  <jas@extundo.com>
121151         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
121152         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
121153         to real functions.
121155 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121157         * modules/vsnprintf: New file.
121159 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121161         * m4/vsnprintf.m4: New file.
121163 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121165         * lib/vsnprintf.h: New file.
121166         * lib/vsnprintf.c: New file.
121168 2004-10-11  Bruno Haible  <bruno@clisp.org>
121170         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
121171         vsnprintf.
121173 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
121175         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
121177 2004-10-07  Bruno Haible  <bruno@clisp.org>
121179         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
121180         fits into the provided buffer.
121182 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
121184         * lib/diacrit.c, diacrit.h: Add GPL notice.
121186         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
121187         notice.
121188         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
121189         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
121190         This avoids a potential constant-folding bug.
121192 2004-10-05  Bruno Haible  <bruno@clisp.org>
121194         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
121195         for the declaration of strsep.
121197 2004-10-05  Bruno Haible  <bruno@clisp.org>
121199         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
121201 2004-10-04  Simon Josefsson  <jas@extundo.com>
121203         * modules/memmem: New file.
121204         * tests/test-memmem.c: New file.
121205         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
121207 2004-10-04  Simon Josefsson  <jas@extundo.com>
121209         * m4/memmem.m4: New file.
121211 2004-10-04  Simon Josefsson  <jas@extundo.com>
121213         * lib/memmem.h: New file.
121214         * lib/memmem.c: New file, taken from glibc.
121216 2004-10-04  Simon Josefsson  <jas@extundo.com>
121218         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
121219         '#ifdef USE_UNLOCKED_IO'.
121221 2004-10-04  Simon Josefsson  <jas@extundo.com>
121223         * config/srclist.txt: Add memmem from glibc.
121225 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121227         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
121229         * modules/argmatch, modules/argp, modules/closeout, modules/error,
121230         modules/exclude, modules/getdate, modules/getline,
121231         modules/getndelim2, modules/getpass, modules/getpass-gnu,
121232         modules/getusershell, modules/linebuffer, modules/md5,
121233         modules/mountlist, modules/posixtm, modules/readtokens,
121234         modules/readutmp, modules/regex, modules/sha1,
121235         modules/version-etc, modules/yesno:
121236         Remove dependency on unlocked-io.
121238 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121240         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
121242         * m4/unlocked-io.m4: Add copyright notice.
121243         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
121245 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121247         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
121248         * lib/xmalloc.c (xmemdup): Likewise.
121249         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
121250         XFREE): Remove these long-obsolescent macros.
121251         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
121252         * lib/xstrdup.c: Remove.
121254         * lib/regex.c (re_comp): Cast gettext return value to char *,
121255         Problem reported by Martin Neitzel via Mark D. Baushke.
121257 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
121259         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
121260         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
121261         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
121262         regex.c, sha1.c, version-etc.c, yesno.c:
121263         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
121264         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
121265         the includer's responsibility.
121267         Sync from coreutils.
121269         * lib/modechange.c (mode_compile): Don't decrement a pointer that
121270         points to the start of a string, as the C Standard says the
121271         resulting behavior is undefined.
121273         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
121274         simple -> simple_backups, numbered_existing ->
121275         numbered_existing_backups, numbered -> numbered_backups
121276         to avoid shadowing problems.  All uses changed.
121277         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
121278         * lib/backupfile.c (check_extension, numbered_backup):
121279         Rename locals to avoid shadowing 'basename'.
121280         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
121281         once.
121283         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
121284         * lib/.cvsignore: Add getopt.h.
121286 2004-10-04  Bruno Haible  <bruno@clisp.org>
121288         * modules/README: New file.
121289         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
121290         not a module.
121292 2004-10-02  Jim Meyering  <jim@meyering.net>
121294         * lib/dirfd.h, getpagesize.h: Add copyright notice.
121296 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121298         * modules/strsep: New file.
121300 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121302         * m4/strsep.m4: New file.
121304 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
121306         * lib/strsep.h: New file.
121307         * lib/strsep.c: New file.
121309 2004-10-01  Simon Josefsson  <jas@extundo.com>
121311         * lib/snprintf.c (snprintf): Handle size==0.
121313 2004-10-01  Simon Josefsson  <jas@extundo.com>
121314             Bruno Haible  <bruno@clisp.org>
121316         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
121317         (snprintf): Declare 'args'.
121319 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
121321         * lib/snprintf.c: Remove comments as to why each header is needed.
121323 2004-10-01  Bruno Haible  <bruno@clisp.org>
121325         * MODULES.html.sh: Add strsep.
121327 2004-09-30  Simon Josefsson  <jas@extundo.com>
121329         * modules/snprintf: New file.
121331 2004-09-30  Simon Josefsson  <jas@extundo.com>
121333         * m4/snprintf.m4: New file.
121335 2004-09-30  Simon Josefsson  <jas@extundo.com>
121337         * lib/snprintf.h, lib/snprintf.c: New files.
121339 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121341         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
121342         (hol_entry_help): Never translate an empty string.
121343         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
121344         * lib/argp.h (OPTION_NO_TRANS): New option.
121346 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121348         * modules/argp (Maintainer): Replace Simon Josefsson
121349         by Sergey Poznyakoff.
121351 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121353         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
121354         changes merged back into glibc.
121356 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
121358         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
121360 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
121362         * lib/xvasprintf.c: Include xalloc.h.
121363         (xvasprintf): Use xalloc_die, not xmalloc_die.
121365 2004-09-29  Bruno Haible  <bruno@clisp.org>
121367         * modules/alloca-opt: New file, derived from modules/alloca.
121368         * modules/allocsa: Depend on alloca-opt instead of alloca.
121369         * modules/setenv: Likewise.
121370         * modules/vasnprintf: Likewise.
121371         * MODULES.html.sh: Add alloca-opt.
121373 2004-09-28  Simon Josefsson  <jas@extundo.com>
121375         * gnulib-tool: New parameter --lgpl, to asseert that modules are
121376         LGPL, and to replace license template from GPL to LGPL.
121378 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121380         * modules/dummy: Change license to LGPL.
121382 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
121384         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
121386 2004-09-24  Simon Josefsson  <jas@extundo.com>
121388         * modules/minmax (License): Change from GPL to LGPL.
121390 2004-09-23  Simon Josefsson  <jas@extundo.com>
121392         * gnulib-tool (--import): Typo.
121394 2004-09-23  Simon Josefsson  <jas@extundo.com>
121396         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
121398 2004-09-22  Bruno Haible  <bruno@clisp.org>
121400         * modules/*: Add 'License' field.
121401         * gnulib-tool: Accept --extract-license option.
121402         (func_get_license): New function.
121404 2004-09-21  Bruno Haible  <bruno@clisp.org>
121406         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
121407         Reported by Simon Josefsson.
121409 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121411         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
121412         gl_AC_TYPE_LONG_LONG.
121414 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
121416         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
121418 2004-09-18  Simon Josefsson  <jas@extundo.com>
121419         and  Paul Eggert  <eggert@cs.ucla.edu>
121421         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
121422         calls with autoreconf.  Define GL_LIB.
121424 2004-09-14  Karl Berry  <karl@gnu.org>
121426         * config/srclist.txt: unsync setenv.c, sigh.
121428 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121430         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
121431         Problem reported by Bruno Haible in:
121432         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
121434 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
121436         * config/srclist.txt: Comment out argp-pvh.c.
121438 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
121440         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
121441         in case some system header has #define'd it.  Problem reported by
121442         Soeren D. Schulze in
121443         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
121445 2004-09-09  Karl Berry  <karl@gnu.org>
121447         * regex.[ch]: delete from the root.  These were supposed to be
121448                 synced with emacs cvs, but this has not happened for about
121449                 a year, and anyway nothing else uses emacs regex.[ch].
121450                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
121451                 lib/regex[.ch] is untouched.
121453 2004-09-09  Bruno Haible  <bruno@clisp.org>
121455         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
121457 2004-09-09  Bruno Haible  <bruno@clisp.org>
121459         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
121460         modifications.
121461         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
121463 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121465         * modules/xvasprintf: New file.
121466         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
121468 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
121470         * lib/xvasprintf.h: New file.
121471         * lib/xvasprintf.c: New file.
121472         * lib/xasprintf.c: New file.
121474 2004-09-08  Bruno Haible  <bruno@clisp.org>
121476         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
121478 2004-09-08  Bruno Haible  <bruno@clisp.org>
121480         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
121481         length is > INT_MAX.
121482         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
121483         more.
121485 2004-09-08  Bruno Haible  <bruno@clisp.org>
121487         * lib/stdint_.h: New file, taken from GNU clisp.
121489 2004-09-08  Bruno Haible  <bruno@clisp.org>
121490             Oskar Liljeblad  <oskar@osk.mine.nu>
121492         * modules/stdint: New file.
121493         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
121495 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121497         Import from coreutils.
121498         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
121499         strings on unbounded length.  alloca's performance benefits aren't
121500         that important here.
121501         (V_STRDUP): Remove.
121502         (parse_with_separator): New function, with most of the internals
121503         of the old parse_user_spec.  Allow user to omit both user and group,
121504         for compatibility with FreeBSD.
121505         Clone only the user name, not the entire spec.
121506         Do not set *uid, *gid unless entirely successful.
121507         Avoid memory leak in some failing cases.
121508         Fix regression for USER.GROUP reported by Dmitry V. Levin in
121509         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
121510         (parse_user_spec): Rewrite to use parse_with_separator.
121512 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121514         * modules/userspec: Don't depend on alloca.
121516 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121518         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
121520 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121522         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
121523         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
121524         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
121526 2004-08-16  Simon Josefsson  <jas@extundo.com>
121528         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
121529         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
121530         Add --dry-run for --import.
121531         Let user provided command line parameters override configure.ac
121532         settings.
121534 2004-08-12  Simon Josefsson  <jas@extundo.com>
121536         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
121537         as discussed with Paul Eggert in threads rooted at
121538         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
121539         and
121540         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
121541         Before, the test was empty, and relied on ELIDE_CODE in source
121542         code.)
121543         (gl_PREREQ_GETOPT): New macro.
121544         (gl_GETOPT): Use them.
121546 2004-08-12  Simon Josefsson  <jas@extundo.com>
121548         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
121549         * lib/getopt_.h: Renamed from getopt.h.
121551 2004-08-12  Simon Josefsson  <jas@extundo.com>
121553         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
121554         Change default library name from libfoo to libgnu.
121555         Now, if you have a configure.ac that says:
121556                 gl_SOURCE_BASE(gl)
121557                 gl_M4_BASE(gl/m4)
121558                 gl_MODULES(error getopt etcetera)
121559                 gl_INIT
121560         you can import all you need by running:
121561                 ../gnulib/gnulib-tool --import
121563         * modules/getopt (Files): Rename getopt.h to getopt_.h.
121564         (Makefile.am): Rewrite, use logic from argz.
121565         (Include): Use <getopt.h> instead of "getopt.h".
121567 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121569         * modules/argp (Files): Add m4/unlocked-io.m4.
121570         (Depends-on): Add extensions.
121572 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121574         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
121575         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
121576         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
121577         Check for program_invocation_name, program_invocation_short_name,
121578         flockfile, funlockfile, features.h, _getopt_long_only_r.
121580 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121582         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
121583         its complicated substitute.
121584         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
121585         and program_invocation_name.
121586         (__argp_basename) [!_LIBC]: Remove; the only use was
121587         replaced by its body.
121588         (__argp_short_program_name): Change condition from
121589         !defined __argp_short_program_name to
121590         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
121591         to match argp-namefrob.h.
121592         (__argp_failure): Don't assume strerror_r returns char *.
121593         * lib/argp-parse.c (N_): Define unconditionally.
121594         (argp_default_options): Fill out initializers with 0 to avoid
121595         gcc warnings.
121597 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
121599         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
121600         getopt1.c.
121602 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121604         Merge from coreutils.
121606         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
121608         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
121609         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
121611 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121613         Merge from coreutils.
121615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
121616         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
121617         for Reliant Unix 5.43.
121619         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
121620         (union fooround): Use uintmax_t, not long int.
121621         The rest is a merge from libc:
121622         [defined _LIBC]: Include <shlib-compat.h>.
121623         (_obstack) [defined _LIBC]: Remove after 2.3.4.
121625         * lib/settime.c (settime): Recode to avoid warning with
121626         Sun Forte C 6U2.
121628         * lib/strverscmp.c: Convert to UTF-8.
121630 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
121632         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
121633         m4/uintmax_t.m4.
121635 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121637         * modules/xalloc-die: New file.
121638         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
121640         * modules/md5 (Files): Add m4/uint32_t.m4.
121641         * modules/sha1: Renamed from modules/sha.
121642         (Files):
121643         Rename lib/sha.h to lib/sha1.h.
121644         Rename lib/sha.c to lib/sha1.c.
121645         Rename m4/sha.m4 to m4/sha1.m4.
121646         (lib_SOURCES): Likewise.
121647         (configure.ac): Rename gl_SHA to gl_SHA1.
121648         (Include): sha.h -> sha1.h.
121650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121652         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
121653         * m4/sha1.m4: Renamed from sha.m4.
121654         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
121656 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
121658         * lib/obstack.h (obstack_empty_p):
121659         Don't assume that chunk->contents is suitably aligned.
121660         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
121661         Likewise. Problem reported by Benno in
121662         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
121664         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
121665         readable.  This could be improved further but it'd take some work.
121667 2004-08-08  Simon Josefsson  <jas@extundo.com>
121669         * modules/xgethostname (Depends-on): Remove exit and error (not
121670         used).
121672         * modules/getpass-gnu: Add getpass.h.
121673         (Depends-on): Add stdbool.
121674         * modules/getpass: Add getpass.h.
121676 2004-08-08  Simon Josefsson  <jas@extundo.com>
121678         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
121679         Check getpass declaration.
121681 2004-08-08  Simon Josefsson  <jas@extundo.com>
121683         * lib/xgethostname.c: Don't include error.h (not used).
121685         * lib/getpass.h: Add.
121686         * lib/getpass.c: Include getpass.h first.
121688 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
121690         * lib/xalloc-die.c: New file.
121691         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
121692         All uses removed.
121693         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
121694         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
121695         xalloc-die.c.
121696         (_, N_, xalloc_die): Move to xalloc-die.c.
121697         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
121698         so that we needn't mess with xalloc_msg_memory_exhausted.
121700         * lib/sha1.h: Renamed from sha.h.
121701         (SHA1_H): Renamed from _SHA_H.
121702         (sha1_ctx): Renamed from sha_ctx.
121703         (sha1_init_ctx): Renamed from sha_init_ctx.
121704         (sha1_process_block): Renamed from sha_process_block.
121705         (sha1_process_bytes): Renamed from sha_process_bytes.
121706         (sha1_finish_ctx): Renamed from sha_finish_ctx.
121707         (sha1_read_ctx): Renamed from sha_read_ctx.
121708         (sha1_stream): Renamed from sha_stream.
121709         (sha1_buffer): Renamed from sha_buffer.
121710         * lib/sha1.c: Likewise; renamed from sha.c.
121711         Do not include <sys/types.h>.
121712         Include <stddef.h> rather than <stdlib.h>.
121714 2004-08-08  Bruno Haible  <bruno@clisp.org>
121716         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
121717         FILESYSTEM_PREFIX_LEN.
121718         * lib/progreloc.c: Likewise.
121719         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
121721 2004-08-06  Simon Josefsson  <jas@extundo.com>
121723         * modules/progname (Depends-on): Don't depend on stdbool.
121725 2004-08-06  Simon Josefsson  <jas@extundo.com>
121727         * modules/getsubopt: New file.
121728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121729         getsubopt.
121731 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121733         More merge from coreutils.
121735         * m4/utimens.m4, m4/utimecmp.m4: New files.
121736         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
121737         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
121738         prereq.m4, sha.m4: Import changes from coreutils.
121740 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121742         More merge from coreutils.
121743         * modules/raise, modules/readtokens0, modules/utimens:
121744         * modules/utimecmp, module/xnanosleep: New files.
121745         * modules/strftime: Add lib/strftime.h.
121746         Change include from <time.h> to "strftime.h".
121747         * modules/yesno: Add lib/yesno.h.
121748         * modules/backupfile: Remove lib/addext.c.
121749         * modules/euidaccess: Add stat-macros.h.
121750         * modules/canonicalize, modules/euidaccess,
121751         modules/filemode, modules/lchown, modules/makepath,
121752         modules/rmdir, modules/stat: Likewise.
121754 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
121756         Merge from tar.
121757         * lib/argp-help.c (make_hol, hol_append): Don't assume that
121758         SIZE_MAX is a valid preprocessor constant.
121759         (__argp_basename): Change from "#ifndef _LIBC"
121760         to "#ifndef __argp_short_program_name", so that
121761         we don't compile these functions for tar.
121763         More merges from coreutils.
121764         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
121765         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
121766         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
121767         * lib/addext.c: Remove; no longer needed.
121768         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
121769         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
121770         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
121771         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
121772         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
121773         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
121774         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
121775         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
121776         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
121777         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121778         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
121779         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
121780         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
121781         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
121782         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
121783         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
121784         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
121785         Import changes from coreutils.
121787 2004-08-05  Simon Josefsson  <jas@extundo.com>
121789         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
121791 2004-08-05  Simon Josefsson  <jas@extundo.com>
121793         * m4/getsubopt.m4: New file.
121795 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121797         Merge from coreutils.
121799         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
121800         * m4/getcwd-path-max.m4: New files.
121802         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
121803         FILESYSTEM_PREFIX_LEN ->
121804         FILE_SYSTEM_PREFIX_LEN.
121805         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
121806         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
121807         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
121808         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
121810         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
121811         prerequisite modules now handle the DOS stuff.
121812         Don't check for unistd.h.
121814 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121816         Merge from coreutils.
121818         * lib/.gdb-history: Remove; this doesn't belong here.
121820         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
121821         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
121822         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
121823         * lib/getcwd.c: New files.
121825         * lib/dirname.h: Include <stdbool.h>.
121826         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
121827         for consistency with POSIX terminology.  All uses changed.
121828         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
121829         (strip_trailing_slashes): Use bool for booleans.
121830         * lib/stripslash.c (strip_trailing_slashes): Likewise.
121832         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
121833         sometimes returns a positive errno value even when it succeeds.
121834         (print_errno_message) [!LIBC]: Fall back on strerror if
121835         __strerror_r fails.
121837         * lib/path-concat.c (mempcpy): Don't define if a system header defines
121838         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
121839         (longest_relative_suffix): New function.
121840         (path_concat): Use it.  Assume first argument is not NULL.
121841         Port to DOS.  Omit redundant separators.
121842         Report an error instead of returning NULL.
121843         Use mempcpy instead of memcpy.
121844         (xpath_concat): Remove: not declared or used.
121846         * lib/same.h: Include <stdbool.h>
121847         (same_name): Return bool, not int.
121848         * lib/same.c (same_name): Likewise.
121849         (errno): Don't declare; we assume C89 or better now.
121851         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
121852         if not already defined.
121854         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
121855         * lib/dup-safer.c (errno): Likewise.
121857 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
121859         Merge from coreutils.
121860         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
121861         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
121862         * modules/path-concat: Don't depend on strdup.
121864 2004-08-03  Simon Josefsson  <jas@extundo.com>
121866         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
121867         * lib/progname.h: Don't include stdbool.h.
121869 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121871         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
121872         * MODULES.html.sh (func_all_modules): Remove fatal.
121874 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121876         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
121878 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
121880         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
121881         working.
121883 2004-08-02  Simon Josefsson  <jas@extundo.com>
121885         * lib/getsubopt.h: New file, with comments from Bruno Haible.
121886         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
121887         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
121889 2004-08-01  Simon Josefsson  <jas@extundo.com>
121891         * lib/xgetdomainname.c: Include stdlib.h, for free().
121893 2004-07-19  Bruno Haible  <bruno@clisp.org>
121895         * MODULES.html.sh (func_all_modules): Add dummy.
121897 2004-07-16  Simon Josefsson  <jas@extundo.com>
121899         * modules/dummy: New file.
121901 2004-07-16  Simon Josefsson  <jas@extundo.com>
121903         * lib/dummy.c: New file.
121905 2004-07-16  Bruno Haible  <bruno@clisp.org>
121907         * lib/backupfile.h: Add extern "C" for C++.
121908         * lib/closeout.h: Likewise.
121909         * lib/copy-file.h: Likewise.
121910         * lib/findprog.h: Likewise.
121911         * lib/full-write.h: Likewise.
121912         * lib/pathname.h: Likewise.
121913         * lib/progname.h: Likewise.
121914         * lib/stpcpy.h: Likewise.
121915         * lib/stpncpy.h: Likewise.
121916         * lib/strcase.h: Likewise.
121917         * lib/strstr.h: Likewise.
121918         * lib/xalloc.h: Likewise.
121920         * lib/mbswidth.h: Add extern "C" for C++.
121921         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
121923 2004-07-13  Robert Millan  <robertmh@gnu.org>
121925         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
121927 2004-07-09  Simon Josefsson  <jas@extundo.com>
121929         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
121930         failed without this.)
121932 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121934         * modules/chown (Files): Add lib/fchown-stub.c, since
121935         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
121937 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
121939         * lib/fchown-stub.c: New file.
121941 2004-06-24  Jim Meyering  <jim@meyering.net>
121943         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
121945 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121947         * modules/argz: Omit "#include".
121949         * MODULES.html.sh (func_all_modules): Add calloc, to match
121950         2004-06-01 addition of calloc module.
121952 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121954         * m4/argz.m4: New file, which is autoupdated from libtool.
121956 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121958         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
121959         libtool.
121961 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121963         * config/srclist-update: Don't insist on "USA." before the
121964         close-comment, as libtool omits the period and puts the */ on a
121965         separate line.
121966         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
121967         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
121969 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
121971         * modules/argz: New file.
121972         * MODULES.html.sh (func_all_modules): Add argz.
121974 2004-06-12  Jim Meyering  <jim@meyering.net>
121975         and  Paul Eggert  <eggert@cs.ucla.edu>
121977         * modules/hash (Files): Add lib/xalloc.h.
121978         * modules/pipe (Depends-on): Add wait-process.
121979         * modules/stat (Depends-on): Add xalloc.
121980         * modules/userspec (Files): Add lib/userspec.h.
121981         * modules/xstrto
121983         Upgrade from gettext-0.13.
121984         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
121985         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
121986         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
121988 2004-06-10  Jim Meyering  <jim@meyering.net>
121990         * lib/calloc.c: New file.
121992 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
121994         * lib/getdate.y (yylex): Allow space between sign and number.
121995         Problem reported by Dan Jacobson.
121997 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
121999         Merge from coreutils CVS.
122001         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
122002         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
122003         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
122004         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
122005         xstrtol.m4: Fix copyright date and/or serial number.
122007         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
122008         See if we need an fchown replacement.
122009         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
122010         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
122011         and use the replacement function if we detect either defect.
122013         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
122014         gl_UTIMECMP.
122016 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
122017         and  Jim Meyering  <jim@meyering.net>
122019         Merge from coreutils CVS.
122021         * lib/stat-macros.h: New file, with contents from file-type.h
122022         and coreutils' system.h.
122023         * lib/file-type.c: Include "stat-macros.h".
122024         * lib/file-type.h (file_type): Move all macro definitions to new file,
122025         stat-macros.h.
122027         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
122028         Wrap old code with this conditional.
122029         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
122030         function that does not dereference symlinks.
122031         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
122033         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
122034         dependency problems.
122035         (xreadlink): Accept new arg SIZE, for efficiency.
122036         All decls and uses changed.
122037         * lib/xreadlink.h: Include <stddef.h>, for size_t.
122039         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
122040         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
122042         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
122043         sysexits.h.
122045 2004-06-01  Jim Meyering  <jim@meyering.net>
122047         * m4/calloc.m4: New file.
122049 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
122051         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
122052         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
122053         Also, fix a typo in a diagnostic.
122055 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122057         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
122058         or AC_FUNC_REALLOC.
122060 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
122062         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
122063         macros to be defined.
122064         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
122065         the allocator returns NULL because the requested size is zero.
122067 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122069         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
122070         var.  Add comment explaining why libc still defines it.  This
122071         merges the following patch from glibc:
122072         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
122074 2004-05-20  Andreas Schwab  <schwab@suse.de>
122076         * m4/free.m4: Replace free if it not known to work, not the other
122077         way round.
122079 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
122081         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
122082         present in glibc since revision 1.1 of this file.
122083         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
122084         obstack_alignment_mask, obstack_alloc, obstack_base,
122085         obstack_blank, obstack_blank_fast, obstack_chunk_size,
122086         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
122087         obstack_grow0, obstack_init, obstack_int_grow,
122088         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
122089         obstack_next_free, obstack_object_size, obstack_ptr_grow,
122090         obstack_ptr_grow_fast, obstack_room): Remove declarations of
122091         nonexistent functions.
122093 2004-05-18  Karl Berry  <karl@gnu.org>
122095         * config/srclist.txt: break link for vasnprintf.c.
122097 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122099         Port obstack to the AS/400, where pointers are 16 bytes wide and
122100         you cannot cast an integer to a valid pointer.  This patch is
122101         currently waiting to be integrated into glibc; see
122102         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
122104         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
122105         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
122106         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
122107         (struct obstack): temp member is now a union of a pointer and
122108         an integer, instead of an integer.  All integer uses changed.
122109         This does not affect the physical layout of struct obstack,
122110         except on hosts (like the AS/400) where the size or alignment of
122111         void * is greater than that of ptrdiff_t.
122112         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
122113         __STDC__)]: Store temporary in pointer member of union, not
122114         integer member.
122115         * lib/obstack.c: Include <stddef.h>, for offsetof.
122116         (struct fooalign): Remove; it doesn't need a name.
122117         (union fooround): Change double to long double, and add void *.
122118         (DEFAULT_ALIGNMENT): Use offsetof to compute.
122119         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
122120         not a macro.  Hence the values are always int; so remove all
122121         casts-to-int in uses.
122123 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
122125         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
122126         we can get this patch merged into glibc.
122128 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122129             Paul Eggert  <eggert@cs.ucla.edu>
122131         * m4/argp: Depend on alloca.
122133 2004-05-17  Derek R. Price  <derek@ximbiot.com>
122134             Paul Eggert  <eggert@cs.ucla.edu>
122136         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
122137         freecoding.
122139 2004-05-17  Bruno Haible  <bruno@clisp.org>
122141         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
122142         precision that consists of a '.' followed by an empty digit string.
122143         Patch by Tor Lillqvist <tml@iki.fi>.
122145 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122147         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
122148         for backward compatibility with older code.  We need our own
122149         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
122150         it under some other name, and our alloca.h will define it.
122152 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
122153             Derek Price  <derek@ximbiot.com>
122155         * lib/alloca.c: Include <alloca.h>, to get our interface.
122156         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
122157         include <alloca.h> first.  Use C89 prototype for alloca; this
122158         requires including <stddef.h> for size_t.  Use extern "C" if C++.
122159         Use #elif for simplicity, since we can assume C89 now.
122160         Don't try to source the system alloca.h since it will not be found
122161         and to prevent recursively including its replacement.
122162         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
122163         * lib/regex.c: Likewise.
122165 2004-05-16  Derek Price  <derek@ximbiot.com>
122166             Paul Eggert  <eggert@cs.ucla.edu>
122168         getline cleanup.  This changes the getndelim2 API: both order of
122169         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
122170         no delimiter).
122172         * lib/getline.c: Don't include stddef.h or stdio.h, since our
122173         interface does that.
122174         (getline): Always use getdelim, so that we don't have two
122175         copies of this code.
122176         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
122177         if available.
122178         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
122179         (GETNDELIM2_MAXIMUM): New macro.
122180         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
122181         instead of the old practice of delim2==0.  All callers changed.
122182         Return -1 on overflow, instead of returning junk.
122183         Do not set *linesize unless allocation succeeds.
122184         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
122185         that we include sys/types.h.
122186         * lib/getnline.h: Likewise.
122187         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
122188         (getndelim2): Reorder arguments.
122189         * lib/getnline.c (getnline, getndelim):
122190         Don't discard the NMAX argument.
122191         (getnline): Invoke getndelim, to avoid code duplication.
122192         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
122193         of (size_t) -1 by callers of the getnline family.
122195 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122197         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
122198         Check for gettimeofday.
122199         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
122200         Check for settimeofday, stime.
122202 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122204         * lib/nanosleep.c (suspended): Change its type from int to
122205         sig_atomic_t volatile.
122206         (first_call): Make it private to rpl_nanosleep, and have it
122207         be zero initially as that's a bit faster.
122208         (my_usleep): Round up fractional times instead of truncating them,
122209         as this is the usual meaning for 'sleep'.
122211         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
122212         doesn't work.
122213         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
122214         (ENOSYS): Define if not defined.
122215         (settime): Fall back on stime if it exists and settimeofday fails.
122216         But don't bother with fallbacks if a method fails with errno == EPERM.
122218 2004-05-11  Jim Meyering  <jim@meyering.net>
122220         Prior to this change, the save_cwd caller required read access to the
122221         current directory on most systems (ones with the fchdir function).
122223         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
122224         fails, try write-only, and finally, resort to using xgetcwd.
122226 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122228         * lib/obstack.c, obstack.h: Import changes from libc.
122230 2004-04-28  Bruno Haible  <bruno@clisp.org>
122232         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
122233         also implicitly appends .exe to executables.
122234         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
122235         accepts Windows pathnames.
122236         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122237         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122238         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
122239         Treat Cygwin like Windows, since it now accepts Windows pathnames.
122240         Reported by Derek Robert Price <derek@ximbiot.com>.
122242 2004-04-21  Karl Berry  <karl@gnu.org>
122244         * config/srclist.txt (localcharset.c): break sync.
122246 2004-04-20  Paul Eggert  <eggert@twinsun.com>
122248         * m4/host-os.m4: Add a copyright notice.
122250 2004-04-20  Jim Meyering  <jim@meyering.net>
122252         Change UTILS_ to gl_ in AC_DEFINE'd names.
122253         Change utils_- and jm_-prefixed variables, too.
122254         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
122255         UTILS_FUNC_MKDIR_TRAILING_SLASH.
122256         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
122258         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
122259         Don't emit trailing blanks.
122260         Also rename jm_-prefixed variables to have gl_ prefix.
122262         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
122263         Also rename jm_-prefixed variables to have gl_ prefix.
122265         * m4/jm-macros.m4: Reflect the renamings.
122266         * m4/prereq.m4: Likewise.
122268 2004-04-20  Jim Meyering  <jim@meyering.net>
122270         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
122271         memory.
122273 2004-04-20  Jim Meyering  <jim@meyering.net>
122274             Bruno Haible  <bruno@clisp.org>
122276         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
122277         memory when realloc fails.
122279 2004-04-19  Jim Meyering  <jim@meyering.net>
122281         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
122282         now that readutmp.c may call `free (0)'.
122284 2004-04-19  Bruno Haible  <bruno@clisp.org>
122286         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
122287         * m4/inttypes_h.m4: Likewise.
122288         * m4/stdint_h.m4: Likewise.
122289         * m4/intmax_t.m4: Likewise.
122290         * m4/uintmax_t.m4: Likewise.
122292 2004-04-18  Jim Meyering  <jim@meyering.net>
122294         * m4/prereq.m4: Don't forbid jm_ prefix.
122296         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
122297         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
122298         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
122299         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
122300         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
122301         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
122302         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
122303         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
122304         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
122305         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
122306         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
122307         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
122308         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
122309         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
122310         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
122311         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
122312         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
122313         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
122314         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
122316 2004-04-18  Jim Meyering  <jim@meyering.net>
122318         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
122319         failure, don't leak memory and do call END_UTMP_ENT.
122321 2004-04-16  Jim Meyering  <jim@meyering.net>
122323         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
122324         coreutils' stat program.
122325         (gl_PREREQ): Don't require jm_PREREQ_STAT.
122327 2004-04-11  Paul Eggert  <eggert@twinsun.com>
122329         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
122330         C89.
122331         (CHAR_BIT): Remove, since we assume C89.
122332         Include <stdint.h> if available, as per current Autoconf CVS advice.
122334 2004-03-31  Jim Meyering  <jim@meyering.net>
122336         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
122337         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
122338         * m4/xalloc.m4: Likewise.
122340 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122342         Merge from coreutils.
122344         * m4/inttostr.m4: New file.
122345         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
122346         Require AM_STDBOOL_H and gl_TIMESPEC instead.
122347         Require gl_CLOCK_TIME.
122348         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
122350 2004-03-30  Paul Eggert  <eggert@twinsun.com>
122352         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
122353         not bool, to be more consistent with Unix conventions.
122354         Suggested by Bruno Haible.
122356         Merge from coreutils.
122358         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
122359         * lib/umaxtostr.c: New files.
122361         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
122362         the usual <time.h> dance.
122363         (get_date): Change signature to support fractional time stamps.
122364         All callers changed.
122365         * lib/getdate.y: Include "getdate.h" first, as we can now
122366         assume C89 and don't need to worry about 'const'.
122367         Similarly, include "unlocked-io.h" near start, not in middle.
122368         Include <limits.h>.
122369         (textint.value): Use long int rather than int.
122370         (textint.digits): Use size_t rather than int.
122371         (BILLION, LOG10_BILLION): New constants.
122372         (parser_control): New member rel_ns.  Members day_ordinal,
122373         time_zone, month, day, hour, minutes, rel_year, rel_month,
122374         rel_day, rel_hour, rel_minutes, rel_seconds
122375         are now long int, not int.  Member seconds is now struct timespec,
122376         not int.  New member timespec_seen.  Members dates_seen, days_seen,
122377         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
122378         not int.
122379         (%union.intval): Now long int, not int.
122380         New member timespec.
122381         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
122382         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
122383         (spec): Now is a timespec or an item list.
122384         (timespec, items): New nonterminals.
122385         (time, rel, relunit, number, get_date):
122386         Add support for fractional seconds.
122387         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
122388         (gmtime, localtime, mktime): Remove decls; not needed with C89.
122389         (to_hour): First arg is now long int, not int.
122390         (to_year): Returns long int, not int.
122391         Don't treat year -70 like 70.
122392         (tm_diff): Returns long int, not int.
122393         (lookup_word): Use bool instead of int when appropriate.
122394         (yylex): Use size_t for count, not int.
122395         Detect overflow when parsing large integer constants.
122396         Add support for fractions.
122397         (get_date): Make pointers 'const' if possible.
122398         Use more-portable code to detect integer overflow.
122399         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
122400         Don't use ctime; it's not reliable if the year has >4 digits.
122402         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
122403         This is for compatibility with BSD.
122405         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
122406         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
122407         From coreutils' system.h.
122409         * lib/userspec.c: Don't include "posixver.h".
122410         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
122411         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
122412         compatible extension.  Simplify code by removing a boolean int
122413         that was always nonzero if a string was nonnull.
122415 2004-03-30  Jim Meyering  <jim@meyering.net>
122417         Merge from coreutils.
122419         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
122420         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
122421         on some systems one must include <grp.h> before it.
122422         Reported by Christian Krackowizer.
122424 2004-03-30  Jim Meyering  <jim@meyering.net>
122426         Merge from coreutils.
122428         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
122430         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
122431         an empty input stream.
122433         * lib/readtokens.c: Include <stdbool.h>.
122434         (readtoken): Use `size_t' rather than int/long.
122435         All callers adjusted.
122436         Use `bool' rather than `int' where appropriate.
122437         Use memset rather than an explicit loop.
122438         Use x2nrealloc rather than xrealloc.
122439         Allow the use of `\0' as a delimiter.
122440         (readtokens): Likewise.
122441         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
122443 2004-03-30  Jim Meyering  <jim@meyering.net>
122445         * m4/realloc.m4: Remove file, since now it does no more than
122446         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
122447         the `configure.ac' section of module/realloc.
122448         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
122450 2004-03-30  Bruno Haible  <bruno@clisp.org>
122452         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
122453         nonnull.
122455 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122457         Merge changes to getloadavg.c from coreutils and Emacs.
122459         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
122460         Define to an expression, not to the empty string.
122461         Include cloexec.h and xalloc.h.
122462         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
122463         Use set_cloexec_flag rather than rolling our own.
122464         * lib/cloexec.c, lib/cloexec.h: New files.
122466 2004-03-29  Paul Eggert  <eggert@twinsun.com>
122468         * m4/cloexec.m4: New file.
122470 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122472         * lib/getopt.h: Sync with libc CVS.
122474 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122475             Bruno Haible  <bruno@clisp.org>
122477         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
122478         mbswidth.
122480 2004-03-18  Paul Eggert  <eggert@twinsun.com>
122481             Bruno Haible  <bruno@clisp.org>
122483         * lib/mbswidth.h: Include <wchar.h> only if
122484         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
122485         <wchar.h>.
122486         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
122488 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122490         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
122491         Sync with libc CVS.
122492         * lib/getopt_int.h: New file, also synced from libc.
122494 2004-03-09  Paul Eggert  <eggert@twinsun.com>
122496         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
122497         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
122498         Bring back getopt.c, getopt.h, getopt1.c.
122500 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122502         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
122503         All uses changed.  Check for sa_sigaction member; this fixes
122504         a bug first reported by Jason Andrade in
122505         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122507 2004-03-07  Paul Eggert  <eggert@twinsun.com>
122509         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
122510         '#if' expressions.  Unlike the code it replaces, it does not
122511         depend on (defined _SC_PAGESIZE).  However, it does depend on
122512         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
122513         first reported by Jason Andrade in
122514         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
122516 2004-02-25  Simon Josefsson  <jas@extundo.com>
122518         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
122520 2004-02-25  Simon Josefsson  <jas@extundo.com>
122522         * lib/strdup.h: New file.
122523         * lib/strdup.c: Include it.
122524         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
122525         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
122527 2004-02-23  Karl Berry  <karl@gnu.org>
122529         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
122530         (from fencepost.gnu.org:/gd/gnuorg).
122532 2004-02-23  Karl Berry  <karl@gnu.org>
122534         * config/srclistvars.sh (GNUORG) [karl]: redefine.
122535         * config/srclist.txt: add maintain/standards documents.
122537 2004-02-18  Bruno Haible  <bruno@clisp.org>
122539         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
122540         Reported by Derek Robert Price <derek@ximbiot.com>.
122542 2004-02-16  Karl Berry  <karl@gnu.org>
122544         * config/mkinstalldirs, install-sh: update from automake.
122546 2004-02-06  Karl Berry  <karl@gnu.org>
122548         * m4/po.m4: update from gettext 0.14.1.
122550 2004-02-06  Karl Berry  <karl@gnu.org>
122552         * lib/config.charset: update from gettext 0.14.1.
122554 2004-02-05  Paul Eggert  <eggert@twinsun.com>
122556         Add comments and code, prompted by suggestions from Bruno Haible
122557         for sh-quote.
122558         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
122559         describing the enum quoting_style values.
122560         * lib/quotearg.c (quotearg_alloc): New function.
122561         (quotearg_buffer_restyled): Treat lone { and } as special.
122562         Treat = as special.  Work around bug with older shells
122563         that "see" a '\' that is really the 2nd byte of a multibyte char.
122564         Quote empty string with shell_quoting_style.
122566 2004-02-03  Bruno Haible  <bruno@clisp.org>
122568         * m4/pipe.m4: New file, from GNU gettext.
122570 2004-02-03  Bruno Haible  <bruno@clisp.org>
122572         * lib/pipe.h: New file, from GNU gettext.
122573         * lib/pipe.c: New file, from GNU gettext.
122575 2004-01-27  Bruno Haible  <bruno@clisp.org>
122577         * m4/execute.m4: New file, from GNU gettext.
122579 2004-01-27  Bruno Haible  <bruno@clisp.org>
122581         * lib/execute.h: New file, from GNU gettext.
122582         * lib/execute.c: New file, from GNU gettext.
122583         * lib/w32spawn.h: New file, from GNU gettext.
122585 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122587         Merge from diffutils.
122589         * lib/file-type.c (file_type): Add typed memory objects.
122590         * lib/file-type.h (S_TYPEISTMO): New macro.
122592         * lib/c-stack.h (c_stack_action): Remove argv argument.
122593         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
122594         (die): Don't calculate message unless segv_action returns.
122595         (get_stack_location, min_address_from_argv, max_address_from_argv,
122596         volatile stack_base, volatile_stack_size): Remove.
122597         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
122598         that every segmentation violation is a stack overflow.  (Ouch!)
122599         See Debian bug 136249 (still outstanding) for more info about why
122600         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
122602 2004-01-24  Paul Eggert  <eggert@twinsun.com>
122604         Exit-status fix from coreutils.
122606         Use exit_failure consistently in place of EXIT_FAILURE,
122607         so that program exit statuses are consistent on failure.
122609         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
122610         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
122611         * lib/argmatch.h: Comment fix to match the above.
122612         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
122613         Now a macro referring to exit_failure, instead of a separate
122614         variable.  Include "exitfail.h" to get it.
122615         * lib/xstrtol.h: Include "exitfail.h".
122616         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
122618         * lib/long-options.c (parse_long_options): Use prototype
122619         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
122620         for clarity.
122622 2004-01-21  Jim Meyering  <jim@meyering.net>
122624         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
122625         so as not to conflict with a different-sized __mktime_internal
122626         function in GNU libc.
122627         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
122628         Problem building statically-linked `ls' reported by Michael Brunnbauer.
122630 2004-01-20  Karl Berry  <karl@gnu.org>
122632         * config/config.guess: update from config.
122634         * config/srclistvars.sh: GNUWWWLICENSES for karl.
122636 2004-01-20  Bruno Haible  <bruno@clisp.org>
122638         Safer stack allocation.
122639         * lib/setenv.c: Include allocsa.h.
122640         (alloca): Remove fallback definition.
122641         (freea): Remove macro.
122642         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
122643         instead of freea.
122645 2004-01-20  Bruno Haible  <bruno@clisp.org>
122647         * m4/eealloc.m4: New file, from GNU gettext.
122649 2004-01-20  Bruno Haible  <bruno@clisp.org>
122651         * m4/allocsa.m4: New file, from GNU gettext.
122653 2004-01-20  Bruno Haible  <bruno@clisp.org>
122655         * lib/xallocsa.h: New file, from GNU gettext.
122656         * lib/xallocsa.c: New file, from GNU gettext.
122658 2004-01-20  Bruno Haible  <bruno@clisp.org>
122660         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
122662 2004-01-20  Bruno Haible  <bruno@clisp.org>
122664         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
122665         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
122666         specially.
122668 2004-01-20  Bruno Haible  <bruno@clisp.org>
122670         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
122671         patch.
122673 2004-01-20  Bruno Haible  <bruno@clisp.org>
122675         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
122677 2004-01-20  Bruno Haible  <bruno@clisp.org>
122679         * lib/eealloc.h: New file.
122681 2004-01-20  Bruno Haible  <bruno@clisp.org>
122683         * lib/binary-io.h: Avoid warnings on Cygwin.
122685 2004-01-20  Bruno Haible  <bruno@clisp.org>
122687         * lib/allocsa.h: New file, from GNU gettext.
122688         * lib/allocsa.c: New file, from GNU gettext.
122690 2004-01-18  Karl Berry  <karl@gnu.org>
122692         * doc/gpl.texi, doc/lgpl.texi: new files.
122694 2004-01-18  Karl Berry  <karl@gnu.org>
122696         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
122697         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
122699 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122701         Merge from coreutils.
122703         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
122704         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
122705         (gl_DEFAULT_POSIX2_VERSION): Move
122706         the documentation from 'configure' into 'config.hin',
122707         so that 'configure --help' isn't burdened by it and
122708         we don't have to worry about its formatting there.
122709         Reword the documentation so that it's more succinct
122710         and can be run together into a single paragraph.
122711         * m4/same.m4 (gl_SAME): Check for pathconf.
122713 2004-01-15  Paul Eggert  <eggert@twinsun.com>
122715         Merge from coreutils.
122717         * lib/posixver.c: Include posixver.h.
122719         * lib/same.c: Include <stdbool.h>, <limits.h>.
122720         (_POSIX_NAME_MAX): Define if not defined.
122721         (MIN): New macro.
122722         (same_name): If file names are silently truncated, report
122723         that the file names are the same if they are the same after
122724         the silent truncation.
122726         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
122727         conversion function.
122728         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
122729         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
122730         longer needed.
122732 2004-01-15  Jim Meyering  <jim@meyering.net>
122734         Merge from coreutils.
122736         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
122737         if no library is required.
122738         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
122739         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
122740         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
122741         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
122742         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
122743         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
122744         value, $ac_cv_search_crypt, if it's "none required".
122745         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
122746         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
122747         not gl_FUNC_GETLOADAVG.
122748         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
122749         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
122751 2004-01-15  Jim Meyering  <jim@meyering.net>
122753         Merge from coreutils.
122755         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
122756         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
122757         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
122759         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
122760         optional configure-time default.
122762         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122764         * lib/xreadlink.c (xreadlink): Correct outdated comment.
122766 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
122768         Merge from coreutils.
122770         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
122771         value, $ac_cv_search_nanosleep, if it's "none required".
122773 2004-01-14  Paul Eggert  <eggert@twinsun.com>
122775         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
122776         with like-named macro in fnmatch.c.
122777         (EXT): Use an internal constant instead.
122779         Merge fnmatch patches from glibc.
122780         * lib/fnmatch.c (mbsinit): Remove define.
122781         Add libc_hidden_ver (__fnmatch, fnmatch).
122782         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
122783         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
122785 2004-01-14  Karl Berry  <karl@gnu.org>
122787         * config/install-sh: update from automake.
122789 2004-01-13  Karl Berry  <karl@gnu.org>
122791         * config/install-sh: update from automake.
122793 2004-01-09  Karl Berry  <karl@gnu.org>
122795         * config/install-sh: update from automake.
122797 2004-01-05  Karl Berry  <karl@gnu.org>
122799         * config/config.{sub,guess}: update from config.
122801 2003-12-31  Karl Berry  <karl@gnu.org>
122803         * config/depcomp: update from automake.
122805 2003-12-14  Karl Berry  <karl@gnu.org>
122807         * lib/config.charset: update from gettext-runtime.
122809 2003-12-03  Paul Eggert  <eggert@twinsun.com>
122811         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
122812         Bug reported by Alfred M. Szmidt.
122814 2003-12-03  Bruno Haible  <bruno@clisp.org>
122816         * m4/gettext.m4: Upgrade from gettext-0.13.
122817         * m4/po.m4: Upgrade from gettext-0.13.
122818         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
122819         * m4/intmax.m4: New file, from gettext-0.13.
122820         * m4/printf-posix.m4: New file, from gettext-0.13.
122822 2003-11-29  Karl Berry  <karl@gnu.org>
122824         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
122826 2003-11-25  Paul Eggert  <eggert@twinsun.com>
122827             Bruno Haible  <bruno@clisp.org>
122829         * lib/printf-parse.h: Don't include sys/types.h.
122830         (ARG_NONE): New macro.
122831         (char_directive): Change type of *arg_index fields to size_t.
122832         * lib/printf-parse.c: Don't include sys/types.h.
122833         (SSIZE_MAX): Remove macro.
122834         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
122835         Remove unnecessary overflow check.
122836         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
122837         fields.
122839 2003-11-25  Bruno Haible  <bruno@clisp.org>
122841         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
122843 2003-11-25  Bruno Haible  <bruno@clisp.org>
122845         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
122846         gt_TYPE_SSIZE_T.
122848 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122850         * modules/alloca: Remove dependency on xalloc.
122852 2003-11-24  Paul Eggert  <eggert@twinsun.com>
122854         * lib/alloca.c: Remove dependency on xalloc module.
122855         (xalloc_die): Remove.
122856         (memory_full) [!defined emacs]: New macro.
122857         [!defined emacs]: Don't include xalloc.h.
122858         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
122859         address arithmetic overflows.  Change datatypes a bit to avoid
122860         unnecessary casts.
122862 2003-11-22  Jim Meyering  <jim@meyering.net>
122864         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
122865         s/size/size_t/.
122867 2003-11-21  Karl Berry  <karl@gnu.org>
122869         * config/config.{sub,guess}: update from config.
122871 2003-11-18  Karl Berry  <karl@gnu.org>
122873         * config/config.{sub,guess}: update from config.
122875         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
122877 2003-11-17  Paul Eggert  <eggert@twinsun.com>
122879         * README: Mention that S+T cannot overflow if S is the size of
122880         an existing object and T is sufficiently small.
122882 2003-11-17  Jim Meyering  <jim@meyering.net>
122884         On systems without utime and without a utimes function capable of
122885         dealing with a NULL struct utimbuf* argument, this utime replacement
122886         could -- in unusual circumstances -- leak a file descriptor.
122887         * lib/utime.c: Include <unistd.h> and <errno.h>.
122888         (utime_null): Be sure to close `fd' and to preserve errno.
122889         Reported by Geoff Collyer via Arnold Robbins.
122891 2003-11-17  Bruno Haible  <bruno@clisp.org>
122893         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
122894         (Depends-on): Add xsize.
122896 2003-11-17  Bruno Haible  <bruno@clisp.org>
122898         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
122900 2003-11-17  Bruno Haible  <bruno@clisp.org>
122902         * lib/vasnprintf.c (alloca): Remove fallback definition.
122903         (freea): Remove definition.
122904         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
122905         Reported by Paul Eggert.
122907 2003-11-16  Paul Eggert  <eggert@twinsun.com>
122908             Bruno Haible  <bruno@clisp.org>
122910         Protect against address arithmetic overflow.
122911         * lib/printf-args.h: Include stddef.h.
122912         (arguments): Change type of field 'count' to size_t.
122913         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
122914         'unsigned int' where appropriate.
122915         * lib/printf-parse.h: Include sys/types.h.
122916         (char_directive): Change type of *arg_index fields to ssize_t.
122917         (char_directives): Change type of fields 'count', max_*_length to
122918         size_t.
122919         * lib/printf-parse.c: Include sys/types.h and xsize.h.
122920         (SSIZE_MAX): Define fallback value.
122921         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
122922         instead of 'int' where appropriate. Check a_allocated, d_allocated
122923         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
122924         * lib/vasnprintf.c: Include xsize.h.
122925         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
122926         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
122927         overflow. Avoid wraparound when converting a width or precision from
122928         decimal to binary.
122930 2003-11-16  Bruno Haible  <bruno@clisp.org>
122932         Update from GNU gettext.
122933         * lib/printf-parse.c: Generalize to it can be compiled for wide
122934         strings.
122935         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
122936         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
122937         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
122938         SNPRINTF): New macros.
122939         Don't include <alloca.h> if the file is used inside libintl.
122940         (local_wcslen): New function, for Solaris 2.5.1.
122941         (VASNPRINTF): Use it instead of wcslen.
122943 2003-11-16  Bruno Haible  <bruno@clisp.org>
122945         * lib/xsize.h (xmax): New function.
122946         (xsum, xsum3, xsum4): Declare as "pure" functions.
122948 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122950         * modules/xalloc (Files): Undo latest change, since xalloc.h
122951         no longer needs SIZE_MAX or PTRDIFF_MAX.
122953 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
122956         gl_PTRDIFF_MAX.
122958 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122960         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
122961         "return", to pacify some unknown compiler.  Problem reported
122962         by Joerg Schilling.
122964 2003-11-12  Paul Eggert  <eggert@twinsun.com>
122966         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
122967         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
122968         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
122969         heuristic is just as accurate as far as we know, and it removes a
122970         dependency on size_max.m4 and ptrdiff_max.m4.
122972 2003-11-11  Bruno Haible  <bruno@clisp.org>
122974         * modules/xsize (Files): Add m4/size_max.m4.
122975         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
122977 2003-11-11  Bruno Haible  <bruno@clisp.org>
122979         * m4/size_max.m4: New file.
122980         * m4/ptrdiff_max.m4: New file.
122981         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
122982         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
122983         (gl_XALLOC): Invoke it.
122985 2003-11-11  Bruno Haible  <bruno@clisp.org>
122987         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
122988         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
122989         defined.
122991 2003-11-10  Paul Eggert  <eggert@twinsun.com>
122993         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
122994         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
122995         rejected some allocations of exactly SIZE_MAX - 2 bytes.
122996         From Bruno Haible.
122997         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
122998         not (size_t) -1, since it's defined here.
123000 2003-11-09  Karl Berry  <karl@gnu.org>
123002         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
123004 2003-11-06  Paul Eggert  <eggert@twinsun.com>
123006         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
123007         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
123008         Reject sizes of exactly SIZE_MAX bytes.
123009         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
123010         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
123012 2003-11-05  Bruno Haible  <bruno@clisp.org>
123014         * lib/xsize.h: Include limits.h, to avoid a possible collision with
123015         SIZE_MAX defined in <limits.h> on Solaris.
123017 2003-11-04  Jim Meyering  <jim@meyering.net>
123019         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
123020         variable names, rather than @VAR@.
123021         * modules/poll: Likewise.
123023 2003-11-04  Bruno Haible  <bruno@clisp.org>
123025         * modules/xsize: New file.
123026         * modules/linebreak: Depend on xsize.
123027         * MODULES.html.sh (func_all_modules): Add xsize.
123029 2003-11-04  Bruno Haible  <bruno@clisp.org>
123031         * m4/xsize.m4: New file.
123033 2003-11-04  Bruno Haible  <bruno@clisp.org>
123035         * lib/xsize.h: New file.
123036         * lib/linebreak.c: Include xsize.h.
123037         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
123038         argument for overflow.
123039         Suggested by Paul Eggert.
123041 2003-11-03  Karl Berry  <karl@gnu.org>
123043         * config/config.{guess,sub}: update from config.
123045 2003-11-03  Jim Meyering  <jim@meyering.net>
123047         * modules/userspec (lib_SOURCES): Add userspec.h.
123048         (Include): Add "userspec.h".
123049         Improve description.
123051 2003-11-03  Jim Meyering  <jim@meyering.net>
123053         * lib/userspec.c: Include "userspec.h".
123054         * lib/userspec.h: New file.
123056 2003-11-03  Bruno Haible  <bruno@clisp.org>
123058         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
123060 2003-11-03  Bruno Haible  <bruno@clisp.org>
123062         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
123063         available, to avoid (extremely rare) race condition.
123064         Suggested by Paul Eggert.
123066 2003-11-02  Karl Berry  <karl@gnu.org>
123068         * config/srclist.txt (vasprintf.c): sync broken, sigh.
123070 2003-10-31  Paul Eggert  <eggert@twinsun.com>
123072         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
123073         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
123074         (read_filesystem_list): Set and use me_type_malloced.
123075         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
123076         whatever the type happens to be), for brevity and consistency.
123077         Check for size calculation overflow on Alphas running OSF/1.
123079 2003-10-31  Jim Meyering  <jim@meyering.net>
123081         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
123083         * lib/linebuffer.c: Include <string.h> for declaration of memset.
123085 2003-10-30  Paul Eggert  <eggert@twinsun.com>
123086             Bruno Haible  <bruno@clisp.org>
123088         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
123089         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
123091 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
123093         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
123094         netbsd*-gnu*.  Suggested by Robert Millan.
123096 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123098         * modules/group-member: Depend on stdbool.
123100 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123102         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
123104 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123106         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
123107         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
123108         after the 'gnu' in these cases.  This fixes some bugs in the
123109         previous change, and is based on suggestions by Robert Millan.
123111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
123113         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
123114         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
123115         no longer needed.
123116         * lib/quotearg.c (quotearg_n_options): Use it.
123117         * lib/group-member.c: Include <stdbool.h>.
123118         (free_group_info): Arg is now const *; don't free arg.
123119         (get_group_info): Now returns bool and accepts struct group_info *,
123120         rather than returning a malloc'ed struct group_info *.
123121         All uses changed.  Check for overflow in internal size calculation.
123123         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
123124         rather than xmalloc/xrealloc.
123125         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
123126         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
123127         conformance bug: the old code used a pointer after freeing the
123128         storage that it addressed.
123129         * lib/hash.c (hash_initialize): Simplify the code by using
123130         xalloc_oversized rather than doing it by hand.
123131         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
123132         the buffer preserved.  Use free and xmalloc instead.
123133         * lib/quotearg.c (quotearg_n_options): Likewise.
123134         Use a simpler test for size overflow.  Don't use xalloc_oversized
123135         because unsigned int might be wider than size_t (!); this suggests
123136         that we should switch from unsigned int to size_t for slot numbers.
123138 2003-10-28  Paul Eggert  <eggert@twinsun.com>
123140         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
123141         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
123142         NetBSD kernels.  Requested by Richard Stallman.
123144 2003-10-27  Paul Eggert  <eggert@twinsun.com>
123146         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
123147         to allocate the returned structure.  Do not allocate a subarray,
123148         as x2nrealloc will do that.
123149         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
123150         instead of xnrealloc.
123151         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
123153 2003-10-27  Bruno Haible  <bruno@clisp.org>
123155         * lib/stdbool_.h: Better support for BeOS.
123157 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123159         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
123160         now uses inline.
123162 2003-10-26  Paul Eggert  <eggert@twinsun.com>
123164         * lib/xalloc.h (xalloc_oversized): New static inline function, for
123165         callers that want to do their own size-overflow checking.  Include
123166         <stdbool.h>, since xalloc_oversized returns bool.
123167         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
123168         to use xalloc_oversized.
123170         Add two functions x2realloc, x2nrealloc, for programs that grow
123171         arrays dynamically by doubling their sizes.
123172         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
123173         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
123174         New functions.
123176         Port to C99 semantics for 'inline' of external functions.
123177         Bug reported by Bruno Haible.
123178         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
123179         with the old contents of xnmalloc.
123180         (xnmalloc, xmalloc): Use it.
123181         (xnrealloc_inline): New static inline function,
123182         with the old contents of xnrealloc.
123183         (xnrealloc, xrealloc): Use it.
123185         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
123186         that.
123188 2003-10-26  Karl Berry  <karl@gnu.org>
123190         * config/srclist.txt (COPYING.DOC): no longer available from
123191         /gd/gnuorg; don't know where the ultimate source is.
123193 2003-10-25  Paul Eggert  <eggert@twinsun.com>
123195         Fix several address-calculation bugs in the hash modules,
123196         plus some minor code cleanup.
123198         * lib/hash.h: Include <stdbool.h>, for bool.
123199         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
123200         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
123201         hash_get_n_entries, hash_get_max_bucket_length,
123202         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
123203         hash_rehash): Use size_t rather than unsigned.
123204         * lib/hash.c (struct hash_table, hash_get_n_buckets,
123205         hash_get_n_buckets_used, hash_get_n_entries,
123206         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
123207         hash_get_entries, hash_do_for_each, hash_string, is_prime,
123208         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
123209         Likewise.
123210         (SIZE_MAX): Define if not defined.
123211         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
123212         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
123213         hash_print):
123214         Use const * when possible.
123215         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
123216         (check_tuning): Fix bug: if tuning parameters were very close to
123217         0 or 1, rounding errors could have caused subscript violations.
123218         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
123219         (hash_initialize): Add 'fail:' label
123220         to free table and return NULL, and use it to simplify code.
123221         Use calloc rather than clearing the storage ourself.
123222         (hash_initialize, hash_rehash): Check for arithmetic overflow in
123223         buffer size calculations.
123224         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
123225         Include <stddef.h>, for size_t.
123226         * lib/hash-pjw.c (hash_pjw): Likewise.
123227         Switch to method described by Bruno Haible.
123228         Include <limits.h>, for CHAR_BIT.
123229         (SIZE_BITS): New macro.
123231 2003-10-23  Paul Eggert  <eggert@twinsun.com>
123233         * m4/getline.m4 (AM_FUNC_GETLINE):
123234         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
123235         hosts.  Problem reported by Derek Robert Price in
123236         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
123237         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
123238         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
123240 2003-10-21  Paul Eggert  <eggert@twinsun.com>
123242         * lib/getndelim2.c (getndelim2): When size calculation overflows,
123243         ceiling the allocation at NMAX bytes rather than silently
123244         discarding input bytes before NMAX is reached.  This makes
123245         a difference only if NMAX exceeds SIZE_MAX / 2.
123247         * lib/obstack.c: Merge from glibc.
123248         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
123249         Add libc_hidden_def (_obstack_newchunk).
123250         (_obstack_free) [! defined _LIBC]: Remove.
123251         [defined _LIBC]: Make a strong alias from obstack_free, rather than
123252         a clone of the function body.
123253         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
123254         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
123256         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
123257         glibc.
123258         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
123259         arg to memcpy.
123261         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
123262         (obstack_ptr_grow_fast, obstack_int_grow_fast):
123263         Don't use lvalue casts, as GCC plans to remove support for them
123264         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
123265         was also present in the non-GCC version, indicating that this
123266         code had always been buggy and had never been widely used.
123267         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
123268         Use the fast variant of each macro, rather than copying the
123269         definiens of the fast variant; that way, we'll be more likely to
123270         catch future bugs in the fast variants.
123272 2003-10-20  Bruno Haible  <bruno@clisp.org>
123274         * modules/wait-process: New file.
123275         * MODULES.html.sh (func_all_modules): Add wait-process.
123277 2003-10-20  Bruno Haible  <bruno@clisp.org>
123279         * m4/wait-process.m4: New file.
123281 2003-10-20  Bruno Haible  <bruno@clisp.org>
123283         * lib/wait-process.h: New file, from GNU gettext.
123284         * lib/wait-process.c: New file, from GNU gettext.
123286 2003-10-19  Jim Meyering  <jim@meyering.net>
123288         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
123289         HPUX 10.20.
123291 2003-10-18  Karl Berry  <karl@gnu.org>
123293         * config/config.guess: update from config.
123295 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123297         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
123298         (getgroups): First arg is int, not size_t.
123299         Don't let 'free' mangle errno.
123301 2003-10-16  Paul Eggert  <eggert@twinsun.com>
123303         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
123305 2003-10-16  Karl Berry  <karl@gnu.org>
123307         * config/config.{guess,sub}: update from config.
123309 2003-10-16  Jim Meyering  <jim@meyering.net>
123311         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
123312         memcpy.
123314 2003-10-15  Paul Eggert  <eggert@twinsun.com>
123316         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
123317         (SIZE_MAX): Remove.
123318         (new_exclude, add_exclude_file): Initial size no longer needs to
123319         be a power of 2.
123320         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
123321         our own address arithmetic overflow checking.
123323         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
123324         (fnmatch): Do not alloca more than 2000 wide characters;
123325         instead, use malloc for large buffers.
123326         Check for address arithmetic overflow, and return -1
123327         with errno set to ENOMEM in that case.
123328         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
123329         (NEW_PATTERN): Do not alloca more than 8000 bytes;
123330         instead, return -1.  Check for address arithmetic overflow.
123332 2003-10-14  Paul Eggert  <eggert@twinsun.com>
123334         Handle invalid suffixes and overflow independently, so that
123335         callers can treat them independently as needed.  Fix some bugs in
123336         suffix handling, e.g., "100k@" was not diagnosed as an invalid
123337         suffix for a human-readable blocksize.  The major caller-visible
123338         change is the addition of a new
123339         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
123340         that both overflow and suffix chars were found.
123342         * lib/human.c (humblock): Don't check separately for invalid suffix
123343         char; that is xstrtoumax's job (now that its bug is fixed).
123344         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
123345         INTMAX_MAX]: New macros.
123346         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
123347         TYPE_MAXIMUM): New macros.
123348         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
123349         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
123350         if overflow occurs, as it's what __strtol does and it's more useful
123351         in practice.
123352         (__xstrtol): If __strtol reports some error other than ERANGE,
123353         reflect it to the caller as LONGINT_INVALID.  If it reports
123354         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
123355         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
123356         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
123357         value.
123358         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
123359         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
123360         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
123361         [defined UINTMAX_MAX]: New macros.
123363 2003-10-14  Bruno Haible  <bruno@clisp.org>
123365         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
123367 2003-10-14  Bruno Haible  <bruno@clisp.org>
123369         * m4/sig_atomic_t: New file, from GNU gettext.
123370         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
123372 2003-10-14  Bruno Haible  <bruno@clisp.org>
123374         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
123375         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
123376         Also use volatile where needed.
123378 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123380         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
123381         Change maintainer from Bruno Haible to 'all'.
123383 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123385         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
123387 2003-10-12  Paul Eggert  <eggert@twinsun.com>
123389         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
123390         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
123391         and define in terms of the other primitives.
123392         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
123393         (SIZE_MAX): Define if not already defined.
123394         (array_size_overflow): New function.
123395         (xalloc_die): Abort instead of exiting if 'error' returns.
123396         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
123397         (xmalloc, xrealloc): Use them.
123398         (xcalloc): Check for address arithmetic overflow.
123399         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
123400         a bit faster than strcpy.
123402 2003-10-10  Simon Josefsson  <jas@extundo.com>
123404         * modules/argp (Depends-on): Add restrict and strcase.
123406 2003-10-10  Simon Josefsson  <jas@extundo.com>
123408         * m4/argp.m4: Add AC_C_INLINE.
123410 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123412         Merge getpass from libc, plus a few fixes.
123414         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
123415         Include <stdbool.h>.
123416         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
123417         __fsetlocking to empty.
123418         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
123419         do include <bits/libc-lock.h>.
123420         Do not include <fcntl.h>; not needed.
123421         [_LIBC]: Include <wchar.h>.
123422         (NOTCANCEL_MODE): New macro.
123423         (flockfile, funlockfile) [_LIBC]: New macros.
123424         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
123425         [!_LIBC]: New macros.
123426         (call_fclose): New function.
123427         (getpass): Use it.  Save tty stream separately; this simplifies the
123428         code and makes it more reliable if stdin happens to equal stdout.
123429         Invoke __fsetlocking on tty.
123430         Handle thread cancellation if needed.
123431         Namespace cleanup (use __tcgetattr, __getline).
123432         Use bool for Booleans.
123433         [USE_IN_LIBIO]: Handle wide streams.
123434         [!_LIBC]: Unconditionally do the fseek, since we don't know what
123435         stream might go where.
123437         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
123438         doesn't have to include <stdio.h> before us.
123439         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
123440         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
123441         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
123442         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
123443         if not declared, so that we can use getpass.c code from libc without
123444         rewriting it.
123445         (flockfile, ftrylockfile, funlockfile): New macros.
123447 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123449         * modules/getpass: Depend on stdbool.
123451 2003-10-08  Paul Eggert  <eggert@twinsun.com>
123453         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
123455 2003-10-07  Karl Berry  <karl@gnu.org>
123457         * config/config.{guess,sub}: update from config.
123459 2003-10-06  Jim Meyering  <jim@meyering.net>
123460             Bruno Haible  <bruno@clisp.org>
123462         This lets translators provide better translations for the
123463         "Written by ..." part of --version output.
123464         * lib/version-etc.h: Include stdarg.h.
123465         (version_etc_copyright): Declare as readonly.
123466         (version_etc): Make this function variadic with a NULL-terminated list
123467         of author name strings.
123468         (version_etc_va): New declaration.
123469         * lib/version-etc.c: Include stdarg.h, stdlib.h.
123470         (version_etc_copyright): Declare as readonly.
123471         (version_etc_va): New function. Provide a different translatable string
123472         for each possible number of authors < 10. Abbreviate when there are 10
123473         authors or more.
123474         (version_etc): Make this function variadic. Call version_etc_va.
123475         Suggestion from Gary V. Vaughan.
123477         * lib/long-options.h (parse_long_options): Change prototype: the
123478         authors string is moved to the end and becomes variadic.
123479         * lib/long-options.c: Include stdarg.h.
123480         (parse_long_options): Make this function variadic, too.
123481         Call version_etc_va, not version_etc.
123483 2003-10-06  Bruno Haible  <bruno@clisp.org>
123485         * modules/version-etc-2: Remove file.
123486         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
123488 2003-10-06  Bruno Haible  <bruno@clisp.org>
123490         * modules/fatal-signal: New file.
123491         * MODULES.html.sh (func_all_modules): Add fatal-signal.
123493 2003-10-06  Bruno Haible  <bruno@clisp.org>
123495         * m4/fatal-signal.m4: New file.
123496         * m4/signalblocking.m4: New file, from GNU gettext.
123498 2003-10-06  Bruno Haible  <bruno@clisp.org>
123500         * lib/version-etc-2.h: Remove file.
123501         * lib/version-etc-2.c: Remove file.
123503 2003-10-06  Bruno Haible  <bruno@clisp.org>
123505         * lib/fatal-signal.h: New file, from GNU gettext.
123506         * lib/fatal-signal.c: New file, from GNU gettext.
123508 2003-10-05  Paul Eggert  <eggert@twinsun.com>
123510         * README: Rework advice for preventing empty .o files.
123511         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
123512         not <sys/types.h>.
123514 2003-10-04  Karl Berry  <karl@gnu.org>
123516         * lib/argp*: update from libc.
123518 2003-10-04  Karl Berry  <karl@gnu.org>
123520         * config/config.{guess,sub}: update from config.
123522 2003-10-02  Bruno Haible  <bruno@clisp.org>
123524         * modules/lchown (Include): Add lchown.h.
123525         * modules/time_r (Include): Use "..." syntax.
123526         * modules/xgetdomainname (Include): Add xgetdomainname.h.
123528 2003-10-01  Simon Josefsson  <jas@extundo.com>
123530         * MODULES.html.sh (func_all_modules): Move gethostname from section
123531         'based on' to section 'lacking' POSIX:2001.
123533 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
123535         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
123536         to output mode on the same stream.
123538 2003-09-29  Paul Eggert  <eggert@twinsun.com>
123540         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
123541         Fix arg typo in previous patch.
123543 2003-09-28  Jim Meyering  <jim@meyering.net>
123545         * lib/error.c: Correct cpp indentation.
123547 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123549         * modules/free: New file.
123551 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123553         * m4/free.m4: New file.
123555 2003-09-27  Paul Eggert  <eggert@twinsun.com>
123557         * lib/minmax.h (MIN, MAX)
123558         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
123559         Omit the special code that used __typeof__, since we worry that
123560         it could be more trouble than it's worth.  See:
123561         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
123562         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
123564         * lib/free.c: New file.
123566 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
123568         Trivial fixes to Makefile.am parts of module listings.
123569         * modules/strstr: Append strstr.h to lib_SOURCES.
123570         * modules/strcase: Likewise, for strcase.h.
123572 2003-09-27  Karl Berry  <karl@gnu.org>
123574         * config/mkinstalldirs: update from automake.
123576 2003-09-26  Paul Eggert  <eggert@twinsun.com>
123578         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
123579         (error_tail): Do not loop, reallocating temporary buffer, since
123580         the output cannot contain more wide characters than the input
123581         contains bytes, the size must be big enough already.  This avoids
123582         one potential size overflow calculation.  Check for size overflow
123583         when calculating temporary buffer size.  Free temporary buffer
123584         when done, if it was allocated with malloc; this plugs a memory
123585         leak.  Remove casts from void * to pointers, that are no longer
123586         needed now that we're assuming C89 or better.
123588         Merge error changes from glibc.
123590         * lib/error.c, error.h: Update copyright notice header to match glibc.
123591         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
123592         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
123593         Disable cancellation while printing error.
123594         * lib/error.h: Prepend __ to parameter names.
123596 2003-09-26  Jim Meyering  <jim@meyering.net>
123598         * lib/error.c (error_tail): Move some declarations
123599         into inner scope where the local variables are used.
123601 2003-09-26  Bruno Haible  <bruno@clisp.org>
123603         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
123604         stpncpy().
123605         Don't define stpncpy through config.h; it's now done through stpncpy.h.
123607 2003-09-26  Bruno Haible  <bruno@clisp.org>
123609         * lib/stpncpy.h (gnu_stpncpy): New declaration.
123610         (stpncpy): Define as alias for gnu_stpncpy.
123611         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
123613 2003-09-25  Simon Josefsson  <jas@extundo.com>
123615         * lib/xgetdomainname.h: New file.
123616         * lib/xgetdomainname.c: New file.
123618 2003-09-25  Simon Josefsson  <jas@extundo.com>
123619             Bruno Haible  <bruno@clisp.org>
123621         * modules/getdomainname: New file.
123622         * modules/xgetdomainname: New file.
123623         * MODULES.html.sh (func_all_modules): Add getdomainname,
123624         xgetdomainname.
123626 2003-09-25  Simon Josefsson  <jas@extundo.com>
123627             Bruno Haible  <bruno@clisp.org>
123629         * m4/getdomainname.m4: New file.
123631 2003-09-25  Simon Josefsson  <jas@extundo.com>
123632             Bruno Haible  <bruno@clisp.org>
123634         * lib/getdomainname.h: New file.
123635         * lib/getdomainname.c: New file.
123637 2003-09-25  Karl Berry  <karl@gnu.org>
123639         * lib/argp-fmtstream.c, argp-help.c: update from libc.
123641 2003-09-25  Karl Berry  <karl@gnu.org>
123643         * config/install-sh: update from automake.
123645 2003-09-25  Bruno Haible  <bruno@clisp.org>
123647         * modules/version-etc-2: New file, from modules/version-etc with
123648         modifications.
123649         * MODULES.html.sh (func_all_modules): Add version-etc-2.
123651 2003-09-25  Bruno Haible  <bruno@clisp.org>
123653         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
123654         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
123656 2003-09-24  Simon Josefsson  <jas@extundo.com>
123658         * modules/xgethostname: Add xgethostname.h.
123660 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123662         * lib/linebuffer.c (freebuffer): Don't free the argument, just
123663         the buffer associated with the argument.  Bug reported by
123664         Simon Josefsson.
123666 2003-09-24  Paul Eggert  <eggert@twinsun.com>
123668         * README: Document assumptions that 'int' is at least 32 bits
123669         wide, that integer arithmetic is 2's complement without overflow,
123670         that there are no holes in integer values, that adding sizes of
123671         two nonoverlapping objects can't overflow, and that all-bits-zero
123672         yields scalar zero.  Fix spelling and capitalization typos.
123674 2003-09-19  Karl Berry  <karl@gnu.org>
123676         * lib/argp.h: update from libc.
123678 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
123681         to avoid spurious warnings like "AC_RUN_IFELSE was called before
123682         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
123684 2003-09-17  Paul Eggert  <eggert@twinsun.com>
123686         * gnulib-tool: Use "test -h", not "test -L", for portability
123687         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
123688         (tags_regexp): Remove, since \| doesn't conform to POSIX.
123689         (sed_extract_prog): Issue s commands one-by-one, rather than
123690         using \| in one s command.
123692 2003-09-16  Paul Eggert  <eggert@twinsun.com>
123694         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
123695         input error, instead of returning NULL the next time we are called
123696         (and therefore losing track of errno).
123698 2003-09-16  Bruno Haible  <bruno@clisp.org>
123700         * gnulib-tool (func_create_testdir): Warn about duplicated
123701         dependencies.
123703 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123705         * modules/argmatch, modules/fatal, modules/obstack,
123706         modules/xalloc, modules/xgethostname: Sort dependencies by
123707         importance, not alphabetically.
123709 2003-09-15  Paul Eggert  <eggert@twinsun.com>
123711         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
123712         fails, so that the caller gets the proper errno.
123714         * lib/readutmp.c (read_utmp): Likewise.
123715         Check for fstat error.  Close stream and free storage
123716         when failing.
123718 2003-09-14  Karl Berry  <karl@gnu.org>
123720         * config/srclist.txt (strdup.c): disable for c89 changes.
123722 2003-09-14  Jim Meyering  <jim@meyering.net>
123724         * lib/getloadavg.c: Correct cpp indentation.
123725         * lib/strdup.c: Likewise.
123726         * lib/vasnprintf.c: Likewise.
123728 2003-09-14  Bruno Haible  <bruno@clisp.org>
123730         * modules/fwriteerror: New file.
123731         * MODULES.html.sh (func_all_modules): Add fwriteerror.
123733 2003-09-14  Bruno Haible  <bruno@clisp.org>
123735         * lib/fwriteerror.h: New file.
123736         * lib/fwriteerror.c: New file.
123738 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123740         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
123741         modules/xgethostname, modules/xalloc: Depend on exit.
123743 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123745         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
123747         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
123748         and AC_MINIX, too, so that their extensions are available.
123750         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
123751         This macro has been superseded by gl_BACKUPFILE.
123753         More patches to assume C89 or better.
123755         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
123757         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
123758         unconditionally.
123759         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
123760         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
123761         Include <string.h>, <stdlib.h> unconditionally.
123762         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
123763         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
123764         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
123765         headers or for string.h.
123766         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
123767         or strtoul.
123769         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
123770         headers.
123771         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
123772         * m4/userspec.m4 (gl_USERSPEC): Likewise.
123773         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
123774         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
123775         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
123776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
123777         memcpy, memset.
123778         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
123779         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
123780         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
123781         strtol.
123782         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
123783         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
123784         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
123785         strtoul.
123787 2003-09-12  Paul Eggert  <eggert@twinsun.com>
123789         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
123790         * lib/obstack.c [!defined _LIBC]: Likewise.
123791         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
123792         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
123793         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
123795         More changes to assume C89 or better.
123797         * lib/error.c (error_tail): Assume vprintf.
123799         * lib/argmatch.c (getenv): Remove decl.
123800         * lib/progreloc.c (get_full_program_name): Define via prototype.
123801         * lib/setenv.c (clearenv): Likewise.
123802         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
123803         needed.
123804         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
123805         (malloc, memcpy): Remove decls.
123806         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
123807         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
123808         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123809         (memcpy): Remove macro.
123810         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
123811         (__P): Remove.  All uses removed.
123812         (PTR): Remove.  All uses changed to void *.
123813         (CHAR_BIT, NULL): Remove.
123814         (spaces, zeros, memset_space, memset_zero)
123815         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
123816         Remove.
123817         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
123818         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
123819         Define with prototype.
123820         Remove now-unnecessary prototype decl.
123821         (extra_args_spec): Assume ANSI C.  All uses changed.
123822         (extra_args_spec_iso): Remove.
123823         (my_strftime, emacs_strftimeu): Define via prototype.
123824         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
123825         unconditionally.
123826         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
123827         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
123828         (strtoul, strtol): Remove decls.
123829         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
123830         LONG_MAX): Remove.
123831         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
123832         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
123833         (LOCALE_PARAM_PROTO): New macro.
123834         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
123835         (INTERNAL (strtol), strtol): Define with a prototype.
123836         (PARAMS): Remove.  All uses removed.
123837         * lib/tempname.c: Include <string.h> unconditionally.
123838         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
123839         * lib/xgethostname.c (main): Define with a prototype.
123840         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
123841         Include <stdlib.h> unconditionally.
123842         (calloc, malloc, realloc, free): Remove decls.
123843         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
123844         Include <stdlib.h> unconditionally.  Sort include file names.
123845         (strtod): Remove.
123846         (xstrtod): Define with a prototype.
123847         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
123848         (strtol, strtoul): Remove decls.
123850 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123852         More patches to assume C89 or better.
123853         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
123854         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
123855         string.h, memchr, STDC_HEADERS.
123857 2003-09-11  Paul Eggert  <eggert@twinsun.com>
123859         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
123860         Include <stdlib.h>, <string.h> unconditionally.
123861         Remove now-unnecessary cast to char *.
123862         * lib/strnlen.c: Include <string.h> unconditionally.
123863         * lib/yesno.c (yesno): Define with a prototype.
123865 2003-09-11  Bruno Haible  <bruno@clisp.org>
123867         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
123869 2003-09-10  Jim Meyering  <jim@meyering.net>
123871         * lib/error.c: Correct indentation of cpp directives.
123873 2003-09-10  Bruno Haible  <bruno@clisp.org>
123875         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
123876         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
123877         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
123878         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
123879         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
123880         <stdlib.h> and <string.h> checks.
123881         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
123882         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
123884 2003-09-10  Bruno Haible  <bruno@clisp.org>
123886         * lib/strcspn.c: Include <string.h> unconditionally.
123887         * lib/strpbrk.c: Include <string.h> unconditionally.
123888         * lib/strstr.c: Include <string.h> unconditionally.
123889         * lib/unicodeio.c: Include <string.h> unconditionally.
123890         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
123891         * lib/unsetenv.c: Likewise.
123892         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
123893         * lib/yesno.c: Include <stdlib.h> unconditionally.
123894         (rpmatch): Add prototype.
123896 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123898         More patches to assume C89 or better.
123899         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
123900         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
123901         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
123902         or for string.h.
123903         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
123904         stdlib.h.
123905         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
123906         C headers.
123907         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
123908         string.h.
123909         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
123910         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
123911         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
123912         or for string.h.
123913         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
123914         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
123915         C headers.
123916         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
123917         memcpy.
123918         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
123919         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
123920         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
123921         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
123922         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
123923         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
123924         string.h, free.
123925         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
123926         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
123927         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
123928         C headers, or for string.h.
123929         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
123930         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
123931         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
123932         headers, memory.h, stdlib.h, string.h, strings.h.
123933         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
123934         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
123935         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
123936         strchr.
123937         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
123938         headers, memory.h, string.h.
123939         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
123940         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
123941         free.
123942         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
123943         headers.
123944         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
123945         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
123946         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
123947         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
123948         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
123950 2003-09-09  Paul Eggert  <eggert@twinsun.com>
123952         More K&R removal.
123954         * lib/acosl.c (main): Use a prototype.
123955         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
123956         tanl.c: Likewise.
123958         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
123960         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
123961         (getopt, etopt_long, getopt_long_only, _getopt_internal)
123962         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
123963         with a prototype.
123964         * lib/getopt.c (const): Remove macro.
123965         Include <string.h> unconditionally.
123966         (my_index): Remove; all uses changed to strchr.
123967         (strlen): Remove decl.
123968         (exchange): Remove forward decl; no longer needed.
123969         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
123970         Define with prototype.
123971         * lib/getopt1.c (const): Remove macro.
123972         (getopt_long, getopt_long_only, main): Define with prototype.
123974         * lib/getugroups.c: Include <string.h> unconditionally.
123976         * lib/getusershell.c: Include <stdlib.h> unconditionally.
123977         (getusershell, setusershell, endusershell, readname, main):
123978         Define with prototypes.
123980         * lib/group-member.c: Include group-member.h first.
123981         Include <stdlib.h> unconditionally.
123983         * lib/hard-locale.c: Include hard-locale.h first.
123984         Include <stdlib.h>, <string.h> unconditionally.
123986         * lib/hash.c (free, malloc): Remove decls.
123987         Include <stdlib.h> unconditionally.
123989         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
123990         (getenv): Do not declare.
123992         * lib/idcache.c: Include <string.h> unconditionally.
123994         * lib/long-options.c: Include long-options.h first, to test interface.
123995         Include <stdlib.h> unconditionally.
123997         * lib/makepath.c: Include makepath.h first, to test interface.
123998         Include <stdlib.h> and <string.h> unconditionally.
124000         * lib/linebuffer.c: Include <stdlib.h>.
124001         (free): Remove decl.
124003         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
124004         stddef.h. rpl_malloc returns void *, not char *.
124005         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
124006         prototype.
124008         * lib/md5.h: Include <limits.h> unconditionally.
124009         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
124010         (__P): Remove; all uses removed.
124011         * lib/md5.c: Include "md5.h" first.
124012         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
124013         md5_buffer, md5_process_bytes, md5_process_block):
124014         Define with prototypes.
124015         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
124016         * lib/sha.c: Include "sha.h" first.
124017         Include <stdlib.h>, <string.h> unconditionally.
124019         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
124020         * lib/memcmp.c (__ptr_t): Likewise.
124021         * lib/memrchr.c (__ptr_t): Likewise.
124022         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
124023         Include <string.h> unconditionally.
124024         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
124025         * lib/memchr.c: Include <stdlib.h> unconditionally.
124026         * lib/memchr.c (LONG_MAX): Remove.
124027         * lib/memrchr.c (LONG_MAX): Likewise.
124028         * lib/memchr.c (__memchr): Define via a prototype.
124029         * lib/memrchr.c (__memrchr): Likewise.
124030         * lib/memcmp.c (__P): Remove, and remove all uses.
124031         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
124032         Remove forward decls; no longer needed.
124033         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
124034         Use types required by C89 in prototype.
124036         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
124037         * lib/savedir.c: Likewise.
124038         * lib/mkdir.c (free): Remove decl.
124039         * lib/rmdir.c (rmdir): Define with a prototype.
124040         * lib/savedir.c: Include savedir.h first, to test interface.
124042         * lib/mktime.c (STDC_HEADERS): Remove.
124043         Include <stdlib.h>, <string.h> unconditionally.
124045         * lib/modechange.c: Include <stdlib.h> unconditionally.
124046         (malloc): Remove decl.
124048         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
124049         (free): Remove decl.
124051         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
124052         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
124053         (This type really should be intptr_t, but that's a C99ism.)
124054         (_obstack_memcpy): Remove: all uses changed to memcpy.
124055         Include <string.h> unconditionally.
124056         (struct obstack): Assume __STDC__ for types of members
124057         chunkfun, freefun, extra_arg.
124058         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
124059         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
124060         obstack_begin, obstack_specify_allocation,
124061         obstack_specify_allocation_with_arg, obstack_chunkfun,
124062         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
124063         Remove unprototyped decls and the macros that use them.
124064         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
124065         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
124066         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
124067         (defined __STDC__ && __STDC__)]:
124068         Remove nonprototyped code.
124069         Include <stdlib.h> unconditionally.
124070         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
124071         _obstack_allocated_p, _obstack_free, obstack_free,
124072         _obstack_memory_used, print_and_abort):
124073         Define using prototypes.
124074         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
124075         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
124076         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
124077         obstack_next_free, obstack_object_size, obstack_room) [0]:
124078         Remove unused, unprototyped code.
124080         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
124082         * lib/physmem.c (physmem_total, physmem_available, main): Define
124083         with prototypes.
124085         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
124086         (main): Define with a prototype.
124088         * lib/posixver.c (getenv): Remove decl.
124090         * lib/putenv.c (malloc): Returns void *, not char *.
124091         Include <string.h> unconditionally.
124092         (strchr, memcpy, NULL): Do not define.
124094         * lib/readtokens.c: Include readtokens.h first, to test interface.
124095         Include <stdlib.h>, <string.h> unconditionally.
124096         (init_tokenbuffer): Define with a prototype.
124098         * lib/regex.c (PARAMS): Remove.  All uses removed.
124099         All uses of _RE_ARGS removed, too.
124100         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
124101         unconditionally.
124102         (bzero): Assume memset exists.
124103         (memcmp, memcpy, NULL): Remove.
124104         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
124105         char, or assignments to local vars of type signed char.
124106         (init_syntax_once, PREFIX(extract_number_and_incr),
124107         PREFIX(print_partial_compiled_pattern),
124108         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
124109         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
124110         PREFIX(regex_grow_registers), PREFIX(regex_compile),
124111         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
124112         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
124113         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
124114         wcs_compile_range, byte_compile_range, truncate_wchar,
124115         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
124116         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
124117         count_mbs_length, wcs_re_match_2_internal,
124118         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
124119         PREFIX(alt_match_null_string_p),
124120         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
124121         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
124122         regfree, PREFIX(extract_number)): Define with prototype.  Remove
124123         now-unnecessary declaration, if any.
124124         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
124125         regcomp, regexec):
124126         Remove now-unnecessary casts among pointer types.
124127         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
124129         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
124130         (free): Remove decl.
124132         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
124134         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
124135         (free): Remove decl.
124137         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
124138         * lib/xgetcwd.c: Likewise.
124140         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
124141         (free): Remove decl.
124143         * lib/strchrnul.c (strchrnul): Define with a prototype.
124144         Fix bug: c_in was not converted to char before searching.
124146         The following changes are not K&R related:
124148         * lib/group-member.h: Include <sys/types.h>, so that this file is
124149         self-contained.
124150         * lib/makepath.h: Likewise.
124152         * lib/getusershell.c (readname, default_index, line_size, readname):
124153         Use size_t, not int, for sizes.
124154         (readname): If the size overflows, report an error instead of
124155         looping forever.
124157 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124159         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
124160         libc.
124162 2003-09-09  Paul Eggert  <eggert@twinsun.com>
124164         * README: New section: portability guidelines.
124166 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124168         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
124169         C89 spec.
124171 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
124173         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
124175 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124177         Assume C89 or better; remove K&R cruft.
124178         A few of these changes were first proposed by Derek Robert Price
124179         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
124181         * lib/addext.c: Include <string.h> unconditionally.
124182         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
124183         Don't declare getenv or malloc.
124185         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
124186         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
124187         (NULL): Remove.
124188         (find_stack_direction, alloca): Use prototypes.
124190         * lib/atexit.c (atexit): Define using a prototype.
124192         * lib/basename.c, dirname.c, stripslash.c:
124193         Include <string.h> unconditionally.
124195         * lib/bcopy.c: Include <stddef.h>.
124196         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
124198         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
124200         * lib/error.h (error, error_at_line, error_print_progname)
124201         [! (defined (__STDC__) && __STDC__)]: Remove decls.
124202         * lib/error.c: Include error.h first, to check interface.
124203         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124204         (VA_START): Remove; all uses changeed to va_start.
124205         (exit, strerror): Remove decls.
124206         (error_print_progname): Prototype uncondionally.
124207         Don't include <errno.h>; no longer needed.
124208         (private_strerror): Remove.
124209         (error_tail): Always define.
124210         (error, error_at_line): Assume C89 or better; always use prototypes.
124211         * lib/fatal.c: Include "fatal.h" first, to test interface.
124212         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
124213         (VA_START): Remove; all uses changed to va_start.
124214         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
124215         this case.
124216         (exit): Remove decl.
124217         (fatal): Prototype unconditionally.  Assume va_start works.
124218         Abort at end, to pacify gcc.
124220         * lib/euidaccess.c (main): Define with a prototype.
124222         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
124224         * lib/exitfail.c: Include <stdlib.h> unconditionally.
124226         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
124227         prototypes.
124228         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
124229         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
124230         (getenv): Remove decl.
124231         (fnmatch): Define using a prototype.
124232         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
124233         (FCT): Define using a prototype.
124235         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
124237         * lib/gethostname.c: Include <stddef.h>.
124238         (gethostname): Define with prototype.  Length is size_t, not int.
124240 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124242         Assume C89 or better; remove K&R cruft.
124243         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
124244         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
124245         string.h, getenv, malloc.
124246         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
124247         headers.
124248         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
124249         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
124250         do not check for strerror.
124251         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
124252         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
124253         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
124254         do not check for doprnt or vprintf.
124255         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
124256         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
124258 2003-09-08  Paul Eggert  <eggert@twinsun.com>
124260         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
124261         getversion.c should have been removed then, but was accidentally
124262         preserved.
124264         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
124265         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
124267 2003-09-08  Karl Berry  <karl@gnu.org>
124269         * config/config.sub, config.guess, srclistvars.sh: update from savannah
124270                 config, forget about prep.
124272         * config/depcomp, missing: update from automake.
124274 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124276         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
124277         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124279 2003-09-07  Paul Eggert  <eggert@twinsun.com>
124281         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
124282         copy_tm_result.  Bug reported by Simon Josefsson in
124283         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
124285 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124287         * m4/time_r.m4: New file.
124288         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
124289         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
124290         is. Check for timegm declaration.
124291         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
124292         Do not check for gmtime_r.
124293         Replace mktime if __mktime_internal does not exist and if mktime
124294         hasn't been replaced already.
124296 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124298         * lib/time_r.c, lib/time_r.h: New files.
124300         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
124301         __localtime_r.
124302         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
124303         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
124305         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
124306         __gmtime_r.
124307         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
124308         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
124309         Include <time_r.h>.
124311         * lib/timegm.c: Switch to glibc implementation, with the following
124312         changes:
124313         [defined HAVE_CONFIG_H]: Include <config.h>.
124314         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
124315         (__mktime_internal) [!defined _LIBC]: New decl.
124316         (__gmtime_r) [!defined _LIBC]: New macro and function.
124317         (timegm): Use a prototype, since gnulib assumes C89.
124318         Do not bother declaring tmp to be const, as it's not really usefu.
124319         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
124320         (timegm): Declare only if HAVE_DECL_TIMEGM.
124322 2003-09-06  Paul Eggert  <eggert@twinsun.com>
124324         * MODULES.html.sh (func_all_modules): Add time_r.
124325         * modules/time_r: New file.
124326         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
124327         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
124329 2003-09-03  Paul Eggert  <eggert@twinsun.com>
124331         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
124332         Bug reported by Lute Kamstra in
124333         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
124335         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
124336         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
124337         course with correspondingly smaller numbers for tomorrow and
124338         yesterday.  From Tadayoshi Funaba.  Originally installed into
124339         sh-utils on 1999-08-07, but the patch got lost (I guess during the
124340         coreutils merge?).
124342 2003-08-31  Simon Josefsson  <jas@extundo.com>
124344         * modules/timegm: New file.
124345         * MODULES.html.sh (func_all_modules): Add timegm.
124347 2003-08-31  Simon Josefsson  <jas@extundo.com>
124349         * m4/timegm.m4: New file.
124351 2003-08-31  Simon Josefsson  <jas@extundo.com>
124353         * lib/timegm.h: New file.
124354         * lib/timegm.c: New file.  Based on
124355         wget-1.8.2/src/http.c:mktime_from_utc.
124357 2003-08-31  Karl Berry  <karl@gnu.org>
124359         * lib/argp.h: update from libc.
124361 2003-08-28  Bruno Haible  <bruno@clisp.org>
124363         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
124364         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
124365         followed by '#define fnmatch fnmatch_posix' gives an error.
124367 2003-08-28  Bruno Haible  <bruno@clisp.org>
124369         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
124370         warning on QNX, which defines O_BINARY to 000000.
124372 2003-08-27  Jim Meyering  <jim@meyering.net>
124374         * m4/mkstemp.m4: Require that the system mkstemp be able to create
124375         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
124376         would fail after 32.  Reported by Danny Levinson.  Details here:
124377         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
124379 2003-08-24  Bruno Haible  <bruno@clisp.org>
124381         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
124382         MSVC7 <stdio.h> is included later.
124384 2003-08-22  Simon Josefsson  <jas@extundo.com>
124386         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
124388 2003-08-20  Karl Berry  <karl@gnu.org>
124390         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
124392 2003-08-20  Bruno Haible  <bruno@clisp.org>
124394         * modules/progname: New file.
124395         * MODULES.html.sh (func_all_modules): Add progname.
124397 2003-08-20  Bruno Haible  <bruno@clisp.org>
124399         * lib/progname.h: New file, from GNU gettext.
124400         * lib/progname.c: New file, from GNU gettext.
124401         * lib/progreloc.c: New file, from GNU gettext.
124403 2003-08-19  Jim Meyering  <jim@meyering.net>
124405         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
124406         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
124408 2003-08-19  Bruno Haible  <bruno@clisp.org>
124410         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
124411         more.
124413 2003-08-19  Bruno Haible  <bruno@clisp.org>
124415         * lib/xstrdup.c: Assume <string.h> exists.
124417 2003-08-18  Paul Eggert  <eggert@twinsun.com>
124419         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
124420         in makefile rules.
124422 2003-08-18  Jim Meyering  <jim@meyering.net>
124424         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
124425         * m4/lib-ld.m4: Likewise.
124427 2003-08-18  Jim Meyering  <jim@meyering.net>
124429         * lib/setenv.h: Indent nested cpp directive.
124430         * lib/vasnprintf.c: Remove trailing blanks.
124432 2003-08-17  Simon Josefsson  <jas@extundo.com>
124434         * modules/xstrndup: New file.
124435         * MODULES.html.sh (func_all_modules): Add xstrndup.
124437 2003-08-17  Simon Josefsson  <jas@extundo.com>
124439         * modules/argp: Fix autoconf macro name. Add more dependencies.
124441 2003-08-17  Simon Josefsson  <jas@extundo.com>
124443         * m4/xstrndup.m4: New file.
124445 2003-08-17  Simon Josefsson  <jas@extundo.com>
124447         * m4/argp.m4: New file.
124449 2003-08-17  Simon Josefsson  <jas@extundo.com>
124450             Bruno Haible  <bruno@clisp.org>
124452         * lib/xstrndup.h: New file.
124453         * lib/xstrndup.c: New file.
124455 2003-08-17  Bruno Haible  <bruno@clisp.org>
124457         * modules/strndup (Files, Include): Add lib/strndup.h.
124459 2003-08-17  Bruno Haible  <bruno@clisp.org>
124461         * modules/euidaccess (Files): Add lib/euidaccess.h.
124463 2003-08-17  Bruno Haible  <bruno@clisp.org>
124465         * lib/strndup.h: New file.
124467 2003-08-17  Bruno Haible  <bruno@clisp.org>
124469         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
124470         like AC_GNU_SOURCE.
124471         * modules/extensions (configure.ac): Comment out the invocation of
124472         gl_USE_SYSTEM_EXTENSIONS.
124474 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124476         Merges from coreutils, etc.
124477         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
124478         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
124479         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
124480         fixing a typo.
124481         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
124482         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
124484 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124486         Document merge from coreutils.
124487         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
124488         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
124489         * modules/utime: Add m4/utimes-null.m4.
124491 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124493         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
124494         space, undoing this 2003-08-12 change:
124495         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124497 2003-08-16  Paul Eggert  <eggert@twinsun.com>
124499         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
124500         strtoul.c from libc, undoing this 2003-08-12 change:
124501         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
124503 2003-08-16  Jim Meyering  <jim@meyering.net>
124505         Merges from coreutils.
124506         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
124507         prefix.  Adjust cache variables similarly.  Create 500 rather than
124508         just 300 files, to exercise bug on Darwin6.5, too.
124509         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
124510         $missing_dir.
124511         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
124512         AM_SYS_POSIX_TERMIOS.
124513         Reported by mkc@mathdogs.com.
124514         Also change use of $am_cv_sys_posix_termios
124515         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
124516         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
124517         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
124518         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
124519         in /proc/mounts until it finds one with matching device number.  This
124520         is unnecessary when the FILE argument *is* a mount point.  No stat call
124521         is necessary in that case.  So, disable the statvfs-testing code on
124522         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
124523         as RedHat bug# 84846.
124524         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124525         to 1MB, so as not to render systems with no stack size limit (e.g.,
124526         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124527         Include <unistd.h>.  On some systems,
124528         it is required for the definition of _SC_PAGESIZE.
124530 2003-08-16  Jim Meyering  <jim@meyering.net>
124532         Merge from coreutils.
124533         * lib/xstrtoimax.c: #else #if -> #elif.
124534         * lib/xstrtoumax.c: Likewise.
124536 2003-08-16  Jim Meyering  <jim@meyering.net>
124538         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
124539         * m4/utimes.m4: Removed.
124540         * m4/utimes-null.m4: Renamed from utimes.m4.
124542         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
124543         to 1MB, so as not to render systems with no stack size limit (e.g.,
124544         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
124545         Include <unistd.h>.  On some systems,
124546         it is required for the definition of _SC_PAGESIZE.
124548 2003-08-16  Jim Meyering  <jim@meyering.net>
124549         and Paul Eggert  <eggert@cs.ucla.edu>
124551         Merges from coreutils, etc.
124553         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
124554         using the latest version from cvs.  This avoids problems with #line
124555         directives using a vendor (Sun) compiler.
124556         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
124557         Don't set GETGROUPS_LIB here; now it's
124558         done via getgroups.m4's wrapper function.
124559         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
124560         rather than just in sh-util/configure.in, so that the
124561         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
124562         same.
124563         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
124564         AC_FUNC_GETLOADAVG where to find getloadavg.c.
124565         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
124566         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
124567         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
124568         Remove code that is now done by the newly-required macros.
124569         Append $(EXEEXT) to DF_PROG.
124570         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
124571         Do not invoke or require the following here,
124572         since prereq.m4 or some gnulib .m4 now does this for us:
124573         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
124574         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
124575         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
124576         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
124577         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
124578         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
124579         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
124580         AC_FUNC_OBSTACK.
124581         Do not replace the following functions, as this is now the job
124582         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
124583         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
124584         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
124585         atexit getpass, strdup, getpagesize.
124586         Replace 'raise'.
124587         Do not check for the following functions, as this is now the job
124588         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
124589         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
124590         setregid.
124591         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
124592         Check for sys/sysctl.h.
124593         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
124594         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
124595         of checking for ssize_t ourselves.
124597         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
124598         Require every macro that gnulib/modules/* suggests for us.
124599         (jm_PREREQ_ADDEXT): New macro.
124600         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
124601         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
124603         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
124604         (gl_PHYSMEM): Use it.
124605         Also check for `table' function.
124606         Check for new headers and functions.
124607         Add check for sys/sysmp.h.
124608         With suggestions from Kaveh Ghazi.
124609         Ignore headers that are present but cannot be compiled.  This
124610         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
124611         C 5.4.
124613 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124615         Document merge from coreutils.
124616         * modules/userspec: Depend on posixver.
124617         * modules/strftime: Depend on tzset.
124619 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124621         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
124622         rather than tab, after '#' in shell-script copyright notices.
124623         Suggested by Bruno Haible.
124625 2003-08-15  Paul Eggert  <eggert@twinsun.com>
124627         * config/srclist-update: Use three spaces, rather than tab, after '#'
124628         in shell-script copyright notices.  Suggested by Bruno Haible.
124629         Remove unnecessary parenthesization in regular expression.
124631 2003-08-15  Jim Meyering  <jim@meyering.net>
124633         Merge from coreutils.
124634         * lib/xgethostname.c: Include <stdlib.h>.
124635         (xghostname): Don't exit for anything other than memory-related
124636         failure; just return NULL.
124637         * lib/userspec.c: Include "posixver.h".
124638         (parse_user_spec): Accept `.' as a separator only
124639         in pre-POSIX-200112 mode.
124640         * lib/strtoimax.c: Use #elif rather than #else #if.
124641         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
124642         Remove function, now that we can rely on a working tzset function.
124643         [!_LIBC]: Ensure that the required autoconf test has been run.
124644         [!defined _NL_CURRENT && HAVE_STRFTIME]:
124645         Use underlying_strftime for %r.
124646         * lib/sha.c: Merge in some clean-up and optimization changes from
124647         glibc.
124648         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
124649         Ensure that it is a multiple of 64.
124650         Rearrange loop exit tests so as to avoid performing an
124651         additional fread after encountering an error or EOF.
124652         * lib/realloc.c: Update copyright date.
124654 2003-08-15  Jim Meyering  <jim@meyering.net>
124655         and Paul Eggert  <eggert@twinsun.com>
124657         Merge from coreutils.
124658         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
124659         member but strut utmpx does not.  Needed for AIX 4.3.3.
124660         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
124662 2003-08-15  Jim Meyering  <jim@meyering.net>
124663         and Paul Eggert  <eggert@cs.ucla.edu>
124665         Merges from coreutils, etc.
124666         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
124667         Require gl_FUNC_TZSET_CLOBBER.
124668         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
124669         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
124670         members.
124672 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124674         Help the merge from coreutils.
124675         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
124676         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
124677         * m4/tzset.m4: Use it too.
124679 2003-08-14  Paul Eggert  <eggert@twinsun.com>
124681         * modules/tzset: New file.
124683 2003-08-14  Jim Meyering  <jim@meyering.net>
124685         Merges from coreutils.
124686         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
124687         variable names, rather than @FNMATCH_H@.
124688         * modules/alloca: Likewise for $(ALLOCA_H).
124690         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
124691         the three copies of the literal target, `fnmatch.h'.
124692         * modules/alloca (alloca.h): Likewise.
124694 2003-08-14  Jim Meyering  <jim@meyering.net>
124696         Merge from coreutils.
124697         * m4/tzset.m4: New file.
124698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
124699         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
124700         otherwise, AIX 5.1 systems would end up using the latter.
124701         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
124702         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
124703         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
124704         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
124706 2003-08-14  Jim Meyering  <jim@meyering.net>
124708         Merge from coreutils.
124709         * lib/obstack.h: Whitespace changes.
124710         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
124711         and xcalloc return values.
124712         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
124713         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
124714         hang on OSF/1 5.1 for DIR on both local and remote file systems.
124715         Reported by (and fix confirmed by) Nelson H. F. Beebe.
124716         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
124717         error from mntctl.
124718         Use mntctl's return value to drive the entry-processing loop, since
124719         we can't rely on the value of the vmt_length member in the last
124720         entry.  On some systems doing so could result in exhausting
124721         virtual memory.  Based in part on a patch from Mike Jetzer.
124723 2003-08-14  Jim Meyering  <jim@meyering.net>
124724         and Paul Eggert  <eggert@twinsun.com>
124726         Merges from coreutils, plus other fixes.
124727         * lib/physmem.c: Merge in portability changes from gcc/libiberty
124728         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
124729         for credits and details.  Thanks to Kaveh Ghazi for helping
124730         to keep these files in sync.
124731         (ARRAY_SIZE): Define it.
124732         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
124733         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
124734         (memcasecmp): Don't assume size_t fits in unsigned int.
124735         Remove casts and duplicate code.
124736         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
124737         (memcpy): Remove definition.
124738         Merge in some clean-up and optimization changes from glibc.
124739         [BLOCKSIZE]: Move definition to top of file.
124740         Ensure that it is a multiple of 64.
124741         Rearrange loop exit tests so as to avoid performing an
124742         additional fread after encountering an error or EOF.
124743         * lib/md5.h (md5_uintptr): Define.
124744         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
124745         return to the initial working directory.  Preserve errno
124746         for caller.
124747         * lib/idcache.c: Include "xalloc.h".
124748         (xmalloc, xrealloc): Remove decls.
124749         (getuser): Remove casts no longer required in C89.
124750         * lib/human.c: Include stdio.h, for sprintf.
124751         * lib/group-member.c: Include "xalloc.h".
124752         (xmalloc, xrealloc): Remove decls.
124753         (get_group_info): Remove casts no longer required in C89.
124754         * lib/getusershell.c (readname): Remove casts no longer required in
124755         C89.
124756         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
124757         * lib/getline.c: Whitespace fix, from coreutils.
124759 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124761         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
124762         Check for isascii.
124764         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124765         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124766         Undo previous (whitespace-only) change.
124768 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124770         * lib/exclude.c: Include <ctype.h>
124771         (IN_CTYPE_DOMAIN): New macro.
124772         (is_space): New fn.
124773         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
124774         and empty lines.
124776         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124777         Undo previous (whitespace-only) change.
124779 2003-08-13  Paul Eggert  <eggert@twinsun.com>
124781         * config/srclist-update: Change update back to the old behavior,
124782         leaving whitespace alone.  Use one 'sed' command rather than a
124783         pipeline.
124784         (fixlicense): Now a variable, not a function.
124785         (remove_trailing_blanks): Remove.
124786         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
124787         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124788         Undo previous (whitespace-only) change.
124790 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124792         Merge from coreutils.
124793         * modules/euidaccess: Add lib_SOURCES, include for new
124794         file euidaccess.h
124796 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124798         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
124799         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
124800         Normalize leading white space and remove trailing white space.
124802         Merge from coreutils
124803         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
124805         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
124806         0.12.1.  These files are now being upgraded automatically by
124807         ../config/srclist-update.
124809 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124811         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
124812         Normalize leading white space and remove trailing white space.
124813         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
124814         notice, as per ../config/srclist-update.
124816         Merge from coreutils.
124817         * lib/euidaccess.h: New file.
124818         * lib/euidaccess.c: Include it.
124819         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
124820         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
124821         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
124823 2003-08-12  Paul Eggert  <eggert@twinsun.com>
124825         * config/srclist-update: Add copyright notice.
124826         (remove_id_lines, remove_trailing_blanks): New constants.
124827         (fixfile): Use them to normalize spacing a bit in copied files.
124828         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
124829         Normalize leading white space and remove trailing white space.
124831         * config/texinfo.tex: Sync with texinfo.
124833         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
124834         strtoul.c from libc, to merge coreutils whitespace changes.
124836         * config/srclist.txt: Get the following m4 files from gettext:
124837         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
124838         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
124839         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
124840         wint_t.m4.
124842 2003-08-12  Karl Berry  <karl@gnu.org>
124844         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
124845         been made.
124847 2003-08-11  Paul Eggert  <eggert@twinsun.com>
124849         * modules/gnu-source, m4/gnu-source.m4:
124850         Remove; we're assuming Autoconf 2.54 or later now.
124851         Suggested by Bruno Haible.
124852         * MODULES.html.sh (func_all_modules): Remove gnu-source.
124854 2003-08-11  Bruno Haible  <bruno@clisp.org>
124856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
124858 2003-08-11  Bruno Haible  <bruno@clisp.org>
124860         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
124861         (vasnprintf): Use it instead of wcslen.
124863 2003-08-11  Bruno Haible  <bruno@clisp.org>
124865         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
124866         value to ensure that _Bool promotes to int. Use #define for _Bool when
124867         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
124869 2003-08-10  Karl Berry  <karl@gnu.org>
124871         * lib/regex.h: update from libc (whitespace fix).
124873 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124875         Merge some files from coreutils.  These changes were
124876         originally made by Jim Meyering.
124877         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
124878         many older Unixes require this.
124879         * lib/alloca.c (alloca): Remove cast to argument of free;
124880         no longer needed in C89.
124881         * lib/alloca_.h, regex.h: Fix white space to match
124882         what GNU indent does.
124884 2003-08-09  Paul Eggert  <eggert@twinsun.com>
124886         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
124887         apparently Emacs's Unicode mode got confused before my 2003-08-05
124888         checkin.
124890 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124892         * m4/extensions.m4: New file.
124893         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
124894         Require gl_USE_SYSTEM_EXTENSIONS.
124895         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
124896         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
124898 2003-08-08  Paul Eggert  <eggert@twinsun.com>
124900         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
124901         * modules/extensions, modules/gnu-source: New files.
124902         * modules/timespec, modules/unlocked-io: Depend on extensions.
124904 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124906         * modules/restrict: New file.
124907         * MODULES.html.sh (func_all_modules): Add restrict.
124908         * modules/regex: Depend on restrict.
124910 2003-08-07  Paul Eggert  <eggert@twinsun.com>
124912         * m4/restrict.m4: New file.
124913         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
124915 2003-08-07  Bruno Haible  <bruno@clisp.org>
124917         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
124918         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
124920 2003-08-07  Bruno Haible  <bruno@clisp.org>
124922         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
124923         makes the module 'getndelim2' compatible with the module 'getline'.
124925 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124927         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
124928         byte with "\201" to avoid glitches when editing that source file
124929         with multi-gnome-terminal.
124931 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124933         * lib/bumpalloc.h: Remove.
124935 2003-08-05  Paul Eggert  <eggert@twinsun.com>
124937         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
124938         * modules/bumpalloc: Remove.
124940 2003-08-04  Paul Eggert  <eggert@twinsun.com>
124942         * lib/getloadavg.c: Change copyright notice and spacing to conform to
124943         GNU coding style.
124945         Merge from coreutils.
124946         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
124947         1. From glibc.
124948         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
124949         from Karl Berry, implemented by Jim Meyering.
124950         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
124951         from Dmitry V. Levin.
124952         Remove anachronistic cast of xrealloc.
124953         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
124954         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
124955         type. Otherwise, it wouldn't compile with at least /bin/cc on
124956         ymp-cray-unicos9.0.2.X.
124957         Combine two mostly-identical uses of alloca into one.
124958         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
124960 2003-08-04  Dave Love  <d.love@dl.ac.uk>
124962         [From Emacs.]
124964         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
124965         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
124966         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
124967         obsolete NLIST_NAME_UNION.
124968         [__GNU__]: Undef BSD and FSCALE.
124969         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
124971 2003-08-03  Paul Eggert  <eggert@twinsun.com>
124973         * lib/stdbool_.h (_Bool): Make it signed char, instead of
124974         an enum type, so that it's guaranteed to promote to int.  See:
124975         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
124977 2003-08-03  Karl Berry  <karl@gnu.org>
124979         * config/depcomp: update from automake.
124981 2003-07-31  Paul Eggert  <eggert@twinsun.com>
124983         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
124984         (strerror): Don't assume that a printable int fits in 14 bytes.
124986 2003-07-31  Bruno Haible  <bruno@clisp.org>
124988         * modules/getpass-gnu: New file.
124989         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
124991 2003-07-31  Bruno Haible  <bruno@clisp.org>
124993         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
124995 2003-07-24  Karl Berry  <karl@gnu.org>
124997         * config/missing: update from automake.
124999 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
125000             Bruno Haible  <bruno@clisp.org>
125002         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
125003         * lib/getline.c (getline, getdelim): Likewise.
125004         Remove _GNU_SOURCE define; now it's defined in config.h through
125005         m4/getline.m4.
125007 2003-07-23  Karl Berry  <karl@gnu.org>
125009         * config/config.sub: update from prep.
125011 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125013         * modules/xalloc (Depends-on): Add exitfail.
125014         * modules/xmemcoll: Likewise.
125016 2003-07-22  Paul Eggert  <eggert@twinsun.com>
125018         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
125019         over-parenthesization in macros.
125021         Sync with coreutils.
125023         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
125024         required by C99.
125026         Use `exit_failure' for xalloc and xmemcoll instead of their own
125027         private exit-failure variables.
125028         * lib/xalloc.h (xalloc_exit_failure): Remove.
125029         * lib/xmalloc.c: Likewise.  Include exitfail.h.
125030         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
125031         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
125032         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
125033         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
125035 2003-07-20  Jim Meyering  <jim@meyering.net>
125037         * modules/closeout (Depends-on): Add exitfail.
125038         Suggestion from Bruno Haible.
125040 2003-07-19  Karl Berry  <karl@gnu.org>
125042         * config/config.sub: update from prep.
125044 2003-07-18  Paul Eggert  <eggert@twinsun.com>
125046         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
125047         Remove.
125048         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
125049         to test that it can stand by itself.  Include "exitfail.h".
125050         Clients should set exit_failure instead.
125051         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
125053 2003-07-18  Bruno Haible  <bruno@clisp.org>
125055         * modules/getndelim2: New file.
125056         * modules/getline: Share files with module getndelim2.
125057         * modules/getnline: Depend on getndelim2 instead of sharing files with
125058         it. Add getnline.c to lib_SOURCES.
125059         * MODULES.html.sh (func_all_modules): Add getndelim2.
125061 2003-07-18  Bruno Haible  <bruno@clisp.org>
125063         * m4/getndelim2.m4: New file.
125064         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
125065         invoke gl_PREREQ_GETNDELIM2.
125066         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
125067         gl_PREREQ_GETNDELIM2.
125068         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
125069         gl_GETNDELIM2.
125071 2003-07-18  Bruno Haible  <bruno@clisp.org>
125073         * lib/getndelim2.h: New file.
125074         * lib/getndelim2.c: Make into a module of its own. Include config.h,
125075         getndelim2.h.
125076         (getndelim2): Make non-static. Change return type to ssize_t.
125077         * lib/getline.h: Change argument names.
125078         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
125079         * lib/getnline.c: Include getndelim2.h.
125081 2003-07-18  Andreas Schwab  <schwab@suse.de>
125083         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
125085 2003-07-17  Karl Berry  <karl@gnu.org>
125087         * config/config.sub: update from prep.
125089 2003-07-17  Bruno Haible  <bruno@clisp.org>
125091         * modules/getnline: New file.
125092         * modules/getline: Add lib/getndelim2.c to source file list.
125093         * MODULES.html.sh (func_all_modules): Add getnline.
125095 2003-07-17  Bruno Haible  <bruno@clisp.org>
125097         * m4/getnline.m4: New file.
125099 2003-07-17  Bruno Haible  <bruno@clisp.org>
125101         * m4/Makefile.am.in: Remove file.
125102         * m4/Makefile.am: Remove file.
125103         * m4/Makefile.in: Remove file.
125105 2003-07-17  Bruno Haible  <bruno@clisp.org>
125107         * lib/getnline.h: New file.
125108         * lib/getnline.c: New file.
125109         * lib/getndelim2.c: New file, extracted from getline.c.
125110         (getndelim2): Renamed from getdelim2, with added nmax argument.
125111         * lib/getline.c: Include getndelim2.c.
125112         (getdelim2): Moved out to getndelim2.c.
125113         (getline, getdelim): Update.
125115 2003-07-17  Bruno Haible  <bruno@clisp.org>
125117         * lib/Makefile.am: Remove file.
125118         * lib/Makefile.in: Remove file.
125120 2003-07-17  Bruno Haible  <bruno@clisp.org>
125122         * configure.in: Remove file.
125123         * Makefile.in: Remove file.
125125 2003-07-17  Bruno Haible  <bruno@clisp.org>
125127         * MODULES.html.sh: Put the </BODY> right before </HTML>.
125129 2003-07-16  Karl Berry  <karl@gnu.org>
125131         * config/srclist-update: was running fixlicense twice, which caused
125132                 texinfo.tex to be nullified for some reason.  Simplify,
125133                 $gplsrc is no longer needed as far as I can see?
125135 2003-07-16  Jim Meyering  <jim@meyering.net>
125137         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
125139 2003-07-15  Paul Eggert  <eggert@twinsun.com>
125141         * config/srclist.txt: Get the following files from gettext-runtime/intl
125142         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
125143         ref-del.sin.  From Bruno Haible.
125144         * config/srclist-update (fixfile): Change grep pattern again, since the
125145         previous fix didn't work (there was another trailing $).  Use
125146         '[$]' to escape the $s.
125148 2003-07-15  Karl Berry  <karl@gnu.org>
125150         * lib/vasnprintf.c: update from gettext.
125152 2003-07-15  Karl Berry  <karl@gnu.org>
125154         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
125155         gets expanded when surrounded by '$'.
125157 2003-07-15  Jim Meyering  <jim@meyering.net>
125159         * modules/save-cwd: Don't depend on error.  From Derek Price.
125161 2003-07-15  Jim Meyering  <jim@meyering.net>
125163         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
125165 2003-07-14  Simon Josefsson  <jas@extundo.com>
125167         * modules/mempcpy: New file.
125168         * MODULES.html.sh (func_all_modules): Add mempcpy.
125170 2003-07-14  Simon Josefsson  <jas@extundo.com>
125172         * m4/mempcpy.m4: New file.
125174 2003-07-14  Simon Josefsson  <jas@extundo.com>
125176         * lib/mempcpy.h: New file.
125177         * lib/mempcpy.c: New file.
125179 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125181         * modules/getdate, modules/posixtm: Depend on mktime.
125183 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125185         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
125186         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
125187         unicodeio.c, unicodeio.h, unlocked-io.h:
125188         Switch from LGPL to GPL.
125190 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125192         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
125193         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
125194         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
125195         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
125196         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
125197         updated automatically by ../config/srclist-update.  This changes
125198         their license from LPGL to GPL.
125200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
125202         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
125203         assumed to refer to the root of the most recent stable gettext version.
125204         * config/srclistvars.sh: Add defaults for eggert.
125205         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
125206         Match "This program" as well as "The program".  This is needed
125207         for gettext.
125209 2003-07-14  Jim Meyering  <jim@meyering.net>
125211         Don't emit diagnostics.  Let callers do that.
125212         * lib/save-cwd.c: Don't include "error.h".
125213         (save_cwd): Don't call error.  Ensure that errno is valid
125214         when returning nonzero.
125216         * lib/save-cwd.h (restore_cwd): Update prototype.
125217         * lib/save-cwd.c (restore_cwd): Remove two parameters.
125218         Simplify.  Don't call error upon failure.  Let callers do that.
125219         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
125220         when auditing is enabled.  But don't bother updating the #if.
125222 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
125224         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
125225         it breaks C++ compilation.
125226         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
125228 2003-07-10  Simon Josefsson  <jas@extundo.com>
125230         * modules/strchrnul (Makefile.am): Add strchrnul.h.
125232 2003-07-10  Jim Meyering  <jim@meyering.net>
125234         * m4/clock_time.m4: Remove trailing blank.
125235         * m4/intmax_t.m4: Likewise.
125237 2003-07-10  Jim Meyering  <jim@meyering.net>
125239         * lib/vasnprintf.c: Remove trailing blanks.
125240         Make cpp indentation consistent.
125242 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125244         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
125245         posixver.c, strftime.c, strnlen.c, strverscmp.c:
125246         Switch from LGPL to GPL.
125248 2003-07-09  Paul Eggert  <eggert@twinsun.com>
125250         * config/srclist.txt: Sort sublists.  Add
125251         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
125252         that differ from gnulib for one reason or another; we'd like this list
125253         to be smaller but for now let's document what we have.
125255 2003-07-08  Paul Eggert  <eggert@twinsun.com>
125257         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
125258         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
125259         and sweeter "eval x=$x".
125260         * config/srclist.txt: Get lib/argp* from glibc.
125262 2003-07-07  Paul Eggert  <eggert@twinsun.com>
125264         * lib/mktime.c: Fix some boundary cases and remove need for floating
125265         point.
125267         Issue a compile-time diagnostic if time_t is floating point, or if
125268         two's complement arithmetic is not in effect, or if arithmetic
125269         right shift does not propagate the sign.  These assumptions were
125270         all in the original code but they weren't checked.
125272         (TIME_T_MIDPOINT, verify): New macros.
125273         (__isleap): Remove; it has integer overflow problems.
125274         (leapyear): New function, without those problems.
125275         (ydhms_tm_diff): Remove; splitting into two parts.
125276         (ydhms_diff): New function, containing the arithmetic part of
125277         the old ydhms_tm_diff function.  Issue a compile-time
125278         diagnostic if we are not using C99 integer division.
125279         Avoid casts when possible.
125280         (guess_time_tm): New function, containing the checking part of
125281         the old ydhms_tm_diff function.  Return the new value, rather than
125282         the difference between it and the old.  Accept a new argument T
125283         so that *T specifies the old value.  Check for overflow in the result.
125285         (__mktime_internal): Use a time_t offset, not a long int offset.
125286         This undoes the 2003-06-04 change, which is no longer needed now
125287         that we have better overflow checking.
125288         (localtime_offset): Likewise.
125290         (__mktime_internal): Avoid harmful overflow on hosts where time_t
125291         and long are 64-bit but int is only 32-bit.
125292         (ydhms_diff): Use long int to store year1 and yday1.
125293         Issue a compile-time diagnostic if long int is not wide enough.
125295         (__mktime_internal): Use long int to store adjusted year and yday.
125296         Use plain C rather than preprocessor commands, if that doesn't
125297         affect efficiency.
125298         Check for overflow (and try to repair) after each probe
125299         rather than checking only at the very end.  This avoids some bugs
125300         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
125301         does not equal GMT offset at maximum time).
125302         Use integer to check for overflow rather than floating point; this
125303         is more portable to non-IEEE hosts, and is a tad faster.
125304         When we detect that we are oscillating between two values,
125305         don't check whether tm_isdst has the requested value, since
125306         we already know the answer.  When tm_isdst has the wrong value,
125307         use a different heuristic to find the right one, based on the
125308         extreme values actually observed in practice in tz2003a,
125309         rather than the (overly optimistic) "previous 3 calendar quarters".
125311         (not_equal_tm, print_tm, check_result): Use "const T" rather than
125312         "T const" to accommodate glibc style.
125313         (check_result): Use less-confusing report format.  "long" -> "long int.
125314         (main): Likewise.
125315         Don't loop if the iteration overflows time_t.
125316         Allow a negative step in the iteration.
125318 2003-07-06  Karl Berry  <karl@gnu.org>
125320         * config/depcomp: update from automake.
125321         * config/config.sub: update from prep.
125323 2003-07-03  Karl Berry  <karl@gnu.org>
125325         * config/config.guess: update from prep.
125327 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125329         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
125330         xreadlink.c now includes it unconditionally.
125332 2003-07-01  Paul Eggert  <eggert@twinsun.com>
125334         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
125335         having it depend on HAVE_SYS_TYPES_H.
125337 2003-07-01  Bruno Haible  <bruno@clisp.org>
125339         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
125340         <sys/types.h> should be sufficient.
125341         Reported by Paul Eggert.
125343 2003-06-26  Karl Berry  <karl@gnu.org>
125345         * config/depcomp: update from automake.
125347 2003-06-26  Bruno Haible  <bruno@clisp.org>
125349         * modules/human: Depend on module stdbool.
125351 2003-06-25  Bruno Haible  <bruno@clisp.org>
125353         * modules/readlink: New file.
125354         * modules/xreadlink: Depend on it.
125355         * MODULES.html.sh (func_all_modules): Add readlink.
125357 2003-06-25  Bruno Haible  <bruno@clisp.org>
125359         * m4/readlink.m4: New file.
125361 2003-06-25  Bruno Haible  <bruno@clisp.org>
125363         * lib/readlink.c: New file.
125365 2003-06-22  Karl Berry  <karl@gnu.org>
125367         * config/srclist.txt: update mkinstalldirs from automake.
125368         * config/mkinstalldirs: update.
125370 2003-06-22  Bruno Haible  <bruno@clisp.org>
125372         Portability to mingw32.
125373         * m4/ssize_t.m4: New file, from GNU gettext.
125374         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
125375         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
125377 2003-06-22  Bruno Haible  <bruno@clisp.org>
125379         * modules/safe-read: Add m4/ssize_t.m4.
125380         * modules/xreadlink: Add m4/ssize_t.m4.
125382 2003-06-20  Bruno Haible  <bruno@clisp.org>
125384         Assume C89, so PARAMS isn't needed.
125385         * lib/unicodeio.h (PARAMS): Remove.
125386         * lib/unicodeio.c: Don't use PARAMS.
125388 2003-06-18  Karl Berry  <karl@gnu.org>
125390         * config/config.{guess,sub}: update from prep.
125392 2003-06-18  Jim Meyering  <jim@meyering.net>
125394         Merge changes from coreutils.
125395         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
125396         Remove explicit declarations of xmalloc and realloc.
125397         Include xalloc.h.
125398         (read_utmp): Remove anachronistic cast of xmalloc.
125400 2003-06-17  Paul Eggert  <eggert@twinsun.com>
125402         Assume C89, so PARAMS isn't needed.
125403         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
125404         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
125405         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
125406         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
125407         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
125408         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
125409         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
125410         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
125411         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
125412         lib/xstrtod.h, lib/xstrtol.h: Likewise.
125413         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
125414         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
125415         no longer needed. Anyway, config.h should always be included before any
125416         other file.
125418 2003-06-11  Simon Josefsson  <jas@extundo.com>
125420         * modules/sysexits: New file.
125421         * MODULES.html.sh (func_all_modules): Add sysexits.
125423 2003-06-11  Simon Josefsson  <jas@extundo.com>
125425         * lib/sysexit_.h: New file.
125427 2003-06-11  Derek Price  <derek@ximbiot.com>
125429         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
125430         necessary.
125432 2003-06-11  Bruno Haible  <bruno@clisp.org>
125434         * m4/sysexits.m4: New file.
125436 2003-06-10  Simon Josefsson  <jas@extundo.com>
125438         * lib/argp.h: New file, from glibc.
125439         * lib/argp-ba.c: New file, from glibc.
125440         * lib/argp-eexst.c: New file, from glibc.
125441         * lib/argp-fmtstream.c: New file, from glibc.
125442         * lib/argp-fmtstream.h: New file, from glibc.
125443         * lib/argp-fs-xinl.c: New file, from glibc.
125444         * lib/argp-help.c: New file, from glibc.
125445         * lib/argp-namefrob.h: New file, from glibc.
125446         * lib/argp-parse.c: New file, from glibc.
125447         * lib/argp-pv.c: New file, from glibc.
125448         * lib/argp-pvh.c: New file, from glibc.
125449         * lib/argp-xinl.c: New file, from glibc.
125451 2003-06-10  Simon Josefsson  <jas@extundo.com>
125453         * modules/strchrnul: New file.
125455 2003-06-10  Simon Josefsson  <jas@extundo.com>
125457         * modules/argp: New file.
125459 2003-06-10  Simon Josefsson  <jas@extundo.com>
125461         * m4/strchrnul.m4: New file.
125463 2003-06-10  Simon Josefsson  <jas@extundo.com>
125465         * lib/strchrnul.h: New file.
125466         * lib/strchrnul.c: New file.
125468 2003-06-10  Bruno Haible  <bruno@clisp.org>
125470         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
125472 2003-06-07  Karl Berry  <karl@gnu.org>
125474         * config/config.{guess,sub}: update from prep.
125476 2003-06-07  Jim Meyering  <jim@meyering.net>
125478         * modules/strtod: Use $(...) notation, not @...@ for
125479         AC_REPLACE'd variables.
125480         * modules/localcharset: Likewise.
125482 2003-06-07  Jim Meyering  <jim@meyering.net>
125484         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
125485         in place of my name in the copyright comment.
125486         Remove definition and uses of __P.
125488         From coreutils.
125489         * lib/stat.c: Don't declare xmalloc explicitly.
125490         Instead, include "xalloc.h".
125491         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
125492         xrealloc, and xcalloc return values.
125493         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
125494         Improve comment.
125495         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
125497 2003-06-07  Bruno Haible  <bruno@clisp.org>
125499         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
125500         avoid AC_CONFIG_LINKS.
125501         * modules/fnmatch (Makefile.am): Use explicit creation rule for
125502         fnmatch.h, to avoid AC_CONFIG_LINKS.
125503         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
125505 2003-06-07  Bruno Haible  <bruno@clisp.org>
125507         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
125508         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
125509         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125510         directory.
125511         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
125512         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
125513         directory.
125515 2003-06-06  Jim Meyering  <jim@meyering.net>
125517         Merge from coreutils.
125518         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
125519         Consolidate declarations and initializations of *_base* locals.
125521         Merge from coreutils.
125522         This avoids a core dump on systems without GNU putenv,
125523         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
125524         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
125525         (unsetenv): New static function, from GNU libc.
125526         (rpl_putenv): Use it.
125528         * lib/modechange.c: Remove trailing blanks.
125530         Merge from coreutils.
125531         * lib/fsusage.c: Remove declaration of statfs.
125532         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
125534         * lib/posixtm.c: Include <stdbool.h> unconditionally.
125536 2003-06-06  Jim Meyering  <jim@meyering.net>
125538         * lib/stdbool_.h: Renamed from stdbool.h.in.
125540 2003-06-06  Jim Meyering  <jim@meyering.net>
125541             Bruno Haible  <bruno@clisp.org>
125543         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
125544         Adjust Makefile.am snippet not to redirect directly to target.
125545         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
125547 2003-06-05  Paul Eggert  <eggert@twinsun.com>
125549         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
125550         mismatch, look in future quarters as well as past.  This fixes a
125551         bug when processing fall-backwards gaps immediately after a long
125552         period of daylight-saving time.
125554         * lib/mktime.c: Assume freestanding C89 or better.
125555         (HAVE_LIMITS_H): Remove.  Assume it's 1.
125556         (__P): Remove; not used.
125557         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
125558         (mktime, not_equal_tm, print_tm, check_result,
125559         main): Use prototypes.  Use const * where appropriate.
125560         (main): Fix typo in testing code that uncovered by above changes.
125561         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
125563 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125565         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
125566         locale.h, localeconv.  This merges changes from coreutils.
125568         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
125569         It can be removed after the next Autoconf is released.
125570         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
125571         needed.
125573 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125575         * lib/mktime.c: Fix Debian bug 177940
125576         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
125577         (localtime_offset): Now long int, not time_t, because we want it
125578         to be guaranteed to be signed.  All uses changed.
125579         (__mktime_internal): If overflow would occur when adding offset,
125580         don't add it.
125582         Merge 'human' changes from coreutils.  Rewrite to support
125583         locale-specific notations like thousands separators.
125584         * lib/human.c: Simplify authorship notice.
125585         Include human.h immediately after config.h.
125586         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
125587         <limits.h>: Do not include, since human.h does.
125588         (SIZE_MAX, UINTMAX_MAX): New macros.
125589         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
125590         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
125591         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
125592         (power_letter): Renamed from suffixes.
125593         (generate_suffix_backwards): Remove.
125594         (adjust_value): Now takes int style (because of human.h changes)
125595         and long double value (for greater precision on some platforms).
125596         (group_number): New function.
125597         (human_readable): Use it.  Use integer options, not enum.
125598         Put the options before the sizes in the arg list.
125599         Support all the new options.
125600         The old human_readable function has been removed;
125601         use inttostr.h instead.
125602         (human_readable, default_block_size, humblock):
125603         Use uintmax_t, not int, for block sizes.
125604         (human_readable_inexact, block_size_types): Remove.
125605         (block_size_opts): New constant.
125606         (human_options): Renamed from human_block_size, with new signature
125607         that allows block sizes up to UINTMAX_MAX.  All callers changed.
125608         * lib/human.h: Add copyright and authorship notice.
125609         Include <limits.h> and <stdbool.h> unconditionally.
125610         (PARAMS): Remove.  All uses removed.
125611         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
125612         (enum human_inexact_style): Remove tag; now a nameless enum.
125613         (human_floor, human_ceiling, human_round_to_even): Now have
125614         values 2, 0, 1 rather than -1, 1, 0.
125615         (human_group_digits, human_suppress_point_zero, human_autoscale,
125616         human_base_1024, human_SI, human_B): New constants.
125617         (human_readable_inexact, human_block_size): Remove.
125618         (human_readable): Size args are now uintmax_t, not int.
125619         (human_options): New decl.
125621         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
125622         unnecessary now that we assume C89 or better.  This change
125623         imported from coreutils.
125625         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125626         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
125627         in the 2003-05-30 sync from glibc.
125629         .h files should stand alone, but we shouldn't include <sys/types.h>
125630         if we can get away with just <stddef.h>.
125632         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
125633         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
125634         rather than <sys/types.h>, as we merely need size_t.
125635         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
125636         to get size_t.
125637         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
125638         Include <stdio.h>, to get FILE.
125639         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
125640         memcasecmp.h has included <stddef.h> and all we need is size_t.
125641         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
125642         our interface, instead of including <sys/types.h>
125644 2003-06-04  Paul Eggert  <eggert@twinsun.com>
125646         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
125647         now, as glibc mktime is buggy on non-glibc systems.
125649 2003-06-03  Karl Berry  <karl@gnu.org>
125651         * config/config.sub: update from prep.
125653 2003-06-02  Paul Eggert  <eggert@twinsun.com>
125655         [from coreutils]
125656         Fix some minor time-related bugs with POSIX time arguments.
125657         Some valid time stamps were being rejected (notably -1, and
125658         time stamps before 1900 on 64-bit hosts).  And some invalid
125659         time stamps were being accepted, e.g. September 31.
125661         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
125662         that we can return (time_t) -1 successfully.
125663         * lib/posixtm.c: Likewise.
125664         [HAVE_STDBOOL_H]: Include <stdbool.h>.
125665         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
125666         (t): Remove static var.
125667         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
125668         of static var.  All uses changed.
125669         (year): Do not reject years before 1900; they can occur with
125670         64-bit time_t.
125671         (posix_time_parse): Do not check for out-of-range components;
125672         that is now the caller's responsibility, since our checks were
125673         only approximations.
125674         (posixtime): Use mktime to check for out-of-range components,
125675         since it knows them exactly.
125676         If mktime returns (time_t) -1, check whether an error actually occurred
125677         by invoking localtime on -1.
125678         (main) [TEST_POSIXTIME]: Check for input data errors, and report
125679         posixtime failures better.
125680         Improve the test data (in comments only).
125682 2003-06-02  Karl Berry  <karl@gnu.org>
125684         * config/mkinstalldirs (version): new variable.
125685         (--version): new option.
125686         (usage): improve message.
125688 2003-05-30  Karl Berry  <karl@gnu.org>
125690         * lib/mktime.c: update from libc.
125692 2003-05-30  Bruno Haible  <bruno@clisp.org>
125694         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
125695         * config/config.rpath: Upgrade to gettext-0.12.1.
125697 2003-05-30  Bruno Haible  <bruno@clisp.org>
125699         * m4/gettext.m4: Upgrade to gettext-0.12.1.
125700         * m4/nls.m4: New file, from gettext-0.12.1.
125701         * m4/po.m4: New file, from gettext-0.12.1.
125702         * m4/progtest.m4: Upgrade to gettext-0.12.1.
125704 2003-05-30  Bruno Haible  <bruno@clisp.org>
125706         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
125707         * lib/localcharset.h: Likewise.
125708         * lib/localcharset.c: Likewise.
125710 2003-05-29  Karl Berry  <karl@gnu.org>
125712         * config/config.rpath: update from gettext.
125714 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125716         Assume the headers required for C89 freestanding compilers.
125717         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
125718         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
125719         * m4/human.m4 (gl_HUMAN): Likewise.
125720         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
125721         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
125722         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125723         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
125724         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125725         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
125727 2003-05-28  Paul Eggert  <eggert@twinsun.com>
125729         Assume the headers required for C89 freestanding compilers.
125730         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
125731         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
125732         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
125733         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
125734         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
125735         define, since <limits.h> is guaranteed to do that.
125736         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
125737         * lib/exclude.c: Include <stdbool.h> unconditionally.
125738         * lib/tempname.c: Include <stddef.h> unconditionally.
125739         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
125740         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
125741         <stddef.h> does that.
125742         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
125743         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
125744         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
125745         needed.
125746         * lib/xstrtol.c: Likewise.
125747         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
125748         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
125750         * lib/addext.c (addext): Use assignment rather than cast, to avoid
125751         warnings on some platforms.
125753         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
125754         arbitrarily.
125756 2003-05-26  Jim Meyering  <jim@meyering.net>
125758         Merge in a change from coreutils:
125759         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
125760         that is guaranteed to be `no'.  Use `no_such_member' to indicate
125761         that condition, rather than `-1' which is slightly misleading.
125762         Change the name of the cache variable to have the gl_ prefix.
125763         Prompted by a patch from Richard Dawe for DJGPP.
125765 2003-05-24  Karl Berry  <karl@gnu.org>
125767         * config/config.guess: update from prep.
125769 2003-05-22  Karl Berry  <karl@gnu.org>
125771         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
125773 2003-05-20  Karl Berry  <karl@gnu.org>
125775         * config/config.guess: update from prep.
125777 2003-05-18  Karl Berry  <karl@gnu.org>
125779         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
125780         might actually be set by the user.
125782         * config/depcomp, install-sh, mdate-sh: update from automake.
125784 2003-05-17  Bruno Haible  <bruno@clisp.org>
125786         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
125787         invalid expansion for AC_EGREP_CPP.
125788         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
125789         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
125790         Suggested by Akim Demaille <akim@epita.fr> in
125791         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
125793 2003-05-12  Jim Meyering  <jim@meyering.net>
125795         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
125796         the space-padded-by-default conversion specifiers, %e, %k, %l.
125798 2003-05-12  Bruno Haible  <bruno@clisp.org>
125800         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
125801         the string is longer than 4 KB.
125803 2003-05-11  Karl Berry  <karl@gnu.org>
125805         * config/config.{guess,sub}: update from prep.
125807 2003-05-09  Bruno Haible  <bruno@clisp.org>
125809         * modules/error: Add m4/strerror_r.m4 to file list.
125811 2003-05-03  Bruno Haible  <bruno@clisp.org>
125813         Upgrade to Unicode-4.0.
125814         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
125815         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
125816         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
125817         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
125818         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
125819         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
125820         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
125821         Change width of U+E0100..U+E01EF from 1 to 0.
125823 2003-04-25  Jim Meyering  <jim@meyering.net>
125825         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
125826         of type size_t, not int.
125828 2003-04-25  Bruno Haible  <bruno@clisp.org>
125830         * lib/copy-file.c: Include <stddef.h>, for size_t.
125832 2003-04-21  Paul Eggert  <eggert@twinsun.com>
125834         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
125835         code which expansion is under static control.  Patch imported from
125836         Akim Demaille's patch to Bison; see
125837         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
125839 2003-04-14  Bruno Haible  <bruno@clisp.org>
125841         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
125843 2003-04-11  Jim Meyering  <jim@meyering.net>
125845         Merge changes from Coreutils.
125847         2003-03-22  Jim Meyering  <jim@meyering.net>
125849         * lib/strftime.c (widen): Cast alloca return value to proper type.
125851         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
125853         From GNU libc.
125854         * lib/strftime.c (my_strftime): Handle very large width
125855         specifications for numeric values correctly.  Improve checks for
125856         overflow.
125858         2003-01-19  Jim Meyering  <jim@meyering.net>
125860         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
125861         definitions.
125862         (nl_get_alt_digit) [! defined my_strftime]: Define.
125863         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
125864         _nl_get_alt_digit and _nl_get_walt_digit.
125866         * lib/strftime.c (my_strftime): Merge in locale-related changes from
125867         libc. These changes have no effect outside of _LIBC.
125869 2003-04-10  Bruno Haible  <bruno@clisp.org>
125871         * modules/findprog: New file.
125872         * MODULES.html.sh (func_all_modules): Add it.
125874 2003-04-10  Bruno Haible  <bruno@clisp.org>
125876         * m4/findprog.m4: New file.
125877         * m4/eaccess.m4: New file.
125879 2003-04-10  Bruno Haible  <bruno@clisp.org>
125881         * lib/findprog.h: New file, from GNU gettext.
125882         * lib/findprog.c: New file, from GNU gettext.
125884 2003-04-05  Jim Meyering  <jim@meyering.net>
125886         Merge changes from Coreutils.
125888         * lib/exclude.h (PARAMS): Remove definition and uses.
125889         * lib/exclude.c: Remove uses of `PARAMS'.
125891         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
125892         Add test-cases for DOS filenames. Declare program_name.
125893         (main): Set up program_name.  Patch by Rich Dawe.
125895         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
125896         error from mntctl.
125897         Use mntctl's return value to drive the entry-processing loop, since
125898         we can't rely on the value of the vmt_length member in the last
125899         entry.  On some systems doing so could result in exhausting
125900         virtual memory.  Based in part on a patch from Mike Jetzer.
125902 2003-04-04  Bruno Haible  <bruno@clisp.org>
125904         * modules/linebreak: New file.
125905         * MODULES.html.sh (func_all_modules): Add it.
125907 2003-04-04  Bruno Haible  <bruno@clisp.org>
125909         * m4/linebreak.m4: New file.
125911 2003-04-04  Bruno Haible  <bruno@clisp.org>
125913         * lib/linebreak.h: New file, from GNU gettext.
125914         * lib/linebreak.c: New file, from GNU gettext with slight
125915         modifications.
125916         * lib/lbrkprop.h: New file, from GNU gettext.
125918 2003-04-03  Bruno Haible  <bruno@clisp.org>
125920         * modules/utf8-ucs4: New file.
125921         * modules/utf16-ucs4: New file.
125922         * modules/ucs4-utf8: New file.
125923         * modules/ucs4-utf16: New file.
125924         * MODULES.html.sh (func_all_modules): Add them.
125926 2003-04-03  Bruno Haible  <bruno@clisp.org>
125928         * m4/utf-ucs4.m4: New file.
125929         * m4/ucs4-utf.m4: New file.
125931 2003-04-03  Bruno Haible  <bruno@clisp.org>
125933         * lib/utf8-ucs4.h: New file, from GNU gettext.
125934         * lib/utf16-ucs4.h: New file, from GNU gettext.
125935         * lib/ucs4-utf8.h: New file, from GNU gettext.
125936         * lib/ucs4-utf16.h: New file, from GNU gettext.
125938 2003-04-02  Bruno Haible  <bruno@clisp.org>
125940         * modules/binary-io: New file.
125941         * MODULES.html.sh (func_all_modules): Add it.
125943 2003-04-02  Bruno Haible  <bruno@clisp.org>
125945         * lib/binary-io.h: New file, from GNU gettext.
125947 2003-04-01  Bruno Haible  <bruno@clisp.org>
125949         * modules/pathname: New file.
125950         * MODULES.html.sh (func_all_modules): Add it.
125952 2003-04-01  Bruno Haible  <bruno@clisp.org>
125954         * lib/pathname.h: New file, from GNU gettext.
125955         * lib/concatpath.c: New file, from GNU gettext.
125957 2003-03-30  Bruno Haible  <bruno@clisp.org>
125959         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
125961 2003-03-30  Bruno Haible  <bruno@clisp.org>
125963         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
125964         function chown() doesn't exist.
125966 2003-03-28  Bruno Haible  <bruno@clisp.org>
125968         * modules/copy-file: New file.
125969         * MODULES.html.sh (func_all_modules): Add it.
125971 2003-03-28  Bruno Haible  <bruno@clisp.org>
125973         * m4/copy-file.m4: New file.
125975 2003-03-28  Bruno Haible  <bruno@clisp.org>
125977         * lib/copy-file.h: New file, from GNU gettext.
125978         * lib/copy-file.c: New file, from GNU gettext.
125980 2003-03-18  Jim Meyering  <jim@meyering.net>
125982         * lib/quote.c (quote_n): Fix typo in comment.
125984 2003-03-18  Bruno Haible  <bruno@clisp.org>
125986         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
125987         checking.
125988         * m4/onceonly_2_57.m4: Likewise.
125990 2003-03-17  Bruno Haible  <bruno@clisp.org>
125992         * m4/onceonly.m4: Require autoconf 2.54 or newer.
125993         (m4_quote): Remove macro.
125994         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
125996 2003-03-14  Jim Meyering  <jim@meyering.net>
125998         Merge changes from Coreutils.
125999         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
126000         to be const, in order to avoid warnings.
126001         (obstack_room): Likewise.
126002         (obstack_empty_p): Likewise.
126004 2003-03-14  Bruno Haible  <bruno@clisp.org>
126006         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
126007         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
126009 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126011         Merge changes from Bison.
126012         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
126013         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
126014         when compiling Bison 1.875's `bitset bset = obstack_alloc
126015         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
126016         * lib/hash.c: Include <stdbool.h> unconditionally.
126018 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126020         * m4/onceonly.m4 (m4_quote): New macro.
126021         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
126022         Quote AC_FOREACH variable-expansions properly.
126024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
126026         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
126028 2003-03-09  Paul Eggert  <eggert@twinsun.com>
126030         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
126031         Reported by Bruce Becker; see:
126032         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
126034 2003-03-03  Paul Eggert  <eggert@twinsun.com>
126035             Bruno Haible  <bruno@clisp.org>
126037         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
126038         Reported by John Hughes, see
126039         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
126041 2003-02-20  Bruno Haible  <bruno@clisp.org>
126043         * MODULES.html.sh (func_all_modules): Add poll.
126045 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126047         * modules/poll: New file.
126049 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126051         * lib/poll_.h: New file.
126052         * lib/poll.c: New file.
126054 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
126056         * m4/poll.m4: New file.
126058 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126060         * modules/mathl: New file.
126062 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126064         * lib/mathl.h: New file.
126065         * lib/acosl.c: New file.
126066         * lib/asinl.c: New file.
126067         * lib/atanl.c: New file.
126068         * lib/ceill.c: New file.
126069         * lib/cosl.c: New file.
126070         * lib/expl.c: New file.
126071         * lib/floorl.c: New file.
126072         * lib/frexpl.c: New file.
126073         * lib/ldexpl.c: New file.
126074         * lib/logl.c: New file.
126075         * lib/sincosl.c: New file.
126076         * lib/sinl.c: New file.
126077         * lib/sqrtl.c: New file.
126078         * lib/tanl.c: New file.
126079         * lib/trigl.c: New file.
126080         * lib/trigl.h: New file.
126082 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
126084         * m4/mathl.m4: New file.
126086 2003-02-18  Bruno Haible  <bruno@clisp.org>
126088         * MODULES.html.sh (func_all_modules): Add mathl.
126090 2003-02-17  Bruno Haible  <bruno@clisp.org>
126092         * modules/mkdtemp: New module.
126093         * MODULES.html.sh (func_all_modules): Add it.
126095 2003-02-17  Bruno Haible  <bruno@clisp.org>
126097         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
126099 2003-02-17  Bruno Haible  <bruno@clisp.org>
126101         * lib/mkdtemp.h: New file, from GNU gettext.
126102         * lib/mkdtemp.c: New file, from GNU gettext.
126104 2003-02-02  Jim Meyering  <jim@meyering.net>
126106         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
126107         e.g. glibc-2.2.93.
126109 2003-01-31  Bruno Haible  <bruno@clisp.org>
126111         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
126112         'rpl_rename'.
126113         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
126114         'rpl_strnlen'.
126115         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
126116         'rpl_strtod'.
126117         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
126118         'rpl_utime'.
126120 2003-01-31  Bruno Haible  <bruno@clisp.org>
126122         * lib/rename.c: #undef rename before defining rpl_rename.
126123         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
126125 2003-01-30  Bruno Haible  <bruno@clisp.org>
126127         * modules/vasnprintf, modules/vasprintf: New modules.
126128         * MODULES.html.sh (func_all_modules): Add them.
126130 2003-01-30  Bruno Haible  <bruno@clisp.org>
126132         * m4/signed.m4: New file, from GNU gettext.
126133         * m4/longdouble.m4: New file, from GNU gettext.
126134         * m4/wchar_t.m4: New file, from GNU gettext.
126135         * m4/wint_t.m4: New file, from GNU gettext.
126136         * m4/vasnprintf.m4: New file.
126137         * m4/vasprintf.m4: New file.
126139 2003-01-30  Bruno Haible  <bruno@clisp.org>
126141         * lib/printf-args.h: New file, from GNU gettext.
126142         * lib/printf-args.c: New file, from GNU gettext.
126143         * lib/printf-parse.h: New file, from GNU gettext.
126144         * lib/printf-parse.c: New file, from GNU gettext.
126145         * lib/vasnprintf.h: New file, from GNU gettext.
126146         * lib/vasnprintf.c: New file, from GNU gettext.
126147         * lib/asnprintf.c: New file, from GNU gettext.
126148         * lib/vasprintf.h: New file, from GNU gettext with modifications.
126149         * lib/vasprintf.c: New file, from GNU gettext.
126150         * lib/asprintf.c: New file, from GNU gettext.
126152 2003-01-29  Bruno Haible  <bruno@clisp.org>
126154         * modules/stpncpy: New module.
126155         * MODULES.html.sh (func_all_modules): Add it.
126157 2003-01-29  Bruno Haible  <bruno@clisp.org>
126159         * m4/stpncpy.m4: New file.
126161 2003-01-29  Bruno Haible  <bruno@clisp.org>
126163         * lib/stpncpy.h: New file, from GNU gettext with modifications.
126164         * lib/stpncpy.c: New file, from GNU gettext with modifications.
126166 2003-01-28  Bruno Haible  <bruno@clisp.org>
126168         * modules/c-ctype: New module.
126169         * MODULES.html.sh (func_all_modules): Add it.
126171 2003-01-28  Bruno Haible  <bruno@clisp.org>
126173         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
126174         Paul Eggert.
126175         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
126176         Paul Eggert.
126178 2003-01-27  Bruno Haible  <bruno@clisp.org>
126180         * modules/xsetenv: New module.
126181         * MODULES.html.sh (func_all_modules): Add it.
126183 2003-01-27  Bruno Haible  <bruno@clisp.org>
126185         * lib/xsetenv.h: New file, from GNU gettext.
126186         * lib/xsetenv.c: New file, from GNU gettext.
126188 2003-01-23  Jim Meyering  <jim@meyering.net>
126190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
126191         from working on systems without dirfd (at least Irix and OSF1/Tru64).
126193 2003-01-23  Bruno Haible  <bruno@clisp.org>
126195         * modules/minmax: New module.
126196         * MODULES.html.sh (func_all_modules): Add it.
126198 2003-01-23  Bruno Haible  <bruno@clisp.org>
126200         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
126201         Eggert.
126203 2003-01-22  Bruno Haible  <bruno@clisp.org>
126205         * modules/exit: New module.
126206         * MODULES.html.sh (func_all_modules): Add it.
126208 2003-01-22  Bruno Haible  <bruno@clisp.org>
126210         * lib/exit.h: New file, from GNU gettext.
126212 2003-01-19  Bruno Haible  <bruno@clisp.org>
126214         * gnulib-tool: Recognize option --extract-maintainer.
126215         (func_get_maintainer): New function.
126216         * modules/*: Add Maintainer entry.
126218 2003-01-16  Jim Meyering  <jim@meyering.net>
126220         * m4/regex.m4: The `regex' struct is both input and output.
126221         Initialize it before each use.  Patch by Tim Waugh.
126223 2003-01-16  Bruno Haible  <bruno@clisp.org>
126225         * MODULES.html.sh: Add a table of contents. Add the module name as
126226         leftmost column. Add hyperlinks.
126228 2003-01-15  Bruno Haible  <bruno@clisp.org>
126230         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
126232 2003-01-15  Bruno Haible  <bruno@clisp.org>
126234         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
126235         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
126236         suffix.
126238 2003-01-15  Bruno Haible  <bruno@clisp.org>
126240         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
126242 2003-01-15  Bruno Haible  <bruno@clisp.org>
126244         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
126245         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
126247 2003-01-14  Jim Meyering  <jim@meyering.net>
126249         * lib/same.c (same_name): Tweak a comment.
126251 2003-01-14  Bruno Haible  <bruno@clisp.org>
126253         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
126254         when a string comparison is sufficient.
126256 2003-01-14  Bruno Haible  <bruno@clisp.org>
126258         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
126259         'unsigned int'.
126261 2003-01-14  Bruno Haible  <bruno@clisp.org>
126263         * lib/hash-pjw.c: Add comment about low quality of this function.
126265 2003-01-13  Bruno Haible  <bruno@clisp.org>
126267         * modules/stpcpy: Distribute lib/stpcpy.h.
126268         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
126270 2003-01-13  Bruno Haible  <bruno@clisp.org>
126272         * modules/*: Add a description.
126273         * modules/strpbrk: Fix Makefile.am snippet.
126274         * modules/strtoimax: Fix dependencies.
126275         * modules/strtoumax: Likewise.
126277 2003-01-13  Bruno Haible  <bruno@clisp.org>
126279         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
126280         * modules/alloca (Makefile.am): All object files depend on alloca.h.
126281         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
126283 2003-01-13  Bruno Haible  <bruno@clisp.org>
126285         * gnulib-tool (func_create_testdir): Store config/* files in the main
126286         directory.
126287         * config.rpath: Move to ...
126288         * config/config.rpath: ... here.
126289         * modules/gettext: Contains config/config.rpath, not config.rpath.
126290         * modules/iconv: Likewise.
126292 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126294         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126295         to avoid collisions with libcurses and libreadline.
126297         * m4/getstr.m4: Remove.
126298         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
126300 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126302         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126303         to avoid collisions with libcurses and libreadline.
126305         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
126306         * lib/getstr.h, getstr.c: Remove.
126307         * lib/getline.c: Include "getline.h", to check interface.
126308         Move body of old getstr.c here: this defines MIN_CHUNK and
126309         declares getdelim2, which is renamed from getstr.
126310         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
126312         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
126313         All uses changed.
126314         * lib/linebuffer.h: Likewise.
126315         (readline): Remove backward-compatibility macro.
126317 2003-01-12  Paul Eggert  <eggert@twinsun.com>
126319         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
126320         to avoid collisions with libcurses and libreadline.
126321         * getstr: Remove.
126322         * MODULES.html.sh: Remove getstr.
126323         * modules/getline: Depend on unlocked-io, not getstr.
126325 2003-01-12  Jim Meyering  <jim@meyering.net>
126327         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
126329 2003-01-10  Bruno Haible  <bruno@clisp.org>
126331         * modules/alloca: Change Makefile.am requirements. Simplify Include
126332         requirements. Add lib/alloca_.h to file list.
126334 2003-01-10  Bruno Haible  <bruno@clisp.org>
126336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
126338 2003-01-10  Bruno Haible  <bruno@clisp.org>
126340         * lib/alloca_.h: New file.
126341         * lib/getdate.y: Unconditionally include alloca.h.
126342         * lib/makepath.c: Likewise.
126343         * lib/setenv.c: Likewise.
126344         * lib/userspec.c: Likewise.
126346 2003-01-09  Karl Berry  <karl@gnu.org>
126348         * MODULES.html.sh: include `dirname $0` in PATH, to find
126349         gnulib-tool.
126351 2003-01-09  Bruno Haible  <bruno@clisp.org>
126353         * modules/stdbool: Change configure.ac, Makefile.am requirements.
126354         Simplify Include requirements. Add lib/stdbool.h.in to file list.
126356 2003-01-09  Bruno Haible  <bruno@clisp.org>
126358         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
126360 2003-01-09  Bruno Haible  <bruno@clisp.org>
126362         * lib/stdbool.h.in: New file.
126364 2003-01-09  Bruno Haible  <bruno@clisp.org>
126366         * gnulib-tool (func_all_modules): Ignore files ending in ~.
126367         * MODULES.html.sh: Likewise.
126369 2003-01-08  Jim Meyering  <jim@meyering.net>
126371         * lib/full-write.c: Undefine and define-away `const' after inclusion
126372         of errno.h, not before.  Suggestion from Bruno Haible.
126374 2003-01-08  Bruno Haible  <bruno@clisp.org>
126376         * modules/full-read: Depend on full-write.
126378 2003-01-08  Bruno Haible  <bruno@clisp.org>
126380         * lib/safe-read.c: Include specification header first, to ensure its
126381         selfcontainedness.
126382         * lib/full-write.c: Likewise.
126384 2003-01-07  Jim Meyering  <jim@meyering.net>
126386         * lib/full-write.c: Rework so that it may serve to define full_read,
126387         too.
126388         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
126390 2003-01-07  Bruno Haible  <bruno@clisp.org>
126392         * lib/strtoimax.c: Include <stdint.h> as an alternative to
126393         <inttypes.h>.
126394         * lib/xstrtol.h: Likewise.
126395         * lib/xstrtoimax.c: Likewise.
126396         * lib/xstrtoumax.c: Likewise.
126397         * lib/human.h: Likewise.
126399         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
126400         on systems that have <inttypes.h> but not <stdint.h>.
126402 2003-01-07  Bruno Haible  <bruno@clisp.org>
126404         * MODULES.html.sh: Add copyright notice.
126405         (missed_files): Omit CVS directory entries.
126406         (func_module): Make it work with sed-3.02.
126407         * MODULES.txt: Remove file.
126409 2003-01-06  Jim Meyering  <jim@meyering.net>
126411         * lib/version-etc.c: Update year in translatable copyright string.
126413 2003-01-03  Karl Berry  <karl@gnu.org>
126415         * config/config.{guess,sub}: update from prep.
126417 2003-01-02  Karl Berry  <karl@gnu.org>
126419         * doc/COPYING.DOC: belatedly updated to 1.2.
126421 2003-01-01  Karl Berry  <karl@gnu.org>
126423         * gnulib-tool (func_verify_module): report module name $module in
126424         error message, not $1.
126425         * gnulib-tool (create-testdir): don't complain if destdir couldn't
126426         be created, only if it doesn't exist.
126427         * gnulib-tool (last_checkin_date): don't expand the $Date here.
126429 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126431         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
126433 2002-12-31  Paul Eggert  <eggert@twinsun.com>
126435         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
126436         memcmp if strcoll doesn't work.
126438 2002-12-31  Bruno Haible  <bruno@clisp.org>
126440         * lib/utime.c (utime_null): No need to call ftruncate if the file was
126441         nonempty.
126443 2002-12-31  Bruno Haible  <bruno@clisp.org>
126445         * lib/memcoll.c (STRCOLL): New macro.
126446         (memcoll): Use it.
126448 2002-12-31  Bruno Haible  <bruno@clisp.org>
126450         * lib/localcharset.h: New file.
126451         * lib/localcharset.c: Include it.
126452         * lib/unicodeio.c: Likewise.
126454 2002-12-31  Bruno Haible  <bruno@clisp.org>
126456         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
126457         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
126459 2002-12-31  Bruno Haible  <bruno@clisp.org>
126461         * lib/getline.h: Include <stddef.h>, for size_t.
126463         * lib/unicodeio.h: Include <stddef.h>, for size_t.
126464         * lib/unicodeio.c: Don't include <stddef.h>.
126466 2002-12-31  Bruno Haible  <bruno@clisp.org>
126468         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
126469         HAVE_TM_ZONE.
126471 2002-12-24  Karl Berry  <karl@gnu.org>
126473         * config/config.guess: update from prep.
126475 2002-12-24  Bruno Haible  <bruno@clisp.org>
126477         General infrasructure.
126478         * m4/README: Rewritten.
126479         * m4/onceonly.m4: New file.
126480         * m4/onceonly_2_57.m4: New file.
126482         Module atexit.
126483         * m4/atexit.m4: New file.
126485         Module strtod.
126486         * m4/strtod.m4: New file.
126488         Module strtol.
126489         * m4/strtol.m4: New file.
126491         Module strtoul.
126492         * m4/strtoul.m4: New file.
126494         Module memchr.
126495         * m4/memchr.m4: New file.
126497         Module memcmp.
126498         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
126499         (jm_FUNC_MEMCMP): Invoke it.
126501         Module memcpy.
126502         * m4/memcpy.m4: New file.
126504         Module memmove.
126505         * m4/memmove.m4: New file.
126507         Module memset.
126508         * m4/memset.m4: New file.
126510         Module strcspn.
126511         * m4/strcspn.m4: New file.
126513         Module strpbrk.
126514         * m4/strpbrk.m4: New file.
126516         Module strstr.
126517         * m4/strstr.m4: New file.
126519         Module strerror.
126520         * m4/strerror.m4: New file.
126522         Module mktime.
126523         * m4/mktime.m4: Renamed from jm-mktime.m4.
126524         (gl_PREREQ_MKTIME): New macro.
126525         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
126527         Module malloc.
126528         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
126529         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
126530         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
126532         Module realloc.
126533         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
126534         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
126535         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
126537         Module strftime.
126538         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
126539         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
126540         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
126541         gl_TM_GMTOFF.
126542         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
126544         Module xalloc.
126545         * m4/xalloc.m4: New file.
126547         Module alloca.
126548         * m4/alloca.m4: New file.
126550         Module putenv.
126551         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
126552         (jm_FUNC_PUTENV): Invoke it.
126554         Module setenv.
126555         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
126556         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
126557         when invoked twice.
126558         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
126559         gt_FUNC_SETENV.
126561         Module memrchr.
126562         * m4/memrchr.m4: New file.
126564         Module stpcpy.
126565         * m4/stpcpy.m4: New file.
126567         Module strcase.
126568         * m4/strcase.m4: New file.
126570         Module strdup.
126571         * m4/strdup.m4: New file.
126573         Module strnlen.
126574         * m4/strnlen.m4: New file.
126576         Module strndup.
126577         * m4/strndup.m4: New file.
126579         Module xstrtod.
126580         * m4/xstrtod.m4: New file.
126582         Module xstrtol.
126583         * m4/xstrtol.m4: New file.
126585         Module getdate.
126586         * m4/getdate.m4: New file.
126588         Module unlocked-io.
126589         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
126590         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
126591         * m4/jm-glibc-io.m4n: Remove file.
126593         Module long-options.
126594         * m4/long-options.m4: New file.
126596         Module md5.
126597         * m4/md5.m4: New file.
126599         Module sha.
126600         * m4/sha.m4: New file.
126602         Module getstr.
126603         * m4/getstr.m4: New file.
126605         Module getline.
126606         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
126607         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
126608         <sys/types.h>, for size_t. Use the function name gnu_getline, not
126609         simply getline. Infoke gl_PREREQ_GETLINE.
126611         Module obstack.
126612         * m4/obstack.m4: New file.
126614         Module hash.
126615         * m4/hash.m4: New file.
126617         Module readtokens.
126618         * m4/readtokens.m4: New file.
126620         Module strverscmp.
126621         * m4/strverscmp.m4: New file.
126623         Module stdbool.
126624         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
126625         OSF/1.
126627         Module strtoll.
126628         * m4/strtoll.m4: New file.
126630         Module strtoull.
126631         * m4/strtoull.m4: New file.
126633         Module strtoimax.
126634         * m4/strtoimax.m4: New file.
126636         Module strtoumax.
126637         * m4/strtoumax.m4: New file.
126639         Module xstrtoimax.
126640         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
126641         jm_AC_PREREQ_XSTRTOIMAX.
126642         Moved the strtol prerequisites to strtol.m4.
126643         Moved the strtoll prerequisites to strtoll.m4.
126644         Moved the strtoimax prerequisites to strtoimax.m4.
126646         Module xstrtoumax.
126647         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
126648         jm_AC_PREREQ_XSTRTOUMAX.
126649         Moved the strtoul prerequisites to strtoul.m4.
126650         Moved the strtoull prerequisites to strtoull.m4.
126651         Moved the strtoumax prerequisites to strtoumax.m4.
126653         Module chown.
126654         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
126655         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
126657         Module dup2.
126658         * m4/dup2.m4: New file.
126660         Module ftruncate.
126661         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
126662         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
126664         Module getgroups.
126665         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
126666         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
126668         Module gettimeofday.
126669         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
126670         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
126671         gl_PREREQ_GETTIMEOFDAY.
126673         Module mkdir.
126674         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
126675         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
126677         Module mkstemp.
126678         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
126679         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
126680         jm_AC_TYPE_UINTMAX_T.
126681         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
126683         Module stat.
126684         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
126685         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
126687         Module lstat.
126688         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
126689         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
126691         Module timespec.
126692         * m4/timespec.m4 (gl_TIMESPEC): New macro.
126693         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
126694         * m4/st_mtim.m4: Indentation.
126696         Module nanosleep.
126697         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
126698         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
126699         gl_PREREQ_NANOSLEEP.
126701         Module regex.
126702         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
126703         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
126704         (gl_REGEX): New macro.
126706         Module rename.
126707         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
126708         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
126710         Module rmdir.
126711         * m4/rmdir.m4: New file.
126713         Module utime.
126714         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
126715         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
126716         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
126718         Module dirname.
126719         * m4/dirname.m4: New file.
126721         Module getopt.
126722         * m4/getopt.m4: New file.
126724         Module unistd-safer.
126725         * m4/unistd-safer.m4: New file.
126727         Module fnmatch.
126728         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
126729         declaration.
126730         (gl_PREREQ_FNMATCH_EXTRA): New macro.
126731         (gl_FUNC_FNMATCH_POSIX): New macro.
126732         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
126733         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
126734         simply fnmatch.
126736         Module exclude.
126737         * m4/exclude.m4: New file.
126739         Module human.
126740         * m4/human.m4: New file.
126742         Module acl.
126743         * m4/acl.m4: Nop.
126745         Module backupfile.
126746         * m4/backupfile.m4: New file.
126747         * m4/d-ino.m4: Indentation.
126749         Module fsusage.
126750         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
126751         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
126752         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
126754         Module dirfd.
126755         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
126756         requirements.
126758         Module euidaccess.
126759         * m4/euidaccess.m4: New file.
126761         Module file-type.
126762         * m4/file-type.m4: New file.
126764         Module fileblocks.
126765         * m4/fileblocks.m4: New file.
126767         Module filemode.
126768         * m4/filemode.m4: New file.
126770         Module isdir.
126771         * m4/isdir.m4: New file.
126773         Module lchown.
126774         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
126775         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
126777         Module makepath.
126778         * m4/makepath.m4: New file.
126780         Module modechange.
126781         * m4/modechange.m4: New file.
126783         Module mountlist.
126784         * m4/mountlist.m4: New file.
126785         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
126786         Indentation.
126788         Module path-concat.
126789         * m4/path-concat.m4: New file.
126791         Module pathmax.
126792         * m4/pathmax.m4: New file.
126794         Module same.
126795         * m4/same.m4: New file.
126797         Module save-cwd.
126798         * m4/save-cwd.m4: New file.
126800         Module savedir.
126801         * m4/savedir.m4: New file.
126803         Module xgetcwd.
126804         * m4/xgetcwd.m4: New file.
126805         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
126807         Module xreadlink.
126808         * m4/xreadlink.m4: New file.
126810         Module safe-read.
126811         * m4/safe-read.m4: New file.
126813         Module safe-write.
126814         * m4/safe-write.m4: New file.
126816         Module closeout.
126817         * m4/closeout.m4: New file.
126819         Module stdio-safer.
126820         * m4/stdio-safer.m4: New file.
126822         Module getpass.
126823         * m4/getpass.m4: New file.
126825         Module getugroups.
126826         * m4/getugroups.m4: New file.
126828         Module group-member.
126829         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
126830         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
126832         Module idcache.
126833         * m4/idcache.m4: New file.
126835         Module userspec.
126836         * m4/userspec.m4: New file.
126838         Module gettime.
126839         * m4/clock_time.m4: New file.
126840         * m4/gettime.m4: New file.
126842         Module settime.
126843         * m4/settime.m4: New file.
126845         Module posixtm.
126846         * m4/posixtm.m4: New file.
126848         Module gethostname.
126849         * m4/gethostname.m4: New file.
126851         Module canon-host.
126852         * m4/canon-host.m4: New file.
126854         Module gettext.
126855         * m4/codeset.m4: New file, from gettext-0.11.5.
126856         * m4/gettext.m4: New file, from gettext-0.11.5.
126857         * m4/glibc21.m4: New file, from gettext-0.11.5.
126858         * m4/iconv.m4: New file, from gettext-0.11.5.
126859         * m4/intdiv0.m4: New file, from gettext-0.11.5.
126860         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
126861         * m4/inttypes.m4: New file, from gettext-0.11.5.
126862         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
126863         * m4/isc-posix.m4: New file, from gettext-0.11.5.
126864         * m4/lcmessage.m4: New file, from gettext-0.11.5.
126865         * m4/lib-ld.m4: New file, from gettext-0.11.5.
126866         * m4/lib-link.m4: New file, from gettext-0.11.5.
126867         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
126868         * m4/progtest.m4: New file, from gettext-0.11.5.
126869         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
126870         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
126871         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
126873         Module localcharset.
126874         * m4/localcharset.m4: New file.
126876         Module hard-locale.
126877         * m4/hard-locale.m4: New file.
126879         Module mbswidth.
126880         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
126881         onceonly macros.
126882         * m4/mbrtowc.m4: Add comment.
126884         Module memcasecmp.
126885         * m4/memcasecmp.m4: New file.
126887         Module memcoll.
126888         * m4/memcoll.m4: New file.
126890         Module unicodeio.
126891         * m4/unicodeio.m4: New file.
126893         Module rpmatch.
126894         * m4/rpmatch.m4: New file.
126896         Module yesno.
126897         * m4/yesno.m4: New file.
126899         Module exitfail.
126900         * m4/exitfail.m4: New file.
126902         Module c-stack.
126903         * m4/c-stack.m4 (gl_C_STACK): New macro.
126904         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
126906         Module error.
126907         * m4/error.m4 (gl_ERROR): New macro.
126908         (jm_PREREQ_ERROR): Use onceonly macros.
126910         Module fatal.
126911         * m4/fatal.m4: New file.
126913         Module getloadavg.
126914         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
126915         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
126917         Module getpagesize.
126918         * m4/getpagesize.m4: New file.
126920         Module getusershell.
126921         * m4/getusershell.m4: New file.
126923         Module physmem.
126924         * m4/physmem.m4: New file.
126926         Module posixver.
126927         * m4/posixver.m4: New file.
126929         Module quotearg.
126930         * m4/quotearg.m4: New file.
126932         Module quote.
126933         * m4/quote.m4: New file.
126935         Module readutmp.
126936         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
126938         Module sig2str.
126939         * m4/sig2str.m4: New file.
126941         Other.
126942         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
126943         ulonglong.m4.
126944         * m4/intmax_t.m4: New file.
126945         * m4/d-type.m4: Indentation.
126946         * m4/jm-macros.m4: Update.
126947         * m4/prereq.m4 (jm_PREREQ): Update.
126948         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
126949         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
126950         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
126951         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
126952         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
126953         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
126954         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
126955         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
126956         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
126957         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
126958         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
126959         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
126960         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
126961         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
126962         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
126963         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
126964         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
126965         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
126966         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
126968 2002-12-24  Bruno Haible  <bruno@clisp.org>
126970         * MODULES.txt: Update according to m4/ changes.
126972         Module gettext.
126973         * config.rpath: New file, from gettext-0.11.5.
126975         * modules/*: New module descriptions.
126976         * gnulib-tool: New file.
126977         * MODULES.html.sh: New file.
126979 2002-12-21  Karl Berry  <karl@gnu.org>
126981         * doc/fdl.texi: update to version 1.2.
126983 2002-12-19  Karl Berry  <karl@gnu.org>
126985         * config/config.guess: update from prep.
126987 2002-12-18  Bruno Haible  <bruno@clisp.org>
126989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
126990         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
126992 2002-12-17  Bruno Haible  <bruno@clisp.org>
126994         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
126995         stdlib.h, string.h.
126997 2002-12-17  Bruno Haible  <bruno@clisp.org>
126999         * lib/canon-host.c (strdup): Remove unused declaration.
127001         * lib/fsusage.c: Include full_read.h.
127002         (get_fs_usage): Use full_read instead of safe_read.
127004         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
127006 2002-12-12  Karl Berry  <karl@gnu.org>
127008         * config/config.guess: update from prep.
127010 2002-12-11  Bruno Haible  <bruno@clisp.org>
127012         * m4/setenv.m4: New file, from gettext-0.11.5.
127014 2002-12-11  Bruno Haible  <bruno@clisp.org>
127016         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
127017         not unsetenv().
127018         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
127019         modifications:
127021         2002-12-11  Bruno Haible  <bruno@clisp.org>
127023                 * setenv.c (alloca): Fall back to malloc.
127024                 (freea): New macro.
127025                 (setenv): Use freea() to free memory allocated with alloca().
127027         2002-11-13  Bruno Haible  <bruno@clisp.org>
127029                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
127030                 function declarations.
127031                 * unsetenv.c (unsetenv): Likewise.
127033         2002-03-04  Bruno Haible  <bruno@clisp.org>
127035                 Portability to AIX 4.3.3.
127036                 * unsetenv.c: New file, extracted from setenv.c.
127037                 * setenv.c: Move the unsetenv() function to unsetenv.c.
127039         2001-12-20  Bruno Haible  <bruno@clisp.org>
127041                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
127042                 use malloc instead. For SunOS 4.
127044         2001-12-11  Bruno Haible  <bruno@clisp.org>
127046                 * setenv.c: Declare alloca.
127047                 (compar_fn_t): New typedef.
127048                 (KNOWN_VALUE, STORE_VALUE): Use it.
127050         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
127051         setenv.h.
127053 2002-12-10  Paul Eggert  <eggert@twinsun.com>
127055         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
127056         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
127057         Choose values that are less likely to collide with system fnmatch
127058         options.
127059         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
127060         defined (e.g., a pure POSIX system).
127061         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
127062         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
127064 2002-12-06  Paul Eggert  <eggert@twinsun.com>
127066         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
127067         a pain in practice to deal with generated m4 files.  This change
127068         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
127070         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
127071         and jm-glibc-io.m4, as they are no longer a special case.
127072         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
127073         kludge and the auto-generation stuff.  Check only whether the
127074         functions are declared, not whether they exist, since older hosts
127075         that don't declare the functions can't use the optimization anyway.
127077 2002-12-06  Jim Meyering  <jim@meyering.net>
127079         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
127081         Merge in changes from libc's misc/error.c, in preparation
127082         for the merge of gnulib's changes back into libc.
127084         * lib/error.c (_): Define only if not already defined.
127085         Move definition to follow all #include directives.
127086         Include unlocked-io.h only if !_LIBC.
127087         [_LIBC]: Include <libio/libioP.h>.
127088         [USE_IN_LIBIO]: Include <libio/iolibio.h>
127089         (fflush): Tweak definition to use INTUSE.
127090         (putc): Define.
127092 2002-12-05  Paul Eggert  <eggert@twinsun.com>
127094         * lib/alloca.c [defined emacs]: Include "lisp.h".
127095         (xalloc_die) [defined emacs]: New macro.
127096         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
127097         [! defined emacs]: Include <xalloc.h>.
127098         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
127099         (pointer): Typedef to POINTER_TYPE *.
127100         (malloc): Remove decl; we now always use xmalloc.
127101         (alloca): Use old-style definition, since Emacs needs this.
127102         Check for arithmetic overflow when computing combined size.
127104 2002-12-04  Paul Eggert  <eggert@twinsun.com>
127106         Do not generate unlocked-io.h automatically, since it's easier to
127107         maintain it by hand.
127109         * lib/unlocked-io.h: New file, from GNU diffutils,
127110         but with proper copyright notice and attribution.
127111         * lib/gen-uio: Remove.
127112         * lib/Makefile.am: Add copyright notice.
127113         (libfetish_a_SOURCES): Add unlocked-io.h.
127114         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
127115         (DISTCLEANFILES, io_functions): Remove macros.
127116         (EXTRA_DIST): Remove gen_uio.
127117         (unlocked-io.h): Remove rule.
127119 2002-12-04  Jim Meyering  <jim@meyering.net>
127121         Reflect the fact that stat.c and lstat.c are no longer generated.
127122         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
127123         (DISTCLEANFILES): Likewise.
127124         (EXTRA_DIST): Likewise.
127125         (all_local): Don't depend on stat.c or lstat.c.
127126         (stat.c, lstat.c): Remove rules.
127127         (EXTRA_DIST): Remove xstat.in.
127129         * lib/xstat.in: Remove file.  Contents moved into stat.c.
127130         * lib/stat.c: New file.  Contents mostly from xstat.in.
127131         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
127132         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
127134         * lib/safe-read.c: Rework so that it may serve to define safe_write,
127135         too.
127136         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
127138 2002-12-03  Jim Meyering  <jim@meyering.net>
127140         * lib/safe-read.c, safe-write.c: Change variable names and comments,
127141         but not semantics, to minimize the differences between these two files.
127142         (safe_read): Change comment to mention SAFE_READ_ERROR.
127144         * lib/safe-read.c (IS_EINTR): Define.
127145         (safe_read): Use IS_EINTR in place of in-function cpp directives.
127147 2002-12-02  Jim Meyering  <jim@meyering.net>
127149         * lib/safe-read.c (EINTR): Define.
127150         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
127151         (INT_MAX): Provide fallback.
127152         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
127154         * lib/safe-read.h (SAFE_READ_ERROR): Define.
127156 2002-12-02  Bruno Haible  <bruno@clisp.org>
127158         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
127159         Define, taken from safe-read.c.
127160         (INT_MAX): Provide fallback.
127161         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
127162         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
127164         * lib/safe-read.c (EINTR): Remove definition.
127165         (safe_read): Don't use EINTR if it is absent.
127167 2002-12-01  Jim Meyering  <jim@meyering.net>
127169         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
127170         zero.
127171         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
127173 2002-11-27  Paul Eggert  <eggert@twinsun.com>
127175         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
127176         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
127177         with `if (! (value < limit)) abort ();', for readability.
127179 2002-11-26  Karl Berry  <karl@gnu.org>
127181         * lib/strdup.c: copy from libc again, with jim's ok.
127182         * lib/.cppi-disable: re-add strdup.c
127184 2002-11-25  Karl Berry  <karl@gnu.org>
127186         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
127187         instead of "strtol.c".
127189 2002-11-25  Karl Berry  <karl@gnu.org>
127191         * config/install-sh: update from automake for variable quoting, $0 in
127192         error msgs, etc.
127194         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
127195         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
127196         entry.
127198 2002-11-25  Jim Meyering  <jim@meyering.net>
127200         * lib/mktime.c: Sync from libc, now that it has the latest fix.
127202 2002-11-24  Karl Berry  <karl@gnu.org>
127204         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
127205         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
127207 2002-11-24  Jim Meyering  <jim@meyering.net>
127209         Update from coreutils:
127211         * lib/mktime.c: Merge in changes from libc.
127213         Avoid a link-time failure on some Linux systems.
127214         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
127215         (otherwise).
127216         (__mon_yday): Declare with the STATIC attribute.
127217         (__mktime_internal): Likewise.
127218         Based on a report from Greg Schafer.
127220 2002-11-23  Jim Meyering  <jim@meyering.net>
127222         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
127223         Use `unsigned', not `int', as type of index.
127225         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
127227         * lib/fsusage.c: Remove unneeded parentheses around operands of
127228         `defined'.
127230 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127232         * lib/quotearg.h: Allow multiple inclusion by surrounding with
127233         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
127234         so that we can be included first.
127235         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
127236         * lib/quotearg.c: Include quotearg.h immediately after config.h.
127237         No need to include stddef.h or sys/types.h any more.
127238         Surround local include files with "", not "<>".
127239         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
127240         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
127241         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
127242         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
127243         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
127244         (ISPRINT): Remove; no longer needed now that we assume C89.
127246         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
127247         Preserve errno.
127249         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
127250         quotearg_char): Use SIZE_MAX rather than
127251         (size_t) -1 when we are talking about "infinity".
127253         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
127255 2002-11-22  Paul Eggert  <eggert@twinsun.com>
127257         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
127258         hint that one should use `if (! x) abort ();' rather than `assert
127259         (x);', and anyway it's one less thing to worry about configuring.
127260         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
127261         hash_rehash, hash_insert): Use abort rather than assert.
127263 2002-11-22  Bruno Haible  <bruno@clisp.org>
127265         * lib/safe-read.h: Assume C89. Add comments.
127266         (safe_read): Change return type to size_t.
127267         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
127268         byte counts > SSIZE_MAX correctly.
127269         * lib/safe-write.h: New file.
127270         * lib/safe-write.c: New file.
127271         * lib/full-read.h: New file.
127272         * lib/full-read.c: New file.
127273         * lib/full-write.h: Assume C89. Add comments.
127274         * lib/full-write.c: Include safe-write.h.
127275         (full_write): Rewritten to use safe_write.
127276         Suggested by Jim Meyering and Paul Eggert.
127278 2002-11-21  Jim Meyering  <jim@meyering.net>
127280         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
127282         Merge in changes from the coreutils.
127284         2002-09-25  Paul Eggert  <eggert@twinsun.com>
127285         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
127286         <stdint.h>.
127287         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
127288         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
127289         int.  Work more efficiently if X is the same width as uintmax_t.
127290         Do not compare X to -1, to avoid bogus compiler warning.
127291         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
127292         Don't assume that f_frsize and f_bsize are the same type.
127294         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
127295         warning on FreeBSD.
127297         * lib/makepath.c (make_path): Restore umask *before* creating the final
127298         component.
127299         (make_path): Minor reformatting.
127301         * lib/xmalloc.c: Adjust to work with new autoconf macros,
127302         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
127303         HAVE_MALLOC/HAVE_REALLOC.
127305         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
127306         dummy ones.  At least on GNU/Linux systems, `auto' means something
127307         else.
127308         From Michael Stone.
127310 2002-11-21  Bruno Haible  <bruno@clisp.org>
127312         Remove case insensitive option matching.
127313         * lib/argmatch.h (argcasematch): Remove declaration.
127314         (ARGCASEMATCH): Remove macro.
127315         (__xargmatch_internal): Remove case_sensitive argument.
127316         (XARGMATCH): Update.
127317         (XARGCASEMATCH): Remove macro.
127318         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
127319         case_sensitive argument.
127320         (argcasematch): Remove function.
127321         (__xargmatch_internal): Remove case_sensitive argument.
127322         (main): Use XARGMATCH instead of XARGCASEMATCH.
127324         * lib/xmalloc.c: Change compile-time error message. Add comment about
127325         required autoconf version.
127327 2002-11-20  Paul Eggert  <eggert@twinsun.com>
127329         Merge argmatch cleanups from Bison.  Assume C89.
127331         * lib/argmatch.c: Include config.h here, not in argmatch.h.
127332         Include stdlib.h, for EXIT_FAILURE.
127333         Always include <string.h>, since we assume C89.
127334         (EXIT_FAILURE): Remove pre-C89 bug workaround.
127335         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
127336         Include <stddef.h> instead, since it's all we need for size_t.
127337         (PARAMS): Remove.  All uses removed.
127338         (ARRAY_CARDINALITY): Do not bother to #undef.
127339         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
127340         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127341         Remove unnecessary parentheses.
127342         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
127343         Insert necessary parentheses.
127344         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
127345         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
127347 2002-11-19  Bruno Haible  <bruno@clisp.org>
127349         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
127350         * lib/mbswidth.h: Include <stddef.h>, for size_t.
127352         * lib/mbswidth.h (PARAMS): Remove macro.
127353         (mbswidth, mbsnwidth): Use ANSI C function declarations.
127354         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
127356         * lib/gcd.h (PARAMS): Remove macro.
127357         (gcd): Use ANSI C function declarations.
127358         * lib/gcd.c (gcd): Likewise.
127360 2002-11-15  Bruno Haible  <bruno@clisp.org>
127362         * lib/strcspn.c: Include <stddef.h>.
127363         (strcspn): Use ANSI C function declaration. Change return type to
127364         size_t. Use NULL.
127365         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
127366         (strpbrk): Use NULL.
127367         * lib/strpbrk.h (PARAMS): Remove macro.
127368         (strpbrk): Use ANSI C function declaration.
127369         * lib/strstr.c: Don't include <sys/types.h>.
127370         * lib/strstr.h (PARAMS): Remove macro.
127371         (strstr): Use ANSI C function declarations.
127373 2002-11-14  Karl Berry  <karl@gnu.org>
127375         * config/mkinstalldirs: `do' on separate line, instead of
127376         `for var; do'.
127378 2002-11-06  Bruno Haible  <bruno@clisp.org>
127380         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
127381         * lib/gcd.c (gcd): Likewise.
127383 2002-11-05  Bruno Haible  <bruno@clisp.org>
127385         * lib/gcd.h: New file, from gettext-0.11.5.
127386         * lib/gcd.c: New file, from gettext-0.11.5.
127388 2002-11-05  Bruno Haible  <bruno@clisp.org>
127390         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127391         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127392         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127393         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
127395         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
127396         <libintl.h>.
127397         * lib/makepath.c: Include gettext.h instead of <locale.h> and
127398         <libintl.h>.
127400         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
127401         * lib/human.c: Include gettext.h instead of <libintl.h>.
127402         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
127403         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
127404         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
127405         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
127406         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
127407         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
127408         (textdomain): Remove definition.
127409         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
127411         * lib/long-options.c: Remove include of <libintl.h> and definition of
127412         _.
127413         * lib/same.c: Remove include of <libintl.h> and definition of _.
127415 2002-11-04  Owen Taylor  <otaylor@redhat.com>
127417         * lib/config.charset: A few additions for Solaris.
127419 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127421         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
127422         * lib/localcharset.c (locale_charset): Declare as extern "C".
127424 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
127426         * lib/config.charset: msdos in uk_UA uses CP1125.
127428 2002-11-04  Bruno Haible  <bruno@clisp.org>
127430         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
127431         * lib/strcase.h: New file, from GNU gettext-0.11.5.
127432         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
127433         * lib/strstr.h: New file, from GNU gettext-0.11.5.
127434         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
127436 2002-11-04  Bruno Haible  <bruno@clisp.org>
127438         * lib/localcharset.c (locale_charset): Don't return an empty string.
127440 2002-11-04  Bruno Haible  <bruno@clisp.org>
127442         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
127443         aliases.
127445 2002-11-04  Bruno Haible  <bruno@clisp.org>
127447         * lib/config.charset: Update for newest glibc. Add canonical names
127448         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
127450 2002-11-04  Bruno Haible  <bruno@clisp.org>
127452         * lib/config.charset: Add support for NetBSD.
127454 2002-11-04  Bruno Haible  <bruno@clisp.org>
127456         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
127458 2002-11-01  Bruno Haible  <bruno@clisp.org>
127460         * configure.in: Add AC_CONFIG_AUX_DIR call.
127461         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
127462         test/Makefile.
127463         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
127465 2002-09-28  Karl Berry  <karl@gnu.org>
127467         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
127468         installed automake until the next release, since changes have been
127469         made.
127471 2002-09-25  Karl Berry  <karl@gnu.org>
127473         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
127474         * lib/getopt*: copy from libc/posix.
127475         * lib/gettext.h: copy from gettext.
127476         * lib/.cppi-disable: add strdup.c, gettext.h.
127478 2002-09-25  Karl Berry  <karl@gnu.org>
127480         * config/srclist.txt: enable gettext.h check.
127481         * config/config.{guess,sub}: update from prep.
127482         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
127483                 from automake 1.6.3.
127484         See srclist*.
127486 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
127488         * regex.c (PATFETCH): Remove the translating fetch.
127489         (PATFETCH_RAW): Rename to PATFETCH.
127490         (set_image_of_range): New fun.
127491         (SET_RANGE_TABLE_WORK_AREA): Use it.
127492         (regex_compile): Don't translate the pattern chars so eagerly.
127493         Only do it when inserting an `exactn' bytecode or when handling
127494         a char-range.
127495         (mutually_exclusive_p): Avoid empty statement.
127497 2002-07-06  Jim Meyering  <meyering@lucent.com>
127499         * m4/README: Don't mention Makefile.am.in.
127500         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
127502 2002-07-01  Jim Meyering  <meyering@lucent.com>
127504         * lib/c-stack.c: Include sys/time.h.
127505         From Volker Borchert.
127507 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127509         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
127511 2002-06-26  Paul Eggert  <eggert@twinsun.com>
127513         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
127514         New macro.  Use it uniformly instead of
127515         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
127516         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
127517         reported by Vin Shelton.
127519 2002-06-22  Paul Eggert  <eggert@twinsun.com>
127521         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
127522         Do not assume SA_SIGINFO behavior.
127523         Bug reported by Jim Meyering on NetBSD 1.5.2.
127525 2002-06-22  Jim Meyering  <meyering@lucent.com>
127527         * m4/c-stack.m4: New file, from diffutils-2.8.2.
127528         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
127530         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
127531         now that configure.ac uses AC_GNU_SOURCE.
127532         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
127533         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
127535         Update to latest tools.  Suggestions from Paul Eggert.
127536         * m4/stdbool.m4: New file, from diffutils-2.8.2.
127537         * m4/gnu-source.m4: Update from diffutils-2.8.2.
127538         * m4/fnmatch.m4: Likewise.
127539         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
127540         to AC_HEADER_STDBOOL
127542 2002-06-22  Jim Meyering  <meyering@lucent.com>
127544         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
127545         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
127547 2002-06-22  Jim Meyering  <meyering@lucent.com>
127549         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
127551         * lib/exitfail.c, exitfail.h: Likewise.
127552         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
127554         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
127555         of fnmatch.h.
127556         (EXTRA_DIST): Add fnmatch_loop.c.
127557         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
127559         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
127560         * lib/fnmatch.c: Update from diffutils-2.8.2.
127561         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
127562         * lib/fnmatch.h: Remove file.
127564 2002-06-21  Jim Meyering  <meyering@lucent.com>
127566         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
127567         * m4/mbrtowc.m4: Likewise.
127569         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
127570         * m4/mbswidth.m4: Reflect name change:
127571         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
127572         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
127574         * m4/lib-link.m4: Update from gettext-0.11.2.
127575         * m4/gettext.m4: Likewise.
127577         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
127578         From Alfred M. Szmidt.
127580 2002-06-18  Paul Eggert  <eggert@twinsun.com>
127582         * lib/file-type.h: Report an error if neither S_ISREG nor
127583         S_IFREG is defined, instead of using a test specific to glibc
127584         2.2.  This should be safe, since POSIX requires S_ISREG and
127585         Unix Version 7 had S_IFREG.  We don't need to check for
127586         <sys/types.h> since we don't use any symbols that it defines.
127588 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
127590         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
127591         $@-t, so that each temporary file name is unique and valid in the first
127592         8 characters, for operation under DOS.
127594 2002-06-15  Paul Eggert  <eggert@twinsun.com>
127596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
127598 2002-06-15  Jim Meyering  <meyering@lucent.com>
127600         Work even with DJGPP 2.03, which lacks support for symlinks.
127601         From Richard Dawe.
127602         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
127603         is defined.
127604         * lib/lchown.c (S_ISLNK): Likewise.
127606 2002-06-15  Jim Meyering  <meyering@lucent.com>
127608         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
127609         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
127610         have been included before this file.
127612 2002-06-14  Jim Meyering  <meyering@lucent.com>
127614         * lib/file-type.h: Use the version from diffutils-2.8.2.
127615         * lib/file-type.c: Likewise.
127617 2002-06-07  Jim Meyering  <meyering@lucent.com>
127619         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
127620         They're needed at least for NetBSD 1.5.2.
127621         ($statxfs_includes): Include those same headers.
127622         ($statxfs_includes): Include sys/vfs.h if available.
127623         ($statxfs_includes): Likewise for sys/statvfs.h.
127624         Check for the following members in both structs statfs and statvfs:
127625         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
127627 2002-06-01  Jim Meyering  <meyering@lucent.com>
127629         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
127630         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
127632 2002-05-28  Jim Meyering  <meyering@lucent.com>
127634         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
127635         Reported by Volker Borchert.
127637 2002-05-27  Jim Meyering  <meyering@lucent.com>
127639         Fix a problem seen only on nonconforming systems whereby ls.c's
127640         use of localtime, and then of gettimeofday would cause trouble:
127641         the localtime call used to initialize rpl_gettimeofday's save
127642         mechanism would clobber ls's current local time information so
127643         that in any long listing the first file would always be listed
127644         with date 1970-01-01.  Analysis by Volker Borchert.
127646         * lib/gettimeofday.c (localtime): Undefine.
127647         (rpl_localtime): New function.
127649 2002-05-27  Jim Meyering  <meyering@lucent.com>
127651         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
127652         localtime.
127654         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
127655         use the replacement function; it wouldn't resolve at link time.
127656         Reported by Volker Borchert.
127658 2002-05-22  Jim Meyering  <meyering@lucent.com>
127660         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
127661         file-type.h.
127662         * lib/file-type.h: New file.
127663         * lib/file-type.c (file_type): New file/function.  Extracted from
127664         diffutils.
127666 2002-04-30  Jim Meyering  <meyering@lucent.com>
127668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
127670 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127672         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
127674 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127676         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
127677         Do not check for alloca.h (no longer used) or stdbool.h (was never
127678         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
127680 2002-04-29  Paul Eggert  <eggert@twinsun.com>
127682         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
127684 2002-04-29  Jim Meyering  <meyering@lucent.com>
127686         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
127687         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
127688         Use AC_FUNC_STRNLEN here instead.
127690         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
127691         With autoconf-2.53a, it's part of AC_PROG_CC.
127693 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127695         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
127696         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
127698 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127700         * lib/sig2str.h, lib/sig2str.c: New files.
127701         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
127703 2002-04-28  Paul Eggert  <eggert@twinsun.com>
127705         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
127706         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
127707         of 127, since 64 is the largest conceivable number for ancient
127708         nonstandard hosts.
127709         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
127711 2002-04-28  Jim Meyering  <meyering@lucent.com>
127713         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
127715 2002-04-24  Jim Meyering  <meyering@lucent.com>
127717         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
127718         (jm_PREREQ): Use it.
127720         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
127721         mach/mach.h fcntl.h.
127722         Check for this function: setlocale.
127724 2002-04-24  Jim Meyering  <meyering@lucent.com>
127726         * lib/gettext.h: New file, from Gettext.
127727         * lib/Makefile.am (INCLUDES): Remove -I../intl.
127728         (libfetish_a_SOURCES): Add gettext.h.
127730 2002-04-16  Jim Meyering  <meyering@lucent.com>
127732         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
127733         ut_pid, ut_id, ut_exit.
127735 2002-04-16  Jim Meyering  <meyering@lucent.com>
127737         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
127738         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
127739         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
127741 2002-04-12  Jim Meyering  <meyering@lucent.com>
127743         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
127744         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
127745         existence of the getmntinfo function.  Needed for Darwin 5.3.
127747         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
127748         This is necessary at least on Darwin 5.3.
127750         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
127751         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
127752         strnlen.o in the library, and that makes some versions of ranlib
127753         object.
127755 2002-04-12  Jim Meyering  <meyering@lucent.com>
127757         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
127759 2002-04-09  Jim Meyering  <meyering@lucent.com>
127761         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
127762         to be more precise.  Rather than saying we're checking whether the
127763         function `works', say what we're testing.
127764         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
127765         Reported by Bruno Haible.
127767 2002-03-10  Jim Meyering  <meyering@lucent.com>
127769         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
127770         Suggestion from Santiago Vila.
127772 2002-03-08  Jim Meyering  <meyering@lucent.com>
127774         * lib/rename.c: Mention that this wrapper is needed also on
127775         mips-dec-ultrix4.4 systems.
127777 2002-03-02  Jim Meyering  <meyering@lucent.com>
127779         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
127780         not HAVE_CLOCK_SETTIME.
127782 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127784         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
127785         Check for clock_settime.
127787 2002-02-27  Paul Eggert  <eggert@twinsun.com>
127789         * lib/nanosleep.h: Rename to....
127790         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
127792         * lib/gettime.c: New file.
127793         * lib/settime.c: New file.
127794         * lib/stime.c: Remove.
127796         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
127797         timespec.h.  Remove nanosleep.h.
127799 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127801         * m4/acl.m4: New file.
127802         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
127803         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
127805 2002-02-25  Paul Eggert  <eggert@twinsun.com>
127807         * lib/acl.c, lib/acl.h: New files.
127808         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
127810 2002-02-24  Jim Meyering  <meyering@lucent.com>
127812         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
127813         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
127814         cause trouble.  Reported by Nelson Beebe.
127816 2002-02-23  Paul Eggert  <eggert@twinsun.com>
127818         * lib/path-concat.c (xpath_concat): Reorder code to pacify
127819         compilers that don't know that xalloc_die never returns.
127821 2002-02-20  Jim Meyering  <meyering@lucent.com>
127823         * lib/getdate.c: Regenerate using bison-1.33.
127825 2002-02-17  Jim Meyering  <meyering@lucent.com>
127827         * config/config.guess (main): Don't use `head -1'; it's no longer
127828         portable. Use `sed 1q' instead.
127830 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
127832         * m4/codeset.m4: Upgrade to gettext-0.11.
127833         * m4/gettext.m4: Upgrade to gettext-0.11.
127834         * m4/glibc21.m4: Upgrade to gettext-0.11.
127835         * m4/iconv.m4: Upgrade to gettext-0.11.
127836         * m4/isc-posix.m4: Upgrade to gettext-0.11.
127837         * m4/lcmessage.m4: Upgrade to gettext-0.11.
127838         * m4/lib-ld.m4: New file, from gettext-0.11.
127839         * m4/lib-link.m4: New file, from gettext-0.11.
127840         * m4/lib-prefix.m4: New file, from gettext-0.11.
127841         * m4/progtest.m4: Upgrade to gettext-0.11.
127843 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127845         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
127846         (jm_PREREQ): Use it.
127848 2002-02-15  Paul Eggert  <eggert@twinsun.com>
127850         * lib/posixver.c, lib/posixver.h: New files.
127851         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127853 2002-02-02  Paul Eggert  <eggert@twinsun.com>
127854             Bruno Haible  <bruno@clisp.org>
127856         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
127857         (fwrite_success_callback): New declaration.
127858         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
127859         print_unicode_char. Call failure callback instead of error.
127860         (fwrite_success_callback): New function.
127861         (exit_failure_callback): New function.
127862         (fallback_failure_callback): New function.
127863         (print_unicode_char): Call unicode_to_mb.
127865 2002-01-26  Jim Meyering  <meyering@lucent.com>
127867         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
127868         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
127870 2002-01-26  Jim Meyering  <meyering@lucent.com>
127872         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
127874 2002-01-22  Paul Eggert  <eggert@twinsun.com>
127876         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
127878 2002-01-22  Jim Meyering  <meyering@lucent.com>
127880         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
127881         Otherwise, some versions of automake would omit the rule that makes
127882         Makefile from Makefile.in.
127884 2002-01-21  Paul Eggert  <eggert@twinsun.com>
127886         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
127887         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
127888         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
127889         (memcoll): Set errno to zero if there is no error.
127891         * lib/quotearg.c (quotearg_buffer_restyled):
127892         Fix bug with quoting buffers containing NUL when backslashing escapes.
127893         This bug was exposed by the other changes in this patch.
127894         (quotearg_n_options): New arg ARGSIZE.
127895         All callers changed.
127896         (quoting_options_from_style): New function.
127897         (quotearg_n_style): Use it.
127898         (quotearg_n_style_mem): New function.
127900         * lib/quotearg.h (quotearg_n_style_mem): New function.
127902 2002-01-19  Jim Meyering  <meyering@lucent.com>
127904         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
127905         Remove useless quotes: DF_PROG="df".
127906         * m4/strnlen.m4: New file.
127908 2002-01-16  Paul Eggert  <eggert@twinsun.com>
127910         * lib/backupfile.c (ISDIGIT): Comment fix.
127911         * lib/getdate.y (ISDIGIT): Likewise.
127912         * lib/posixtm.c (ISDIGIT, year): Likewise.
127913         * lib/strverscmp.c (ISDIGIT): Likewise.
127914         * lib/userspec.c (ISDIGIT): Likewise.
127916 2002-01-16  Jim Meyering  <meyering@lucent.com>
127918         * lib/getdate.y: Add three semicolons, each just before a closing
127919         brace. Bison (as of version 1.31) no longer papers over that mistake.
127921 2002-01-05  Jim Meyering  <meyering@lucent.com>
127923         * lib/version-etc.c (version_etc_copyright): Update copyright year.
127925 2001-12-19  Paul Eggert  <eggert@twinsun.com>
127927         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
127928         not silently exit merely because the output buffer happens to
127929         have nothing pending.
127931 2001-12-18  Paul Eggert  <eggert@twinsun.com>
127933         See the big note in ../ChangeLog.
127934         * lib/human.c (suffixes): Prefer K to k for 1024.
127935         (generate_suffix_backwards): New function.
127936         (human_readable_inexact): Use it.
127937         * lib/xstrtol.c (__xstrtol): If there is no number but there
127938         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
127939         Accept 'K' as well as 'k'.
127941 2001-12-15  Jim Meyering  <meyering@lucent.com>
127943         * lib/regex.h (__restrict_arr): Update from libc.
127945         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
127946         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
127947         (STREQ): Define.
127949 2001-12-14  Jim Meyering  <meyering@lucent.com>
127951         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
127952         Suggestion from Bruno Haible.
127954 2001-12-10  Jim Meyering  <meyering@lucent.com>
127956         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
127957         xrealloc, Instead, include "xalloc.h".
127958         (initbuffer): Don't cast xmalloc return value to char*.
127959         (readline): Reword comment.
127960         Don't cast xrealloc return value to char*
127961         Return NULL, not 0.
127963 2001-12-09  Jim Meyering  <meyering@lucent.com>
127965         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
127966         about `signed and unsigned type in conditional expression'.
127967         * lib/posixtm.c (posix_time_parse): Likewise.
127969         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
127971         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
127972         to avoid a pedantic warning.
127974         * lib/getstr.c: Don't include assert.h.
127975         (getstr): Remove warning-evoking assertions.
127976         Return -1 if offset parameter is out of bounds.
127977         Change the type of a local from int to size_t.
127979         * lib/strftime.c (my_strftime_localtime_r): Include this function
127980         definition in the `#if ! HAVE_TM_GMTOFF' block.
127982         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
127983         Include xalloc.h instead.
127985 2001-12-02  Jim Meyering  <meyering@lucent.com>
127987         * lib/tempname.c: Don't declare getenv, thus reverting the change of
127988         2001-11-18.  It's no longer necessary, now that stdlib.h is always
127989         included.
127991         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
127992         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
127994 2001-11-30  Akim Demaille  <akim@epita.fr>
127996         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
127997         before being defined.
127999 2001-11-27  Paul Eggert  <eggert@twinsun.com>
128001         * lib/quotearg.h (quotearg_n, quotearg_n_style):
128002         First arg is int, not unsigned.
128003         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
128004         (SIZE_MAX, UINT_MAX): New macros.
128005         (quotearg_n_options): Abort if N is negative.
128006         Avoid overflow check on hosts where size_t is 64 bits and int
128007         is 32 bits, as overflow is impossible there.
128008         Fix off-by-one typo that caused unnecessary reallocation.
128010 2001-11-27  Jim Meyering  <meyering@lucent.com>
128012         * lib/tempname.c: Merge with version from libc.
128013         * lib/regex.c: Likewise.
128015         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
128016         systems for which STDC_HEADERS is 0, it was not included, resulting in
128017         a warning about an integer-to-pointer conversion problem with getenv.
128018         Reported by Volker Borchert.
128020 2001-11-26  Jim Meyering  <meyering@lucent.com>
128022         * lib/gtod.h: Remove file.
128023         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
128024         * lib/gettimeofday.c: Don't include gtod.h.
128025         (GTOD_init): Remove function.
128026         (rpl_gettimeofday): Do its job here instead, rather than aborting.
128027         Suggestion from Volker Borchert.
128029 2001-11-23  Jim Meyering  <meyering@lucent.com>
128031         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
128032         it.
128033         * lib/hash.c (struct hash_table): Define it here instead.
128035 2001-11-22  Jim Meyering  <meyering@lucent.com>
128037         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
128039 2001-11-20  Jim Meyering  <meyering@lucent.com>
128041         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
128042         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
128044 2001-11-19  Jim Meyering  <meyering@lucent.com>
128046         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
128047         directory.  Use "conftestXXXXXX" as the template.
128048         Suggestion from Paul Eggert.
128050         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
128051         immediately, so the test doesn't mistakenly hit the max-open-files
128052         limit.
128054 2001-11-18  Paul Eggert  <eggert@twinsun.com>
128056         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
128057         (TEMPORARIES): New macro.
128058         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
128059         removes an artificial limitation (e.g. HP-UX 10.20, where
128060         TMP_MAX is 17576).
128062 2001-11-18  Jim Meyering  <meyering@lucent.com>
128064         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
128066 2001-11-18  Jim Meyering  <meyering@lucent.com>
128068         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
128069         on SunOS 4.
128071         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
128072         files will be created before anything else.
128074 2001-11-17  Paul Eggert  <eggert@twinsun.com>
128076         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
128077         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
128079 2001-11-17  Jim Meyering  <meyering@lucent.com>
128081         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
128082         Prompted by a report from Bob Proulx.
128084         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
128085         Instead, require UTILS_FUNC_MKSTEMP.
128087 2001-11-17  Jim Meyering  <meyering@lucent.com>
128089         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
128090         Now, that's done as part of AC_FUNC_STRTOD.
128092 2001-11-17  Jim Meyering  <meyering@lucent.com>
128094         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
128095         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
128096         rather than group writable.  Patch by Juan F. Codagnone.
128098         * lib/readtokens.c: Remove explicit declarations of xmalloc and
128099         xrealloc, Instead, include "xalloc.h".
128101         * lib/mountlist.c: Include unlocked-io.h after all system headers.
128102         Remove explicit declarations of xmalloc, xrealloc,
128103         and xstrdup.  Instead, include "xalloc.h".
128105         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
128106         unlocked-io.h.
128107         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
128108         Likewise.
128109         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
128111         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
128112         Reported by Padraig Brady.
128114         * lib/mkstemp.c: #undef mkstemp.
128115         Include config.h.
128116         (rpl_mkstemp): Rename from mkstemp.
128117         Protoize.
128119 2001-11-16  Jim Meyering  <meyering@lucent.com>
128121         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
128122         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
128123         determine the amount of total physical memory, use pstat_getstatic.
128124         HPUX-11 doesn't define _SC_PHYS_PAGES.
128125         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
128126         If sysconf couldn't be used to determine the amount of available
128127         physical memory, use both pstat_getstatic and pstat_getdynamic.
128128         Based on a patch from Bob Proulx.
128130 2001-11-10  Jim Meyering  <meyering@lucent.com>
128132         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
128133         (jm_PREREQ): Use it.
128135 2001-11-09  Jim Meyering  <meyering@lucent.com>
128137         * m4/jm-macros.m4: Require autoconf-2.52f.
128138         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
128139         Use these AC_-prefixed names, not the AM_-prefixed ones.
128141         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
128143 2001-11-05  Jim Meyering  <meyering@lucent.com>
128145         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
128147 2001-11-04  Jim Meyering  <meyering@lucent.com>
128149         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
128150         $DEFS.
128152 2001-11-03  Jim Meyering  <meyering@lucent.com>
128154         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
128155         of AC_DEFUN.
128157         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
128158         know the name of the variable in the macro definition.
128160 2001-11-03  Jim Meyering  <meyering@lucent.com>
128162         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
128163         in argmatch_to_argument call.
128165         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
128166         argument.
128168         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
128169         e.g., a fault due to an attempt to free a NULL pointer.
128171 2001-11-01  Jim Meyering  <meyering@lucent.com>
128173         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
128174         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
128176 2001-11-01  Jim Meyering  <meyering@lucent.com>
128178         * lib/dirfd.c, lib/dirfd.h: New files.
128179         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
128181         * lib/hash.c (hash_print) [TESTING]: Clean up.
128183 2001-10-22  Paul Eggert  <eggert@twinsun.com>
128185         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
128186         to avoid a warning if -Wall.
128188 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
128190         * README: New file
128191         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
128192         (per RMS's instructions, this is now the canonical source)
128193         * lgpl/, gpl/: New directories.
128195 2001-10-21  Paul Eggert  <eggert@twinsun.com>
128197         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
128199 2001-10-21  Jim Meyering  <meyering@lucent.com>
128201         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
128202         this code would end up calling gettext even in packages built
128203         with --disable-nls.
128204         * lib/getopt.c (_): Likewise.
128205         * lib/regex.c (_): Likewise.
128207 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128209         * m4/error.m4 (jm_PREREQ_ERROR):
128210         Do not invoke AC_CHECK_FUNCS with strerror_r, as
128211         AC_FUNC_STRERROR_R does that.
128212         Check for strerror declaration.
128214         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
128215         are supposed to have them these days.
128216         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
128217         Merge changes from latest Autoconf CVS.
128218         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
128219         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
128220         POSIX decided to standardize on the int flavor of strerror_r.
128222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
128224         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
128225         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
128226         Use strerror_r that is only a macro, even if it is not a function.
128227         (strerror): Check for HAVE_DECL_STRERROR before declaring.
128228         (private_strerror): Use prototypes, not old-style function definition.
128229         (print_errno_message): New function.
128230         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
128231         char*-flavored one.
128232         (error_tail, error, error_at_line): Use it.
128234 2001-10-11  Jim Meyering  <meyering@lucent.com>
128236         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
128237         and quote_n (1, ... to avoid clobbering a buffer.
128239 2001-10-05  Jim Meyering  <meyering@lucent.com>
128241         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
128242         hash-pjw.h.
128243         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
128244         * lib/hash-pjw.h: New file.
128246 2001-09-30  Jim Meyering  <meyering@lucent.com>
128248         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
128249         `struct fsstat' has the `f_fstypename' member.
128250         Use that to define FS_TYPE, which is now used to make
128251         the getfsstat link test tighter.
128253 2001-09-30  Jim Meyering  <meyering@lucent.com>
128255         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
128256         Include <sys/ucred.h>, for Apple Darwin.
128257         Include sys/mount.h and sys/fs_types.h only if available.
128258         (FS_TYPE): Define.
128259         (read_filesystem_list): Use FS_TYPE.
128261 2001-09-29  Paul Eggert  <eggert@twinsun.com>
128263         * lib/exclude.c (excluded_filename): 0 -> false, since it's
128264         a boolean context.
128266 2001-09-29  Jim Meyering  <meyering@lucent.com>
128268         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128269         [one-argument getmntent function]): Include stdio.h before mntent.h.
128270         SunOS 4.1.x needs it for the declaration of `FILE'.
128271         Patch by Volker Borchert.
128273         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
128274         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
128275         sys/fs_types.h, and make the link-test for getfsstat guard #include
128276         directives with appropriate #if HAVE_*_H tests so that we can
128277         detect getfsstat on Apple Darwin1.3.7 systems.
128278         Reported by Nelson Beebe.
128279         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
128281 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128283         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128284         #defines strtoimax.  Also treat the other strto* functions
128285         like strtoimax.
128287         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128288         Check for strtoul and strtoumax,
128289         as those declarations are made even in the signed case.
128290         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
128291         Likewise, for strtol and strtoimax.
128293 2001-09-28  Paul Eggert  <eggert@twinsun.com>
128295         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
128296         #defines strtoimax.  Also treat the other strto* functions
128297         like strtoimax.
128299         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
128300         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
128301         (strtoimax, strtoumax): Do not declare if already defined as a macro.
128303 2001-09-26  Jim Meyering  <meyering@lucent.com>
128305         Most macros in unlocked-io.h had the wrong number of arguments.
128306         * lib/gen-uio: New script.
128307         (USE_UNLOCKED_IO): Define to 1 if not already defined.
128308         * lib/unlocked-io.hin: Remove file.
128309         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
128310         rather than trying to embed it here.
128311         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
128312         Reported by Padraig Brady.
128314 2001-09-25  Volker Borchert  <bt@teknon.de>
128316         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
128317         `result'.
128319 2001-09-24  Jim Meyering  <meyering@lucent.com>
128321         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
128323 2001-09-23  Jim Meyering  <meyering@lucent.com>
128325         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
128326         instead of the mere test for existence of mntent.h.  The latter
128327         would get a false-positive on AIX 3.4 systems.
128328         In the outer getmntent if-block, don't die if neither of the getmntent
128329         tests succeeds.  Instead, just fall through and continue with the
128330         remaining tests.
128332 2001-09-23  Jim Meyering  <meyering@lucent.com>
128334         * lib/mountlist.c: Remove useless parentheses in #if directives.
128335         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
128336         the deprecated MOUNTED symbol is no longer defined in mntent.h.
128338 2001-09-22  Jim Meyering  <meyering@lucent.com>
128340         * m4/gettext.m4: New file.  From gettext.
128341         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
128342         * m4/progtest.m4: Likewise
128343         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
128344         * m4/glibc21.m4: Likewise.
128346         * m4/libintl.m4: Remove.  No longer used.
128348 2001-09-22  Jim Meyering  <meyering@lucent.com>
128350         * lib/localcharset.c: Update from latest gettext.
128351         * lib/config.charset: Likewise.
128353 2001-09-20  Jim Meyering  <meyering@lucent.com>
128355         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
128356         strtoimax.
128357         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
128358         strtoumax.
128360 2001-09-20  Jim Meyering  <meyering@lucent.com>
128362         * lib/xstrtol.c (strtoimax): Guard declaration with
128363         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
128364         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
128365         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
128366         (strtoumax): Likewise, for completeness (it wasn't necessary).
128368 2001-09-17  Paul Eggert  <eggert@twinsun.com>
128370         * lib/strtoimax.c (HAVE_LONG_LONG):
128371         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
128372         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
128373         to work around bug in IBM C compiler.
128375 2001-09-17  Jim Meyering  <meyering@lucent.com>
128377         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
128378         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
128379         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
128380         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
128381         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
128382         whenever the right hand side need not be expanded by the shell.
128384 2001-09-16  Paul Eggert  <eggert@twinsun.com>
128386         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
128387         library.  It's not correct, as some older glibcs are buggy.
128388         fnmatch wasn't fixed until glibc 2.2.
128390         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
128391         special shell magic here.
128393 2001-09-16  Jim Meyering  <meyering@lucent.com>
128395         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
128396         * m4/jm-macros.m4: Require it.
128398 2001-09-16  Jim Meyering  <meyering@lucent.com>
128400         * lib/mkdir.c: New file.
128402 2001-09-15  Jim Meyering  <meyering@lucent.com>
128404         * m4/jm-macros.m4: Check for help2man.
128406 2001-09-11  Jim Meyering  <meyering@lucent.com>
128408         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
128409         The body, by Paul Eggert, was moved here from configure.in.
128410         * m4/jm-macros.m4: Require UTILS_HOST_OS.
128412 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128414         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
128415         (jm_PREREQ): Use it.
128417 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128419         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
128420         Use ssize_t, not int, to store result of readlink.
128421         Check for ssize_t overflow as well as size_t overflow,
128422         as POSIX says the result of readlink is implementation-defined
128423         when ssize_t overflows.
128424         Remove unnecessary cast to char*.
128425         Use free+malloc instead of realloc, as the storage doesn't need
128426         to be preserved and it's clearer and can be more efficient that way.
128427         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
128428         * lib/xreadlink.h (xreadlink): Update prototype.
128430 2001-09-04  Paul Eggert  <eggert@twinsun.com>
128432         * lib/xgetcwd.c: Revert some of the previous change; intead,
128433         fix the HAVE_GETCWD_NULL code to behave more like the
128434         !HAVE_GETCWD_NULL code used to.
128436         Include "xalloc.h".
128437         (xgetcwd): Do not return NULL when memory is exhausted; instead,
128438         invoke xalloc_die.
128440 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128442         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
128443         sys/param.h, as pathmax.h includes them.
128445 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128447         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
128448         (jm_PREREQ_XGETCWD): New macro.
128450         * m4/getcwd.m4: New file.
128452 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128454         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
128455         like the HAVE_GETCWD_NULL code.
128456         Include pathmax.h if not HAVE_GETCWD.
128457         Do not include xalloc.h.
128458         (INITIAL_BUFFER_SIZE): New symbol.
128459         Do not use xmalloc / xrealloc, since the caller is responsible for
128460         handling errors.  Preserve errno around `free' during failure.
128461         Do not overrun buffer when using getwd.
128463 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128465         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
128466         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
128467         getcwd (NULL, 0).
128469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
128471         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
128472         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
128473         spotted by Jim Meyering.
128475 2001-09-03  Jim Meyering  <meyering@lucent.com>
128477         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
128478         failure.
128480 2001-09-02  Jim Meyering  <meyering@lucent.com>
128482         * lib/error.c: Update from GNU libc.
128484 2001-09-01  Jim Meyering  <meyering@lucent.com>
128486         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
128487         Used by df.
128489 2001-09-01  Jim Meyering  <meyering@lucent.com>
128491         * lib/xreadlink.c: New file.
128492         * lib/xreadlink.h: New file.
128493         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
128494         xreadlink.h.
128496         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
128497         doesn't conflict with sparc Solaris 7's definition in
128498         /usr/include/sys/int_types.h.
128500         * lib/exclude.c: Use `""', not `<>' to #include non-system header
128501         files.
128502         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
128503         and strncasecmp as r-values.  Unixware didn't have declarations.
128505 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128507         * lib/xstrtol.h: Add copyright notice.
128508         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
128509         LONGINT_INVALID_SUFFIX_CHAR.
128511 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128513         * lib/xstrtol.c (strtoimax): New decl.
128515 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128517         * lib/xgetcwd.c: Don't include pathmax.h.
128518         Include stdlib.h and unistd.h if available.
128519         Include xalloc.h.
128520         (xmalloc, xstrdup, free): Remove decls.
128521         (xgetcwd): Don't assume sizes fit in unsigned.
128522         Check for overflow when computing sizes.
128523         Simplify reallocation code.
128525 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128527         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
128528         a directory's st_size can have an arbitrary value, so the old
128529         usage could waste an arbitrary amount of memory.  All uses
128530         changed.
128531         * lib/savedir.h: Update prototype.
128533 2001-08-31  Paul Eggert  <eggert@twinsun.com>
128535         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
128537         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
128538         old strtoimax.c.
128540         Also, make the following further changes to make this file's
128541         configuration more similar to that of strtol.c:
128542         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
128543         (strtoumax, uintmax_t, strtoull, strtol): Remove.
128544         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
128545         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
128546         changed to signed values.
128548         And make the following changes as well:
128549         Fix copyright notice, as 1999 was missing.
128550         (verify): New macro.
128551         (strtoimax): Check sizes at compile-time, not run-time.
128552         Prefer strtol to strtoll if both work.
128553         (main): Remove; it was not that useful and was a pain to maintain.
128555         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
128557 2001-08-31  Jim Meyering  <meyering@lucent.com>
128559         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
128560         Use an initial, malloc'd, buffer of length 128 rather than
128561         a statically allocated one of length 1024.
128563 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128565         Simplify code, partly by assuming autoconf 2.52 semantics.
128567         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
128569         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
128570         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
128571         All uses removed.
128572         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
128573         Move AC_REQUIRE to next-to-top level, to avoid confusion.
128574         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
128575         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
128576         jm_AC_HEADER_INTTYPES_H.
128577         * m4/jm-macros.m4 (jm_MACROS): Likewise.
128579         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
128581         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
128582         Quote first arg of AC_DEFUN.
128583         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
128584         since they are needed to parse the include file even if we need
128585         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
128586         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
128587         but with opposite signedness.
128589 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128591         Merge 'exclude' changes from tar 1.13.22.
128592         This fixes one or two unlikely storage allocation overflow bugs,
128593         but doesn't change user-visible behavior otherwise.
128595 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
128598         (jm_PREREQ_EXCLUDE): New macro.
128600 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128602         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
128603         tm to be declared.
128605 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128607         * lib/hash.c: Remove '2001' from copyright notice.
128609 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128611         * lib/full-write.h: New file.
128612         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
128613         * lib/full-write.c: Correct credits, as cccp.c no longer
128614         exists and anyway it was so heavily changed from the old cccp
128615         code as to be unrecognizable.  Include full-write.h.
128616         (full_write): Return size_t, with short writes meaning failure.
128617         All callers changed.  This fixes a bug with large buffers
128618         on 64-bit hosts.
128619         * lib/utime.c: Include full-write.h.
128621 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128623         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
128624         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
128625         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
128626         Include if available.
128627         (<xalloc.h>): Include
128628         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
128629         (verify): New macro.  Use it to verify that EXCLUDE macros do not
128630         collide with FNM macros.
128631         (struct patopts): New struct.
128632         (struct exclude): Use it, as exclude patterns now come with options.
128633         (new_exclude): Support above changes.
128634         (new_exclude, add_exclude_file):
128635         Initial size must now be a power of two to simplify overflow checking.
128636         (free_exclude, fnmatch_no_wildcards): New function.
128637         (excluded_filename): No longer requires options arg, as the options
128638         are determined by add_exclude.  Now returns bool, not int.
128639         (excluded_filename, add_exclude):
128640         Add support for the fancy new exclusion options.
128641         (add_exclude, add_exclude_file): Now takes int options arg.
128642         Check for arithmetic overflow when computing sizes.
128643         (add_exclude_file): xrealloc might modify errno, so don't
128644         realloc until after errno might be used.
128646         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
128647         New macros.
128648         (free_exclude): New decl.
128649         (add_exclude, add_exclude_file): Now takes int options arg.
128650         (excluded_filename): No longer requires options arg, as the options
128651         are determined by add_exclude.  Now returns bool, not int.
128653 2001-08-30  Paul Eggert  <eggert@twinsun.com>
128655         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
128657 2001-08-27  Jim Meyering  <meyering@lucent.com>
128659         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
128661         * lib/version-etc.c (N_): Remove definition.
128662         Revert most of last change.
128663         Instead, simply don't mark the `Copyright...' string for translation.
128664         Based on advice from Paul Eggert.
128666         * lib/strtoxmax.c: Tweak comment.
128668 2001-08-26  Jim Meyering  <meyering@lucent.com>
128670         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
128672         * m4/xstrtoimax.m4: New file.
128673         * m4/xstrtoumax.m4: Add comments explaining why we
128674         AC_REPLACE_FUNCS(strtol).
128676 2001-08-26  Jim Meyering  <meyering@lucent.com>
128678         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
128679         of copyright with `%s' so translators don't get an untranslated
128680         message in 2002.
128681         (COPYRIGHT_YEAR): Define.
128682         (version_etc): Use fprintf rather than fputs.
128683         Suggestion from Ulrich Drepper.
128685         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
128687         * lib/strtoll.c: New file, from GNU libc.
128688         * lib/xstrtoimax.c: New file.
128690         * lib/xstrtol.h: Add xstrtoimax.
128691         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
128692         * lib/strtoimax.c: New file.  Likewise, but first define
128693         STRTOUXMAX_SIGNED.
128695         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
128696         ...
128697         * lib/strtoxmax.c: ... then renamed to this.
128699 2001-08-18  Paul Eggert  <eggert@twinsun.com>
128701         * m4/inttypes.m4: Add AC_PREREQ(2.13).
128702         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
128703         (jm_AC_TYPE_INTMAX_T): New macro.
128704         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
128706         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
128708         * m4/longlong.m4: Renamed from ulonglong.m4.
128709         * m4/inttypes.m4: Renamed from inttypes_h.m4.
128710         * m4/uintmax_t.m4: Removed.
128712 2001-08-13  Paul Eggert  <eggert@twinsun.com>
128714         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
128715         Port to Solaris 8, where 'sed' requires a space after the 'r'
128716         command, and where sh dislikes "$/".  Clean up the spacing a bit.
128717         Redirect output to $tmp just once.
128719 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
128721         * lib/addext.c (<errno.h>): Include.
128722         (errno): Declare if not defined.
128723         (addext): Work correctly when pathconf returns -1 and leaves
128724         errno alone because there is no limit.  Also, work even if
128725         pathconf returns a value greater than SIZE_MAX.
128727 2001-08-12  Jim Meyering  <meyering@lucent.com>
128729         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
128730         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
128731         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
128732         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
128733         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
128734         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
128735         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
128736         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
128737         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
128738         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
128739         utime.m4, utimes.m4, xstrtoumax.m4:
128740         Quote the first argument in each use of AC_DEFUN.
128742 2001-08-12  Jim Meyering  <meyering@lucent.com>
128744         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
128745         Simply `return getcwd (NULL, 0);'.
128746         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
128747         Use 1300 as initial value for length, not PATH_MAX.
128749         * lib/pathmax.h: Clean up cpp syntax.
128751 2001-08-12  Jim Meyering  <meyering@lucent.com>
128753         * lib/gettimeofday.c: New file.
128754         * lib/gtod.h: New file.
128755         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
128757 2001-08-05  Jim Meyering  <meyering@lucent.com>
128759         * m4/jm-macros.m4: Require autoconf-2.52.
128761 2001-08-04  Jim Meyering  <meyering@lucent.com>
128763         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
128764         stmt, to get in sync with glibc.
128766 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128768         The following changes are from gettext 0.10.39 as maintained by
128769         Bruno Haible.
128771         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
128772         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
128773         with inverted sense.  All uses changed.
128775         * lib/mbswidth.c: Don't include <limits.h>.
128776         Include <stdlib.h> and <string.h> unconditionally.
128777         (iswcntrl, mbsinit, ISCNTRL): New macros.
128778         (mbsnwidth): Use K&R style function declarations.
128779         Don't bother checking for MB_LEN_MAX == 1, since the compiler
128780         can optimize it when MB_CUR_MAX == 1.
128781         The width of control characters is zero, not 1.
128783 2001-08-03  Paul Eggert  <eggert@twinsun.com>
128785         The following changes are from gettext 0.10.39 as maintained by
128786         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
128788         * m4/codeset.m4: Upgrade to serial AM1.
128789         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
128790         all uses changed.  Quote first arg of AC_DEFUN.
128791         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
128793         * m4/iconv.m4: Upgrade to serial AM2.
128794         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
128795         Add --with-libconv-prefix.
128796         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
128797         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
128798         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
128799         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
128800         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
128802         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
128803         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
128804         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
128805         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
128806         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
128807         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
128808         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
128809         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
128810         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
128812         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
128813         string.h any more.
128815         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
128816         not the default value.
128818         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
128819         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
128820         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
128821         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
128822         Also check for iswcntrl, used for wcwidth fallback.
128823         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
128824         to Autoconf 2.13.
128826 2001-08-03  Jim Meyering  <meyering@lucent.com>
128828         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
128829         as it was in the original.  Reported by Paul Eggert.
128831 2001-07-16  Jim Meyering  <meyering@lucent.com>
128833         * m4/gettimeofday.m4: New file.
128834         Prompted by a report from Bernhard Baehr.
128836 2001-07-15  Jim Meyering  <meyering@lucent.com>
128838         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
128839         stuff. Now it's in ../Makefile.cfg.
128841 2001-07-15  Jim Meyering  <meyering@lucent.com>
128843         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
128844         (BUILT_SOURCES): Add unlocked-io.h.
128845         (io_functions): Define.
128846         (unlocked-io.h): New rule.
128847         (DISTCLEANFILES): Add unlocked-io.h.
128848         (all-local): Depend on unlocked-io.h, to ensure it is created.
128850         * lib/unlocked-io.hin: New file
128852         * lib/regex.c: Update from glibc.
128854 2001-07-05  Jim Meyering  <meyering@lucent.com>
128856         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
128857         recommendation.
128858         (libfetish_a_SOURCES): Put all .h files here instead.
128859         Remove a thus-exposed (better checks in automake) duplicate and
128860         two unnecessary .h files.
128862 2001-07-04  Jim Meyering  <meyering@lucent.com>
128864         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
128865         that generates jm-glibc-io.m4 so that it doesn't trigger any make
128866         distcheck failure.
128868 2001-07-02  Jim Meyering  <meyering@lucent.com>
128870         The following changes were prompted by suggestions from Bruno Haible.
128872         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
128873         is now generated.
128874         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
128875         definition of EXTRA_DIST.
128876         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
128877         ensure that the generated file is created/updated whenever the list
128878         of $(unlocked_functions) is changed.
128879         (jm-glibc-io.m4): New rule.
128880         (unlocked-io.h): New rule -- currently unused.
128882 2001-06-24  Jim Meyering  <meyering@lucent.com>
128884         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
128885         unmatched right bracket, rather than kludging it with an extra,
128886         falsely-matching quote in a comment.  Patch by Akim Demaille.
128888 2001-06-11  Jim Meyering  <meyering@lucent.com>
128890         * lib/regex.c: Update from GNU libc.
128892 2001-05-27  Jim Meyering  <meyering@lucent.com>
128894         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
128895         Check for ut_type in struct utmp.
128897 2001-05-27  Jim Meyering  <meyering@lucent.com>
128899         * lib/readutmp.h (UT_TYPE): Define.
128901 2001-05-24  Jim Meyering  <meyering@lucent.com>
128903         * lib/argmatch.c: Include "quote.h".
128904         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
128905         quote function.  Reported by Göran Uddeborg.
128907 2001-05-22  Jim Meyering  <meyering@lucent.com>
128909         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
128910         now that we use the package-supplied version unconditionally.
128911         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
128913 2001-05-21  Jim Meyering  <meyering@lucent.com>
128915         * m4/regex.m4: Change a couple backticks to single quotes to avoid
128916         shell syntax errors.
128918 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
128920         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
128922 2001-05-20  Paul Eggert  <eggert@twinsun.com>
128924         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
128925         Don't bother to check library strftime, since
128926         we'll be using our own my_strftime function anyway.
128927         Define my_strftime instead of strftime.
128929 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
128931         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
128932         which is not yet declared.
128934 2001-05-15  Jim Meyering  <meyering@lucent.com>
128936         * m4/regex.m4: Use proper quoting so brackets appear in the test
128937         program.
128938         Reported by, and with help from, Bruno Haible.
128940 2001-05-13  Jim Meyering  <meyering@lucent.com>
128942         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
128943         undefined.
128945 2001-05-11  Paul Eggert  <eggert@twinsun.com>
128947         dirname code cleanup.  base_name now behaves more compatibly
128948         with POSIX basename when given file names that have trailing
128949         slashes, and similarly for dir_name.  Add new primitives
128950         base_len and dir_len.  Put the directory-name-related decls
128951         into dirname.h.
128953         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
128954         * lib/backupfile.c (base_name): Likewise.
128955         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
128956         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
128957         * lib/makepath.c (strip_trailing_slashes): Likewise.
128958         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
128959         ISSLASH): Likewise.
128960         * lib/rename.c (strip_trailing_slashes): Likewise.
128961         * lib/same.c (base_name): Likewise.
128962         * lib/stripslash.c (ISSLASH): Likewise.
128964         * lib/addext.c: Include <dirname.h> after size_t is defined.
128965         * lib/backupfile.c: Likewise.
128967         * lib/addext.c (addext): Use base_len to trim redundant
128968         trailing slashes instead of doing it ourselves.
128969         But do not trim the last slash if it is not redundant.
128971         * lib/backupfile.c (find_backup_file_name,
128972         max_backup_version): Use base_len instead of rolling it ourselves.
128973         Handle the case of "" and (on DOS) "C:" correctly.
128975         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
128976         needed. Include <string.h>, <dirname.h>.
128977         (base_name): Allow file names ending in slashes, other than names
128978         that are all slashes.  In this case, return the basename followed
128979         by the slashes.  This is more general, and can be used in places
128980         where the original base_name purposely had an assertion failure.
128981         (base_len): New function.
128983         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
128984         Do not include <assert.h>; no longer needed.
128985         Include xalloc.h.
128986         (memrchr): Remove decl.
128987         (dir_name_r): Remove.
128988         (dir_len): Renamed from dirlen.  All callers changed.
128989         Rewrite in terms of base_name, for simplicity and consistency.
128990         (dir_name): Never return NULL.  All callers changed.
128991         Do not include <stdlib.h> in test program; no longer needed.
128992         return 0; is fine for test program.
128994         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
128995         New macros.
128996         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
128998         * lib/path-concat.c (path_concat): Use base_len to compute
128999         base length, not strlen; this means we cannot rely on memcpy
129000         to null-terminate.
129002         * lib/same.c (STREQ): Remove.
129003         (same_name): Handle the case where the basename ends in trailing '/'.
129005         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
129006         a slash was stripped.  Do not strip the last slash after a
129007         file system prefix.
129009 2001-05-11  Paul Eggert  <eggert@twinsun.com>
129011         * lib/Makefile.am (libfetish_a_SOURCES):
129012         Add strftime.c, since we now compile it on all hosts.
129014         * lib/strftime.c (my_strftime):
129015         Define to nstrftime if emacs, but only if my_strftime is not defined.
129016         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
129017         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
129018         Add one more extra argument: a nanoseconds value.
129019         All uses changed.
129020         (ns): New macro.
129021         (my_strftime function): Add %N format.
129022         (emacs_strftimeu): Renamed from emacs_strftime,
129023         with extra ut argument.
129025 2001-05-09  Paul Eggert  <eggert@twinsun.com>
129027         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
129029 2001-04-21  Jim Meyering  <meyering@lucent.com>
129031         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
129032         doesn't interfere.
129034 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
129036         * m4/ftruncate.m4: Check for chsize.
129037         Link with ftruncate.o unconditionally if ftruncate is missing.
129038         This was required when cross-compiling to i586-mingw32msvc.
129040 2001-04-08  Jim Meyering  <meyering@lucent.com>
129042         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
129043         recomputed; that's necessary when the offset spans a DST transition.
129044         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
129046 2001-04-02  Jim Meyering  <meyering@lucent.com>
129048         * lib/regex.h, regex.c: Update from GNU libc.
129050 2001-03-24  Jim Meyering  <meyering@lucent.com>
129052         * m4/jm-macros.m4: Require autoconf-2.49d.
129054 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
129056         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
129058 2001-03-19  Paul Eggert  <eggert@twinsun.com>
129060         * lib/version-etc.c (version_etc_copyright): Update to 2001.
129062 2001-03-17  Jim Meyering  <meyering@lucent.com>
129064         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
129065         now that the version in autoconf is equivalent.
129066         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
129068         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
129069         Suggestion from Akim Demaille.
129071         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
129072         (jm_PREREQ_TEMPNAME): New function.
129074 2001-03-16  Paul Eggert  <eggert@twinsun.com>
129076         * lib/tempname.c (uint64_t): Define to uintmax_t if
129077         not defined, and if UINT64_MAX is not defined.
129078         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
129079         Reported by John David Anglin.
129081 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
129083         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
129084         resolve alias if codeset is empty.
129085         * lib/config.charset (BeOS): Use wildcard syntax.
129087 2001-03-13  Jim Meyering  <meyering@lucent.com>
129089         * lib/path-concat.c (path_concat)
129090         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
129091         concatenating e.g., `C:' and `foo'.
129092         From Bruno Haible.
129094 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129096         * lib/localcharset.c (locale_charset): Don't use
129097         setlocale(LC_CTYPE,NULL). Don't return NULL.
129098         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
129100 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
129102         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
129103         support for DOS/DJGPP.
129105 2001-03-01  Paul Eggert  <eggert@twinsun.com>
129107         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
129108         lacks mkstemp.  Compile our own tempname.c if we compile our own
129109         mkstemp.c, as mkstemp relies on tempname.
129111 2001-03-01  Jim Meyering  <meyering@lucent.com>
129113         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
129114         AH_VERBATIM really does output its argument verbatim.
129116 2001-02-28  Paul Eggert  <eggert@twinsun.com>
129118         * lib/Makefile.am (libfetish_a_SOURCES):
129119         Add dup-safer.c, fopen-safer.c.
129120         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
129122         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
129123         * lib/unistd-safer.h: New files.
129125 2001-02-25  Paul Eggert  <eggert@twinsun.com>
129127         The mkstemp replacement is taken from glibc 2.2.2, with some
129128         portability fixes for use outside glibc, as follows:
129130         * lib/tempname.c (struct_stat64): New macro.
129131         (direxists, __gen_tempname): Use it.
129132         This avoids a portability problem with Solaris 8.
129134         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
129135         (<stddef.h>, <stdint.h>, <string.h>):
129136         Include only if STDC_HEADERS || _LIBC.
129137         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
129138         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
129139         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
129140         (__set_errno): Define this macro if <errno.h> doesn't.
129141         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
129142         Define these macros if <stdio.h> doesn't.
129143         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
129144         Define these macros if <sys/stat.h>
129145         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
129146         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
129147         __xstat64): Define if not _LIBC.
129148         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
129149         (__gen_tempname): Invoke gettimeofday only if
129150         HAVE_GETTIMEOFDAY || _LIBC;
129151         otherwise, fall back on plain "time".
129152         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
129154         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
129156         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
129158 2001-02-18  Paul Eggert  <eggert@twinsun.com>
129160         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
129162 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129164         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
129165         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
129166         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
129167         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129169 2001-02-17  Paul Eggert  <eggert@twinsun.com>
129171         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
129172         Remove workaround macros for hosts that have mbrtowc but not
129173         mbstate_t, as we now insist on proper declarations for both
129174         before using mbrtowc.
129176 2001-02-17  Jim Meyering  <meyering@lucent.com>
129178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
129179         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
129180         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
129181         UnixWare 7.1.1.
129183         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
129184         rather than AC_CACHE_VAL.
129186 2001-02-17  Jim Meyering  <meyering@lucent.com>
129188         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
129189         around included file name.
129191         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
129193         * lib/strftime.c: Update from GNU libc (the only changes were to
129194         comments).
129196 2001-02-17  Jim Meyering  <meyering@lucent.com>
129198         * lib/regex.c: Update from libc.
129200 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
129202         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
129203         clash.
129205 2001-02-16  Paul Eggert  <eggert@twinsun.com>
129207         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
129208         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
129209         Reported by Mark Hounschell via Paul Eggert.
129211 2001-02-07  Jim Meyering  <meyering@lucent.com>
129213         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
129215 2001-02-05  Jim Meyering  <meyering@lucent.com>
129217         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
129218         it includes the patch required for `large file' support with at least
129219         HP-UX's 10.20 /bin/cc.
129221 2001-02-03  Jim Meyering  <meyering@lucent.com>
129223         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
129224         AS_IF, now that it works once again (mysteriously).
129225         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129227 2001-01-30  Jim Meyering  <meyering@lucent.com>
129229         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
129230         * m4/chown.m4: Rename conftestchown to conftest.chown.
129231         * m4/rename.m4: s/conftestdir/conftest.d1/ and
129232         s/conftestdir2/conftest.d2/.
129233         * m4/utimes.m4: s/conftestdata/conftest.data/
129234         Inspired by Pavel Roskin's change in autoconf.
129236 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
129238         * lib/config.charset: Update for FreeBSD 4.2.
129240 2001-01-27  Jim Meyering  <meyering@lucent.com>
129242         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
129243         a use of AS_IF.
129244         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
129246 2001-01-26  Jim Meyering  <meyering@lucent.com>
129248         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
129249         quotearg.c includes it.
129251 2001-01-26  Jim Meyering  <meyering@lucent.com>
129253         * lib/quotearg.c: Include stddef.h.
129254         * lib/quote.c: Include stddef.h.
129255         Reported by Axel Kittenberger.
129257         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
129258         line in double quotes so that it evokes a better diagnostic.
129259         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
129260         Reported by Axel Kittenberger.
129262 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
129264         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
129265         as if it was a `charset'.
129267 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129269         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
129270         has const.
129272 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
129274         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
129275         to avoid a warning.  Add back 'const' to inptr.
129277 2001-01-20  Jim Meyering  <meyering@lucent.com>
129279         Be sure that headers are checked before used in code compiled
129280         for the type checks.
129281         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
129282         In place of that, invoke jm_CHECK_ALL_TYPES.
129283         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
129284         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
129285         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
129286         The check for ssize_t was mistakenly run before the test for unistd.h.
129288         The configure-time check for stdbool.h was missing.
129289         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
129290         (jm_PREREQ_HASH): New function.
129292 2001-01-17  Jim Meyering  <meyering@lucent.com>
129294         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
129295         for autoconf-2.49c.
129296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
129298 2001-01-16  Jim Meyering  <meyering@lucent.com>
129300         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
129301         From Bruno Haible.
129303 2001-01-14  Jim Meyering  <meyering@lucent.com>
129305         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
129306         foo and bar.  Create conftestdir/ in the script, not in the C code.
129307         Remove directories in the script, not in the C code.
129308         Remove conftestdir{,2} before trying to create the directory.
129309         Make the entire configure script fail if the mkdir fails.
129311 2001-01-14  Jim Meyering  <meyering@lucent.com>
129313         * lib/rename.c: New file.  From Volker Borchert.
129314         Include stdlib.h, string.h or strings.h, and xalloc.h.
129315         Use strip_trailing_slashes rather than open-coding it.
129317 2001-01-03  Paul Eggert  <eggert@twinsun.com>
129319         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
129321 2001-01-03  Jim Meyering  <meyering@lucent.com>
129323         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
129324         of local `inptr' to avoid warning with some system declarations of
129325         iconv.
129327 2001-01-02  Volker Borchert  <bt@teknon.de>
129329         * m4/rename.m4: New file.
129330         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
129332 2001-01-01  Jim Meyering  <meyering@lucent.com>
129334         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
129335         even on systems with utmpx.h.  It's necessary for the declaration of
129336         utmp's ut_user member.  Reported by Andreas Jaeger.
129338         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
129339         available. They are required for the declarations of getgrgid and
129340         getpwuid resp.
129341         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
129342         Reported by Andreas Jaeger.
129344 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
129346         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
129347         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
129348         so `make install' also works in VPATH builds.
129350 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
129352         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
129353         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
129354         can be used in subdirectories.
129356 2000-12-29  Paul Eggert  <eggert@twinsun.com>
129358         * lib/modechange.c: Do not assume that mode_t uses the
129359         traditional octal encoding.  E.g. "chmod 1 FOO" should set
129360         the other-execute bit of FOO even if S_IXOTH != 1.
129362         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
129363         WOTH, XOTH, ALLM): New macros.
129364         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
129365          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
129366         Use them.
129367         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
129368         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
129369         (mode_compile):
129370         No need to use uintmax_t; unsigned long is long enough.
129371         Don't bother to get suffix since we don't use it.
129373 2000-12-26  Jim Meyering  <meyering@lucent.com>
129375         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
129376         better with autoheader.
129378 2000-12-24  Jim Meyering  <meyering@lucent.com>
129380         * lib/hash.c (is_prime): Return explicit boolean values.
129381         (hash_get_first): Return NULL to appease Irix5.6's 89.
129382         Reported by Nelson Beebe.
129384 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
129386         * lib/localcharset.c (locale_charset): Add support for Win32.
129388 2000-12-18  Paul Eggert  <eggert@twinsun.com>
129390         * lib/physmem.h, lib/physmem.c: New files.
129392         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
129393         (noinst_HEADERS): Add physmem.h.
129395         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
129396         't' for compatibility with Solaris 8 sort.
129398 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
129400         * lib/config.charset: Add support for BeOS.
129402 2000-12-17  Jim Meyering  <meyering@lucent.com>
129404         * m4/dos.m4 (jm_AC_DOS): New file and macro.
129405         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
129407 2000-12-16  Jim Meyering  <meyering@lucent.com>
129409         This bug had a serious impact on chown: `chown N:M FILE' (for integer
129410         N and M) would have treated it like `chown N:N FILE'.
129412         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
129414 2000-12-16  Jim Meyering  <meyering@lucent.com>
129416         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
129417         SHELLS_FILE to a file name that's useful on djgpp systems.
129418         Include stdlib.h.
129419         (ADDITIONAL_DEFAULT_SHELLS): Define.
129420         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
129421         Based mostly on a patch from Prashant TR.
129423 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
129425         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
129426         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
129427         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
129429 2000-12-08  Andreas Schwab  <schwab@suse.de>
129431         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
129432         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
129434 2000-12-07  Jim Meyering  <meyering@lucent.com>
129436         * lib/stripslash.c (ISSLASH): Define.
129437         (strip_trailing_slashes): Use ISSLASH rather than comparing against
129438         `/'.
129439         From Prashant TR.
129441         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
129442         (dir_name_r): Declare this function as static.
129443         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
129444         manifest itself on a name containing a mix of slashes and
129445         backslashes.
129446         Make this function work with names starting with a DOS-style
129447         drive letter and colon prefix.
129448         (dir_name): Append `.' if necessary.
129449         Based mostly on patches from Prashant TR and Eli Zaretskii.
129451         * lib/dirname.h (dir_name_r): Remove prototype.
129453 2000-12-06  Paul Eggert  <eggert@twinsun.com>
129455         * m4/off_t-format.m4: Remove this file.
129456         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
129458 2000-12-06  Jim Meyering  <meyering@lucent.com>
129460         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
129461         replacement strtoull, we may well need the replacement strtoul, too.
129462         Check for declarations of strtoul and strtoull.
129463         Check for strtol.  Mainly as a cue to cause automake to include
129464         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
129465         Check for limits.h -- strtol.c needs it.
129467 2000-12-05  Jim Meyering  <meyering@lucent.com>
129469         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
129471 2000-12-04  Jim Meyering  <meyering@lucent.com>
129473         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
129474         Also include memory.h, stdlib.h, unistd.h if appropriate.
129475         Reported by Andreas Jaeger (conflicting declaration of malloc).
129477 2000-12-02  Jim Meyering  <meyering@lucent.com>
129479         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
129480         * m4/jm-macros.m4 (jm_MACROS): require it.
129482 2000-12-02  Jim Meyering  <meyering@lucent.com>
129484         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
129486 2000-12-01  Paul Eggert  <eggert@twinsun.com>
129488         * lib/memrchr.c: Include <config.h> before any system include file.
129490 2000-11-30  Jim Meyering  <meyering@lucent.com>
129492         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
129494 2000-11-30  Jim Meyering  <meyering@lucent.com>
129496         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
129498 2000-11-29  Paul Eggert  <eggert@twinsun.com>
129500         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
129502 2000-11-26  Jim Meyering  <meyering@lucent.com>
129504         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
129506 2000-11-22  Paul Eggert  <eggert@twinsun.com>
129508         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
129509         size of (size_t) -1; it's not portable.
129511 2000-11-17  Jim Meyering  <meyering@lucent.com>
129513         * lib/strstr.c: Update from GNU libc.
129515 2000-11-17  Akim Demaille  <akim@epita.fr>
129517         * lib/obstack.h: Formatting changes.
129518         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
129519         prevent type checking.
129520         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
129521         cast the value to (void *): assigning a `foo *' to a `void *'
129522         variable is valid.
129523         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
129525 2000-11-16  Jim Meyering  <meyering@lucent.com>
129527         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
129529 2000-11-11  Jim Meyering  <meyering@lucent.com>
129531         * lib/error.c: Add a couple #includes, merging from GNU libc version.
129533 2000-11-10  Jim Meyering  <meyering@lucent.com>
129535         * lib/obstack.h: Update from GNU libc.
129536         * lib/obstack.c: Likewise.
129538 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
129540         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
129542 2000-11-06  Paul Eggert  <eggert@twinsun.com>
129544         * lib/getusershell.c (setusershell): Use rewind rather than
129545         fseek/fseeko, to avoid configuration hassles with fseeko.
129546         Don't bother opening SHELLS_FILE if shellstream is NULL;
129547         it's not necessary.
129549 2000-11-05  Jim Meyering  <meyering@lucent.com>
129551         * lib/makepath.h (make_dir): Declare.
129552         * lib/makepath.c (make_dir): Remove `static' attribute.
129553         Tweak a comment.
129555 2000-11-04  Jim Meyering  <meyering@lucent.com>
129557         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
129559 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
129561         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
129562         last one in a bucket, advance to the next bucket.
129564 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
129566         * lib/fnmatch.c: Do not comment out all the code if we are using
129567         the GNU C library, because in some cases we are replacing buggy
129568         code in the GNU C library itself.
129570 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
129572         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
129573         (regex_compile): Catch bogus \(\1\).
129575 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129577         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
129578         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
129579         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
129581 2000-10-30  Paul Eggert  <eggert@twinsun.com>
129583         * lib/error.h, getline.h, modechange.h:
129584         Remove "2000" from Copyright line, as the file hasn't been
129585         changed this year other than in the copyright notice.
129587         * lib/xalloc.h: Add "2000" to Copyright line, as this file
129588         was changed this year.
129590 2000-10-29  Jim Meyering  <meyering@lucent.com>
129592         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
129593         renaming.
129594         * m4/ls-mntd-fs.m4: Likewise
129596 2000-10-29  Jim Meyering  <meyering@lucent.com>
129598         * lib/xstat.in: Fix grammar in comment.
129600 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
129602         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
129603         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
129604         doesn't define __restrict_arr.
129606 2000-10-28  Jim Meyering  <meyering@lucent.com>
129608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
129609         (jm_PREREQ_MEMCHR): New function.
129611 2000-10-28  Jim Meyering  <meyering@lucent.com>
129613         * lib/memchr.c: Update from libc.
129614         Adjust for portability:
129615         [HAVE_STDLIB_H]: Include stdlib.h.
129616         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
129617         Undef __memchr, too.
129618         [!weak_alias]: Define __memchr to memchr.
129620         * lib/regex.c: Update from libc.
129621         * lib/regex.h: Likewise.
129622         * lib/getopt1.c: Likewise.
129623         * lib/memcmp.c: Likewise.
129625         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
129626         Avoid using fseek, when possible -- it's broken by design.
129627         Patch by Ulrich Drepper.
129629 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
129631         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
129632         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
129633         Giving in to popular pressure to shut up the compiler with casts.
129635 2000-10-26  Jim Meyering  <meyering@lucent.com>
129637         * lib/strftime.c: Update from libc.
129639 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
129641         * regex.c: More `unsigned char' -> `re_char' changes.
129642         Also change several `int' into `re_wchar_t'.
129643         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
129644         (PUSH_FAILURE_POINTER): Don't cast any more.
129645         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
129646         We want GCC to complain, since this piece of code makes
129647         re_match non-reentrant, which *should* be fixed.
129648         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
129649         (EXTEND_BUFFER): Use RETALLOC.
129650         (SET_LIST_BIT): Don't cast.
129651         (re_wchar_t): New type.
129652         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
129653         that those two functions will always properly return.
129654         (IMMEDIATE_QUIT_CHECK): Cast to void.
129655         (analyse_first): Use recursion rather than an explicit stack.
129656         (re_compile_fastmap): Can't fail anymore.
129657         (re_search_2): Don't check re_compile_fastmap for failure.
129658         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
129659         Now also sets the new value (passed in a new argument).
129660         (re_match_2_internal): Use it.
129661         Also, use a new var `reg' of type size_t when looping through regs
129662         rather than reuse the inappropriate `mcnt'.
129664 2000-10-25  Jim Meyering  <meyering@lucent.com>
129666         * lib/obstack.c: Update from libc.
129668 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
129670         * regex.c (regex_compile): Change the way of handling a range from
129671         a char less than 256 to a char not less than 256.
129673 2000-10-24  Andrew Innes  <andrewi@gnu.org>
129675         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
129676         NT-Emacs only.
129677         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
129678         so that re_search functions only quit when callers expect them to.
129680 2000-10-23  Jim Meyering  <meyering@lucent.com>
129682         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
129683         wrong.  That set_locale call must not have any side effects.
129684         From Paul Eggert.
129686 2000-10-22  Jim Meyering  <meyering@lucent.com>
129688         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
129689         [CYCLIC]: Remove now-unused definition.
129691         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
129692         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
129693         Suggestion from Ulrich Drepper.
129695 2000-10-21  Jim Meyering  <meyering@lucent.com>
129697         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
129698         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
129699         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
129701 2000-10-21  Jim Meyering  <meyering@lucent.com>
129703         * lib/dirname.c (memrchr): Declare if necessary.
129704         (dir_name): Remove the restriction that there be no
129705         trailing slashes.  Now, this code skips past them, effectively
129706         ignoring them.
129707         [TEST_DIRNAME] (main): New unit tests.
129709         * lib/memrchr.c: New file from GNU libc.
129710         Undef __memrchr, too.
129711         [!weak_alias]: Define __memrchr to memrchr.
129712         Guard weak_alias use with `#ifdef weak_alias'.
129714 2000-10-21  Jim Meyering  <meyering@lucent.com>
129716         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
129717         (dir_name): Use dir_name_r.
129718         * lib/dirname.h (dir_name_r): Declare it.
129720 2000-10-17  Jim Meyering  <meyering@lucent.com>
129722         * lib/quote.h (PARAMS): Define and use.
129723         Reported by Akim Demaille.
129725         * lib/getopt.c: Update from libc.
129727 2000-10-16  Jim Meyering  <meyering@lucent.com>
129729         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
129730         setlocale.
129731         From Jan Fedak.
129733 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
129735         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
129737 2000-09-25  Jim Meyering  <meyering@lucent.com>
129739         * lib/md5.h (rol): Define (from GnuPG).
129741         * lib/sha.c: Give credit (GnuPG) where due.
129742         (M): Use rol rather than open-coding it.
129743         Add a FIXME comment.
129745 2000-09-21  Jim Meyering  <meyering@lucent.com>
129747         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
129748         Reported by Michael Stone.
129750 2000-09-20  Jim Meyering  <meyering@lucent.com>
129752         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
129753         (noinst_HEADERS): Add sha.h.
129754         Based on code from Scott G. Miller and from GnuPG.
129756 2000-09-18  Jim Meyering  <meyering@lucent.com>
129758         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
129759         LIBS. Otherwise, everyone ends up linking with -lelf for some
129760         configurations.
129761         Reported by Mike Stone.
129763 2000-09-15  Jim Meyering  <meyering@lucent.com>
129765         * lib/regex.c: Update from libc.
129767 2000-09-10  Jim Meyering  <meyering@lucent.com>
129769         * lib/getopt.c (_getopt_internal): Update from glibc.
129771 2000-09-09  Jim Meyering  <meyering@lucent.com>
129773         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
129774         think it should be used as a general replacement for isascii.
129775         * lib/fnmatch.c: Likewise.
129776         * lib/mbswidth.c: Likewise
129777         * lib/regex.c: Likewise.
129779         Don't use atoi.
129780         * lib/userspec.c: Include sys/param.h and limits.h.
129781         Include xstrtol.h.
129782         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129783         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
129784         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
129785         UID, GID.  Check range.
129787 2000-09-06  Jim Meyering  <meyering@lucent.com>
129789         * lib/getopt.c (_getopt_internal): Update from glibc.
129791 2000-08-30  Jim Meyering  <meyering@lucent.com>
129793         * lib/strftime.c: Merge in changes from GNU libc.
129795 2000-08-26  Jim Meyering  <meyering@lucent.com>
129797         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
129798         * m4/fpending.m4: New file.
129800 2000-08-26  Jim Meyering  <meyering@lucent.com>
129802         * lib/closeout.c: Include "__fpending.h".
129803         (close_stdout_status): Return right away if there's nothing to flush.
129805         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
129806         * lib/__fpending.c: New file.
129807         * lib/__fpending.h: New file.
129809 2000-08-20  Jim Meyering  <meyering@lucent.com>
129811         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
129812         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
129813         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
129815 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
129817         Improve fileutils installation on systems where running
129818         programs (like install) can't be unlinked.
129819         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
129820         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
129822 2000-08-07  Paul Eggert  <eggert@twinsun.com>
129824         Standardize on "memory exhausted" instead of "Memory exhausted"
129825         or "virtual memory exhausted".
129826         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
129827         "virtual memory exhausted".
129828         * lib/same.c (same_name): Invoke xalloc_die instead of printing
129829         our own message.
129830         * lib/userspec.c (parse_user_spec): Likewise.
129831         * lib/bumpalloc.h: comment fix
129832         * lib/same.c, userspec.c: Include xalloc.h.
129834         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
129835         not char *const and pointing to a constant array.
129836         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
129837         (xrealloc): Comment fix.
129839         * lib/userspec.c (parse_user_spec):
129840         Don't translate a message until just before returning,
129841         to avoid unnecessary translation.
129843 2000-08-07  Jim Meyering  <meyering@lucent.com>
129845         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
129846         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
129847         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
129848         getgroups.c, gethostname.c, getopt.h, group-member.c,
129849         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
129850         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
129851         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
129852         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
129853         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
129854         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
129855         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
129856         yesno.c: Back out Copyright date changes for each file with no change
129857         this year.  This eases coordination with other programs using the same
129858         source code modules.  From Paul Eggert.
129860 2000-08-06  Paul Eggert  <eggert@twinsun.com>
129862         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
129863         not char, for compatibility with glibc 2.1.3 strftime.c.
129865 2000-08-03  Greg McGary  <greg@mcgary.org>
129867         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
129868         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
129869         (EXTEND_BUFFER): Use them.
129871 2000-08-01  Jim Meyering  <meyering@lucent.com>
129873         * lib/dirname.c (ISSLASH): Define.
129874         (BACKSLASH_IS_PATH_SEPARATOR): Define.
129875         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
129876         both `\' and `/' may be use as path separators.
129877         Based on a patch from Prashant TR.
129879 2000-07-31  Paul Eggert  <eggert@twinsun.com>
129881         * lib/quotearg.c (quotearg_n_options): Don't make the initial
129882         slot vector a constant, since it might get modified.
129884 2000-07-31  Jim Meyering  <meyering@lucent.com>
129886         * lib/xmalloc.c: Use `virtual memory exhausted', not
129887         `Memory exhausted'.
129888         * lib/obstack.c (print_and_abort): Likewise.
129890 2000-07-30  Paul Eggert  <eggert@twinsun.com>
129892         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
129893         buffer, so that the caller can always quote one small
129894         component of a "memory exhausted" message in slot 0.
129895         From a suggestion by Jim Meyering.
129897 2000-07-30  Jim Meyering  <meyering@lucent.com>
129899         * lib/makepath.c (make_path): Quote the other instance, too.
129901         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
129902         (STATIC_BUF_SIZE): Define.
129903         (quotearg_n_options): Use only statically allocated storage when
129904         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
129905         than STATIC_BUF_SIZE.
129907 2000-07-29  Jim Meyering  <meyering@lucent.com>
129909         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
129910         * lib/dirname.c (dir_name): Likewise.
129912         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
129913         `/'.
129915         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
129916         (dir_name): Assert that there are no trailing slashes.
129918 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
129920         * lib/mbswidth.h (mbswidth): Add a flags argument.
129921         (mbswidth): New declaration.
129922         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
129923         * lib/mbswidth.c (mbswidth): Add a flags argument.
129924         (mbsnwidth): New function.
129926 2000-07-24  Jim Meyering  <meyering@lucent.com>
129928         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
129930 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129932         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
129934 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129936         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
129937         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
129938         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
129939         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
129940         invoke multibyte primitives.
129942 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129944         * lib/quotearg.c:
129945         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
129946         so that mbstate_t is always defined.
129948         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
129949         be 1 in at least one GCC installation, and this configuration
129950         error is likely to be common.  Ignoring MB_LEN_MAX hurts
129951         performance on hosts that have mbrtowc but have only unibyte
129952         locales, but I assume these hosts are rare.
129954 2000-07-23  Paul Eggert  <eggert@twinsun.com>
129956         * lib/mbswidth.c (_XOPEN_SOURCE):
129957         Don't define; this causes problems on Solaris 7.
129958         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
129960 2000-07-23  Jim Meyering  <meyering@lucent.com>
129962         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
129963         too: getgrgid, getpwuid, getuid.
129965 2000-07-23  Jim Meyering  <meyering@lucent.com>
129967         * lib/basename.c (base_name): Add an assertion.
129969 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
129971         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
129972         shadow its mbsinit function.
129974 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129976         * lib/mbswidth.h: New file.
129977         * lib/mbswidth.c: New file.
129978         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
129979         (noinst_HEADERS): Add mbswidth.h.
129981 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
129983         * lib/config.charset: Add support for FreeBSD. Improve support for
129984         HP-UX and IRIX 6.
129986 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
129988         * m4/mbswidth.m4: New file.
129989         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
129991 2000-07-15  Jim Meyering  <meyering@lucent.com>
129993         * lib/makepath.c: Include quote.h.
129994         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
129995         corresponding argument in a `quote (...)' call.
129996         Give better diagnostics.
129998         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
129999         (noinst_HEADERS): Add quote.h.
130001         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
130002         from tar's src/misc.c.
130003         * lib/quote.h: New file.  Prototypes for same.
130005 2000-07-14  Paul Eggert  <eggert@twinsun.com>
130007         From a suggestion by Bruno Haible.
130008         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
130009         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
130010         to decide whether to define the BeOS workaround macro;
130011         this adjusts to the change to AC_MBSTATE_T.
130013 2000-07-14  Jim Meyering  <meyering@lucent.com>
130015         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
130016         jm_AC_TYPE_UINTMAX_T.
130018 2000-07-13  Paul Eggert  <eggert@twinsun.com>
130020         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
130022         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
130023         quotearg_buffer_restyled): Add support for
130024         clocale_quoting_style.  Undo previous change to
130025         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
130026         and "{RIGHT QUOTATION MARK}" msgids.
130028 2000-07-10  Paul Eggert  <eggert@twinsun.com>
130030         From a suggestion by Bruno Haible.
130031         * m4/mbstate_t.m4 (AC_MBSTATE_T):
130032         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
130033         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
130034         and mbstate_t, to a single-part test that simply defines mbstate_t.
130035         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
130036         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
130038 2000-07-10  Jim Meyering  <meyering@lucent.com>
130040         * m4/strerror_r.m4: Mirror the correction made in autoconf.
130042         * m4/gnu-source.m4: Output to confdefs.h directly.
130043         Suggestion from Akim Demaille.
130045 2000-07-09  Paul Eggert  <eggert@twinsun.com>
130047         The old behavior of quoting `like this' doesn't look good with
130048         newer, ISO-style fonts.  See:
130049         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
130051         Instead, quote "like this" by default.  Let the translator
130052         tailor the locale-specific quoting behavior by providing
130053         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
130055         * lib/quotearg.c (N_): New macro.
130056         (gettext_default): New function.
130057         (quotearg_buffer_restyled): Use
130058         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
130059         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
130061 2000-07-09  Jim Meyering  <meyering@lucent.com>
130063         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
130064         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
130066         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
130067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
130069 2000-07-09  Jim Meyering  <meyering@lucent.com>
130071         * lib/Most files: Update copyright dates to include 2000.
130073 2000-07-08  Jim Meyering  <meyering@lucent.com>
130075         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
130076         if not defined.
130077         (xgethostname): Remove now-unnecessary #ifdef.
130078         Move declaration of `err' into loop where it's used.
130080 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130081         and Bruno Haible  <haible@clisp.cons.org>
130083         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
130084         only if the test for an object-type mbstate_t fails.  This
130085         prevents us from mistakenly reporting that mbstate_t is a
130086         system object type after we "#define mbstate_t int" to work
130087         around its lack.
130089 2000-07-05  Paul Eggert  <eggert@twinsun.com>
130090         and Bruno Haible  <haible@clisp.cons.org>
130092         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
130094 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130096         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
130097         to strerror_r.
130098         Include <ctype.h> for use of isalpha.
130100 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130102         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
130103         by allocating a larger buffer. Test the gethostname return value for
130104         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
130105         returns an error and ENAMETOOLONG isn't defined.
130107 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
130109         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
130110         dimension.
130112 2000-07-04  Jim Meyering  <meyering@lucent.com>
130114         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
130115         of the deprecated AC_CHECKING.
130117 2000-07-04  Jim Meyering  <meyering@lucent.com>
130119         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
130120         Reported by Bruno Haible.
130122 2000-07-04  Jim Meyering  <meyering@lucent.com>
130124         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
130125         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
130126         lacks mbrtowc.
130128 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130130         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
130131         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
130133 2000-07-03  Paul Eggert  <eggert@twinsun.com>
130134         and Bruno Haible  <haible@clisp.cons.org>
130136         * lib/quotearg.c (mbrtowc):
130137         Assign to *pwc, and return 1 only if result is nonzero.
130138         (iswprint): Use ISPRINT when substituting our own mbrtowc.
130140 2000-07-03  Jim Meyering  <meyering@lucent.com>
130142         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
130144 2000-07-03  Jim Meyering  <meyering@lucent.com>
130146         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
130147         This is necessary to get a definition of e.g., UTMP_FILE on
130148         HP-UX 10.20.
130149         From Bob Proulx.
130151 2000-07-02  Jim Meyering  <meyering@lucent.com>
130153         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
130155         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
130156         AC_LIBOBJ(function_name).
130157         * m4/chown.m4: Likewise.
130158         * m4/fnmatch.m4: Likewise.
130159         * m4/ftruncate.m4: Likewise.
130160         * m4/getgroups.m4: Likewise.
130161         * m4/getline.m4: Likewise.
130162         * m4/group-member.m4: Likewise.
130163         * m4/jm-macros.m4: Likewise.
130164         * m4/lstat.m4: Likewise.
130165         * m4/malloc.m4: Likewise.
130166         * m4/memcmp.m4: Likewise.
130167         * m4/nanosleep.m4: Likewise.
130168         * m4/putenv.m4: Likewise.
130169         * m4/realloc.m4: Likewise.
130170         * m4/regex.m4: Likewise.
130171         * m4/stat.m4: Likewise.
130172         * m4/strftime.m4: Likewise.
130174 2000-07-02  Jim Meyering  <meyering@lucent.com>
130176         * lib/quotearg.c (mbstate_t): Don't define here.
130178 2000-07-02  Jim Meyering  <meyering@lucent.com>
130180         * lib/nanosleep.c (SIGCONT): Define if not already defined.
130182 2000-07-01  Jim Meyering  <meyering@lucent.com>
130184         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
130186 2000-07-01  Jim Meyering  <meyering@lucent.com>
130188         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
130189         problem.
130191 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
130194         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
130196 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
130198         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
130199         per change in ../m4/ls-mntd-fs.m4.
130200         (read_filesystem_list): Ignore symbolic links.
130202 2000-06-29  Jim Meyering  <meyering@lucent.com>
130204         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
130205         for declaration of strcmp.
130207         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
130209         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
130210         Avoid warning by casting result to `char *' to remove `const'.
130212 2000-06-28  Jim Meyering  <meyering@lucent.com>
130214         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
130215         included by quotearg.c, for which we perform this test.  From
130216         Bruno Haible.
130218 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130220         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
130221         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
130222         <utmpx.h> exists, put readutmp.o into LIBOBJS.
130224 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
130226         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
130228 2000-06-26  Paul Eggert  <eggert@twinsun.com>
130230         savedir now sets errno on failure and invokes xmalloc to get memory.
130231         Fix a couple of other minor bugs while we're at it.
130233         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
130234         (NAMLEN): Remove macro.
130235         (malloc, realloc): Remove decls.
130236         (stpcpy): Likewise.
130237         ("xalloc.h"): Include.
130238         (NAME_SIZE_DEFAULT): New macro.
130239         (savedir): Use xmalloc / xrealloc to allocate memory.
130240         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
130241         Skip "" directory entries.
130242         Use strlen to calculate directory entry length, since the old method
130243         is rarely used these days and isn't worth supporting.
130244         Don't use a pointer after freeing it.
130245         Check for integer overflow when calculating allocation size.
130246         Use memcpy to copy entries, instead of stpcpy.
130247         Set errno properly when returning NULL.
130248         Check for readdir error.
130250 2000-06-26  Jim Meyering  <meyering@lucent.com>
130252         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
130254 2000-06-25  Jim Meyering  <meyering@lucent.com>
130256         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
130257         Linux header bug when _XOPEN_SOURCE is defined to 500.
130259 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130261         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
130262         deficiency.
130264 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
130266         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
130267         Include xalloc.h.
130268         Don't include <stdlib.h>.  Don't declare malloc, realloc.
130270 2000-06-24  Jim Meyering  <meyering@lucent.com>
130272         * m4/strerror_r.m4: Revive this file -- to try out an experimental
130273         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
130274         for which strerror does return char*, but which lacks a conveniently
130275         accessible declaration of the function.  If the compile-test says
130276         strerror_r doesn't work, then resort to a `run'-test that works on
130277         BeOS and segfaults on DEC Unix.
130279 2000-06-24  Jim Meyering  <meyering@lucent.com>
130281         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
130283 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130285         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
130286         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
130288 2000-06-23  Paul Eggert  <eggert@twinsun.com>
130290         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
130291         (mbrtowc, mbstate_t): Define substitutes if
130292         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
130293         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
130294         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
130296 2000-06-23  Jim Meyering  <meyering@lucent.com>
130298         * m4/afs.m4: Add missing AC_MSG_RESULT.
130299         Reported by Bruno Haible.
130301         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
130302         Suggestion from Bruno Haible.
130304 2000-06-23  Jim Meyering  <meyering@lucent.com>
130306         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
130308 2000-06-21  Jim Meyering  <meyering@lucent.com>
130310         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
130312 2000-06-21  Jim Meyering  <meyering@lucent.com>
130314         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
130315         (noinst_HEADERS): Add getstr.h.
130317         * lib/getline.c (getstr): Move into a separate file.
130318         * lib/getstr.c (getstr): New file, extracted from getline.c, with
130319         the following changes: new parameter, delim2; both delim[12]
130320         parameters have type `int', not `char'.  The latter would lose
130321         with 8-bit delimiters.
130322         * lib/getstr.h: New file.
130324 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130326         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
130327         than 1024, return a memory chunk of least possible size, instead
130328         of size PATH_MAX + 2. In the loop, increment the size proportionally.
130329         Use free/xmalloc instead of xrealloc to avoid copying for very long
130330         paths.
130332 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130334         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
130335         the empty string.
130337 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
130339         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
130340         address, not strdup.  Include <stdlib.h> and don't declare free().
130342 2000-06-19  Jim Meyering  <meyering@lucent.com>
130344         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
130346 2000-06-18  Jim Meyering  <meyering@lucent.com>
130348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
130350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
130351         `checking whether...' message to be consistent with that of the
130352         lstat test.
130354 2000-06-18  Jim Meyering  <meyering@lucent.com>
130356         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
130357         Besides, these days every porting target provides a mkdir function.
130359         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
130360         needed. (this snippet comes from src/system.h).
130362 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
130364         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
130366 2000-06-15  Paul Eggert  <eggert@twinsun.com>
130368         * lib/human.c (adjust_value): New function.
130369         (human_readable_inexact): Apply rounding style even when
130370         printing approximate values.
130372 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130374         * lib/human.c (human_readable_inexact): Allow an input block
130375         size that is not a multiple of the output block size, and vice versa.
130376         Reported by Piergiorgio Sartor.
130378 2000-06-14  Paul Eggert  <eggert@twinsun.com>
130380         * lib/getdate.y (get_date): Apply relative times after time
130381         zone indicator, not before.  Reported by Todd A. Jacobs.
130383 2000-06-13  Jim Meyering  <meyering@lucent.com>
130385         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
130387         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
130389 2000-06-12  Paul Eggert  <eggert@twinsun.com>
130391         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
130393 2000-06-12  Jim Meyering  <meyering@lucent.com>
130395         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
130396         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
130397         optional argument.
130398         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
130399         the optional argument, `lib'.
130401 2000-06-08  Jim Meyering  <meyering@lucent.com>
130403         * m4/largefile.m4: Remove file (now that it's part of autoconf).
130405 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130407         Rewrite largefile configuration so that we don't need to run
130408         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
130409         AC_CANONICAL_HOST in configure.in -- jmm]
130411         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
130412         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
130413         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
130414         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
130415         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
130416         All uses changed.
130417         Instead of inspecting the output of getconf, try to compile the
130418         test program without and with the macro definition.
130419         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
130420         for getconf.  Instead, check for the needed flags by compiling
130421         test programs.
130423 2000-06-04  Paul Eggert  <eggert@twinsun.com>
130425         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
130427 2000-06-04  Jim Meyering  <meyering@lucent.com>
130429         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
130430         SunOS 4.1.4 for which gid_t is an unsigned type.
130432 2000-06-03  Jim Meyering  <meyering@lucent.com>
130434         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
130435         now that autoconf requires that.
130437         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
130438         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
130439         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
130441 2000-06-03  Jim Meyering  <meyering@lucent.com>
130443         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
130445 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130447         * m4/glibc21.m4: New file.
130448         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
130450 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
130452         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
130453         newer, don't install charset.alias.
130454         * lib/config.charset: Change the Linux/glibc rules so they become empty
130455         on glibc-2.1 or newer.
130457 2000-06-02  Jim Meyering  <meyering@lucent.com>
130459         * lib/mountlist.c: Back out last change.  Instead, do this...
130460         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
130461         me_dummy member using the same `ignore'-testing code.
130462         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
130463         fs_type strings.
130464         From Mark D. Roth.
130466 2000-05-29  Jim Meyering  <meyering@lucent.com>
130468         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
130469         mounts with the `ignore' attribute.  Based on a patch from
130470         Mark D. Roth.
130472 2000-05-28  Jim Meyering  <meyering@lucent.com>
130474         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
130475         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130476         * m4/stat.m4: Likewise.
130477         * m4/lstat.m4: Likewise.
130478         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
130480         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
130481         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
130483 2000-05-26  Jim Meyering  <meyering@lucent.com>
130485         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
130487 2000-05-24  Jim Meyering  <meyering@lucent.com>
130489         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
130490         autoconf requires that.
130491         * m4/lib-check.m4: Likewise.
130492         * m4/jm-macros.m4: Likewise.
130493         * m4/strftime.m4: Likewise.
130495         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
130496         AC_CHECK_DECLS, now that autoconf requires that.
130498 2000-05-22  Jim Meyering  <meyering@lucent.com>
130500         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
130501         * m4/lstat.m4: Likewise.
130503 2000-05-22  Jim Meyering  <meyering@lucent.com>
130505         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
130507 2000-05-20  Jim Meyering  <meyering@lucent.com>
130509         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
130510         (jm_PREREQ): Use it.
130512 2000-05-18  Jim Meyering  <meyering@lucent.com>
130514         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
130515         back, too, since it may have been modified by allocate_entry.
130516         (hash_delete): Rewrite to use neither the assignment operator
130517         nor the comma operator in an if-expression.
130519 2000-05-15  Paul Eggert  <eggert@twinsun.com>
130521         * lib/closeout.c:
130522         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
130523         Remove; no longer needed.
130524         "quotearg.h": Add include.
130525         (file_name): Do not bother to explicitly initialize to NULL; it's less
130526         efficient on some hosts.
130527         (close_stdout_status): Remove test as to whether stdout was already
130528         closed; it breaks for the case "echo x | sort >&-".
130529         Quote file name colons.
130530         Do not assume that _("write error") lacks format strings.
130532 2000-05-15  Jim Meyering  <meyering@lucent.com>
130534         * lib/version-etc.c (version_etc_copyright): Update the copyright
130535         string used in all --version output.
130537 2000-05-14  Jim Meyering  <meyering@lucent.com>
130539         * lib/closeout.c (close_stdout_set_file_name): New function.
130540         (close_stdout_status): Use new file-scoped global.
130541         Return right away if fstat says the stdout file descriptor is invalid.
130542         * lib/closeout.h (close_stdout_set_file_name): Declare.
130544 2000-05-10  Jim Meyering  <meyering@lucent.com>
130546         * lib/closeout.c [default_exit_status]: New file-scoped variable.
130547         (close_stdout_set_status): New function.
130548         * lib/closeout.h (close_stdout_set_status): Declare.
130550 2000-05-09  Jim Meyering  <meyering@lucent.com>
130552         * m4/gettext.m4: Rename this...
130553         * m4/libintl.m4: ...to this.
130555 2000-05-08  Jim Meyering  <meyering@lucent.com>
130557         * lib/long-options.c: Don't include closeout.h.
130558         (parse_long_options): Don't call close_stdout for --version.
130560 2000-05-06  Paul Eggert  <eggert@twinsun.com>
130562         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
130563         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
130564         2.1.3 bug.  This avoids a clash when files like regex.c define
130565         _GNU_SOURCE.
130567 2000-05-06  Jim Meyering  <meyering@lucent.com>
130569         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
130570         (AC_REPLACE_FUNCS): Add strnlen.
130572         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
130573         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
130575         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
130576         AC_SEARCH_LIBS call for nanosleep.
130577         (LIB_NANOSLEEP): Set and AC_SUBST.
130579 2000-05-06  Jim Meyering  <meyering@lucent.com>
130581         * lib/strnlen.c: Undefine __strnlen and strnlen.
130582         [!weak_alias]: Define __strnlen to strnlen.
130584         * lib/atexit.c: New file, from libiberty.
130586 2000-05-06  Jim Meyering  <meyering@lucent.com>
130588         * lib/closeout.c (close_stdout_status): Also check for errors on the
130589         stderr stream.
130591 2000-05-05  Jim Meyering  <meyering@lucent.com>
130593         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
130594         AC_SEARCH_LIBS call for clock_gettime.
130595         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
130597         * m4/search-libs.m4: Update from autoconf.
130599         su doesn't work on Solaris 2.6.
130600         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
130601         <shadow.h>.  Reported by Dragos Harabor.
130603 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
130605         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
130606         memcpy instead of xmalloc, xrealloc, path_concat.
130607         (locale_charset): Treat empty environment variables as absent.
130608         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
130610 2000-05-04  Jim Meyering  <meyering@lucent.com>
130612         * lib/getopt.c: Update from glibc.
130613         * lib/obstack.c: Likewise.
130614         * lib/obstack.h: Likewise.
130615         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
130616         file
130618         * lib/regex.h: Likewise.
130619         * lib/strndup.c: Likewise.
130620         * lib/strnlen.c: New file, from glibc.
130622 2000-05-03  Jim Meyering  <meyering@lucent.com>
130624         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
130626 2000-05-02  Paul Eggert  <eggert@twinsun.com>
130628         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
130629         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
130630         compile-time test, rather than inspecting host and OS, to
130631         decide whether to define _LARGEFILE_SOURCE.
130633 2000-05-01  Jim Meyering  <meyering@lucent.com>
130635         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
130637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
130638         Based on a patch from Bruno Haible.
130640 2000-05-01  Jim Meyering  <meyering@lucent.com>
130642         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
130644 2000-04-29  Jim Meyering  <meyering@lucent.com>
130646         * lib/path-concat.c: Declare strdup only if it's not defined.
130647         * lib/canon-host.c: Likewise.
130649 2000-04-28  Jim Meyering  <meyering@lucent.com>
130651         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
130652         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
130653         is included first, then limits.h is included by locale.h by libintl.h.
130654         From John David Anglin.
130656 2000-04-25  Jim Meyering  <meyering@lucent.com>
130658         * lib/makepath.c (S_IRWXUGO): Define.
130659         (make_path): Always perform explicit chmod if MODE specifies any
130660         of the `special' permission bits.  Prompted by a bug report against
130661         install from Mate Wierdl and Joost van Baal.
130663 2000-04-18  Jim Meyering  <meyering@lucent.com>
130665         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
130666         (jm_PREREQ): Use it.
130668 2000-04-18  Jim Meyering  <meyering@lucent.com>
130670         * lib/README: New file.
130672         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
130673         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
130675 2000-04-17  Jim Meyering  <meyering@lucent.com>
130677         Get it right :-)
130678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
130679         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
130680         Suggestion from Akim Demaille.
130682 2000-04-17  Jim Meyering  <meyering@lucent.com>
130684         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
130685         the definition of it to rpl_strftime also defined-away the system's
130686         declaration.
130688 2000-04-15  Jim Meyering  <meyering@lucent.com>
130690         Use `C' to denote so-called `contiguous' files, the same way
130691         that tar does.
130692         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
130693         (ftypelet): Use S_ISCTG.
130694         From Michael Deutschmann.
130696 2000-04-14  Jim Meyering  <meyering@lucent.com>
130698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
130699         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
130700         clobbered.
130702 2000-04-14  Jim Meyering  <meyering@lucent.com>
130704         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
130706 2000-04-13  Jim Meyering  <meyering@lucent.com>
130708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
130709         AH_VERBATIM to insert required #ifndef into config.h.in.
130710         Suggestion from Akim Demaille.
130712 2000-04-12  Jim Meyering  <meyering@lucent.com>
130714         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
130715         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
130716         Christian Krackowizer.
130718         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
130719         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
130720         (AC_SYS_LARGEFILE): Require.
130721         (AM_C_PROTOTYPES): Require.
130723 2000-04-08  Jim Meyering  <meyering@lucent.com>
130725         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
130726         names don't conflict.  Reported by Eli Zaretskii.
130728 2000-04-07  Jim Meyering  <meyering@lucent.com>
130730         * lib/putenv.c: Move inclusion of errno.h so it follows that of
130731         sys/types.h, to work around system header problems on AIX 3.2.5.
130732         From Bruno Haible.
130734 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
130736         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
130737         bug.  Deal with the different error behavior of Irix iconv.
130739 2000-04-05  Paul Eggert  <eggert@twinsun.com>
130741         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
130742         IRIX if the installer said otherwise.
130744 2000-04-05  Jim Meyering  <meyering@lucent.com>
130746         Portability tweaks required for ultrix4.3.
130747         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
130748         (jm_CHECK_DECLS): Add getutent to the list of functions.
130749         (_jm_DECL_HEADERS): Add utmpx.h.
130750         From John David Anglin.
130752         * m4/strftime.m4: Back out the 2000-04-02 change.
130753         Instead of that change, simply undefine putenv in the test program.
130755 2000-04-05  Jim Meyering  <meyering@lucent.com>
130757         Portability tweaks required for ultrix4.3.
130758         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
130759         getutent.
130760         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
130761         * lib/canon-host.c: Declare strdup.
130762         * lib/path-concat.c: Likewise.
130763         From John David Anglin.
130765 2000-04-04  Jim Meyering  <meyering@lucent.com>
130767         Be more DOS 8.3-friendly.
130768         * lib/ref-add.sin: Renamed from ref-add.sed.in.
130769         * lib/ref-del.sin: Renamed from ref-del.sed.in.
130770         * lib/Makefile.am: Reflect renaming.
130771         Reported by Eli Zaretskii.
130773         Use a temporary file name that won't clash with `charset.alias'
130774         in the DOS 8.3 name space.
130775         * lib/Makefile.am (charset_tmp): Define.
130776         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
130777         (uninstall-local): Likewise.
130778         Reported by Eli Zaretskii.
130780 2000-04-03  Jim Meyering  <meyering@lucent.com>
130782         * m4/gettext.m4: Fix typo in comment.
130784         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
130785         textutils/configure.in).  Suggestion from Paul Eggert.
130786         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
130788 2000-04-02  Paul Eggert  <eggert@twinsun.com>
130790         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
130791         variable in the shell rather than using putenv, which isn't
130792         portable.  This avoids the configure-time inter-test dependency
130793         on the potentially-renamed putenv function.
130795 2000-03-30  Paul Eggert  <eggert@twinsun.com>
130797         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
130798         before checking struct stat.st_blksize, so that
130799         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
130801 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130803         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
130804         since strftime.c uses HAVE_STRFTIME to decide whether to use
130805         the underlying strftime.
130807 2000-03-29  Paul Eggert  <eggert@twinsun.com>
130809         * lib/time/strftime.c (my_strftime): Make sure we call the system
130810         strftime, not ourselves, when invoking the underlying strftime.
130812 2000-03-24  Jim Meyering  <meyering@lucent.com>
130814         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
130815         (charset_alias): Define.
130816         (install-exec-local): Factor out common code.
130817         (uninstall-local): Split lines longer than 80.
130818         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
130819         (SUFFIXES): Define.
130820         (.sed.in.sed): New rule.  Don't redirect directly to $@.
130821         (CLEANFILES): Add ref-add.sed and ref-del.sed.
130823 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
130825         * lib/config.charset: Output a line containing "Packages using this
130826         file".
130827         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
130828         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
130829         ref-del.sed): New rules.
130831 2000-03-17  Jim Meyering  <meyering@lucent.com>
130833         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
130834         Otherwise, include <strings.h>
130836 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
130838         * lib/unicodeio.c (utf8_wctomb): New function.
130839         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
130840         format instead of in UCS-4 with platform dependent endianness.
130842 2000-03-10  Jim Meyering  <meyering@lucent.com>
130844         * m4/lib-check.m4: Look for getspnam in -lgen, too.
130845         From Marco Franzen.
130847 2000-03-07  Paul Eggert  <eggert@twinsun.com>
130849         * lib/savedir.c (savedir): Work even if directory size is
130850         negative; this can happen with some screwy NFS configurations.
130852 2000-03-06  Jim Meyering  <meyering@lucent.com>
130854         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
130855         if it's NULL (because we ran out of memory).  From Bruno Haible.
130857 2000-03-05  Jim Meyering  <meyering@lucent.com>
130859         * lib/localcharset.c ("path-concat.h"): Include.
130860         (get_charset_aliases): Use path_concat instead of ANSI string
130861         concatenation.
130863         * lib/unicodeio.h (PARAMS): Define.
130864         Use it to guard prototype.
130866 2000-03-04  Jim Meyering  <meyering@lucent.com>
130868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
130869         for lib/localcharset.c.
130871 2000-03-04  Jim Meyering  <meyering@lucent.com>
130873         * lib/Makefile.am (install-exec-local): Create $(libdir) before
130874         installing into it.
130875         (uninstall-local): Uncomment this rule so `make distcheck' works
130876         once again.
130878         * lib/unicodeio.c (<errno.h>): Include it.
130879         (errno): Declare if not defined.
130881         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
130883         * lib/config.charset: New version, incorporating remarks from a linux
130884         i18n mailing list.  From Bruno Haible.
130886 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
130888         * m4/codeset.m4: New file.
130889         * m4/iconv.m4: New file.
130890         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
130892 2000-03-03  Jim Meyering  <meyering@lucent.com>
130894         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
130896 2000-03-02  Jim Meyering  <meyering@lucent.com>
130898         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
130899         the messages come out on separate lines.
130901         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
130902         rather than jm_CHECK_DECLARATIONS.
130903         * m4/decl.m4: Remove now-unused file.
130905         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
130906         geteuid.
130908 2000-03-02  Jim Meyering  <meyering@lucent.com>
130910         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
130912 2000-03-01  Jim Meyering  <meyering@lucent.com>
130914         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
130915         * lib/unicodeio.c: Likewise.
130917 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
130919         * lib/config.charset: New file.
130920         * lib/localcharset.c: New file.
130921         * lib/unicodeio.h, lib/unicodeio.c: New files.
130922         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
130923         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
130924         (noinst_HEADERS): Add unicodeio.h.
130925         (all-local, install-exec-local, charset.alias): New targets.
130927 2000-02-28  Paul Eggert  <eggert@twinsun.com>
130929         * lib/quotearg.c (ALERT_CHAR): New macro.
130930         (quotearg_buffer_restyled): Use it.
130932 2000-02-27  Jim Meyering  <meyering@lucent.com>
130934         * m4/check-decl.m4: Add getenv to the list.
130936 2000-02-27  Jim Meyering  <meyering@lucent.com>
130938         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
130939         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
130941         * lib/backupfile.c: Guard inclusion of stdlib.h with
130942         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
130943         Declare malloc if needed.
130945         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
130946         `#ifndef HAVE_DECL..'
130947         now that autoconf always defines the HAVE_DECL_ symbols.
130948         * lib/human.c: Likewise.
130949         * lib/same.c: Likewise.
130950         * lib/strtoumax.c: Likewise.
130952         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
130953         declaration check was not run.
130954         * lib/hash.c: Likewise.
130955         * lib/human.c: Likewise.
130956         * lib/same.c: Likewise.
130957         * lib/strtoumax.c: Likewise.
130959         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
130960         `.', then first look up the entire `.'-containing string as a login
130961         name.
130963 2000-02-23  Jim Meyering  <meyering@lucent.com>
130965         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
130966         in place of my hack.
130968 2000-02-18  Paul Eggert  <eggert@twinsun.com>
130970         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
130971         (textint): New typedef.
130972         (parser_control): Member year changed from int to textint.
130973         All uses changed.
130974         (YYSTYPE): Removed; replaced by %union with int and textint members.
130975         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
130976         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
130977         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
130978         (tSNUMBER, tUNUMBER): Now of type <textintval>.
130979         (date, number, to_year): Use width of number in digits, not its value,
130980         to determine whether it's a 2-digit year, or a 2-digit time.
130981         (yylex): Store number of digits of numeric tokens.
130982         Reported by John Kendall.
130984         (parser_control): Changed from struct parser_control to typedef (for
130985         consistency).  All uses changed.
130987         (tID): Removed; not used.
130988         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
130990 2000-02-14  Paul Eggert  <eggert@twinsun.com>
130992         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
130993         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
130995 2000-02-12  Jim Meyering  <meyering@lucent.com>
130997         * lib/userspec.c (ISDIGIT): Define it.
130998         (isdigit): Remove definition.
130999         (is_number): Use ISDIGIT, not isdigit.
131000         <libintl.h>: Include.
131001         (_ and N_): Define.
131002         (parse_user_spec): Mark translatable strings.
131004 2000-02-10  Jim Meyering  <meyering@lucent.com>
131006         With these changes, nanosleep.[ch] are finally enough like the other
131007         lib/* replacement files to compile on a few more losing systems.
131009         * lib/nanosleep.h: Don't include config.h.
131010         Remove prototype from declaration of nanosleep.
131011         (PARAMS): Remove now-unneeded definition.
131012         * lib/nanosleep.c: #undef nanosleep.
131013         (rpl_nanosleep): Rename from nanosleep.
131015 2000-02-10  Jim Meyering  <meyering@lucent.com>
131017         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
131018         gnu_nanosleep to rpl_nanosleep.
131020 2000-02-09  Jim Meyering  <meyering@lucent.com>
131022         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
131023         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
131025 2000-02-08  Akim Demaille  <akim@epita.fr>
131027         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
131028         `[' and `]' and remove uses of `changequote'.
131029         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
131030         (AC_SYS_LARGEFILE): Likewise.
131031         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
131032         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
131033         of changequote.
131034         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
131035         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
131036         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
131037         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
131039 2000-02-05  Jim Meyering  <meyering@lucent.com>
131041         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
131042         Remove explicit use of AC_HEADER_TIME.  It is required by
131043         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
131044         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
131045         in autoconf whereby the expansion of the latter ended up preceding
131046         the expansion of its prerequisite, AC_HEADER_TIME.
131047         Reported by Volker Borchert.
131049 2000-02-03  Jim Meyering  <meyering@lucent.com>
131051         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
131053 2000-02-03  Jim Meyering  <meyering@lucent.com>
131055         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
131056         rather than with `#if HAVE_UTMPNAME'.
131058 2000-02-02  Jim Meyering  <meyering@lucent.com>
131060         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
131061         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
131062         Reported by Eli Zaretskii.
131064 2000-02-01  Jim Meyering  <meyering@lucent.com>
131066         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
131068 2000-01-31  Jim Meyering  <meyering@lucent.com>
131070         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
131071         functions.  Add the time.h and sys/time.h headers along with the
131072         AC_REQUIRE'ment of AC_HEADER_TIME.
131074 2000-01-31  Jim Meyering  <meyering@lucent.com>
131076         * lib/nanosleep.h (nanosleep): Guard declaration with
131077         `#if ! HAVE_DECL_NANOSLEEP'.
131078         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
131079         the declaration in that vendor's sys/timers.h.
131080         Reported by Christian Krackowizer.
131082         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
131083         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
131084         (ISPRINT): Likewise.
131085         Reported by Tom Tromey.
131087 2000-01-30  Jim Meyering  <meyering@lucent.com>
131089         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
131091         * m4/prereq.m4 (utmp_includes): Define.
131092         Check for ut_user and ut_name members in both struct utmpx
131093         and struct utmp.
131095 2000-01-30  Jim Meyering  <meyering@lucent.com>
131097         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
131098         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
131099         header files where only utmpx.ut_user is declared.
131101         * lib/readutmp.h (UT_USER): Define.
131103 2000-01-29  Jim Meyering  <meyering@lucent.com>
131105         * m4/lib-check.m4: New file containing library-related checks from
131106         fileutils and sh-utils (textutils had none).
131108 2000-01-28  Jim Meyering  <meyering@lucent.com>
131110         * m4/perl.m4: Change format of warning message to look more like that
131111         from the missing script.  Suggestion from François Pinard.
131113 2000-01-25  Jim Meyering  <meyering@lucent.com>
131115         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
131116         well as time.h in the compile check.
131117         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
131118         Fix typo in cross-compiling case: s/yes/no/.
131120 2000-01-23  Jim Meyering  <meyering@lucent.com>
131122         * m4/jm-macros.m4: Move df-related tests here from
131123         fileutils/configure.in
131125         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
131126         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
131128         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
131129         s/space/ac_fsusage_space/.
131130         (jm_FILE_SYSTEM_USAGE): Take two parameters.
131132         * m4/ftruncate.m4: New file (derived from part of
131133         fileutils/configure.in).
131134         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
131135         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
131137         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
131138         AC_SUBST these here, rather than just in sh-util/configure.in, so
131139         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
131140         all the same.
131141         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
131142         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
131143         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
131144         (AC_SUBST(POW_LIBM)): Likewise.
131145         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
131147 2000-01-23  Jim Meyering  <meyering@lucent.com>
131149         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
131150         obstack.c.
131152 2000-01-22  Jim Meyering  <meyering@lucent.com>
131154         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
131156         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
131158         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
131159         configure.in
131160         (AC_CHECK_HEADERS): Likewise for sh-utils.
131161         (AC_CHECK_HEADERS): Likewise for textutils.
131162         Merge the three lists of headers.
131164         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
131165         from fileutils' configure.in.
131167         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
131168         code. Moved tests into their own function (_jm_DECL_HEADERS) in
131169         check-decl.m4.
131171         * m4/check-decl.m4: Use #if rather than #ifdef.
131172         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
131173         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
131174         (_jm_DECL_HEADERS): Define new function.
131175         (jm_CHECK_DECLARATIONS): Require it.
131177 2000-01-22  Jim Meyering  <meyering@lucent.com>
131179         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
131180         [! HAVE_DECL_STRTOULL]: Declare strtoull.
131181         Required for some AIX systems.  Reported by Christian Krackowizer.
131182         [TESTING] (main): New function.
131184         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
131185         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
131186         letters.
131188         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
131189         iswprint.
131191         * lib/strverscmp.c (ISDIGIT): Define.
131192         (strverscmp): Use ISDIGIT, not isdigit.
131194 2000-01-19  Jim Meyering  <meyering@lucent.com>
131196         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
131197         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
131198         defines `struct timespec' in <sys/time.h>
131200         * m4/c-bs-a.m4: Remove uses of changequote altogether.
131201         Thanks to Akim for explaining.
131203 2000-01-17  Paul Eggert  <eggert@twinsun.com>
131205         * lib/nanosleep.c (nanosleep):
131206         Don't use SA_INTERRUPT to decide whether to call sigaction, as
131207         POSIX.1 doesn't require SA_INTERRUPT and some systems
131208         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
131209         it's been part of POSIX.1 since day 1 (in 1988).
131211 2000-01-17  Jim Meyering  <meyering@lucent.com>
131213         * lib/interlock: Remove unused file.  Reported by François Pinard.
131215 2000-01-16  Paul Eggert  <eggert@twinsun.com>
131217         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
131218         alert, backslash, formfeed, and vertical tab unnecessarily in
131219         shell quoting style.
131221 2000-01-16  Jim Meyering  <meyering@lucent.com>
131223         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
131224         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
131225         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
131226         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
131228 2000-01-16  Jim Meyering  <meyering@lucent.com>
131230         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
131231         because the latter didn't work.
131233 2000-01-15  Jim Meyering  <meyering@lucent.com>
131235         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
131236         (AC_REPLACE_FUNCS): Add memcpy and memset.
131237         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
131238         Add strpbrk.
131239         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
131241 2000-01-12  Jim Meyering  <meyering@lucent.com>
131243         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
131244         (jm_PREREQ): Use it.
131245         (jm_PREREQ_READUTMP): New macro.
131246         (jm_PREREQ): Use it.
131248 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131250         Quote multibyte characters correctly.
131251         * m4/c-bs-a.m4: New file.
131252         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
131253         (jm_PREREQ): Use it.
131255 2000-01-11  Paul Eggert  <eggert@twinsun.com>
131257         * m4/uintmax_t.m4: Port to autoconf 2.13.
131259 2000-01-08  Jim Meyering  <meyering@ascend.com>
131261         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
131262         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
131264 2000-01-04  Jim Meyering  <meyering@ascend.com>
131266         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
131267         jm_STRUCT_DIRENT_D_TYPE.
131268         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
131269         jm_STRUCT_DIRENT_D_INO.
131270         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
131271         jm_STRUCT_UTIMBUF.
131272         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
131273         renamings.
131274         * m4/utime.m4: Likewise.
131276         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
131277         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
131279 2000-01-03  Paul Eggert  <eggert@twinsun.com>
131281         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
131282         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
131284 2000-01-02  Jim Meyering  <meyering@ascend.com>
131286         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
131287         remember if this is necessary.
131289 1999-12-26  Jim Meyering  <meyering@ascend.com>
131291         * m4/jm-macros.m4: Use it here.
131292         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
131294 1999-12-23  Jim Meyering  <meyering@ascend.com>
131296         * m4/jm-macros.m4: Check for clock_gettime (moved from
131297         fileutils/configure.in)
131298         Check for gettimeofday.
131300 1999-12-20  Jim Meyering  <meyering@ascend.com>
131302         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
131303         autoconf-2.14a-1999-12-20.
131305 1999-12-19  Jim Meyering  <meyering@ascend.com>
131307         * m4/lstat-slash.m4: New file.
131308         * m4/jm-macros.m4: Use the new macro:
131309         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
131311 1999-12-07  Jim Meyering  <meyering@ascend.com>
131313         * m4/perl.m4: Require that File::Compare be available, too.
131314         Too many systems seem to lack it.
131316         * m4/strftime.m4: Add checks for most of the cpp macros tested in
131317         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
131319 1999-11-18  Paul Eggert  <eggert@twinsun.com>
131321         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
131322         problem with the QNX 4.25 shell, which doesn't propagate exit
131323         status of failed commands inside shell assignments.
131325 1999-11-17  Jim Meyering  <meyering@ascend.com>
131327         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
131329 1999-11-07  Jim Meyering  <meyering@ascend.com>
131331         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
131333 1999-11-06  Jim Meyering  <meyering@ascend.com>
131335         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
131336         * m4/jm-macros.m4 (jm_MACROS): Use it here.
131338 1999-11-05  Jim Meyering  <meyering@ascend.com>
131340         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
131341         configure.in of textutils, fileutils, and sh-utils into this one
131342         (shared between those packages) file.
131343         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
131344         AC_STRUCT_ST_BLKSIZE.
131346 1999-11-03  Jim Meyering  <meyering@ascend.com>
131348         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
131349         of AC_CHECK_TYPE checks includes unistd.h.
131350         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
131351         Suggestion from Akim Demaille.
131353 1999-10-30  Jim Meyering  <meyering@ascend.com>
131355         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
131356         m4-quoted string.
131357         * m4/ls-mntd-fs.m4: Likewise.
131358         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
131359         * m4/jm-winsz1.m4: Likewise.
131361         * m4/const.m4: Remove file, since the fix made it into the experimental
131362         version of autoconf.
131363         * m4/mktime.m4: Likewise.
131365         * m4/check-type.m4: Remove file, now that the latest version of
131366         AC_CHECK_TYPE takes a third arg to specify additional #includes.
131368         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
131369         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
131370         AC_CHECK_TYPE.
131372 1999-10-04  Jim Meyering  <meyering@ascend.com>
131374         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
131376 1999-09-22  Paul Eggert  <eggert@twinsun.com>
131378         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
131379         2.95.1 bug with HP-UX 10.20.
131381 1999-09-17  Jim Meyering  <meyering@ascend.com>
131383         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
131384         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
131385         due to missing strdup (against sh-utils-2.0).
131387 1999-08-29  Jim Meyering  <meyering@ascend.com>
131389         * m4/jm-macros.m4: Require jm_BISON.
131390         * m4/bison.m4: New file.
131392 1999-08-17  Paul Eggert  <eggert@twinsun.com>
131394         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
131395         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
131397 1999-08-05  Jim Meyering  <meyering@ascend.com>
131399         * m4/getline.m4: Rename test file from conftestdata to conftest.data
131400         to avoid conflicts with `conftest' on 8+3 filesystems.
131401         Suggestion from Eli Zaretskii.
131403 1999-08-04  Jim Meyering  <meyering@ascend.com>
131405         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
131406         fileutils and sh-utils (textutils's getline test was inadequate).
131407         (AM_FUNC_GETLINE): Run this test.
131408         (AC_CHECK_FUNCS): Check for getdelim.
131409         Reported by Bob Proulx.
131411 1999-08-02  Jim Meyering  <meyering@ascend.com>
131413         * m4/jm-macros.m4: Add a comment.
131415 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131417         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
131418         <inttypes.h> defines strtoumax as a macro (and not as a
131419         function).
131421 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131423         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
131424         that we can shift, multiply and divide unsigned long long
131425         values; Ultrix cc can't do it.
131427 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131429         * m4/mktime.m4: New file, which is a preview of what should appear
131430         in the next public autoconf release.
131432 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131434         * m4/lfs.m4: Remove this file.
131435         * m4/largefile.m4: New file.  It contains the old contents of
131436         lfs.m4, except that all names with prefix AC_LFS have been
131437         changed to use the prefix AC_SYS_LARGEFILE instead, to be
131438         compatible with future autoconf versions.  Also, some minor m4
131439         quoting problems have been fixed.
131441 1999-08-01  Paul Eggert  <eggert@twinsun.com>
131443         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
131444         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
131445         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
131446         and simplify the shell code.
131448 1999-08-01  Jim Meyering  <meyering@ascend.com>
131450         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
131451         m4.
131453 1999-07-20  Jim Meyering  <meyering@ascend.com>
131455         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
131457 1999-07-15  Jim Meyering  <meyering@ascend.com>
131459         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
131461 1999-05-22  Jim Meyering  <meyering@ascend.com>
131463         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
131465 1999-05-20  Jim Meyering  <meyering@ascend.com>
131467         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
131468         Add a colon after each `then' in case $4 is empty.
131470 1999-05-16  Jim Meyering  <meyering@ascend.com>
131472         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
131474 1999-05-10  Jim Meyering  <meyering@ascend.com>
131476         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
131478         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
131479         AC_FUNC_MKTIME.
131481 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
131483         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
131485 1999-05-04  Paul Eggert  <eggert@twinsun.com>
131487         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
131488         not CPPFLAGS, so that linking works correctly in IRIX.
131490 1999-04-30  Paul Eggert  <eggert@twinsun.com>
131492         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
131494 1999-04-20  Paul Eggert  <eggert@twinsun.com>
131496         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
131497         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
131498         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
131499         jm_AC_TYPE_UNSIGNED_LONG_LONG.
131500         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
131502         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
131504 1999-04-20  Jim Meyering  <meyering@ascend.com>
131506         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
131507         AC_REPLACE xstroull if necessary.  From Paul Eggert.
131508         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
131510 1999-04-18  Jim Meyering  <meyering@ascend.com>
131512         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
131513         * m4/jm-macros.m4: Use it.
131515 1999-04-06  Jim Meyering  <meyering@ascend.com>
131517         * m4/strftime.m4: Remove test for %f.
131519 1999-03-29  Jim Meyering  <meyering@ascend.com>
131521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
131522         superset of the AC_TYPE_* checks in the textutils, fileutils,
131523         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
131524         AC_TYPE_PID_T.
131526 1999-03-28  Jim Meyering  <meyering@ascend.com>
131528         * m4/jm-macros.m4: Define GNU_PACKAGE here.
131529         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
131530         replaced e.g., in the *.sh files of the sh-utils.
131532 1999-03-20  Jim Meyering  <meyering@ascend.com>
131534         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
131535         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
131536         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
131538 1999-03-19  Jim Meyering  <meyering@ascend.com>
131540         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
131542 1999-03-12  Jim Meyering  <meyering@ascend.com>
131544         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
131546 1999-03-07  Jim Meyering  <meyering@ascend.com>
131548         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
131549         declared.
131551 1999-02-17  Jim Meyering  <meyering@ascend.com>
131553         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
131554         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
131556 1999-02-07  Jim Meyering  <meyering@ascend.com>
131558         * m4/group-member.m4: New file -- extracted from sh-utils'
131559         configure.in.
131561         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
131562         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
131564 1999-02-06  Jim Meyering  <meyering@ascend.com>
131566         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
131567         * m4/fnmatch.m4: Likewise.
131568         * m4/getgroups.m4: Likewise.
131569         * m4/lstat.m4: Likewise.
131570         * m4/malloc.m4: Likewise.
131571         * m4/putenv.m4: Likewise.
131572         * m4/realloc.m4: Likewise.
131573         * m4/regex.m4: Likewise.
131574         * m4/stat.m4: Likewise.
131575         * m4/strftime.m4: Likewise.
131576         Suggestion from Alain Magloire.
131578         * m4/chown.m4: Use `.$ac_objext', not `.o'.
131579         * m4/fnmatch.m4: Likewise.
131580         * m4/getgroups.m4: Likewise.
131581         * m4/getline.m4: Likewise.
131582         * m4/lstat.m4: Likewise.
131583         * m4/malloc.m4: Likewise.
131584         * m4/memcmp.m4: Likewise.
131585         * m4/putenv.m4: Likewise.
131586         * m4/realloc.m4: Likewise.
131587         * m4/regex.m4: Likewise.
131588         * m4/stat.m4: Likewise.
131589         * m4/strftime.m4: Likewise.
131590         Suggestion from Alain Magloire.
131592         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
131593         an argument.
131595         * m4/regex.m4: Add a run-time Test for proper operation of
131596         re_compile_pattern.
131598 1999-01-31  Jim Meyering  <meyering@ascend.com>
131600         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
131602 1999-01-30  Jim Meyering  <meyering@ascend.com>
131604         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
131606         * m4/jm-mktime.m4: Make this a wrapper around the official
131607         AM_FUNC_MKTIME rather than my private copy, now that the official one
131608         is up to date.
131609         * m4/mktime.m4: Remove file.
131611         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
131612         * m4/uptime.m4: Likewise.
131613         * m4/uintmax_t.m4: Likewise.
131615 1999-01-28  Jim Meyering  <meyering@ascend.com>
131617         * m4/jm-macros.m4: Use jm_AFS.
131618         * m4/afs.m4: New file (from fileutils' configure.in).
131620         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
131621         * m4/chown.m4: Likewise.
131622         * m4/d-ino.m4: Likewise.
131623         * m4/d-type.m4: Likewise.
131624         * m4/fnmatch.m4: Likewise.
131625         * m4/getgroups.m4: Likewise.
131626         * m4/gettext.m4: Likewise.
131627         * m4/jm-mktime.m4: Likewise.
131628         * m4/jm-winsz2.m4: Likewise.
131629         * m4/lcmessage.m4: Likewise.
131630         * m4/ls-mntd-fs.m4: Likewise.
131631         * m4/malloc.m4: Likewise.
131632         * m4/memcmp.m4: Likewise.
131633         * m4/putenv.m4: Likewise.
131634         * m4/realloc.m4: Likewise.
131635         * m4/st_mtim.m4: Likewise.
131636         * m4/strftime.m4: Likewise.
131638 1999-01-16  Jim Meyering  <meyering@ascend.com>
131640         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
131641         (ARGMATCH_DIE_DECL): Define.
131643 1999-01-12  Jim Meyering  <meyering@ascend.com>
131645         * m4/Makefile.am.in: Rewrite to avoid using fmt.
131646         Reported by Lars Hecking.
131648 1999-01-10  Jim Meyering  <meyering@ascend.com>
131650         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
131651         gross kludge.
131652         * m4/inttypes_h.m4: Likewise.
131653         * m4/lstat.m4: Likewise.
131654         * m4/malloc.m4: Likewise.
131655         * m4/readdir.m4: Likewise.
131656         * m4/realloc.m4: Likewise.
131657         * m4/st_dm_mode.m4: Likewise.
131658         * m4/stat.m4: Likewise.
131659         * m4/utimbuf.m4: Likewise.
131660         * m4/utimes.m4: Likewise.
131662         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
131663         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
131664         comments in config.h.in are meaningful.
131666         * m4/jm-macros.m4: Require autoconf-2.13 here.
131668         * m4/regex.m4: By default, don't use the included regex.c on systems
131669         with glibc 2.  Suggestion from Uli Drepper.
131671 1999-01-02  Jim Meyering  <meyering@ascend.com>
131673         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
131675 1998-12-18  Jim Meyering  <meyering@ascend.com>
131677         * m4/Makefile.am.in (Makefile.am): Simplify rule.
131678         Based on a suggestion from Lars Hecking.
131680 1998-11-16  Paul Eggert  <eggert@twinsun.com>
131682         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
131684 1998-11-16  Jim Meyering  <meyering@ascend.com>
131686         * m4/lfs.m4: Double-quote the `uname...` expression.
131688 1998-11-14  Jim Meyering  <meyering@ascend.com>
131690         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
131691         * m4/stat.m4: Likewise.
131693 1998-11-03  Jim Meyering  <meyering@ascend.com>
131695         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
131696         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
131698 1998-10-18  Jim Meyering  <meyering@ascend.com>
131700         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
131702 1998-10-17  Jim Meyering  <meyering@ascend.com>
131704         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
131705         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
131706         calls for those previously hard-coded headers.  Instead, take a new
131707         parameter.
131708         (jm_CHECK_DECLARATIONS): Reflect interface change.
131709         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
131710         (jm_CHECK_DECL_LOCALTIME_R): New macro.
131712         * m4/mktime.m4: Test for spring-forward gap before long-running test.
131714 1998-10-14  Jim Meyering  <meyering@ascend.com>
131716         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
131717         instead of "TZ=America/Vancouver".  From Paul Eggert.
131719 1998-10-11  Jim Meyering  <meyering@ascend.com>
131721         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
131722         This adds a test for a recently added compatibility fix for mktime.c.
131723         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
131725 1998-09-27  Jim Meyering  <meyering@ascend.com>
131727         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
131729         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
131730         ../configure.in, including a change from Gordon Matzigkeit to allow
131731         cross-compiling for the Hurd.
131733         * m4/glibc.m4: New file/macro to test for the GNU C Library
131734         versions 1 and 2.  From Gordon Matzigkeit.
131735         Indent.
131737 1998-09-21  Jim Meyering  <meyering@ascend.com>
131739         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
131741 1998-08-18  Paul Eggert  <eggert@twinsun.com>
131743         Port nanosecond-resolution times to UnixWare 2.1.2 and
131744         pedantic Solaris 2.6.
131746         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
131747         AC_STRUCT_ST_MTIM.
131748         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
131749         Generate name of ns member, instead of just 1 or undef.
131750         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
131752 1998-08-15  Jim Meyering  <meyering@ascend.com>
131754         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
131755         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
131756         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
131757         instead of jm_TYPE_SSIZE_T.
131759 1998-08-12  Jim Meyering  <meyering@ascend.com>
131761         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
131763 1998-08-02  Jim Meyering  <meyering@ascend.com>
131765         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
131766         in acconfig.h manually.
131768 1998-07-31  Paul Eggert  <eggert@twinsun.com>
131770         * m4/st_mtim.m4: New file.
131772 1998-07-28  Jim Meyering  <meyering@ascend.com>
131774         * m4/utimes.m4: Undef stat.
131776 1998-07-25  Jim Meyering  <meyering@ascend.com>
131778         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
131779         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
131781 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
131783         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
131784         uid and gid actually remain unchanged.
131786 1998-07-07  Jim Meyering  <meyering@ascend.com>
131788         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
131790 1998-07-04  Jim Meyering  <meyering@ascend.com>
131792         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
131793         to prove that this macro can be used in packages without regex.c.
131795 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
131797         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
131798         is to be used.
131800 1998-07-03  Jim Meyering  <meyering@ascend.com>
131802         * m4/gettext.m4: Add -lintl if it's found to be necessary.
131804         * m4/gettext.m4: New file -- from gettext-0.10.35.
131805         * m4/lcmessage.m4: Likewise.
131806         * m4/progtest.m4: Likewise.
131808         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
131809         * m4/jm-macros.m4: Require the new macro.
131811 1998-06-29  Jim Meyering  <meyering@ascend.com>
131813         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
131814         for the definition of NGROUPS (used in a system header included
131815         by sys/mount.h).
131817 1998-06-28  Jim Meyering  <meyering@ascend.com>
131819         * m4/ls-mntd-fs.m4: New file.
131820         * m4/fstypename.m4: New file.
131822         * m4/jm-macros.m4: Require the new macro.
131823         * m4/jm-glibc-io.m4: New file.
131825 1998-05-19  Jim Meyering  <meyering@ascend.com>
131827         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
131828         * m4/lchown.m4: New file.
131830         * m4/Makefile.am.in: New file.
131831         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
131833 1998-05-14  Jim Meyering  <meyering@ascend.com>
131835         * m4/Makefile.am (EXTRA_DIST): Add them.
131836         * m4/jm-macros.m4: New file.
131837         * m4/utimbuf.m4: New file.
131839 1998-05-12  Jim Meyering  <meyering@ascend.com>
131841         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
131843 1998-05-11  Jim Meyering  <meyering@ascend.com>
131845         * m4/isc-posix.m4: New file.
131847 1998-05-10  Jim Meyering  <meyering@ascend.com>
131849         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
131851 1998-05-09  Jim Meyering  <meyering@ascend.com>
131853         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
131854         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
131855         with automake.
131857         * m4/ssize_t.m4: New file.
131858         * m4/mktime.m4: Remove file -- the new automake has this now.
131860 1998-04-26  Jim Meyering  <meyering@ascend.com>
131862         * m4/assert.m4: New file.
131863         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
131865 1998-04-05  Jim Meyering  <meyering@ascend.com>
131867         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
131868         (jm_PREREQ): Use it here.
131870 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
131872         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
131873         in acconfig.h.
131875 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
131877         * m4/prereq.m4: New file.
131878         * m4/error.m4: New file.
131879         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
131881 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
131883         * m4/getline.m4: Don't set am_cv_func_working_getline before the
131884         cache-check for the same variable -- that defeated the purpose of
131885         the test; the test program was never run.  This was a problem only
131886         on systems with losing getline functions -- HP-UX 10.20 is one.
131887         Reported by Bjorn Helgaas.
131889 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
131891         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
131893 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
131895         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
131897         * m4/const.m4: New file.  Use an initializer in this declaration
131898         typedef int charset[2]; const charset x;
131899         Reported by Bob Glickstein.
131901 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
131903         * m4/chown.m4: Fix reversed types on -1 args to chown.
131904         From Kaveh Ghazi.
131906 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
131908         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
131909         Add lseek and memchr.
131911         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
131912         T.E.Dickey <dickey@clark.net> said that some older preprocessors
131913         have a 20-character limit on names.
131915 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
131917         * m4/inttypes_h.m4: New file.
131918         * m4/uintmax_t.m4: New file.
131919         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
131922         -----
131924         Local Variables:
131925         coding: utf-8
131926         End:
131928         Copyright (C) 1997-2020 Free Software Foundation, Inc.
131930         Copying and distribution of this file, with or without
131931         modification, are permitted provided the copyright notice
131932         and this notice are preserved.